package o;

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

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

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

    public /* synthetic */ C0513Tu(Object obj, Object obj2, Object obj3, Object obj4, int i) {
        this.l = i;
        this.m = obj;
        this.n = obj2;
        this.f349o = obj3;
        this.p = obj4;
    }

    @Override // o.NC
    public final Object a() {
        int i = this.l;
        Oh0 oh0 = Oh0.a;
        Object obj = this.p;
        Object obj2 = this.f349o;
        Object obj3 = this.n;
        Object obj4 = this.m;
        switch (i) {
            case 0:
                Context context = (Context) obj4;
                C2328rN c2328rN = (C2328rN) obj3;
                NC nc = (NC) obj2;
                InterfaceC1191fR interfaceC1191fR = (InterfaceC1191fR) obj;
                if (!((Boolean) interfaceC1191fR.getValue()).booleanValue()) {
                    if (Build.VERSION.SDK_INT >= 33 && Co0.l(context, "android.permission.POST_NOTIFICATIONS") != 0) {
                        interfaceC1191fR.setValue(Boolean.TRUE);
                        c2328rN.a("android.permission.POST_NOTIFICATIONS");
                        break;
                    } else {
                        nc.a();
                        break;
                    }
                }
                break;
            case 1:
                Context context2 = (Context) obj4;
                C2328rN c2328rN2 = (C2328rN) obj3;
                NC nc2 = (NC) obj2;
                InterfaceC1191fR interfaceC1191fR2 = (InterfaceC1191fR) obj;
                int i2 = Hi0.g;
                if (!((Boolean) interfaceC1191fR2.getValue()).booleanValue()) {
                    if (Build.VERSION.SDK_INT >= 33 && Co0.l(context2, "android.permission.POST_NOTIFICATIONS") != 0) {
                        interfaceC1191fR2.setValue(Boolean.TRUE);
                        c2328rN2.a("android.permission.POST_NOTIFICATIONS");
                        break;
                    } else {
                        nc2.a();
                        break;
                    }
                }
                break;
            default:
                Float f = (Float) obj4;
                C1373hH c1373hH = (C1373hH) obj3;
                Float f2 = (Float) obj2;
                C1277gH c1277gH = (C1277gH) obj;
                if (!f.equals(c1373hH.l) || !f2.equals(c1373hH.m)) {
                    c1373hH.l = f;
                    c1373hH.m = f2;
                    c1373hH.f559o = new Mc0(c1277gH, AbstractC1692kh0.u, f, f2, null);
                    c1373hH.s.b.setValue(Boolean.TRUE);
                    c1373hH.p = false;
                    c1373hH.q = true;
                    break;
                }
                break;
        }
        return oh0;
    }
}
