package androidx.compose.animation;

import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import kotlin.jvm.internal.v;
import l1.c;
import l1.i;
import rm.n0;
import rm.t;
import s1.y1;
import x.w;
import y.f1;
import y.f2;
import y.g0;
import y.m1;
import y.n1;
import y.q1;
import y.s1;
import y0.s3;
import y0.y3;

/* loaded from: classes.dex */
public abstract class a {

    /* renamed from: a, reason: collision with root package name */
    private static final q1 f1413a = s1.a(C0030a.f1417p, b.f1418p);

    /* renamed from: b, reason: collision with root package name */
    private static final f1 f1414b = y.j.h(BitmapDescriptorFactory.HUE_RED, 400.0f, null, 5, null);

    /* renamed from: c, reason: collision with root package name */
    private static final f1 f1415c = y.j.h(BitmapDescriptorFactory.HUE_RED, 400.0f, c3.n.b(f2.c(c3.n.f7423b)), 1, null);

    /* renamed from: d, reason: collision with root package name */
    private static final f1 f1416d = y.j.h(BitmapDescriptorFactory.HUE_RED, 400.0f, c3.r.b(f2.d(c3.r.f7432b)), 1, null);

    /* renamed from: androidx.compose.animation.a$a, reason: collision with other inner class name */
    /* loaded from: classes.dex */
    static final class C0030a extends v implements dn.l {

        /* renamed from: p, reason: collision with root package name */
        public static final C0030a f1417p = new C0030a();

        C0030a() {
            super(1);
        }

        public final y.n a(long j10) {
            return new y.n(androidx.compose.ui.graphics.f.f(j10), androidx.compose.ui.graphics.f.g(j10));
        }

        @Override // dn.l
        public /* bridge */ /* synthetic */ Object invoke(Object obj) {
            return a(((androidx.compose.ui.graphics.f) obj).j());
        }
    }

    /* loaded from: classes.dex */
    static final class b extends v implements dn.l {

        /* renamed from: p, reason: collision with root package name */
        public static final b f1418p = new b();

        b() {
            super(1);
        }

        public final long a(y.n nVar) {
            return y1.a(nVar.f(), nVar.g());
        }

        @Override // dn.l
        public /* bridge */ /* synthetic */ Object invoke(Object obj) {
            return androidx.compose.ui.graphics.f.b(a((y.n) obj));
        }
    }

    /* JADX INFO: Access modifiers changed from: package-private */
    /* loaded from: classes.dex */
    public static final class c extends v implements dn.l {

        /* renamed from: p, reason: collision with root package name */
        final /* synthetic */ androidx.compose.animation.c f1419p;

        /* renamed from: q, reason: collision with root package name */
        final /* synthetic */ androidx.compose.animation.e f1420q;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        c(androidx.compose.animation.c cVar, androidx.compose.animation.e eVar) {
            super(1);
            this.f1419p = cVar;
            this.f1420q = eVar;
        }

        @Override // dn.l
        /* renamed from: a, reason: merged with bridge method [inline-methods] */
        public final g0 invoke(m1.b bVar) {
            g0 b10;
            g0 b11;
            x.i iVar = x.i.PreEnter;
            x.i iVar2 = x.i.Visible;
            if (bVar.b(iVar, iVar2)) {
                x.k c10 = this.f1419p.b().c();
                return (c10 == null || (b11 = c10.b()) == null) ? a.f1414b : b11;
            }
            if (!bVar.b(iVar2, x.i.PostExit)) {
                return a.f1414b;
            }
            x.k c11 = this.f1420q.b().c();
            return (c11 == null || (b10 = c11.b()) == null) ? a.f1414b : b10;
        }
    }

    /* JADX INFO: Access modifiers changed from: package-private */
    /* loaded from: classes.dex */
    public static final class d extends v implements dn.l {

        /* renamed from: p, reason: collision with root package name */
        final /* synthetic */ androidx.compose.animation.c f1421p;

        /* renamed from: q, reason: collision with root package name */
        final /* synthetic */ androidx.compose.animation.e f1422q;

