package defpackage;

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

/* JADX INFO: renamed from: ᵱˑᵲ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public final /* synthetic */ class C4435 implements InterfaceC1793 {

    /* JADX INFO: renamed from: ˌᴵ, reason: contains not printable characters */
    public final /* synthetic */ int f16872;

    /* JADX INFO: renamed from: ᵜᵪʾ, reason: contains not printable characters */
    public static final /* synthetic */ C4435 f16869 = new C4435(0);

    /* JADX INFO: renamed from: ᵔᵖᵹᵫ, reason: contains not printable characters */
    public static final /* synthetic */ C4435 f16868 = new C4435(1);

    /* JADX INFO: renamed from: ᵨᵼⁱ, reason: contains not printable characters */
    public static final /* synthetic */ C4435 f16870 = new C4435(2);

    /* JADX INFO: renamed from: ᵯᵷʽ, reason: contains not printable characters */
    public static final /* synthetic */ C4435 f16871 = new C4435(3);

    public /* synthetic */ C4435(int i) {
        this.f16872 = i;
    }

    @Override // defpackage.InterfaceC1793
    public final Object apply(Object obj) {
        switch (this.f16872) {
            case 0:
                Context context = (Context) obj;
                String strM9377 = AbstractC4420.f16818;
                if (strM9377 == null) {
                    synchronized (AbstractC4420.class) {
                        try {
                            strM9377 = AbstractC4420.f16818;
                            if (strM9377 == null) {
                                strM9377 = AbstractC4355.m9377(context, "com.google.android.gms.measurement");
                                AbstractC4420.f16818 = strM9377;
                            }
                        } finally {
                        }
                        break;
                    }
                }
                return strM9377;
            case 1:
                C2198 c2198 = C3254.f12377;
                return "";
            case 2:
                C1451 c1451 = (C1451) obj;
                C3166 c3166M7178 = C3095.m7178();
                if (c1451 == null) {
                    return (C3095) c3166M7178.m9869();
                }
                for (C2289 c2289 : c1451.m4174()) {
                    C0403 c0403M10309 = C4992.m10309();
                    String strM5911 = c2289.m5911();
                    c0403M10309.m9868();
                    ((C4992) c0403M10309.f17955).m10321(strM5911);
                    int iM5907 = c2289.m5907();
                    int i = iM5907 - 1;
                    if (iM5907 == 0) {
                        throw null;
                    }
                    if (i == 0) {
                        long jM5908 = c2289.m5908();
                        c0403M10309.m9868();
                        ((C4992) c0403M10309.f17955).m10311(jM5908);
                    } else if (i == 1) {
                        boolean zM5909 = c2289.m5909();
                        c0403M10309.m9868();
                        ((C4992) c0403M10309.f17955).m10314(zM5909);
                    } else if (i == 2) {
                        double dM5914 = c2289.m5914();
                        c0403M10309.m9868();
                        ((C4992) c0403M10309.f17955).m10322(dM5914);
                    } else if (i == 3) {
                        String strM5913 = c2289.m5913();
                        c0403M10309.m9868();
                        ((C4992) c0403M10309.f17955).m10316(strM5913);
                    } else {
                        if (i != 4) {
                            ᵕᵩʽᵲ.ᵪᵹᵥᵻ("No known flag type");
                            return null;
                        }
                        AbstractC4667 abstractC4667M5916 = c2289.m5916();
                        c0403M10309.m9868();
                        ((C4992) c0403M10309.f17955).m10310(abstractC4667M5916);
                    }
                    C4992 c4992 = (C4992) c0403M10309.m9869();
                    c3166M7178.m9868();
                    ((C3095) c3166M7178.f17955).m7180(c4992);
                }
                String strM4175 = c1451.m4175();
                c3166M7178.m9868();
                ((C3095) c3166M7178.f17955).m7190(strM4175);
                String strM4172 = c1451.m4172();
                c3166M7178.m9868();
                ((C3095) c3166M7178.f17955).m7181(strM4172);
                long jM4177 = c1451.m4177();
                c3166M7178.m9868();
                ((C3095) c3166M7178.f17955).m7186(jM4177);
                if (c1451.m4169()) {
                    AbstractC4667 abstractC4667M4170 = c1451.m4170();
                    c3166M7178.m9868();
                    ((C3095) c3166M7178.f17955).m7184(abstractC4667M4170);
                }
                return (C3095) c3166M7178.m9869();
            default:
                zzmk zzmkVar = (zzmk) obj;
                if (zzmkVar.f1026 != 29514) {
                    throw zzmkVar;
                }
                C4133 c4133M2940 = C0822.m2940();
                C0284 c0284M11052 = C5432.m11052();
                long jCurrentTimeMillis = System.currentTimeMillis();
                c0284M11052.m9868();
                ((C5432) c0284M11052.f17955).m11054(jCurrentTimeMillis);
                c4133M2940.m9868();
                ((C0822) c4133M2940.f17955).m2943((C5432) c0284M11052.m9869());
                return (C0822) c4133M2940.m9869();
        }
    }
}
