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

/* loaded from: classes3.dex */
public class zzkk {
    private volatile zzlc zza;
    private volatile zzik zzb;

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof zzkk)) {
            return false;
        }
        zzkk zzkkVar = (zzkk) obj;
        zzlc zzlcVar = this.zza;
        zzlc zzlcVar2 = zzkkVar.zza;
        return (zzlcVar == null && zzlcVar2 == null) ? zzb().equals(zzkkVar.zzb()) : (zzlcVar == null || zzlcVar2 == null) ? zzlcVar != null ? zzlcVar.equals(zzkkVar.zzb(zzlcVar.zzck())) : zzb(zzlcVar2.zzck()).equals(zzlcVar2) : zzlcVar.equals(zzlcVar2);
    }

    public int hashCode() {
        return 1;
    }

    public final int zza() {
        if (this.zzb != null) {
            return this.zzb.zzb();
        }
        if (this.zza != null) {
            return this.zza.zzcb();
        }
        return 0;
    }

    public final zzik zzb() {
        if (this.zzb != null) {
            return this.zzb;
        }
        synchronized (this) {
            if (this.zzb != null) {
                return this.zzb;
            }
            if (this.zza == null) {
                this.zzb = zzik.zza;
            } else {
                this.zzb = this.zza.zzbz();
            }
            return this.zzb;
        }
    }

    public final zzlc zza(zzlc zzlcVar) {
        zzlc zzlcVar2 = this.zza;
        this.zzb = null;
        this.zza = zzlcVar;
        return zzlcVar2;
    }

    private final zzlc zzb(zzlc zzlcVar) {
        if (this.zza == null) {
            synchronized (this) {
                if (this.zza == null) {
                    try {
                        this.zza = zzlcVar;
                        this.zzb = zzik.zza;
                    } catch (zzkb unused) {
                        this.zza = zzlcVar;
                        this.zzb = zzik.zza;
                    }
                }
            }
        }
        return this.zza;
    }
}