        /* renamed from: androidx.compose.animation.a$d$a, reason: collision with other inner class name */
        /* loaded from: classes.dex */
        public /* synthetic */ class C0031a {

            /* renamed from: a, reason: collision with root package name */
            public static final /* synthetic */ int[] f1423a;

            static {
                int[] iArr = new int[x.i.values().length];
                try {
                    iArr[x.i.Visible.ordinal()] = 1;
                } catch (NoSuchFieldError unused) {
                }
                try {
                    iArr[x.i.PreEnter.ordinal()] = 2;
                } catch (NoSuchFieldError unused2) {
                }
                try {
                    iArr[x.i.PostExit.ordinal()] = 3;
                } catch (NoSuchFieldError unused3) {
                }
                f1423a = iArr;
            }
        }

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        d(androidx.compose.animation.c cVar, androidx.compose.animation.e eVar) {
            super(1);
            this.f1421p = cVar;
            this.f1422q = eVar;
        }

        @Override // dn.l
        /* renamed from: a, reason: merged with bridge method [inline-methods] */
        public final Float invoke(x.i iVar) {
            int i10 = C0031a.f1423a[iVar.ordinal()];
            float f10 = 1.0f;
            if (i10 != 1) {
                if (i10 == 2) {
                    x.k c10 = this.f1421p.b().c();
                    if (c10 != null) {
                        f10 = c10.a();
                    }
                } else {
                    if (i10 != 3) {
                        throw new t();
                    }
                    x.k c11 = this.f1422q.b().c();
                    if (c11 != null) {
                        f10 = c11.a();
                    }
                }
            }
            return Float.valueOf(f10);
        }
    }

    /* JADX INFO: Access modifiers changed from: package-private */
    /* loaded from: classes.dex */
    public static final class e extends v implements dn.l {

        /* renamed from: p, reason: collision with root package name */
        final /* synthetic */ y3 f1424p;

        /* renamed from: q, reason: collision with root package name */
        final /* synthetic */ y3 f1425q;

        /* renamed from: r, reason: collision with root package name */
        final /* synthetic */ y3 f1426r;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        e(y3 y3Var, y3 y3Var2, y3 y3Var3) {
            super(1);
            this.f1424p = y3Var;
            this.f1425q = y3Var2;
            this.f1426r = y3Var3;
        }

        public final void a(androidx.compose.ui.graphics.c cVar) {
            y3 y3Var = this.f1424p;
            cVar.a(y3Var != null ? ((Number) y3Var.getValue()).floatValue() : 1.0f);
            y3 y3Var2 = this.f1425q;
            cVar.i(y3Var2 != null ? ((Number) y3Var2.getValue()).floatValue() : 1.0f);
            y3 y3Var3 = this.f1425q;
            cVar.f(y3Var3 != null ? ((Number) y3Var3.getValue()).floatValue() : 1.0f);
            y3 y3Var4 = this.f1426r;
            cVar.a1(y3Var4 != null ? ((androidx.compose.ui.graphics.f) y3Var4.getValue()).j() : androidx.compose.ui.graphics.f.f2249b.a());
        }

        @Override // dn.l
        public /* bridge */ /* synthetic */ Object invoke(Object obj) {
            a((androidx.compose.ui.graphics.c) obj);
            return n0.f34904a;
        }
    }

    /* JADX INFO: Access modifiers changed from: package-private */
    /* loaded from: classes.dex */
    public static final class f extends v implements dn.l {

        /* renamed from: p, reason: collision with root package name */
        final /* synthetic */ androidx.compose.animation.c f1427p;

        /* renamed from: q, reason: collision with root package name */
        final /* synthetic */ androidx.compose.animation.e f1428q;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        f(androidx.compose.animation.c cVar, androidx.compose.animation.e eVar) {
            super(1);
            this.f1427p = cVar;
            this.f1428q = eVar;
        }

        @Override // dn.l
        /* renamed from: a, reason: merged with bridge method [inline-methods] */
        public final g0 invoke(m1.b bVar) {
            x.i iVar = x.i.PreEnter;
            x.i iVar2 = x.i.Visible;
            if (bVar.b(iVar, iVar2)) {
                this.f1427p.b().e();
                return a.f1414b;
            }
            if (!bVar.b(iVar2, x.i.PostExit)) {
                return a.f1414b;
            }
            this.f1428q.b().e();
            return a.f1414b;
        }
    }

    /* JADX INFO: Access modifiers changed from: package-private */
    /* loaded from: classes.dex */
    public static final class g extends v implements dn.l {

        /* renamed from: p, reason: collision with root package name */
        final /* synthetic */ androidx.compose.animation.c f1429p;

        /* renamed from: q, reason: collision with root package name */
        final /* synthetic */ androidx.compose.animation.e f1430q;

