package defpackage;

import android.content.Context;
import com.google.android.gms.internal.measurement.zzmk;

/* renamed from: ٴᴵ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final /* synthetic */ class C2159 implements InterfaceC3923 {

    /* renamed from: ᵧᵾˀˈ, reason: contains not printable characters */
    public final /* synthetic */ int f8542;

    /* renamed from: ᵢˇᵭ, reason: contains not printable characters */
    public static final /* synthetic */ C2159 f8538 = new C2159(0);

    /* renamed from: ᵿʗᵝʽ, reason: contains not printable characters */
    public static final /* synthetic */ C2159 f8541 = new C2159(1);

    /* renamed from: ᵾᵬ, reason: contains not printable characters */
    public static final /* synthetic */ C2159 f8540 = new C2159(2);

    /* renamed from: ᵤᵙᵷ, reason: contains not printable characters */
    public static final /* synthetic */ C2159 f8539 = new C2159(3);

    public /* synthetic */ C2159(int i) {
        this.f8542 = i;
    }

    @Override // defpackage.InterfaceC3923
    public final Object apply(Object obj) {
        switch (this.f8542) {
            case 0:
                Context context = (Context) obj;
                String strM8519 = AbstractC3206.f12128;
                if (strM8519 == null) {
                    synchronized (AbstractC3206.class) {
                        try {
                            strM8519 = AbstractC3206.f12128;
                            if (strM8519 == null) {
                                strM8519 = AbstractC3871.m8519(context, "com.google.android.gms.measurement");
                                AbstractC3206.f12128 = strM8519;
                            }
                        } finally {
                        }
                    }
                }
                return strM8519;
            case 1:
                C1212 c1212 = C4280.f16055;
                return "";
            case 2:
                C0658 c0658 = (C0658) obj;
                C2096 c2096M8860 = C4016.m8860();
                if (c0658 == null) {
                    return (C4016) c2096M8860.m11118();
                }
                for (C2442 c2442 : c0658.m2607()) {
                    C2748 c2748M7641 = C3270.m7641();
                    String strM6233 = c2442.m6233();
                    c2748M7641.m11120();
                    ((C3270) c2748M7641.f20589).m7647(strM6233);
                    int iM6235 = c2442.m6235();
                    int i = iM6235 - 1;
                    if (iM6235 == 0) {
                        throw null;
                    }
                    if (i == 0) {
                        long jM6228 = c2442.m6228();
                        c2748M7641.m11120();
                        ((C3270) c2748M7641.f20589).m7642(jM6228);
                    } else if (i == 1) {
                        boolean zM6232 = c2442.m6232();
                        c2748M7641.m11120();
                        ((C3270) c2748M7641.f20589).m7646(zM6232);
                    } else if (i == 2) {
                        double dM6230 = c2442.m6230();
                        c2748M7641.m11120();
                        ((C3270) c2748M7641.f20589).m7644(dM6230);
                    } else if (i == 3) {
                        String strM6237 = c2442.m6237();
                        c2748M7641.m11120();
                        ((C3270) c2748M7641.f20589).m7643(strM6237);
                    } else {
                        if (i != 4) {
                            ᵹˉᵞ.ᵳٴᵶ("No known flag type");
                            return null;
                        }
                        AbstractC2646 abstractC2646M6236 = c2442.m6236();
                        c2748M7641.m11120();
                        ((C3270) c2748M7641.f20589).m7652(abstractC2646M6236);
                    }
                    C3270 c3270 = (C3270) c2748M7641.m11118();
                    c2096M8860.m11120();
                    ((C4016) c2096M8860.f20589).m8869(c3270);
                }
                String strM2601 = c0658.m2601();
                c2096M8860.m11120();
                ((C4016) c2096M8860.f20589).m8863(strM2601);
                String strM2604 = c0658.m2604();
                c2096M8860.m11120();
                ((C4016) c2096M8860.f20589).m8861(strM2604);
                long jM2606 = c0658.m2606();
                c2096M8860.m11120();
                ((C4016) c2096M8860.f20589).m8862(jM2606);
                if (c0658.m2598()) {
                    AbstractC2646 abstractC2646M2603 = c0658.m2603();
                    c2096M8860.m11120();
                    ((C4016) c2096M8860.f20589).m8865(abstractC2646M2603);
                }
                return (C4016) c2096M8860.m11118();
            default:
                zzmk zzmkVar = (zzmk) obj;
                if (zzmkVar.f1026 != 29514) {
                    throw zzmkVar;
                }
                C2501 c2501M9906 = C4719.m9906();
                C1090 c1090M3217 = C0952.m3217();
                long jCurrentTimeMillis = System.currentTimeMillis();
                c1090M3217.m11120();
                ((C0952) c1090M3217.f20589).m3223(jCurrentTimeMillis);
                c2501M9906.m11120();
                ((C4719) c2501M9906.f20589).m9910((C0952) c1090M3217.m11118());
                return (C4719) c2501M9906.m11118();
        }
    }
}
