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

import android.content.Context;
import java.util.HashMap;

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

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final HashMap f11717a = new HashMap();

    public final fc1 a(zzfld zzfldVar, Context context, vb1 vb1Var, dh0 dh0Var) {
        ac1 ac1Var;
        HashMap map = this.f11717a;
        fc1 fc1Var = (fc1) map.get(zzfldVar);
        if (fc1Var != null) {
            return fc1Var;
        }
        if (zzfldVar == zzfld.f19680a) {
            tn tnVar = ao.f8819d7;
            n7.y yVar = n7.y.f31093e;
            int iIntValue = ((Integer) yVar.f31096c.b(tnVar)).intValue();
            tn tnVar2 = ao.f8918j7;
            yn ynVar = yVar.f31096c;
            int iIntValue2 = ((Integer) ynVar.b(tnVar2)).intValue();
            int iIntValue3 = ((Integer) ynVar.b(ao.f8950l7)).intValue();
            String str = (String) ynVar.b(ao.f8984n7);
            String str2 = (String) ynVar.b(ao.f8853f7);
            ac1Var = new ac1(context, zzfldVar, iIntValue, iIntValue2, iIntValue3, str, str2);
        } else if (zzfldVar == zzfld.f19681b) {
            tn tnVar3 = ao.f8836e7;
            n7.y yVar2 = n7.y.f31093e;
            int iIntValue4 = ((Integer) yVar2.f31096c.b(tnVar3)).intValue();
            tn tnVar4 = ao.f8933k7;
            yn ynVar2 = yVar2.f31096c;
            int iIntValue5 = ((Integer) ynVar2.b(tnVar4)).intValue();
            int iIntValue6 = ((Integer) ynVar2.b(ao.f8967m7)).intValue();
            String str3 = (String) ynVar2.b(ao.f9001o7);
            String str4 = (String) ynVar2.b(ao.f8869g7);
            ac1Var = new ac1(context, zzfldVar, iIntValue4, iIntValue5, iIntValue6, str3, str4);
        } else if (zzfldVar == zzfld.f19682c) {
            tn tnVar5 = ao.f9052r7;
            n7.y yVar3 = n7.y.f31093e;
            int iIntValue7 = ((Integer) yVar3.f31096c.b(tnVar5)).intValue();
            tn tnVar6 = ao.f9084t7;
            yn ynVar3 = yVar3.f31096c;
            int iIntValue8 = ((Integer) ynVar3.b(tnVar6)).intValue();
            int iIntValue9 = ((Integer) ynVar3.b(ao.f9101u7)).intValue();
            String str5 = (String) ynVar3.b(ao.f9018p7);
            String str6 = (String) ynVar3.b(ao.f9035q7);
            ac1Var = new ac1(context, zzfldVar, iIntValue7, iIntValue8, iIntValue9, str5, str6);
        } else {
            ac1Var = null;
        }
        yb1 yb1Var = new yb1(ac1Var);
        fc1 fc1Var2 = new fc1(yb1Var, new kc1(yb1Var, vb1Var, dh0Var));
        map.put(zzfldVar, fc1Var2);
        return fc1Var2;
    }
}