        /* renamed from: androidx.compose.animation.a$g$a, reason: collision with other inner class name */
        /* loaded from: classes.dex */
        public /* synthetic */ class C0032a {

            /* renamed from: a, reason: collision with root package name */
            public static final /* synthetic */ int[] f1431a;

            static {
                int[] iArr = new int[x.i.values().length];
                try {
                    iArr[x.i.Visible.ordinal()] = 1;
                } catch (NoSuchFieldError unused) {
                }
                try {
                    iArr[x.i.PreEnter.ordinal()] = 2;
                } catch (NoSuchFieldError unused2) {
                }
                try {
                    iArr[x.i.PostExit.ordinal()] = 3;
                } catch (NoSuchFieldError unused3) {
                }
                f1431a = iArr;
            }
        }

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        g(androidx.compose.animation.c cVar, androidx.compose.animation.e eVar) {
            super(1);
            this.f1429p = cVar;
            this.f1430q = eVar;
        }

        @Override // dn.l
        /* renamed from: a, reason: merged with bridge method [inline-methods] */
        public final Float invoke(x.i iVar) {
            int i10 = C0032a.f1431a[iVar.ordinal()];
            if (i10 != 1) {
                if (i10 == 2) {
                    this.f1429p.b().e();
                } else {
                    if (i10 != 3) {
                        throw new t();
                    }
                    this.f1430q.b().e();
                }
            }
            return Float.valueOf(1.0f);
        }
    }

    /* JADX INFO: Access modifiers changed from: package-private */
    /* loaded from: classes.dex */
    public static final class h extends v implements dn.l {

        /* renamed from: p, reason: collision with root package name */
        public static final h f1432p = new h();

        h() {
            super(1);
        }

        @Override // dn.l
        /* renamed from: a, reason: merged with bridge method [inline-methods] */
        public final g0 invoke(m1.b bVar) {
            return y.j.h(BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED, null, 7, null);
        }
    }

    /* JADX INFO: Access modifiers changed from: package-private */
    /* loaded from: classes.dex */
    public static final class i extends v implements dn.l {

        /* renamed from: p, reason: collision with root package name */
        final /* synthetic */ androidx.compose.ui.graphics.f f1433p;

        /* renamed from: q, reason: collision with root package name */
        final /* synthetic */ androidx.compose.animation.c f1434q;

        /* renamed from: r, reason: collision with root package name */
        final /* synthetic */ androidx.compose.animation.e f1435r;

        /* renamed from: androidx.compose.animation.a$i$a, reason: collision with other inner class name */
        /* loaded from: classes.dex */
        public /* synthetic */ class C0033a {

            /* renamed from: a, reason: collision with root package name */
            public static final /* synthetic */ int[] f1436a;

            static {
                int[] iArr = new int[x.i.values().length];
                try {
                    iArr[x.i.Visible.ordinal()] = 1;
                } catch (NoSuchFieldError unused) {
                }
                try {
                    iArr[x.i.PreEnter.ordinal()] = 2;
                } catch (NoSuchFieldError unused2) {
                }
                try {
                    iArr[x.i.PostExit.ordinal()] = 3;
                } catch (NoSuchFieldError unused3) {
                }
                f1436a = iArr;
            }
        }

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        i(androidx.compose.ui.graphics.f fVar, androidx.compose.animation.c cVar, androidx.compose.animation.e eVar) {
            super(1);
            this.f1433p = fVar;
            this.f1434q = cVar;
            this.f1435r = eVar;
        }

        public final long a(x.i iVar) {
            androidx.compose.ui.graphics.f fVar;
            int i10 = C0033a.f1436a[iVar.ordinal()];
            if (i10 != 1) {
                fVar = null;
                if (i10 == 2) {
                    this.f1434q.b().e();
                    this.f1435r.b().e();
                } else {
                    if (i10 != 3) {
                        throw new t();
                    }
                    this.f1435r.b().e();
                    this.f1434q.b().e();
                }
            } else {
                fVar = this.f1433p;
            }
            return fVar != null ? fVar.j() : androidx.compose.ui.graphics.f.f2249b.a();
        }

        @Override // dn.l
        public /* bridge */ /* synthetic */ Object invoke(Object obj) {
            return androidx.compose.ui.graphics.f.b(a((x.i) obj));
        }
    }

    /* loaded from: classes.dex */
    static final class j extends v implements dn.a {

        /* renamed from: p, reason: collision with root package name */
        public static final j f1437p = new j();

        j() {
            super(0);
        }

        @Override // dn.a
        public final Boolean invoke() {
            return Boolean.TRUE;
        }
    }

