package o;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public abstract class Eg0 {
    public static final /* synthetic */ int a = 0;

    static {
        AbstractC2001nt0.y(3, new C0781b40(9));
    }

    public static final void a(C3114zg0 c3114zg0, C2734vg0 c2734vg0, Object obj, Object obj2, InterfaceC3052yy interfaceC3052yy, C0321Mk c0321Mk, int i) {
        int i2;
        c0321Mk.X(867041821);
        if ((i & 6) == 0) {
            i2 = (c0321Mk.f(c3114zg0) ? 4 : 2) | i;
        } else {
            i2 = i;
        }
        if ((i & 48) == 0) {
            i2 |= c0321Mk.f(c2734vg0) ? 32 : 16;
        }
        if ((i & 384) == 0) {
            i2 |= (i & 512) == 0 ? c0321Mk.f(obj) : c0321Mk.h(obj) ? 256 : 128;
        }
        if ((i & 3072) == 0) {
            i2 |= (i & 4096) == 0 ? c0321Mk.f(obj2) : c0321Mk.h(obj2) ? 2048 : 1024;
        }
        if ((i & 24576) == 0) {
            i2 |= (32768 & i) == 0 ? c0321Mk.f(interfaceC3052yy) : c0321Mk.h(interfaceC3052yy) ? 16384 : 8192;
        }
        if (!c0321Mk.N(i2 & 1, (i2 & 9363) != 9362)) {
            c0321Mk.Q();
        } else if (c3114zg0.g()) {
            c2734vg0.f(obj, obj2, interfaceC3052yy);
        } else {
            c2734vg0.g(obj2, interfaceC3052yy);
        }
        L00 l00S = c0321Mk.s();
        if (l00S != null) {
            l00S.d = new C0090Dm(c3114zg0, c2734vg0, obj, obj2, interfaceC3052yy, i, 3);
        }
    }

    /* JADX WARN: Type inference failed for: r4v1, types: [o.OC, o.aK] */
    /* JADX WARN: Type inference failed for: r5v5, types: [o.OC, o.aK] */
    public static final C2449sg0 b(C3114zg0 c3114zg0, C1597jh0 c1597jh0, String str, C0321Mk c0321Mk, int i, int i2) {
        C2354rg0 c2354rg0;
        if ((i2 & 2) != 0) {
            str = "DeferredAnimation";
        }
        boolean zF = c0321Mk.f(c3114zg0);
        Object objK = c0321Mk.K();
        Object obj = C0140Fk.a;
        if (zF || objK == obj) {
            objK = new C2449sg0(c3114zg0, c1597jh0, str);
            c0321Mk.f0(objK);
        }
        C2449sg0 c2449sg0 = (C2449sg0) objK;
        boolean zF2 = c0321Mk.f(c3114zg0) | c0321Mk.h(c2449sg0);
        Object objK2 = c0321Mk.K();
        if (zF2 || objK2 == obj) {
            objK2 = new C1590je(22, c3114zg0, c2449sg0);
            c0321Mk.f0(objK2);
        }
        AbstractC0249Jp.b(c2449sg0, (OC) objK2, c0321Mk);
        if (c3114zg0.g() && (c2354rg0 = (C2354rg0) c2449sg0.b.getValue()) != null) {
            C3114zg0 c3114zg02 = c2449sg0.c;
            c2354rg0.l.f(c2354rg0.n.g(c3114zg02.f().b()), c2354rg0.n.g(c3114zg02.f().c()), (InterfaceC3052yy) c2354rg0.m.g(c3114zg02.f()));
        }
        return c2449sg0;
    }

    public static final C2734vg0 c(C3114zg0 c3114zg0, Object obj, Object obj2, InterfaceC3052yy interfaceC3052yy, C1597jh0 c1597jh0, C0321Mk c0321Mk, int i) {
        boolean zF = c0321Mk.f(c3114zg0);
        Object objK = c0321Mk.K();
        Object obj3 = C0140Fk.a;
        if (zF || objK == obj3) {
            AbstractC2220q90 abstractC2220q90O = BP.o();
            OC ocE = abstractC2220q90O != null ? abstractC2220q90O.e() : null;
            AbstractC2220q90 abstractC2220q90Q = BP.q(abstractC2220q90O);
            try {
                Y6 y6 = (Y6) c1597jh0.a.g(obj2);
                y6.d();
                objK = new C2734vg0(c3114zg0, obj, y6, c1597jh0);
                BP.t(abstractC2220q90O, abstractC2220q90Q, ocE);
                c0321Mk.f0(objK);
            } catch (Throwable th) {
                BP.t(abstractC2220q90O, abstractC2220q90Q, ocE);
                throw th;
            }
        }
        C2734vg0 c2734vg0 = (C2734vg0) objK;
        a(c3114zg0, c2734vg0, obj, obj2, interfaceC3052yy, c0321Mk, 0);
        boolean zF2 = c0321Mk.f(c3114zg0) | c0321Mk.f(c2734vg0);
        Object objK2 = c0321Mk.K();
        if (zF2 || objK2 == obj3) {
            objK2 = new C1590je(20, c3114zg0, c2734vg0);
            c0321Mk.f0(objK2);
        }
        AbstractC0249Jp.b(c2734vg0, (OC) objK2, c0321Mk);
        return c2734vg0;
    }

    public static final C3114zg0 d(Object obj, String str, C0321Mk c0321Mk, int i, int i2) {
        if ((i2 & 2) != 0) {
            str = null;
        }
        Object objK = c0321Mk.K();
        J7 j7 = C0140Fk.a;
        if (objK == j7) {
            objK = new C3114zg0(new C1383hR(obj), null, str);
            c0321Mk.f0(objK);
        }
        C3114zg0 c3114zg0 = (C3114zg0) objK;
        c3114zg0.a(obj, c0321Mk, (i & 8) | 48 | (i & 14));
        Object objK2 = c0321Mk.K();
        if (objK2 == j7) {
            objK2 = new Cg0(c3114zg0, 0);
            c0321Mk.f0(objK2);
        }
        AbstractC0249Jp.b(c3114zg0, (OC) objK2, c0321Mk);
        return c3114zg0;
    }
}
