package d3;

import android.text.TextUtils;
import e0.C0853a;
import n2.C1267a;
import n2.C1270d;

/* JADX INFO: renamed from: d3.l0, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C0800l0 extends N1.B0 {

    /* JADX INFO: renamed from: h, reason: collision with root package name */
    public final /* synthetic */ int f12039h = 1;
    public final /* synthetic */ Object i;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C0800l0(C0803m0 c0803m0) {
        super(20);
        this.i = c0803m0;
    }

    @Override // N1.B0
    public Object c(Object obj) {
        switch (this.f12039h) {
            case n4.u0.f15495q /* 0 */:
                String str = (String) obj;
                P2.w.c(str);
                C0803m0 c0803m0 = (C0803m0) this.i;
                boolean zR = ((C0817r0) c0803m0.f5146q).f12148w.R(null, I.f11576o1);
                C0800l0 c0800l0 = c0803m0.f12058z;
                if (zR) {
                    c0803m0.F();
                    P2.w.c(str);
                    C0805n c0805n = c0803m0.f11473r.f11683s;
                    Q1.L(c0805n);
                    com.google.android.material.datepicker.c cVarD0 = c0805n.D0(str);
                    if (cVarD0 == null) {
                        return null;
                    }
                    Z z8 = ((C0817r0) c0803m0.f5146q).f12150y;
                    C0817r0.k(z8);
                    z8.D.c(str, "Populate EES config from database on cache miss. appId");
                    c0803m0.N(str, c0803m0.K(str, (byte[]) cVarD0.f10219r));
                    return (com.google.android.gms.internal.measurement.D) c0800l0.q().get(str);
                }
                c0803m0.F();
                P2.w.c(str);
                if (TextUtils.isEmpty(str)) {
                    return null;
                }
                q.e eVar = c0803m0.f12056x;
                com.google.android.gms.internal.measurement.G0 g02 = (com.google.android.gms.internal.measurement.G0) eVar.get(str);
                if (g02 == null || g02.n() == 0) {
                    return null;
                }
                if (!eVar.containsKey(str) || eVar.get(str) == null) {
                    c0803m0.M(str);
                } else {
                    c0803m0.N(str, (com.google.android.gms.internal.measurement.G0) eVar.get(str));
                }
                return (com.google.android.gms.internal.measurement.D) c0800l0.q().get(str);
            default:
                return super.c(obj);
        }
    }

    @Override // N1.B0
    public void d(Object obj, Object obj2, Object obj3) {
        switch (this.f12039h) {
            case 1:
                C1270d c1270d = (C1270d) obj2;
                ((B7.a) ((C0853a) this.i).f12397r).s((C1267a) obj, c1270d.f15130a, c1270d.f15131b, c1270d.f15132c);
                break;
            default:
                super.d(obj, obj2, obj3);
                break;
        }
    }

    @Override // N1.B0
    public int p(Object obj, Object obj2) {
        switch (this.f12039h) {
            case 1:
                return ((C1270d) obj2).f15132c;
            default:
                return super.p(obj, obj2);
        }
    }

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C0800l0(int i, C0853a c0853a) {
        super(i);
        this.i = c0853a;
    }
}