    /* loaded from: classes.dex */
    static final class k extends v implements dn.l {

        /* renamed from: p, reason: collision with root package name */
        final /* synthetic */ boolean f1438p;

        /* renamed from: q, reason: collision with root package name */
        final /* synthetic */ dn.a f1439q;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        k(boolean z10, dn.a aVar) {
            super(1);
            this.f1438p = z10;
            this.f1439q = aVar;
        }

        public final void a(androidx.compose.ui.graphics.c cVar) {
            cVar.F(!this.f1438p && ((Boolean) this.f1439q.invoke()).booleanValue());
        }

        @Override // dn.l
        public /* bridge */ /* synthetic */ Object invoke(Object obj) {
            a((androidx.compose.ui.graphics.c) obj);
            return n0.f34904a;
        }
    }

    /* JADX INFO: Access modifiers changed from: package-private */
    /* loaded from: classes.dex */
    public static final class l extends v implements dn.l {

        /* renamed from: p, reason: collision with root package name */
        public static final l f1440p = new l();

        l() {
            super(1);
        }

        public final long a(long j10) {
            return c3.s.a(0, 0);
        }

        @Override // dn.l
        public /* bridge */ /* synthetic */ Object invoke(Object obj) {
            return c3.r.b(a(((c3.r) obj).j()));
        }
    }

    /* JADX INFO: Access modifiers changed from: package-private */
    /* loaded from: classes.dex */
    public static final class m extends v implements dn.l {

        /* renamed from: p, reason: collision with root package name */
        public static final m f1441p = new m();

        m() {
            super(1);
        }

        public final Integer a(int i10) {
            return 0;
        }

        @Override // dn.l
        public /* bridge */ /* synthetic */ Object invoke(Object obj) {
            return a(((Number) obj).intValue());
        }
    }

    /* JADX INFO: Access modifiers changed from: package-private */
    /* loaded from: classes.dex */
    public static final class n extends v implements dn.l {

        /* renamed from: p, reason: collision with root package name */
        final /* synthetic */ dn.l f1442p;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        n(dn.l lVar) {
            super(1);
            this.f1442p = lVar;
        }

        public final long a(long j10) {
            return c3.s.a(c3.r.g(j10), ((Number) this.f1442p.invoke(Integer.valueOf(c3.r.f(j10)))).intValue());
        }

        @Override // dn.l
        public /* bridge */ /* synthetic */ Object invoke(Object obj) {
            return c3.r.b(a(((c3.r) obj).j()));
        }
    }

    /* JADX INFO: Access modifiers changed from: package-private */
    /* loaded from: classes.dex */
    public static final class o extends v implements dn.l {

        /* renamed from: p, reason: collision with root package name */
        public static final o f1443p = new o();

        o() {
            super(1);
        }

        public final long a(long j10) {
            return c3.s.a(0, 0);
        }

        @Override // dn.l
        public /* bridge */ /* synthetic */ Object invoke(Object obj) {
            return c3.r.b(a(((c3.r) obj).j()));
        }
    }

    /* JADX INFO: Access modifiers changed from: package-private */
    /* loaded from: classes.dex */
    public static final class p extends v implements dn.l {

        /* renamed from: p, reason: collision with root package name */
        public static final p f1444p = new p();

        p() {
            super(1);
        }

        public final Integer a(int i10) {
            return 0;
        }

        @Override // dn.l
        public /* bridge */ /* synthetic */ Object invoke(Object obj) {
            return a(((Number) obj).intValue());
        }
    }

    /* JADX INFO: Access modifiers changed from: package-private */
    /* loaded from: classes.dex */
    public static final class q extends v implements dn.l {

        /* renamed from: p, reason: collision with root package name */
        final /* synthetic */ dn.l f1445p;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        q(dn.l lVar) {
            super(1);
            this.f1445p = lVar;
        }

        public final long a(long j10) {
            return c3.s.a(c3.r.g(j10), ((Number) this.f1445p.invoke(Integer.valueOf(c3.r.f(j10)))).intValue());
        }

        @Override // dn.l
        public /* bridge */ /* synthetic */ Object invoke(Object obj) {
            return c3.r.b(a(((c3.r) obj).j()));
        }
    }

    /* loaded from: classes.dex */
    static final class r extends v implements dn.l {

        /* renamed from: p, reason: collision with root package name */
        final /* synthetic */ dn.l f1446p;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        r(dn.l lVar) {
            super(1);
            this.f1446p = lVar;
        }

