package com.google.android.gms.common.internal;

import androidx.annotation.Nullable;
import androidx.annotation.VisibleForTesting;
import com.google.android.gms.common.annotation.KeepForSdk;

/* JADX INFO: loaded from: classes2.dex */
public final class x {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public static final y f8413a = new y(0, false, false, 0, 0);

    @Nullable
    private static x zza;

    @Nullable
    private y zzc;

    public static synchronized x a() {
        try {
            if (zza == null) {
                zza = new x();
            }
        } catch (Throwable th) {
            throw th;
        }
        return zza;
    }

    @Nullable
    @KeepForSdk
    public y getConfig() {
        return this.zzc;
    }

    @VisibleForTesting
    public final synchronized void zza(@Nullable y yVar) {
        if (yVar == null) {
            this.zzc = f8413a;
            return;
        }
        y yVar2 = this.zzc;
        if (yVar2 == null || yVar2.f8416a < yVar.f8416a) {
            this.zzc = yVar;
        }
    }
}
