package o;

import android.content.Intent;
import android.view.View;
import com.google.android.gms.common.ConnectionResult;
import com.google.android.gms.common.api.CommonStatusCodes;
import ir.devixor.app.page.eblaq.EblaqActvity;
import ir.devixor.app.page.gamesexi.PageGameActivity;
import ir.devixor.app.page.vamasan.VamAsanActvity;
import java.util.WeakHashMap;
import java.util.concurrent.CancellationException;

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

    public /* synthetic */ C1590je(int i, Object obj, Object obj2) {
        this.l = i;
        this.n = obj;
        this.m = obj2;
    }

    @Override // o.OC
    public final Object g(Object obj) {
        String stringExtra;
        String stringExtra2;
        String stringExtra3;
        int i = 3;
        int i2 = 2;
        int i3 = 4;
        switch (this.l) {
            case 0:
                O4 o4 = (O4) this.n;
                AbstractC0601Xe abstractC0601Xe = (AbstractC0601Xe) this.m;
                C2610uK c2610uK = (C2610uK) obj;
                c2610uK.a();
                InterfaceC2095ot.k0(c2610uK, o4, abstractC0601Xe, 0.0f, null, 60);
                return Oh0.a;
            case 1:
                RU ru = (RU) this.n;
                AbstractC0601Xe abstractC0601Xe2 = (AbstractC0601Xe) this.m;
                C2610uK c2610uK2 = (C2610uK) obj;
                c2610uK2.a();
                InterfaceC2095ot.k0(c2610uK2, ru.l, abstractC0601Xe2, 0.0f, null, 60);
                return Oh0.a;
            case 2:
                ((C1479iR) ((OD) this.n).m).j((C1796lm) this.m);
                return Oh0.a;
            case 3:
                EblaqActvity eblaqActvity = (EblaqActvity) this.n;
                InterfaceC1191fR interfaceC1191fR = (InterfaceC1191fR) this.m;
                C2582u1 c2582u1 = (C2582u1) obj;
                if (c2582u1.l == -1) {
                    Intent intent = c2582u1.m;
                    if (intent == null || (stringExtra = intent.getStringExtra("status")) == null) {
                        stringExtra = "no";
                    }
                    if (stringExtra.equals("yes")) {
                        EblaqActvity.e(eblaqActvity, 4);
                        interfaceC1191fR.setValue(4);
                    }
                }
                return Oh0.a;
            case 4:
                ((KQ) this.n).b((InterfaceC1849mI) this.m);
                return Oh0.a;
            case 5:
                ((BE) this.n).m.removeCallbacks((RunnableC0890cD) this.m);
                return Oh0.a;
            case 6:
                PE pe = (PE) this.n;
                String str = (String) this.m;
                VQ vq = (VQ) obj;
                pe.getClass();
                vq.d(PE.d, str);
                pe.d(vq, str);
                return null;
            case 7:
                C1563jH c1563jH = (C1563jH) this.n;
                C1373hH c1373hH = (C1373hH) this.m;
                c1563jH.a.b(c1373hH);
                c1563jH.b.setValue(Boolean.TRUE);
                return new J3(i2, c1563jH, c1373hH);
            case 8:
                C2050oT c2050oT = (C2050oT) this.n;
                VW vw = (VW) this.m;
                UW uw = (UW) obj;
                if (c2050oT.B) {
                    UW.i(uw, vw, uw.N(c2050oT.z), uw.N(c2050oT.A));
                } else {
                    UW.g(uw, vw, uw.N(c2050oT.z), uw.N(c2050oT.A));
                }
                return Oh0.a;
            case ConnectionResult.SERVICE_INVALID /* 9 */:
                C2052oV c2052oV = (C2052oV) this.n;
                VW vw2 = (VW) this.m;
                UW uw2 = (UW) obj;
                if (c2052oV.D) {
                    UW.i(uw2, vw2, uw2.N(c2052oV.z), uw2.N(c2052oV.A));
                } else {
                    UW.g(uw2, vw2, uw2.N(c2052oV.z), uw2.N(c2052oV.A));
                }
                return Oh0.a;
            case 10:
                PageGameActivity pageGameActivity = (PageGameActivity) this.n;
                InterfaceC1191fR interfaceC1191fR2 = (InterfaceC1191fR) this.m;
                C2582u1 c2582u12 = (C2582u1) obj;
                if (c2582u12.l == -1) {
                    Intent intent2 = c2582u12.m;
                    if (intent2 == null || (stringExtra2 = intent2.getStringExtra("status")) == null) {
                        stringExtra2 = "no";
                    }
                    if (stringExtra2.equals("yes")) {
                        pageGameActivity.getSharedPreferences(pageGameActivity.m, 0).edit().putBoolean(pageGameActivity.f35o, true).apply();
                        interfaceC1191fR2.setValue(3);
                    }
                }
                return Oh0.a;
            case ConnectionResult.LICENSE_CHECK_FAILED /* 11 */:
                C0555Vk c0555Vk = (C0555Vk) this.n;
                C0713aR c0713aR = (C0713aR) this.m;
                c0555Vk.v(obj);
                if (c0713aR != null) {
                    c0713aR.a(obj);
                }
                return Oh0.a;
            case 12:
                P00 p00 = (P00) this.n;
                Throwable th = (Throwable) this.m;
                Throwable th2 = (Throwable) obj;
                synchronized (p00.b) {
                    if (th == null) {
                        th = null;
                    } else if (th2 != null) {
                        try {
                            if (th2 instanceof CancellationException) {
                                th2 = null;
                            }
                            if (th2 != null) {
                                C80.i(th, th2);
                            }
                        } catch (Throwable th3) {
                            throw th3;
                        }
                    }
                    p00.d = th;
                    Ba0 ba0 = p00.t;
                    M00 m00 = M00.l;
                    ba0.getClass();
                    ba0.i(null, m00);
                }
                return Oh0.a;
            case 13:
                C2022o50 c2022o50 = (C2022o50) this.n;
                C2212q50 c2212q50 = (C2212q50) this.m;
                long j = ((C0381Os) obj).a;
                c2022o50.a(1, c2212q50.d == OU.m ? C1765lT.a(j, 0.0f, 1) : C1765lT.a(j, 0.0f, 2));
                return Oh0.a;
            case 14:
                InterfaceC3007ya0 interfaceC3007ya0 = (InterfaceC3007ya0) this.n;
                InterfaceC1191fR interfaceC1191fR3 = (InterfaceC1191fR) this.m;
                T80 t80 = (T80) obj;
                float fFloatValue = ((Number) interfaceC3007ya0.getValue()).floatValue();
                float fIntBitsToFloat = Float.intBitsToFloat((int) (t80.a >> 32)) * fFloatValue;
                float fIntBitsToFloat2 = Float.intBitsToFloat((int) (t80.a & 4294967295L)) * fFloatValue;
                if (Float.intBitsToFloat((int) (((T80) interfaceC1191fR3.getValue()).a >> 32)) != fIntBitsToFloat || Float.intBitsToFloat((int) (((T80) interfaceC1191fR3.getValue()).a & 4294967295L)) != fIntBitsToFloat2) {
                    interfaceC1191fR3.setValue(new T80((Float.floatToRawIntBits(fIntBitsToFloat) << 32) | (Float.floatToRawIntBits(fIntBitsToFloat2) & 4294967295L)));
                }
                return Oh0.a;
            case 15:
                C0291Lf c0291Lf = (C0291Lf) obj;
                return c0291Lf.a(new C2769w(9, new C1590je(16, ((L70) this.n).a(c0291Lf.l.f(), c0291Lf.l.getLayoutDirection(), c0291Lf), (Gd0) this.m)));
            case 16:
                AbstractC2539te.x((InterfaceC2095ot) obj, (F3) this.n, ((Gd0) this.m).a());
                return Oh0.a;
            case 17:
                return new J3(i, (InterfaceC1191fR) this.n, (KQ) this.m);
            case ConnectionResult.SERVICE_UPDATING /* 18 */:
                NC nc = (NC) this.n;
                NC nc2 = (NC) this.m;
                InterfaceC2538td0 interfaceC2538td0 = (InterfaceC2538td0) obj;
                nc.a();
                if (nc2 != null ? ((Boolean) nc2.a()).booleanValue() : true) {
                    interfaceC2538td0.close();
                }
                return Oh0.a;
            case 19:
                AbstractC1692kh0.C((InterfaceC0065Cn) this.n, null, new Da0((C3114zg0) this.m, null), 1);
                return new Z4(2);
            case 20:
                C3114zg0 c3114zg0 = (C3114zg0) this.n;
                C2734vg0 c2734vg0 = (C2734vg0) this.m;
                c3114zg0.i.add(c2734vg0);
                return new J3(6, c3114zg0, c2734vg0);
            case CommonStatusCodes.RECONNECTION_TIMED_OUT_DURING_UPDATE /* 21 */:
                C3114zg0 c3114zg02 = (C3114zg0) this.n;
                C3114zg0 c3114zg03 = (C3114zg0) this.m;
                c3114zg02.j.add(c3114zg03);
                return new J3(i3, c3114zg02, c3114zg03);
            case 22:
                return new J3(5, (C3114zg0) this.n, (C2449sg0) this.m);
            case ConnectionResult.API_DISABLED /* 23 */:
                C1217fi0 c1217fi0 = (C1217fi0) this.n;
                OC oc = (OC) this.m;
                ((Long) obj).longValue();
                float f = c1217fi0.e;
                c1217fi0.e = 0.0f;
                oc.g(Float.valueOf(f));
                return Oh0.a;
            case ConnectionResult.API_DISABLED_FOR_CONNECTION /* 24 */:
                VamAsanActvity vamAsanActvity = (VamAsanActvity) this.n;
                InterfaceC1191fR interfaceC1191fR4 = (InterfaceC1191fR) this.m;
                C2582u1 c2582u13 = (C2582u1) obj;
                if (c2582u13.l == -1) {
                    Intent intent3 = c2582u13.m;
                    if (intent3 == null || (stringExtra3 = intent3.getStringExtra("status")) == null) {
                        stringExtra3 = "no";
                    }
                    if (stringExtra3.equals("yes")) {
                        VamAsanActvity.e(vamAsanActvity, 4);
                        interfaceC1191fR4.setValue(4);
                    }
                }
                return Oh0.a;
            default:
                Pl0 pl0 = (Pl0) this.n;
                View view = (View) this.m;
                OH oh = pl0.t;
                if (pl0.s == 0) {
                    WeakHashMap weakHashMap = Oj0.a;
                    Gj0.l(view, oh);
                    if (view.isAttachedToWindow()) {
                        view.requestApplyInsets();
                    }
                    view.addOnAttachStateChangeListener(oh);
                    Oj0.o(view, oh);
                }
                pl0.s++;
                return new J3(7, pl0, view);
        }
    }

    public /* synthetic */ C1590je(Vd0 vd0, C2734vg0 c2734vg0, InterfaceC1191fR interfaceC1191fR) {
        this.l = 14;
        this.n = c2734vg0;
        this.m = interfaceC1191fR;
    }
}