        public final long a(long j10) {
            return c3.o.a(0, ((Number) this.f1446p.invoke(Integer.valueOf(c3.r.f(j10)))).intValue());
        }

        @Override // dn.l
        public /* bridge */ /* synthetic */ Object invoke(Object obj) {
            return c3.n.b(a(((c3.r) obj).j()));
        }
    }

    /* loaded from: classes.dex */
    static final class s extends v implements dn.l {

        /* renamed from: p, reason: collision with root package name */
        final /* synthetic */ dn.l f1447p;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        s(dn.l lVar) {
            super(1);
            this.f1447p = lVar;
        }

        public final long a(long j10) {
            return c3.o.a(0, ((Number) this.f1447p.invoke(Integer.valueOf(c3.r.f(j10)))).intValue());
        }

        @Override // dn.l
        public /* bridge */ /* synthetic */ Object invoke(Object obj) {
            return c3.n.b(a(((c3.r) obj).j()));
        }
    }

    private static final void A(y0.q1 q1Var, androidx.compose.animation.c cVar) {
        q1Var.setValue(cVar);
    }

    public static final androidx.compose.animation.e B(m1 m1Var, androidx.compose.animation.e eVar, y0.m mVar, int i10) {
        if (y0.p.H()) {
            y0.p.Q(-1363864804, i10, -1, "androidx.compose.animation.trackActiveExit (EnterExitTransition.kt:930)");
        }
        boolean z10 = (((i10 & 14) ^ 6) > 4 && mVar.R(m1Var)) || (i10 & 6) == 4;
        Object f10 = mVar.f();
        if (z10 || f10 == y0.m.f51621a.a()) {
            f10 = s3.d(eVar, null, 2, null);
            mVar.I(f10);
        }
        y0.q1 q1Var = (y0.q1) f10;
        if (m1Var.h() == m1Var.o() && m1Var.h() == x.i.Visible) {
            if (m1Var.s()) {
                D(q1Var, eVar);
            } else {
                D(q1Var, androidx.compose.animation.e.f1467a.a());
            }
        } else if (m1Var.o() != x.i.Visible) {
            D(q1Var, C(q1Var).c(eVar));
        }
        androidx.compose.animation.e C = C(q1Var);
        if (y0.p.H()) {
            y0.p.P();
        }
        return C;
    }

    private static final androidx.compose.animation.e C(y0.q1 q1Var) {
        return (androidx.compose.animation.e) q1Var.getValue();
    }

    private static final void D(y0.q1 q1Var, androidx.compose.animation.e eVar) {
        q1Var.setValue(eVar);
    }

