package defpackage;

import android.content.Context;
import android.content.pm.ApplicationInfo;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.os.Build;
import android.os.Trace;
import android.view.MenuItem;
import ar.tvplayer.tv.R;
import com.google.firebase.FirebaseCommonRegistrar;
import com.google.firebase.remoteconfig.FirebaseRemoteConfigFetchThrottledException;
import com.google.firebase.remoteconfig.FirebaseRemoteConfigServerException;
import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.ListIterator;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.Executor;
import java.util.concurrent.atomic.AtomicBoolean;

/* JADX INFO: renamed from: ˁᵞʦˏ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public final /* synthetic */ class C0732 implements InterfaceC5161, InterfaceC5533, InterfaceC5156, InterfaceC1382, InterfaceC1272, InterfaceC2087, InterfaceC0251, InterfaceC4979, InterfaceC3498, InterfaceC4742, InterfaceC4590, InterfaceC1633 {

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

    /* JADX INFO: renamed from: ᵔᵖᵹᵫ, reason: contains not printable characters */
    public final /* synthetic */ Object f3304;

    /* JADX INFO: renamed from: ᵜᵪʾ, reason: contains not printable characters */
    public final /* synthetic */ Object f3305;

    public /* synthetic */ C0732(Object obj, int i, Object obj2) {
        this.f3303 = i;
        this.f3305 = obj;
        this.f3304 = obj2;
    }

    /* JADX INFO: renamed from: ᵻʽᵯ, reason: contains not printable characters */
    private final Object m2606(C1300 c1300) {
        C4107 c4107 = (C4107) this.f3305;
        Date date = (Date) this.f3304;
        if (c1300.m3829()) {
            C4331 c4331 = c4107.f15732;
            synchronized (c4331.f16490) {
                c4331.f16493.edit().putInt("last_fetch_status", -1).putLong("last_fetch_time_in_millis", date.getTime()).apply();
            }
            return c1300;
        }
        Exception excM3830 = c1300.m3830();
        if (excM3830 == null) {
            return c1300;
        }
        boolean z = excM3830 instanceof FirebaseRemoteConfigFetchThrottledException;
        C4331 c43312 = c4107.f15732;
        if (z) {
            c43312.m9317();
            return c1300;
        }
        c43312.m9311();
        return c1300;
    }

    @Override // defpackage.InterfaceC3498
    public void accept(Object obj) {
        C1404 c1404 = (C1404) this.f3305;
        ((InterfaceC0559) obj).mo2147(c1404.f5808, (C4100) c1404.f5807, (C0990) this.f3304);
    }

    @Override // defpackage.InterfaceC4590
    public Object apply(Object obj) {
        C0520 c0520 = (C0520) this.f3305;
        C3147 c3147 = (C3147) this.f3304;
        SQLiteDatabase sQLiteDatabase = (SQLiteDatabase) obj;
        C4104 c4104 = c0520.f2694;
        ArrayList arrayListM2014 = c0520.m2014(sQLiteDatabase, c3147, c4104.f15719);
        for (EnumC3785 enumC3785 : EnumC3785.values()) {
            if (enumC3785 != c3147.f11993) {
                int size = c4104.f15719 - arrayListM2014.size();
                if (size <= 0) {
                    break;
                }
                arrayListM2014.addAll(c0520.m2014(sQLiteDatabase, c3147.m7253(enumC3785), size));
            }
        }
        HashMap map = new HashMap();
        StringBuilder sb = new StringBuilder("event_id IN (");
        for (int i = 0; i < arrayListM2014.size(); i++) {
            sb.append(((C0279) arrayListM2014.get(i)).f1901);
            if (i < arrayListM2014.size() - 1) {
                sb.append(',');
            }
        }
        sb.append(')');
        Cursor cursorQuery = sQLiteDatabase.query("event_metadata", new String[]{"event_id", "name", "value"}, sb.toString(), null, null, null, null);
        while (cursorQuery.moveToNext()) {
            try {
                long j = cursorQuery.getLong(0);
                Set hashSet = (Set) map.get(Long.valueOf(j));
                if (hashSet == null) {
                    hashSet = new HashSet();
                    map.put(Long.valueOf(j), hashSet);
                }
                hashSet.add(new C1167(cursorQuery.getString(1), cursorQuery.getString(2)));
            } catch (Throwable th) {
                cursorQuery.close();
                throw th;
            }
        }
        cursorQuery.close();
        ListIterator listIterator = arrayListM2014.listIterator();
        while (listIterator.hasNext()) {
            C0279 c0279 = (C0279) listIterator.next();
            long j2 = c0279.f1901;
            if (map.containsKey(Long.valueOf(j2))) {
                C4735 c4735M9674 = c0279.f1900.m9674();
                for (C1167 c1167 : (Set) map.get(Long.valueOf(j2))) {
                    c4735M9674.m9898(c1167.f4974, c1167.f4973);
                }
                listIterator.set(new C0279(j2, c0279.f1899, c4735M9674.m9896()));
            }
        }
        return arrayListM2014;
    }

    @Override // defpackage.InterfaceC2087
    public boolean onMenuItemClick(MenuItem menuItem) {
        switch (this.f3303) {
            case C5224.DOUBLE_FIELD_NUMBER /* 7 */:
                ᵥᵶ r0 = (ᵥᵶ) this.f3305;
                ᵚʔ r11 = (ᵚʔ) this.f3304;
                if (!ᵕᵛ.ᵲᵶᵳˈ) {
                    ˌᵨʽʙ.ᵬᵦˋ(r0);
                    return false;
                }
                if (menuItem.getItemId() != 1) {
                    return false;
                }
                ʾˁᵳ r112 = r11.ˈⁱᵡ;
                if (r112 != null) {
                    AbstractComponentCallbacksC3393 abstractComponentCallbacksC3393 = r0.f13069;
                    ᵺˑʔˇ r1 = abstractComponentCallbacksC3393 instanceof ᵺˑʔˇ ? (ᵺˑʔˇ) abstractComponentCallbacksC3393 : null;
                    if (r1 != null) {
                        r1.ˎˉ(r112, true);
                    }
                }
                return true;
            case 14:
                ᵪˈˀ r02 = (ᵪˈˀ) this.f3305;
                ـﹶ r113 = (ـﹶ) this.f3304;
                InterfaceC1073[] interfaceC1073Arr = ᵪˈˀ.ˊᵨˌ;
                if (!ᵕᵛ.ᵲᵶᵳˈ) {
                    ˌᵨʽʙ.ᵬᵦˋ(r02);
                    return false;
                }
                if (menuItem.getItemId() != 1) {
                    return false;
                }
                ᵲᵧˇ.ᵱʡˏ(ᵕᵛ.ˈⁱᵡ(r02), (InterfaceC3822) null, 0, new ˌˇᵔᵲ(r113, r02, (InterfaceC2643) null, 12), 3);
                return true;
            case 16:
                ᵤᵬᵶ r03 = (ᵤᵬᵶ) this.f3305;
                ˊᵶᵺˁ r114 = (ˊᵶᵺˁ) this.f3304;
                InterfaceC1073[] interfaceC1073Arr2 = ᵤᵬᵶ.ᵳˉᵴˆ;
                if (!ᵕᵛ.ᵲᵶᵳˈ) {
                    ˌᵨʽʙ.ᵬᵦˋ(r03);
                    return false;
                }
                if (menuItem.getItemId() != 1) {
                    return false;
                }
                ˁᵎ r12 = r03.ᵦᵎ();
                long j = r114.ᵲᵶᵳˈ;
                r12.getClass();
                ᵲᵧˇ.ᵱʡˏ(AbstractC5152.m10657(r12), (InterfaceC3822) null, 0, new ᵺʽᵽ(j, (InterfaceC2643) null, 22), 3);
                r03.ᵕʢ = "";
                r03.ᵣːʓˆ = true;
                return true;
            default:
                ᵤᵬᵶ r04 = (ᵤᵬᵶ) this.f3305;
                ᵙᵱ r115 = (ᵙᵱ) this.f3304;
                if (r04.mo2403() == null) {
                    return false;
                }
                if (!ᵕᵛ.ᵲᵶᵳˈ) {
                    ˌᵨʽʙ.ᵬᵦˋ(r04);
                    return false;
                }
                int itemId = menuItem.getItemId();
                if (itemId == 1) {
                    ˁᵎ r122 = r04.ᵦᵎ();
                    long j2 = r115.ᵲᵶᵳˈ;
                    boolean z = !r115.ᵶˇᵱ;
                    r122.getClass();
                    ᵲᵧˇ.ᵱʡˏ(AbstractC5152.m10657(r122), (InterfaceC3822) null, 0, new ᵰᵰᵯᵾ(j2, z, (InterfaceC2643) null, 23), 3);
                    if (r115.ᵶˇᵱ) {
                        ˁᵘʤᵢ.ˆˀᵯ(r04.mo2403(), r04.m7763(R.string._3ok_res_0x7f130447));
                    } else {
                        ˁᵘʤᵢ.ˆˀᵯ(r04.mo2403(), r04.m7763(R.string._3t7_res_0x7f130413));
                    }
                } else {
                    if (itemId != 2) {
                        return false;
                    }
                    ᵤᵬᵶ.ˉˆᵸ(r04, r115, (ᵜᵡ) null, 2);
                }
                return true;
        }
    }

    @Override // defpackage.InterfaceC1272
    /* JADX INFO: renamed from: ʽˈˋ */
    public void mo1072(Object obj) {
        C5515 c5515 = (C5515) this.f3305;
        C0990 c0990 = (C0990) this.f3304;
        C3966 c3966 = (C3966) ((InterfaceC0161) obj);
        c3966.getClass();
        C4100 c4100 = c5515.f20835;
        if (c4100 == null) {
            return;
        }
        C5286 c5286 = (C5286) c0990.f4346;
        c5286.getClass();
        int i = c0990.f4342;
        C0179 c0179 = c3966.f15182;
        AbstractC4975 abstractC4975 = c5515.f20828;
        c4100.getClass();
        C1404 c1404 = new C1404(i, 11, c5286, c0179.m1329(abstractC4975, c4100));
        int i2 = c0990.f4341;
        if (i2 != 0) {
            if (i2 == 1) {
                c3966.f15192 = c1404;
                return;
            } else if (i2 != 2) {
                if (i2 != 3) {
                    return;
                }
                c3966.f15176 = c1404;
                return;
            }
        }
        c3966.f15186 = c1404;
    }

    /* JADX WARN: Multi-variable type inference failed */
    /* JADX WARN: Removed duplicated region for block: B:115:0x006d A[EXC_TOP_SPLITTER, PHI: r11
      0x006d: PHI (r11v7 java.io.InputStream) = (r11v6 java.io.InputStream), (r11v8 java.io.InputStream) binds: [B:30:0x006b, B:20:0x005d] A[DONT_GENERATE, DONT_INLINE], SYNTHETIC] */
    /* JADX WARN: Removed duplicated region for block: B:69:0x00eb A[Catch: all -> 0x0071, TRY_LEAVE, TryCatch #10 {all -> 0x0071, blocks: (B:11:0x003c, B:14:0x0041, B:15:0x0042, B:31:0x006d, B:27:0x0066, B:28:0x0069, B:37:0x0076, B:67:0x00e7, B:69:0x00eb), top: B:119:0x0018 }] */
    /* JADX WARN: Removed duplicated region for block: B:76:0x0106  */
    /* JADX WARN: Removed duplicated region for block: B:78:0x0109  */
    /* JADX WARN: Removed duplicated region for block: B:85:0x012f  */
    /* JADX WARN: Type inference failed for: r12v10, types: [java.io.InputStream] */
    /* JADX WARN: Type inference failed for: r12v24, types: [java.io.InputStream] */
    /* JADX WARN: Type inference failed for: r12v29, types: [java.lang.Object[]] */
    /* JADX WARN: Type inference failed for: r12v42, types: [java.io.InputStream] */
    /* JADX WARN: Type inference failed for: r12v46, types: [java.lang.Object[]] */
    /* JADX WARN: Type inference failed for: r12v5, types: [ˊʨ] */
    /* JADX WARN: Type inference failed for: r12v54 */
    /* JADX WARN: Type inference failed for: r12v7 */
    /* JADX WARN: Type inference failed for: r12v8 */
    /* JADX WARN: Type inference failed for: r12v9 */
    /* JADX WARN: Type inference failed for: r13v2, types: [ᵰᵛᵝˏ] */
    /* JADX WARN: Type inference failed for: r9v1 */
    /* JADX WARN: Type inference failed for: r9v3, types: [java.lang.Integer] */
    /* JADX WARN: Type inference failed for: r9v6 */
    /* JADX WARN: Type inference failed for: r9v7, types: [java.lang.Integer] */
    @Override // defpackage.InterfaceC5156
    /* JADX INFO: renamed from: ˊᵫᵗ, reason: contains not printable characters */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public Object mo2607(C1300 c1300) throws Throwable {
        InputStream errorStream;
        Integer num;
        Throwable th;
        ?? ValueOf;
        boolean z;
        int responseCode;
        InputStream inputStream;
        boolean z2;
        switch (this.f3303) {
            case 2:
                return ((C4107) this.f3305).m8962(c1300, 0L, (HashMap) this.f3304);
            case 3:
                m2606(c1300);
                return c1300;
            default:
                ?? r13 = (C4379) this.f3305;
                ?? inputStream2 = (C1300) this.f3304;
                ᵠʽᵲ r1 = r13.f16625;
                try {
                    try {
                    } catch (Throwable th2) {
                        th = th2;
                    }
                } catch (IOException unused) {
                    inputStream2 = 0;
                    errorStream = null;
                } catch (Throwable th3) {
                    errorStream = null;
                    num = null;
                    th = th3;
                    inputStream2 = 0;
                }
                if (!inputStream2.m3829()) {
                    throw new IOException(inputStream2.m3830());
                }
                HttpURLConnection httpURLConnection = (HttpURLConnection) inputStream2.m3826();
                r13.f16634 = httpURLConnection;
                inputStream2 = httpURLConnection.getInputStream();
                try {
                    errorStream = r13.f16634.getErrorStream();
                    try {
                        responseCode = r13.f16634.getResponseCode();
                        ValueOf = Integer.valueOf(responseCode);
                        if (responseCode == 200) {
                            try {
                                synchronized (r13) {
                                    r13.f16621 = 8;
                                }
                                r13.f16623.m9315(0, C4331.f16488);
                                C3420 c3420M9391 = r13.m9391(r13.f16634);
                                HttpURLConnection httpURLConnection2 = (HttpURLConnection) c3420M9391.f13165;
                                if (httpURLConnection2 != null) {
                                    try {
                                        inputStream = httpURLConnection2.getInputStream();
                                        try {
                                            c3420M9391.m7839(inputStream);
                                            break;
                                        } catch (IOException unused2) {
                                            if (inputStream != null) {
                                            }
                                        } catch (Throwable th4) {
                                            th = th4;
                                            if (inputStream != null) {
                                                try {
                                                    inputStream.close();
                                                    break;
                                                } catch (IOException unused3) {
                                                }
                                            }
                                            throw th;
                                        }
                                    } catch (IOException unused4) {
                                        inputStream = null;
                                    } catch (Throwable th5) {
                                        th = th5;
                                        inputStream = null;
                                    }
                                    if (inputStream != null) {
                                        try {
                                            inputStream.close();
                                            break;
                                        } catch (IOException unused5) {
                                        }
                                    }
                                }
                            } catch (IOException unused6) {
                                if (r13.f16624) {
                                    r13.m9388();
                                }
                                r13.m9387(inputStream2, errorStream);
                                r13.m9394(false);
                                z = r13.f16624 && (ValueOf == 0 || C4379.m9385(ValueOf.intValue()));
                                if (z) {
                                    r1.getClass();
                                    r13.m9389(new Date(System.currentTimeMillis()));
                                }
                                if (!z && ValueOf.intValue() != 200) {
                                    String strM9386 = String.format("Unable to connect to the server. Try again in a few minutes. HTTP status code: %d", new Object[]{ValueOf});
                                    if (ValueOf.intValue() == 403) {
                                        strM9386 = C4379.m9386(r13.f16634.getErrorStream());
                                    }
                                    new FirebaseRemoteConfigServerException(ValueOf.intValue(), 0, strM9386);
                                }
                                r13.m9398();
                                r13.f16634 = null;
                                return ᵥˈᵛ.ᵸˆˁ((Object) null);
                            }
                        }
                        r13.m9387(inputStream2, errorStream);
                        r13.m9394(false);
                        z2 = !r13.f16624 && C4379.m9385(responseCode);
                        if (z2) {
                            r1.getClass();
                            r13.m9389(new Date(System.currentTimeMillis()));
                        }
                    } catch (IOException unused7) {
                        ValueOf = 0;
                    } catch (Throwable th6) {
                        num = null;
                        th = th6;
                        r13.m9387(inputStream2, errorStream);
                        r13.m9394(false);
                        boolean z3 = !r13.f16624 && (num == null || C4379.m9385(num.intValue()));
                        if (z3) {
                            r1.getClass();
                            r13.m9389(new Date(System.currentTimeMillis()));
                        }
                        if (z3 || num.intValue() == 200) {
                            r13.m9398();
                        } else {
                            String strM93862 = String.format("Unable to connect to the server. Try again in a few minutes. HTTP status code: %d", num);
                            if (num.intValue() == 403) {
                                strM93862 = C4379.m9386(r13.f16634.getErrorStream());
                            }
                            new FirebaseRemoteConfigServerException(num.intValue(), 0, strM93862);
                            r13.m9396();
                        }
                        throw th;
                    }
                } catch (IOException unused8) {
                    errorStream = null;
                    inputStream2 = inputStream2;
                    ValueOf = errorStream;
                    if (r13.f16624) {
                    }
                    r13.m9387(inputStream2, errorStream);
                    r13.m9394(false);
                    if (r13.f16624) {
                        if (z) {
                        }
                        if (!z) {
                            String strM93863 = String.format("Unable to connect to the server. Try again in a few minutes. HTTP status code: %d", new Object[]{ValueOf});
                            if (ValueOf.intValue() == 403) {
                            }
                            new FirebaseRemoteConfigServerException(ValueOf.intValue(), 0, strM93863);
                            r13.m9396();
                        }
                        r13.m9398();
                    }
                    r13.f16634 = null;
                    return ᵥˈᵛ.ᵸˆˁ((Object) null);
                } catch (Throwable th7) {
                    num = null;
                    th = th7;
                    errorStream = null;
                }
                if (!z2 && responseCode != 200) {
                    String strM93864 = String.format("Unable to connect to the server. Try again in a few minutes. HTTP status code: %d", new Object[]{ValueOf});
                    if (responseCode == 403) {
                        strM93864 = C4379.m9386(r13.f16634.getErrorStream());
                    }
                    new FirebaseRemoteConfigServerException(responseCode, 0, strM93864);
                    r13.m9396();
                    r13.f16634 = null;
                    return ᵥˈᵛ.ᵸˆˁ((Object) null);
                }
                r13.m9398();
                r13.f16634 = null;
                return ᵥˈᵛ.ᵸˆˁ((Object) null);
        }
    }

    @Override // defpackage.InterfaceC5533
    /* JADX INFO: renamed from: ˏːˆ, reason: contains not printable characters */
    public C1300 mo2608(Object obj) {
        C0708 c0708 = (C0708) this.f3305;
        C5235 c5235 = (C5235) this.f3304;
        synchronized (c0708) {
            c0708.f3240 = ᵥˈᵛ.ᵸˆˁ(c5235);
        }
        return ᵥˈᵛ.ᵸˆˁ(c5235);
    }

    @Override // defpackage.InterfaceC4979
    /* JADX INFO: renamed from: ːˏᵟᵯ, reason: contains not printable characters */
    public int mo2609(Object obj) {
        Context context = (Context) this.f3305;
        C5286 c5286 = (C5286) this.f3304;
        C1354 c1354 = (C1354) obj;
        String str = c1354.f5594;
        return ((str.equals(c5286.f19987) || str.equals(AbstractC2124.m5630(c5286))) && c1354.m3878(context, c5286, false) && c1354.m3881(c5286)) ? 1 : 0;
    }

    @Override // defpackage.InterfaceC1382
    /* JADX INFO: renamed from: ᵨᵣ, reason: contains not printable characters */
    public void mo2610(Object obj, C0719 c0719) {
        C3966 c3966 = (C3966) ((InterfaceC0161) obj);
        c3966.m8714((InterfaceC4650) this.f3304, new ˊˊᵞᵽ(c0719, ((C5084) this.f3305).f19158));
    }

    @Override // defpackage.InterfaceC5161
    /* JADX INFO: renamed from: ᵮᵣᵗˈ, reason: contains not printable characters */
    public Object mo2611(ᵕˁـ r4) {
        int i = this.f3303;
        Object obj = this.f3304;
        String str = (String) this.f3305;
        switch (i) {
            case 0:
                C3954 c3954 = (C3954) obj;
                try {
                    Trace.beginSection(str);
                    return c3954.f15107.mo2611(r4);
                } finally {
                    Trace.endSection();
                }
            default:
                Context context = (Context) r4.ᵲᵶᵳˈ(Context.class);
                int i2 = ((ˆˌᵣ) obj).ˌᴵ;
                String strValueOf = "";
                switch (i2) {
                    case 15:
                        ApplicationInfo applicationInfo = context.getApplicationInfo();
                        if (applicationInfo != null) {
                            strValueOf = String.valueOf(applicationInfo.targetSdkVersion);
                        }
                        break;
                    case 16:
                        strValueOf = FirebaseCommonRegistrar.m993(context);
                        break;
                    case 17:
                        if (context.getPackageManager().hasSystemFeature("android.hardware.type.television")) {
                            strValueOf = "tv";
                        } else if (context.getPackageManager().hasSystemFeature("android.hardware.type.watch")) {
                            strValueOf = "watch";
                        } else if (context.getPackageManager().hasSystemFeature("android.hardware.type.automotive")) {
                            strValueOf = "auto";
                        } else if (Build.VERSION.SDK_INT >= 26 && context.getPackageManager().hasSystemFeature("android.hardware.type.embedded")) {
                            strValueOf = "embedded";
                        }
                        break;
                    default:
                        String installerPackageName = context.getPackageManager().getInstallerPackageName(context.getPackageName());
                        if (installerPackageName != null) {
                            strValueOf = FirebaseCommonRegistrar.m992(installerPackageName);
                        }
                        break;
                }
                return new C2398(str, strValueOf);
        }
    }

    @Override // defpackage.InterfaceC1633
    /* JADX INFO: renamed from: ᵲᵶᵳˈ */
    public Object mo2135() {
        int i = this.f3303;
        Object obj = this.f3304;
        C3420 c3420 = (C3420) this.f3305;
        switch (i) {
            case 18:
                Iterable iterable = (Iterable) obj;
                C0520 c0520 = (C0520) c3420.f13167;
                c0520.getClass();
                if (iterable.iterator().hasNext()) {
                    c0520.m2015().compileStatement("DELETE FROM events WHERE _id in ".concat(C0520.m2008(iterable))).execute();
                }
                break;
            default:
                Iterator it = ((HashMap) obj).entrySet().iterator();
                while (it.hasNext()) {
                    ((C0520) c3420.f13172).m2011(((Integer) r2.getValue()).intValue(), EnumC1197.f5092, (String) ((Map.Entry) it.next()).getKey());
                }
                break;
        }
        return null;
    }

    @Override // defpackage.InterfaceC4742
    /* JADX INFO: renamed from: ᵵᵽ, reason: contains not printable characters */
    public void mo2612(InterfaceC5081 interfaceC5081) {
        InterfaceC4742 interfaceC4742 = (InterfaceC4742) this.f3305;
        InterfaceC4742 interfaceC47422 = (InterfaceC4742) this.f3304;
        interfaceC4742.mo2612(interfaceC5081);
        interfaceC47422.mo2612(interfaceC5081);
    }

    @Override // defpackage.InterfaceC0251
    /* JADX INFO: renamed from: ᵷᵺʾᵖ */
    public Object mo1464(C3394 c3394) {
        int i = this.f3303;
        EnumC5134 enumC5134 = EnumC5134.f19304;
        Object obj = this.f3304;
        final int i2 = 0;
        Executor executor = (Executor) this.f3305;
        switch (i) {
            case 9:
                C5532 c5532 = (C5532) obj;
                final AtomicBoolean atomicBoolean = new AtomicBoolean(false);
                Runnable runnable = new Runnable() { // from class: ˆᵿ
                    @Override // java.lang.Runnable
                    public final void run() {
                        int i3 = i2;
                        AtomicBoolean atomicBoolean2 = atomicBoolean;
                        switch (i3) {
                            case 0:
                                atomicBoolean2.set(true);
                                break;
                            default:
                                atomicBoolean2.set(true);
                                break;
                        }
                    }
                };
                C4764 c4764 = c3394.f13083;
                if (c4764 != null) {
                    c4764.mo834(runnable, enumC5134);
                }
                executor.execute(new RunnableC3304(atomicBoolean, c3394, c5532, 8));
                return "setForegroundAsync";
            default:
                InterfaceC1841 interfaceC1841 = (InterfaceC1841) obj;
                final AtomicBoolean atomicBoolean2 = new AtomicBoolean(false);
                final int i3 = 1;
                Runnable runnable2 = new Runnable() { // from class: ˆᵿ
                    @Override // java.lang.Runnable
                    public final void run() {
                        int i32 = i3;
                        AtomicBoolean atomicBoolean22 = atomicBoolean2;
                        switch (i32) {
                            case 0:
                                atomicBoolean22.set(true);
                                break;
                            default:
                                atomicBoolean22.set(true);
                                break;
                        }
                    }
                };
                C4764 c47642 = c3394.f13083;
                if (c47642 != null) {
                    c47642.mo834(runnable2, enumC5134);
                }
                executor.execute(new RunnableC3304(atomicBoolean2, c3394, interfaceC1841, 17));
                return C5063.f19112;
        }
    }

    /* JADX INFO: renamed from: ᵻˈᵦʼ, reason: contains not printable characters */
    public Object m2613(C4353 c4353) {
        Class cls;
        C0135 c0135 = (C0135) this.f3305;
        C3953 c3953 = (C3953) this.f3304;
        ᵺᵘ r2 = c4353.m9376();
        switch (c3953.f15100) {
            case 0:
                cls = InterfaceC5579.class;
                break;
            case 1:
                cls = C0881.class;
                break;
            case 2:
                cls = InterfaceC3608.class;
                break;
            default:
                cls = InterfaceC4204.class;
                break;
        }
        return c0135.m1249(r2, cls);
    }
}
