package o;

import android.content.Context;
import android.content.Intent;
import android.net.Uri;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.xu, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C2951xu implements SC {
    public final /* synthetic */ int l;
    public final /* synthetic */ Context m;
    public final /* synthetic */ InterfaceC1191fR n;

    public /* synthetic */ C2951xu(Context context, InterfaceC1191fR interfaceC1191fR, int i) {
        this.l = i;
        this.m = context;
        this.n = interfaceC1191fR;
    }

    @Override // o.SC
    public final Object f(Object obj, Object obj2) {
        switch (this.l) {
            case 0:
                C0321Mk c0321Mk = (C0321Mk) obj;
                if ((((Number) obj2).intValue() & 3) == 2 && c0321Mk.z()) {
                    c0321Mk.Q();
                } else {
                    c0321Mk.V(1365060101);
                    final Context context = this.m;
                    boolean zH = c0321Mk.h(context);
                    Object objK = c0321Mk.K();
                    if (zH || objK == C0140Fk.a) {
                        final int i = 0;
                        final InterfaceC1191fR interfaceC1191fR = this.n;
                        objK = new NC() { // from class: o.wu
                            @Override // o.NC
                            public final Object a() {
                                int i2 = i;
                                Oh0 oh0 = Oh0.a;
                                InterfaceC1191fR interfaceC1191fR2 = interfaceC1191fR;
                                Context context2 = context;
                                switch (i2) {
                                    case 0:
                                        interfaceC1191fR2.setValue(Boolean.FALSE);
                                        context2.startActivity(new Intent("android.settings.APPLICATION_DETAILS_SETTINGS", Uri.parse("package:" + context2.getPackageName())));
                                        break;
                                    case 1:
                                        As0.c(interfaceC1191fR2, false);
                                        context2.startActivity(new Intent("android.settings.APPLICATION_DETAILS_SETTINGS", Uri.fromParts("package", context2.getPackageName(), null)));
                                        break;
                                    case 2:
                                        AbstractC2793wD.g(interfaceC1191fR2, false);
                                        context2.startActivity(new Intent("android.settings.APPLICATION_DETAILS_SETTINGS", Uri.fromParts("package", context2.getPackageName(), null)));
                                        break;
                                    case 3:
                                        AbstractC2793wD.h(interfaceC1191fR2, false);
                                        context2.startActivity(new Intent("android.settings.APPLICATION_DETAILS_SETTINGS", Uri.fromParts("package", context2.getPackageName(), null)));
                                        break;
                                    case 4:
                                        YT.f(interfaceC1191fR2, false);
                                        context2.startActivity(new Intent("android.settings.APPLICATION_DETAILS_SETTINGS", Uri.parse("package:" + context2.getPackageName())));
                                        break;
                                    case 5:
                                        int i3 = Fi0.h;
                                        interfaceC1191fR2.setValue(Boolean.FALSE);
                                        context2.startActivity(new Intent("android.settings.APPLICATION_DETAILS_SETTINGS", Uri.parse("package:" + context2.getPackageName())));
                                        break;
                                    default:
                                        Gi0.c(interfaceC1191fR2, false);
                                        context2.startActivity(new Intent("android.settings.APPLICATION_DETAILS_SETTINGS", Uri.fromParts("package", context2.getPackageName(), null)));
                                        break;
                                }
                                return oh0;
                            }
                        };
                        c0321Mk.f0(objK);
                    }
                    c0321Mk.q(false);
                    Co0.e((NC) objK, null, false, null, null, null, AbstractC1124ek.e, c0321Mk, 805306368);
                }
                break;
            case 1:
                C0321Mk c0321Mk2 = (C0321Mk) obj;
                if ((((Number) obj2).intValue() & 3) == 2 && c0321Mk2.z()) {
                    c0321Mk2.Q();
                } else {
                    c0321Mk2.V(-1505183009);
                    final Context context2 = this.m;
                    boolean zH2 = c0321Mk2.h(context2);
                    Object objK2 = c0321Mk2.K();
                    if (zH2 || objK2 == C0140Fk.a) {
                        final int i2 = 1;
                        final InterfaceC1191fR interfaceC1191fR2 = this.n;
                        objK2 = new NC() { // from class: o.wu
                            @Override // o.NC
                            public final Object a() {
                                int i22 = i2;
                                Oh0 oh0 = Oh0.a;
                                InterfaceC1191fR interfaceC1191fR22 = interfaceC1191fR2;
                                Context context22 = context2;
                                switch (i22) {
                                    case 0:
                                        interfaceC1191fR22.setValue(Boolean.FALSE);
                                        context22.startActivity(new Intent("android.settings.APPLICATION_DETAILS_SETTINGS", Uri.parse("package:" + context22.getPackageName())));
                                        break;
                                    case 1:
                                        As0.c(interfaceC1191fR22, false);
                                        context22.startActivity(new Intent("android.settings.APPLICATION_DETAILS_SETTINGS", Uri.fromParts("package", context22.getPackageName(), null)));
                                        break;
                                    case 2:
                                        AbstractC2793wD.g(interfaceC1191fR22, false);
                                        context22.startActivity(new Intent("android.settings.APPLICATION_DETAILS_SETTINGS", Uri.fromParts("package", context22.getPackageName(), null)));
                                        break;
                                    case 3:
                                        AbstractC2793wD.h(interfaceC1191fR22, false);
                                        context22.startActivity(new Intent("android.settings.APPLICATION_DETAILS_SETTINGS", Uri.fromParts("package", context22.getPackageName(), null)));
                                        break;
                                    case 4:
                                        YT.f(interfaceC1191fR22, false);
                                        context22.startActivity(new Intent("android.settings.APPLICATION_DETAILS_SETTINGS", Uri.parse("package:" + context22.getPackageName())));
                                        break;
                                    case 5:
                                        int i3 = Fi0.h;
                                        interfaceC1191fR22.setValue(Boolean.FALSE);
                                        context22.startActivity(new Intent("android.settings.APPLICATION_DETAILS_SETTINGS", Uri.parse("package:" + context22.getPackageName())));
                                        break;
                                    default:
                                        Gi0.c(interfaceC1191fR22, false);
                                        context22.startActivity(new Intent("android.settings.APPLICATION_DETAILS_SETTINGS", Uri.fromParts("package", context22.getPackageName(), null)));
                                        break;
                                }
                                return oh0;
                            }
                        };
                        c0321Mk2.f0(objK2);
                    }
                    c0321Mk2.q(false);
                    Co0.e((NC) objK2, null, false, null, null, null, AbstractC1220fk.c, c0321Mk2, 805306368);
                }
                break;
            case 2:
                C0321Mk c0321Mk3 = (C0321Mk) obj;
                if ((((Number) obj2).intValue() & 3) == 2 && c0321Mk3.z()) {
                    c0321Mk3.Q();
                } else {
                    c0321Mk3.V(-395146799);
                    final Context context3 = this.m;
                    boolean zH3 = c0321Mk3.h(context3);
                    Object objK3 = c0321Mk3.K();
                    if (zH3 || objK3 == C0140Fk.a) {
                        final int i3 = 2;
                        final InterfaceC1191fR interfaceC1191fR3 = this.n;
                        objK3 = new NC() { // from class: o.wu
                            @Override // o.NC
                            public final Object a() {
                                int i22 = i3;
                                Oh0 oh0 = Oh0.a;
                                InterfaceC1191fR interfaceC1191fR22 = interfaceC1191fR3;
                                Context context22 = context3;
                                switch (i22) {
                                    case 0:
                                        interfaceC1191fR22.setValue(Boolean.FALSE);
                                        context22.startActivity(new Intent("android.settings.APPLICATION_DETAILS_SETTINGS", Uri.parse("package:" + context22.getPackageName())));
                                        break;
                                    case 1:
                                        As0.c(interfaceC1191fR22, false);
                                        context22.startActivity(new Intent("android.settings.APPLICATION_DETAILS_SETTINGS", Uri.fromParts("package", context22.getPackageName(), null)));
                                        break;
                                    case 2:
                                        AbstractC2793wD.g(interfaceC1191fR22, false);
                                        context22.startActivity(new Intent("android.settings.APPLICATION_DETAILS_SETTINGS", Uri.fromParts("package", context22.getPackageName(), null)));
                                        break;
                                    case 3:
                                        AbstractC2793wD.h(interfaceC1191fR22, false);
                                        context22.startActivity(new Intent("android.settings.APPLICATION_DETAILS_SETTINGS", Uri.fromParts("package", context22.getPackageName(), null)));
                                        break;
                                    case 4:
                                        YT.f(interfaceC1191fR22, false);
                                        context22.startActivity(new Intent("android.settings.APPLICATION_DETAILS_SETTINGS", Uri.parse("package:" + context22.getPackageName())));
                                        break;
                                    case 5:
                                        int i32 = Fi0.h;
                                        interfaceC1191fR22.setValue(Boolean.FALSE);
                                        context22.startActivity(new Intent("android.settings.APPLICATION_DETAILS_SETTINGS", Uri.parse("package:" + context22.getPackageName())));
                                        break;
                                    default:
                                        Gi0.c(interfaceC1191fR22, false);
                                        context22.startActivity(new Intent("android.settings.APPLICATION_DETAILS_SETTINGS", Uri.fromParts("package", context22.getPackageName(), null)));
                                        break;
                                }
                                return oh0;
                            }
                        };
                        c0321Mk3.f0(objK3);
                    }
                    c0321Mk3.q(false);
                    Co0.e((NC) objK3, null, false, null, null, null, AbstractC1507ik.a, c0321Mk3, 805306368);
                }
                break;
            case 3:
                C0321Mk c0321Mk4 = (C0321Mk) obj;
                if ((((Number) obj2).intValue() & 3) == 2 && c0321Mk4.z()) {
                    c0321Mk4.Q();
                } else {
                    c0321Mk4.V(-395103081);
                    final Context context4 = this.m;
                    boolean zH4 = c0321Mk4.h(context4);
                    Object objK4 = c0321Mk4.K();
                    if (zH4 || objK4 == C0140Fk.a) {
                        final int i4 = 3;
                        final InterfaceC1191fR interfaceC1191fR4 = this.n;
                        objK4 = new NC() { // from class: o.wu
                            @Override // o.NC
                            public final Object a() {
                                int i22 = i4;
                                Oh0 oh0 = Oh0.a;
                                InterfaceC1191fR interfaceC1191fR22 = interfaceC1191fR4;
                                Context context22 = context4;
                                switch (i22) {
                                    case 0:
                                        interfaceC1191fR22.setValue(Boolean.FALSE);
                                        context22.startActivity(new Intent("android.settings.APPLICATION_DETAILS_SETTINGS", Uri.parse("package:" + context22.getPackageName())));
                                        break;
                                    case 1:
                                        As0.c(interfaceC1191fR22, false);
                                        context22.startActivity(new Intent("android.settings.APPLICATION_DETAILS_SETTINGS", Uri.fromParts("package", context22.getPackageName(), null)));
                                        break;
                                    case 2:
                                        AbstractC2793wD.g(interfaceC1191fR22, false);
                                        context22.startActivity(new Intent("android.settings.APPLICATION_DETAILS_SETTINGS", Uri.fromParts("package", context22.getPackageName(), null)));
                                        break;
                                    case 3:
                                        AbstractC2793wD.h(interfaceC1191fR22, false);
                                        context22.startActivity(new Intent("android.settings.APPLICATION_DETAILS_SETTINGS", Uri.fromParts("package", context22.getPackageName(), null)));
                                        break;
                                    case 4:
                                        YT.f(interfaceC1191fR22, false);
                                        context22.startActivity(new Intent("android.settings.APPLICATION_DETAILS_SETTINGS", Uri.parse("package:" + context22.getPackageName())));
                                        break;
                                    case 5:
                                        int i32 = Fi0.h;
                                        interfaceC1191fR22.setValue(Boolean.FALSE);
                                        context22.startActivity(new Intent("android.settings.APPLICATION_DETAILS_SETTINGS", Uri.parse("package:" + context22.getPackageName())));
                                        break;
                                    default:
                                        Gi0.c(interfaceC1191fR22, false);
                                        context22.startActivity(new Intent("android.settings.APPLICATION_DETAILS_SETTINGS", Uri.fromParts("package", context22.getPackageName(), null)));
                                        break;
                                }
                                return oh0;
                            }
                        };
                        c0321Mk4.f0(objK4);
                    }
                    c0321Mk4.q(false);
                    Co0.e((NC) objK4, null, false, null, null, null, AbstractC1507ik.e, c0321Mk4, 805306368);
                }
                break;
            case 4:
                C0321Mk c0321Mk5 = (C0321Mk) obj;
                if ((((Number) obj2).intValue() & 3) == 2 && c0321Mk5.z()) {
                    c0321Mk5.Q();
                } else {
                    c0321Mk5.V(-1117674281);
                    final Context context5 = this.m;
                    boolean zH5 = c0321Mk5.h(context5);
                    Object objK5 = c0321Mk5.K();
                    if (zH5 || objK5 == C0140Fk.a) {
                        final int i5 = 4;
                        final InterfaceC1191fR interfaceC1191fR5 = this.n;
                        objK5 = new NC() { // from class: o.wu
                            @Override // o.NC
                            public final Object a() {
                                int i22 = i5;
                                Oh0 oh0 = Oh0.a;
                                InterfaceC1191fR interfaceC1191fR22 = interfaceC1191fR5;
                                Context context22 = context5;
                                switch (i22) {
                                    case 0:
                                        interfaceC1191fR22.setValue(Boolean.FALSE);
                                        context22.startActivity(new Intent("android.settings.APPLICATION_DETAILS_SETTINGS", Uri.parse("package:" + context22.getPackageName())));
                                        break;
                                    case 1:
                                        As0.c(interfaceC1191fR22, false);
                                        context22.startActivity(new Intent("android.settings.APPLICATION_DETAILS_SETTINGS", Uri.fromParts("package", context22.getPackageName(), null)));
                                        break;
                                    case 2:
                                        AbstractC2793wD.g(interfaceC1191fR22, false);
                                        context22.startActivity(new Intent("android.settings.APPLICATION_DETAILS_SETTINGS", Uri.fromParts("package", context22.getPackageName(), null)));
                                        break;
                                    case 3:
                                        AbstractC2793wD.h(interfaceC1191fR22, false);
                                        context22.startActivity(new Intent("android.settings.APPLICATION_DETAILS_SETTINGS", Uri.fromParts("package", context22.getPackageName(), null)));
                                        break;
                                    case 4:
                                        YT.f(interfaceC1191fR22, false);
                                        context22.startActivity(new Intent("android.settings.APPLICATION_DETAILS_SETTINGS", Uri.parse("package:" + context22.getPackageName())));
                                        break;
                                    case 5:
                                        int i32 = Fi0.h;
                                        interfaceC1191fR22.setValue(Boolean.FALSE);
                                        context22.startActivity(new Intent("android.settings.APPLICATION_DETAILS_SETTINGS", Uri.parse("package:" + context22.getPackageName())));
                                        break;
                                    default:
                                        Gi0.c(interfaceC1191fR22, false);
                                        context22.startActivity(new Intent("android.settings.APPLICATION_DETAILS_SETTINGS", Uri.fromParts("package", context22.getPackageName(), null)));
                                        break;
                                }
                                return oh0;
                            }
                        };
                        c0321Mk5.f0(objK5);
                    }
                    c0321Mk5.q(false);
                    Co0.e((NC) objK5, null, false, null, null, null, AbstractC1602jk.a, c0321Mk5, 805306368);
                }
                break;
            case 5:
                C0321Mk c0321Mk6 = (C0321Mk) obj;
                if ((((Number) obj2).intValue() & 3) == 2 && c0321Mk6.z()) {
                    c0321Mk6.Q();
                } else {
                    c0321Mk6.V(-162894135);
                    final Context context6 = this.m;
                    boolean zH6 = c0321Mk6.h(context6);
                    Object objK6 = c0321Mk6.K();
                    if (zH6 || objK6 == C0140Fk.a) {
                        final int i6 = 5;
                        final InterfaceC1191fR interfaceC1191fR6 = this.n;
                        objK6 = new NC() { // from class: o.wu
                            @Override // o.NC
                            public final Object a() {
                                int i22 = i6;
                                Oh0 oh0 = Oh0.a;
                                InterfaceC1191fR interfaceC1191fR22 = interfaceC1191fR6;
                                Context context22 = context6;
                                switch (i22) {
                                    case 0:
                                        interfaceC1191fR22.setValue(Boolean.FALSE);
                                        context22.startActivity(new Intent("android.settings.APPLICATION_DETAILS_SETTINGS", Uri.parse("package:" + context22.getPackageName())));
                                        break;
                                    case 1:
                                        As0.c(interfaceC1191fR22, false);
                                        context22.startActivity(new Intent("android.settings.APPLICATION_DETAILS_SETTINGS", Uri.fromParts("package", context22.getPackageName(), null)));
                                        break;
                                    case 2:
                                        AbstractC2793wD.g(interfaceC1191fR22, false);
                                        context22.startActivity(new Intent("android.settings.APPLICATION_DETAILS_SETTINGS", Uri.fromParts("package", context22.getPackageName(), null)));
                                        break;
                                    case 3:
                                        AbstractC2793wD.h(interfaceC1191fR22, false);
                                        context22.startActivity(new Intent("android.settings.APPLICATION_DETAILS_SETTINGS", Uri.fromParts("package", context22.getPackageName(), null)));
                                        break;
                                    case 4:
                                        YT.f(interfaceC1191fR22, false);
                                        context22.startActivity(new Intent("android.settings.APPLICATION_DETAILS_SETTINGS", Uri.parse("package:" + context22.getPackageName())));
                                        break;
                                    case 5:
                                        int i32 = Fi0.h;
                                        interfaceC1191fR22.setValue(Boolean.FALSE);
                                        context22.startActivity(new Intent("android.settings.APPLICATION_DETAILS_SETTINGS", Uri.parse("package:" + context22.getPackageName())));
                                        break;
                                    default:
                                        Gi0.c(interfaceC1191fR22, false);
                                        context22.startActivity(new Intent("android.settings.APPLICATION_DETAILS_SETTINGS", Uri.fromParts("package", context22.getPackageName(), null)));
                                        break;
                                }
                                return oh0;
                            }
                        };
                        c0321Mk6.f0(objK6);
                    }
                    c0321Mk6.q(false);
                    Co0.e((NC) objK6, null, false, null, null, null, AbstractC1982nk.e, c0321Mk6, 805306368);
                }
                break;
            default:
                C0321Mk c0321Mk7 = (C0321Mk) obj;
                if ((((Number) obj2).intValue() & 3) == 2 && c0321Mk7.z()) {
                    c0321Mk7.Q();
                } else {
                    c0321Mk7.V(-936828765);
                    final Context context7 = this.m;
                    boolean zH7 = c0321Mk7.h(context7);
                    Object objK7 = c0321Mk7.K();
                    if (zH7 || objK7 == C0140Fk.a) {
                        final int i7 = 6;
                        final InterfaceC1191fR interfaceC1191fR7 = this.n;
                        objK7 = new NC() { // from class: o.wu
                            @Override // o.NC
                            public final Object a() {
                                int i22 = i7;
                                Oh0 oh0 = Oh0.a;
                                InterfaceC1191fR interfaceC1191fR22 = interfaceC1191fR7;
                                Context context22 = context7;
                                switch (i22) {
                                    case 0:
                                        interfaceC1191fR22.setValue(Boolean.FALSE);
                                        context22.startActivity(new Intent("android.settings.APPLICATION_DETAILS_SETTINGS", Uri.parse("package:" + context22.getPackageName())));
                                        break;
                                    case 1:
                                        As0.c(interfaceC1191fR22, false);
                                        context22.startActivity(new Intent("android.settings.APPLICATION_DETAILS_SETTINGS", Uri.fromParts("package", context22.getPackageName(), null)));
                                        break;
                                    case 2:
                                        AbstractC2793wD.g(interfaceC1191fR22, false);
                                        context22.startActivity(new Intent("android.settings.APPLICATION_DETAILS_SETTINGS", Uri.fromParts("package", context22.getPackageName(), null)));
                                        break;
                                    case 3:
                                        AbstractC2793wD.h(interfaceC1191fR22, false);
                                        context22.startActivity(new Intent("android.settings.APPLICATION_DETAILS_SETTINGS", Uri.fromParts("package", context22.getPackageName(), null)));
                                        break;
                                    case 4:
                                        YT.f(interfaceC1191fR22, false);
                                        context22.startActivity(new Intent("android.settings.APPLICATION_DETAILS_SETTINGS", Uri.parse("package:" + context22.getPackageName())));
                                        break;
                                    case 5:
                                        int i32 = Fi0.h;
                                        interfaceC1191fR22.setValue(Boolean.FALSE);
                                        context22.startActivity(new Intent("android.settings.APPLICATION_DETAILS_SETTINGS", Uri.parse("package:" + context22.getPackageName())));
                                        break;
                                    default:
                                        Gi0.c(interfaceC1191fR22, false);
                                        context22.startActivity(new Intent("android.settings.APPLICATION_DETAILS_SETTINGS", Uri.fromParts("package", context22.getPackageName(), null)));
                                        break;
                                }
                                return oh0;
                            }
                        };
                        c0321Mk7.f0(objK7);
                    }
                    c0321Mk7.q(false);
                    Co0.e((NC) objK7, null, false, null, null, null, AbstractC2077ok.c, c0321Mk7, 805306368);
                }
                break;
        }
        return Oh0.a;
    }
}