    private static final x.n e(final m1 m1Var, final androidx.compose.animation.c cVar, final androidx.compose.animation.e eVar, String str, y0.m mVar, int i10) {
        m1.a aVar;
        if (y0.p.H()) {
            y0.p.Q(642253525, i10, -1, "androidx.compose.animation.createGraphicsLayerBlock (EnterExitTransition.kt:958)");
        }
        boolean z10 = (cVar.b().c() == null && eVar.b().c() == null) ? false : true;
        cVar.b().e();
        eVar.b().e();
        if (z10) {
            mVar.S(-675389204);
            q1 f10 = s1.f(kotlin.jvm.internal.m.f26196a);
            Object f11 = mVar.f();
            if (f11 == y0.m.f51621a.a()) {
                f11 = str + " alpha";
                mVar.I(f11);
            }
            aVar = n1.b(m1Var, f10, (String) f11, mVar, (i10 & 14) | 384, 0);
            mVar.H();
        } else {
            mVar.S(-675252433);
            mVar.H();
            aVar = null;
        }
        final m1.a aVar2 = aVar;
        mVar.S(-675057009);
        mVar.H();
        final m1.a aVar3 = null;
        mVar.S(-674835793);
        mVar.H();
        final m1.a aVar4 = null;
        boolean m10 = mVar.m(aVar2) | ((((i10 & 112) ^ 48) > 32 && mVar.R(cVar)) || (i10 & 48) == 32) | ((((i10 & 896) ^ 384) > 256 && mVar.R(eVar)) || (i10 & 384) == 256) | mVar.m(null) | ((((i10 & 14) ^ 6) > 4 && mVar.R(m1Var)) || (i10 & 6) == 4) | mVar.m(null);
        Object f12 = mVar.f();
        if (m10 || f12 == y0.m.f51621a.a()) {
            f12 = new x.n() { // from class: x.j
                @Override // x.n
                public final dn.l a() {
                    dn.l f13;
                    f13 = androidx.compose.animation.a.f(m1.a.this, aVar3, m1Var, cVar, eVar, aVar4);
                    return f13;
                }
            };
            mVar.I(f12);
        }
        x.n nVar = (x.n) f12;
        if (y0.p.H()) {
            y0.p.P();
        }
        return nVar;
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final dn.l f(m1.a aVar, m1.a aVar2, m1 m1Var, androidx.compose.animation.c cVar, androidx.compose.animation.e eVar, m1.a aVar3) {
        y3 a10 = aVar != null ? aVar.a(new c(cVar, eVar), new d(cVar, eVar)) : null;
        y3 a11 = aVar2 != null ? aVar2.a(new f(cVar, eVar), new g(cVar, eVar)) : null;
        if (m1Var.h() == x.i.PreEnter) {
            cVar.b().e();
            eVar.b().e();
        } else {
            eVar.b().e();
            cVar.b().e();
        }
        return new e(a10, a11, aVar3 != null ? aVar3.a(h.f1432p, new i(null, cVar, eVar)) : null);
    }

    /* JADX WARN: Removed duplicated region for block: B:57:0x01ec  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public static final l1.i g(m1 m1Var, androidx.compose.animation.c cVar, androidx.compose.animation.e eVar, dn.a aVar, String str, y0.m mVar, int i10, int i11) {
        m1.a aVar2;
        m1.a aVar3;
        boolean z10;
        boolean z11;
        Object f10;
        dn.a aVar4 = (i11 & 4) != 0 ? j.f1437p : aVar;
        if (y0.p.H()) {
            y0.p.Q(28261782, i10, -1, "androidx.compose.animation.createModifier (EnterExitTransition.kt:869)");
        }
        int i12 = i10 & 14;
        androidx.compose.animation.c y10 = y(m1Var, cVar, mVar, (i10 & 112) | i12);
        int i13 = i10 >> 3;
        androidx.compose.animation.e B = B(m1Var, eVar, mVar, (i13 & 112) | i12);
        boolean z12 = true;
        boolean z13 = (y10.b().f() == null && B.b().f() == null) ? false : true;
        boolean z14 = (y10.b().a() == null && B.b().a() == null) ? false : true;
        m1.a aVar5 = null;
        if (z13) {
            mVar.S(-821375963);
            q1 d10 = s1.d(c3.n.f7423b);
            Object f11 = mVar.f();
            if (f11 == y0.m.f51621a.a()) {
                f11 = str + " slide";
                mVar.I(f11);
            }
            m1.a b10 = n1.b(m1Var, d10, (String) f11, mVar, i12 | 384, 0);
            mVar.H();
            aVar2 = b10;
        } else {
            mVar.S(-821278096);
            mVar.H();
            aVar2 = null;
        }
        if (z14) {
            mVar.S(-821202177);
            q1 e10 = s1.e(c3.r.f7432b);
            Object f12 = mVar.f();
            if (f12 == y0.m.f51621a.a()) {
                f12 = str + " shrink/expand";
                mVar.I(f12);
            }
            m1.a b11 = n1.b(m1Var, e10, (String) f12, mVar, i12 | 384, 0);
            mVar.H();
            aVar3 = b11;
        } else {
            mVar.S(-821099041);
            mVar.H();
            aVar3 = null;
        }
        if (z14) {
            mVar.S(-821034002);
            q1 d11 = s1.d(c3.n.f7423b);
            Object f13 = mVar.f();
            if (f13 == y0.m.f51621a.a()) {
                f13 = str + " InterruptionHandlingOffset";
                mVar.I(f13);
            }
            m1.a b12 = n1.b(m1Var, d11, (String) f13, mVar, i12 | 384, 0);
            mVar.H();
            aVar5 = b12;
        } else {
            mVar.S(-820883777);
            mVar.H();
        }
        x.g a10 = y10.b().a();
        if (!((a10 == null || a10.c()) ? false : true)) {
            x.g a11 = B.b().a();
            if (!((a11 == null || a11.c()) ? false : true) && z14) {
                z10 = false;
                boolean z15 = z10;
                x.n e11 = e(m1Var, y10, B, str, mVar, i12 | (i13 & 7168));
                i.a aVar6 = l1.i.f27362a;
                boolean c10 = mVar.c(z15);
                if ((((i10 & 7168) ^ 3072) > 2048 || !mVar.R(aVar4)) && (i10 & 3072) != 2048) {
                    z12 = false;
                }
                z11 = c10 | z12;
                f10 = mVar.f();
                if (!z11 || f10 == y0.m.f51621a.a()) {
                    f10 = new k(z15, aVar4);
                    mVar.I(f10);
                }
                l1.i f14 = androidx.compose.ui.graphics.b.a(aVar6, (dn.l) f10).f(new EnterExitTransitionElement(m1Var, aVar3, aVar5, aVar2, y10, B, aVar4, e11));
                if (y0.p.H()) {
                    y0.p.P();
                }
                return f14;
            }
        }
        z10 = true;
        boolean z152 = z10;
        x.n e112 = e(m1Var, y10, B, str, mVar, i12 | (i13 & 7168));
        i.a aVar62 = l1.i.f27362a;
        boolean c102 = mVar.c(z152);
        if (((i10 & 7168) ^ 3072) > 2048) {
        }
        z12 = false;
        z11 = c102 | z12;
        f10 = mVar.f();
        if (!z11) {
        }
        f10 = new k(z152, aVar4);
        mVar.I(f10);
        l1.i f142 = androidx.compose.ui.graphics.b.a(aVar62, (dn.l) f10).f(new EnterExitTransitionElement(m1Var, aVar3, aVar5, aVar2, y10, B, aVar4, e112));
        if (y0.p.H()) {
        }
        return f142;
    }

    public static final androidx.compose.animation.c h(g0 g0Var, l1.c cVar, boolean z10, dn.l lVar) {
        return new androidx.compose.animation.d(new w(null, null, new x.g(cVar, lVar, g0Var, z10), null, false, null, 59, null));
    }

    public static /* synthetic */ androidx.compose.animation.c i(g0 g0Var, l1.c cVar, boolean z10, dn.l lVar, int i10, Object obj) {
        if ((i10 & 1) != 0) {
            g0Var = y.j.h(BitmapDescriptorFactory.HUE_RED, 400.0f, c3.r.b(f2.d(c3.r.f7432b)), 1, null);
        }
        if ((i10 & 2) != 0) {
            cVar = l1.c.f27332a.c();
        }
        if ((i10 & 4) != 0) {
            z10 = true;
        }
        if ((i10 & 8) != 0) {
            lVar = l.f1440p;
        }
        return h(g0Var, cVar, z10, lVar);
    }

    public static final androidx.compose.animation.c j(g0 g0Var, c.InterfaceC0608c interfaceC0608c, boolean z10, dn.l lVar) {
        return h(g0Var, x(interfaceC0608c), z10, new n(lVar));
    }

    public static /* synthetic */ androidx.compose.animation.c k(g0 g0Var, c.InterfaceC0608c interfaceC0608c, boolean z10, dn.l lVar, int i10, Object obj) {
        if ((i10 & 1) != 0) {
            g0Var = y.j.h(BitmapDescriptorFactory.HUE_RED, 400.0f, c3.r.b(f2.d(c3.r.f7432b)), 1, null);
        }
        if ((i10 & 2) != 0) {
            interfaceC0608c = l1.c.f27332a.a();
        }
        if ((i10 & 4) != 0) {
            z10 = true;
        }
        if ((i10 & 8) != 0) {
            lVar = m.f1441p;
        }
        return j(g0Var, interfaceC0608c, z10, lVar);
    }

    public static final androidx.compose.animation.c l(g0 g0Var, float f10) {
        return new androidx.compose.animation.d(new w(new x.k(f10, g0Var), null, null, null, false, null, 62, null));
    }

    public static /* synthetic */ androidx.compose.animation.c m(g0 g0Var, float f10, int i10, Object obj) {
        if ((i10 & 1) != 0) {
            g0Var = y.j.h(BitmapDescriptorFactory.HUE_RED, 400.0f, null, 5, null);
        }
        if ((i10 & 2) != 0) {
            f10 = 0.0f;
        }
        return l(g0Var, f10);
    }

    public static final androidx.compose.animation.e n(g0 g0Var, float f10) {
        return new androidx.compose.animation.f(new w(new x.k(f10, g0Var), null, null, null, false, null, 62, null));
    }

    public static /* synthetic */ androidx.compose.animation.e o(g0 g0Var, float f10, int i10, Object obj) {
        if ((i10 & 1) != 0) {
            g0Var = y.j.h(BitmapDescriptorFactory.HUE_RED, 400.0f, null, 5, null);
        }
        if ((i10 & 2) != 0) {
            f10 = 0.0f;
        }
        return n(g0Var, f10);
    }

    public static final androidx.compose.animation.e p(g0 g0Var, l1.c cVar, boolean z10, dn.l lVar) {
        return new androidx.compose.animation.f(new w(null, null, new x.g(cVar, lVar, g0Var, z10), null, false, null, 59, null));
    }

    public static /* synthetic */ androidx.compose.animation.e q(g0 g0Var, l1.c cVar, boolean z10, dn.l lVar, int i10, Object obj) {
        if ((i10 & 1) != 0) {
            g0Var = y.j.h(BitmapDescriptorFactory.HUE_RED, 400.0f, c3.r.b(f2.d(c3.r.f7432b)), 1, null);
        }
        if ((i10 & 2) != 0) {
            cVar = l1.c.f27332a.c();
        }
        if ((i10 & 4) != 0) {
            z10 = true;
        }
        if ((i10 & 8) != 0) {
            lVar = o.f1443p;
        }
        return p(g0Var, cVar, z10, lVar);
    }

    public static final androidx.compose.animation.e r(g0 g0Var, c.InterfaceC0608c interfaceC0608c, boolean z10, dn.l lVar) {
        return p(g0Var, x(interfaceC0608c), z10, new q(lVar));
    }

    public static /* synthetic */ androidx.compose.animation.e s(g0 g0Var, c.InterfaceC0608c interfaceC0608c, boolean z10, dn.l lVar, int i10, Object obj) {
        if ((i10 & 1) != 0) {
            g0Var = y.j.h(BitmapDescriptorFactory.HUE_RED, 400.0f, c3.r.b(f2.d(c3.r.f7432b)), 1, null);
        }
        if ((i10 & 2) != 0) {
            interfaceC0608c = l1.c.f27332a.a();
        }
        if ((i10 & 4) != 0) {
            z10 = true;
        }
        if ((i10 & 8) != 0) {
            lVar = p.f1444p;
        }
        return r(g0Var, interfaceC0608c, z10, lVar);
    }

    public static final androidx.compose.animation.c t(g0 g0Var, dn.l lVar) {
        return new androidx.compose.animation.d(new w(null, new x.s(lVar, g0Var), null, null, false, null, 61, null));
    }

    public static final androidx.compose.animation.c u(g0 g0Var, dn.l lVar) {
        return t(g0Var, new r(lVar));
    }

    public static final androidx.compose.animation.e v(g0 g0Var, dn.l lVar) {
        return new androidx.compose.animation.f(new w(null, new x.s(lVar, g0Var), null, null, false, null, 61, null));
    }

    public static final androidx.compose.animation.e w(g0 g0Var, dn.l lVar) {
        return v(g0Var, new s(lVar));
    }

    private static final l1.c x(c.InterfaceC0608c interfaceC0608c) {
        c.a aVar = l1.c.f27332a;
        return kotlin.jvm.internal.t.b(interfaceC0608c, aVar.l()) ? aVar.m() : kotlin.jvm.internal.t.b(interfaceC0608c, aVar.a()) ? aVar.b() : aVar.e();
    }

    public static final androidx.compose.animation.c y(m1 m1Var, androidx.compose.animation.c cVar, y0.m mVar, int i10) {
        if (y0.p.H()) {
            y0.p.Q(21614502, i10, -1, "androidx.compose.animation.trackActiveEnter (EnterExitTransition.kt:910)");
        }
        boolean z10 = (((i10 & 14) ^ 6) > 4 && mVar.R(m1Var)) || (i10 & 6) == 4;
        Object f10 = mVar.f();
        if (z10 || f10 == y0.m.f51621a.a()) {
            f10 = s3.d(cVar, null, 2, null);
            mVar.I(f10);
        }
        y0.q1 q1Var = (y0.q1) f10;
        if (m1Var.h() == m1Var.o() && m1Var.h() == x.i.Visible) {
            if (m1Var.s()) {
                A(q1Var, cVar);
            } else {
                A(q1Var, androidx.compose.animation.c.f1464a.a());
            }
        } else if (m1Var.o() == x.i.Visible) {
            A(q1Var, z(q1Var).c(cVar));
        }
        androidx.compose.animation.c z11 = z(q1Var);
        if (y0.p.H()) {
            y0.p.P();
        }
        return z11;
    }

    private static final androidx.compose.animation.c z(y0.q1 q1Var) {
        return (androidx.compose.animation.c) q1Var.getValue();
    }
}
