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

import android.content.Context;
import androidx.annotation.Nullable;

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

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final ok2 f13317a = ok2.f15094c;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public boolean f13318b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public zj2 f13319c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public em2 f13320d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public hm2 f13321e;

    @Nullable
    private final Context zza;

    @Nullable
    private mm2 zzf;

    public km2(Context context) {
        this.zza = context;
    }

    public final qm2 a() {
        ih1.b1(!this.f13318b);
        this.f13318b = true;
        if (this.zzf == null) {
            this.zzf = new mm2(new i80[0]);
        }
        if (this.f13320d == null) {
            if (this.f13321e == null) {
                this.f13321e = new hm2(this.zza);
            }
            if (this.f13319c == null) {
                this.f13319c = jm2.f12924u;
            }
            Context context = this.zza;
            cm2 cm2Var = new cm2(context);
            cm2Var.zzb(context != null ? null : this.f13317a);
            cm2Var.f9988a = this.f13321e;
            this.f13320d = cm2Var.a();
        } else {
            ih1.b1(this.f13321e == null);
            ih1.b1(this.f13319c == null);
        }
        return new qm2(this);
    }

    public final /* synthetic */ Context b() {
        return this.zza;
    }

    public final /* synthetic */ mm2 c() {
        return this.zzf;
    }
}
