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

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

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

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

    @Nullable
    private final Context zza;

    @Nullable
    private ok2 zzc;

    public cm2(@Nullable Context context) {
        this.zza = context != null ? context.getApplicationContext() : null;
        if (context == null) {
            this.zzc = ok2.f15094c;
        }
    }

    public final em2 a() {
        if (this.f9988a == null) {
            this.f9988a = new hm2(this.zza);
        }
        return new em2(this);
    }

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

    public final /* synthetic */ ok2 c() {
        return this.zzc;
    }

    public final cm2 zzb(@Nullable ok2 ok2Var) {
        if (this.zza == null) {
            this.zzc = ok2Var;
        }
        return this;
    }
}
