package o;

import android.app.PendingIntent;
import android.content.Context;
import android.os.Build;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.tW, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final /* synthetic */ class C2527tW implements NC {
    public final /* synthetic */ int l = 0;
    public final /* synthetic */ Object m;
    public final /* synthetic */ Object n;

    /* renamed from: o, reason: collision with root package name */
    public final /* synthetic */ Object f729o;
    public final /* synthetic */ Object p;
    public final /* synthetic */ Object q;
    public final /* synthetic */ Object r;

    public /* synthetic */ C2527tW(Context context, C2328rN c2328rN, InterfaceC1191fR interfaceC1191fR, InterfaceC1191fR interfaceC1191fR2, InterfaceC1191fR interfaceC1191fR3, InterfaceC1191fR interfaceC1191fR4) {
        this.m = interfaceC1191fR;
        this.q = context;
        this.r = c2328rN;
        this.n = interfaceC1191fR2;
        this.f729o = interfaceC1191fR3;
        this.p = interfaceC1191fR4;
    }

    @Override // o.NC
    public final Object a() throws PendingIntent.CanceledException {
        boolean z;
        switch (this.l) {
            case 0:
                InterfaceC1191fR interfaceC1191fR = (InterfaceC1191fR) this.m;
                Context context = (Context) this.q;
                C2328rN c2328rN = (C2328rN) this.r;
                InterfaceC1191fR interfaceC1191fR2 = (InterfaceC1191fR) this.n;
                InterfaceC1191fR interfaceC1191fR3 = (InterfaceC1191fR) this.f729o;
                InterfaceC1191fR interfaceC1191fR4 = (InterfaceC1191fR) this.p;
                if (!((Boolean) interfaceC1191fR.getValue()).booleanValue()) {
                    C5 c5 = new C5(interfaceC1191fR, 25);
                    if (Build.VERSION.SDK_INT < 33 || Co0.l(context, "android.permission.POST_NOTIFICATIONS") == 0) {
                        c5.a();
                    } else if (((Number) interfaceC1191fR2.getValue()).intValue() >= 2) {
                        YT.f(interfaceC1191fR3, true);
                        c5.a();
                    } else {
                        interfaceC1191fR4.setValue(c5);
                        c2328rN.a("android.permission.POST_NOTIFICATIONS");
                    }
                }
                break;
            case 1:
                X30 x30 = (X30) this.m;
                InterfaceC2210q40 interfaceC2210q40 = (InterfaceC2210q40) this.n;
                Z30 z30 = (Z30) this.f729o;
                String str = (String) this.p;
                Object[] objArr = (Object[]) this.r;
                boolean z2 = true;
                if (x30.m != z30) {
                    x30.m = z30;
                    z = true;
                } else {
                    z = false;
                }
                if (F3.c(x30.n, str)) {
                    z2 = z;
                } else {
                    x30.n = str;
                }
                x30.l = interfaceC2210q40;
                x30.f405o = this.q;
                x30.p = objArr;
                Y30 y30 = x30.q;
                if (y30 != null && z2) {
                    ((C3126zm0) y30).W();
                    x30.q = null;
                    x30.b();
                }
                break;
            default:
                InterfaceC0065Cn interfaceC0065Cn = (InterfaceC0065Cn) this.r;
                InterfaceC1191fR interfaceC1191fR5 = (InterfaceC1191fR) this.m;
                InterfaceC1191fR interfaceC1191fR6 = (InterfaceC1191fR) this.n;
                InterfaceC1191fR interfaceC1191fR7 = (InterfaceC1191fR) this.f729o;
                InterfaceC1191fR interfaceC1191fR8 = (InterfaceC1191fR) this.p;
                Context context2 = (Context) this.q;
                if (Za0.Y((String) interfaceC1191fR5.getValue()) || Za0.Y((String) interfaceC1191fR6.getValue())) {
                    interfaceC1191fR7.setValue(Boolean.FALSE);
                    interfaceC1191fR8.setValue(Boolean.TRUE);
                } else {
                    interfaceC1191fR7.setValue(Boolean.TRUE);
                    AbstractC1692kh0.C(interfaceC0065Cn, null, new C1017de(context2, interfaceC1191fR5, interfaceC1191fR6, null, 1), 3);
                }
                break;
        }
        return Oh0.a;
    }

    public /* synthetic */ C2527tW(InterfaceC0065Cn interfaceC0065Cn, InterfaceC1191fR interfaceC1191fR, InterfaceC1191fR interfaceC1191fR2, InterfaceC1191fR interfaceC1191fR3, InterfaceC1191fR interfaceC1191fR4, Context context) {
        this.r = interfaceC0065Cn;
        this.m = interfaceC1191fR;
        this.n = interfaceC1191fR2;
        this.f729o = interfaceC1191fR3;
        this.p = interfaceC1191fR4;
        this.q = context;
    }

    public /* synthetic */ C2527tW(X30 x30, InterfaceC2210q40 interfaceC2210q40, Z30 z30, String str, Object obj, Object[] objArr) {
        this.m = x30;
        this.n = interfaceC2210q40;
        this.f729o = z30;
        this.p = str;
        this.q = obj;
        this.r = objArr;
    }
}
