package h0;

import androidx.compose.ui.platform.c1;
import com.google.firebase.crashlytics.internal.metadata.UserMetadata;
import d2.h0;
import d2.q0;
import g0.j0;
import java.util.List;
import l1.c;
import net.sqlcipher.database.SQLiteDatabase;
import rm.n0;
import tp.m0;
import y0.l2;
import y0.m;
import y0.n3;
import y0.p0;
import y0.x2;
import y0.y3;
import z.u0;

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

    /* JADX INFO: Access modifiers changed from: package-private */
    /* loaded from: classes.dex */
    public static final class a extends kotlin.jvm.internal.v implements dn.p {
        final /* synthetic */ dn.l A;
        final /* synthetic */ c.b B;
        final /* synthetic */ c.InterfaceC0608c C;
        final /* synthetic */ c0.j D;
        final /* synthetic */ dn.r E;
        final /* synthetic */ int F;
        final /* synthetic */ int G;
        final /* synthetic */ int H;

        /* renamed from: p, reason: collision with root package name */
        final /* synthetic */ l1.i f20419p;

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

        /* renamed from: r, reason: collision with root package name */
        final /* synthetic */ e0.w f20421r;

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

        /* renamed from: t, reason: collision with root package name */
        final /* synthetic */ b0.q f20423t;

        /* renamed from: u, reason: collision with root package name */
        final /* synthetic */ b0.b0 f20424u;

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

        /* renamed from: w, reason: collision with root package name */
        final /* synthetic */ int f20426w;

        /* renamed from: x, reason: collision with root package name */
        final /* synthetic */ float f20427x;

        /* renamed from: y, reason: collision with root package name */
        final /* synthetic */ h0.g f20428y;

        /* renamed from: z, reason: collision with root package name */
        final /* synthetic */ c2.a f20429z;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        a(l1.i iVar, c0 c0Var, e0.w wVar, boolean z10, b0.q qVar, b0.b0 b0Var, boolean z11, int i10, float f10, h0.g gVar, c2.a aVar, dn.l lVar, c.b bVar, c.InterfaceC0608c interfaceC0608c, c0.j jVar, dn.r rVar, int i11, int i12, int i13) {
            super(2);
            this.f20419p = iVar;
            this.f20420q = c0Var;
            this.f20421r = wVar;
            this.f20422s = z10;
            this.f20423t = qVar;
            this.f20424u = b0Var;
            this.f20425v = z11;
            this.f20426w = i10;
            this.f20427x = f10;
            this.f20428y = gVar;
            this.f20429z = aVar;
            this.A = lVar;
            this.B = bVar;
            this.C = interfaceC0608c;
            this.D = jVar;
            this.E = rVar;
            this.F = i11;
            this.G = i12;
            this.H = i13;
        }

        public final void a(y0.m mVar, int i10) {
            c.a(this.f20419p, this.f20420q, this.f20421r, this.f20422s, this.f20423t, this.f20424u, this.f20425v, this.f20426w, this.f20427x, this.f20428y, this.f20429z, this.A, this.B, this.C, this.D, this.E, mVar, l2.a(this.F | 1), l2.a(this.G), this.H);
        }

        @Override // dn.p
        public /* bridge */ /* synthetic */ Object invoke(Object obj, Object obj2) {
            a((y0.m) obj, ((Number) obj2).intValue());
            return n0.f34904a;
        }
    }

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

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

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        b(c0 c0Var) {
            super(0);
            this.f20430p = c0Var;
        }

        @Override // dn.a
        /* renamed from: a, reason: merged with bridge method [inline-methods] */
        public final Integer invoke() {
            return Integer.valueOf(this.f20430p.F());
        }
    }

    /* JADX INFO: Access modifiers changed from: package-private */
    /* renamed from: h0.c$c, reason: collision with other inner class name */
    /* loaded from: classes.dex */
    public static final class C0444c extends kotlin.jvm.internal.v implements dn.a {

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

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        C0444c(c0 c0Var) {
            super(0);
            this.f20431p = c0Var;
        }

        @Override // dn.a
        /* renamed from: a, reason: merged with bridge method [inline-methods] */
        public final Integer invoke() {
            return Integer.valueOf(this.f20431p.F());
        }
    }

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

        /* renamed from: p, reason: collision with root package name */
        int f20432p;

        /* renamed from: q, reason: collision with root package name */
        private /* synthetic */ Object f20433q;

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

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

            /* renamed from: p, reason: collision with root package name */
            int f20435p;

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

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

            /* JADX INFO: Access modifiers changed from: package-private */
            /* renamed from: h0.c$d$a$a, reason: collision with other inner class name */
            /* loaded from: classes.dex */
            public static final class C0445a extends kotlin.coroutines.jvm.internal.k implements dn.p {

                /* renamed from: q, reason: collision with root package name */
                Object f20438q;

                /* renamed from: r, reason: collision with root package name */
                Object f20439r;

                /* renamed from: s, reason: collision with root package name */
                int f20440s;

                /* renamed from: t, reason: collision with root package name */
                private /* synthetic */ Object f20441t;

                /* renamed from: u, reason: collision with root package name */
                final /* synthetic */ c0 f20442u;

                /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
                C0445a(c0 c0Var, vm.d dVar) {
                    super(2, dVar);
                    this.f20442u = c0Var;
                }

                @Override // dn.p
                /* renamed from: b, reason: merged with bridge method [inline-methods] */
                public final Object invoke(d2.b bVar, vm.d dVar) {
                    return ((C0445a) create(bVar, dVar)).invokeSuspend(n0.f34904a);
                }

                @Override // kotlin.coroutines.jvm.internal.a
                public final vm.d create(Object obj, vm.d dVar) {
                    C0445a c0445a = new C0445a(this.f20442u, dVar);
                    c0445a.f20441t = obj;
                    return c0445a;
                }

                /* JADX WARN: Removed duplicated region for block: B:15:0x0057  */
                /* JADX WARN: Removed duplicated region for block: B:19:0x0095  */
                /* JADX WARN: Removed duplicated region for block: B:21:0x0089  */
                /* JADX WARN: Removed duplicated region for block: B:22:0x0086 A[SYNTHETIC] */
                /* JADX WARN: Removed duplicated region for block: B:8:0x0075  */
                /* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:14:0x0065 -> B:6:0x0068). Please report as a decompilation issue!!! */
                @Override // kotlin.coroutines.jvm.internal.a
                /*
                    Code decompiled incorrectly, please refer to instructions dump.
                */
                public final Object invokeSuspend(Object obj) {
                    Object f10;
                    d2.b bVar;
                    d2.b bVar2;
                    d2.y yVar;
                    d2.y yVar2;
                    boolean z10;
                    f10 = wm.d.f();
                    int i10 = this.f20440s;
                    if (i10 == 0) {
                        rm.y.b(obj);
                        bVar = (d2.b) this.f20441t;
                        d2.o oVar = d2.o.Initial;
                        this.f20441t = bVar;
                        this.f20440s = 1;
                        obj = b0.a0.d(bVar, false, oVar, this);
                        if (obj == f10) {
                            return f10;
                        }
                    } else if (i10 == 1) {
                        bVar = (d2.b) this.f20441t;
                        rm.y.b(obj);
                    } else {
                        if (i10 != 2) {
                            throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                        }
                        yVar = (d2.y) this.f20439r;
                        yVar2 = (d2.y) this.f20438q;
                        bVar2 = (d2.b) this.f20441t;
                        rm.y.b(obj);
                        d2.m mVar = (d2.m) obj;
                        List c10 = mVar.c();
                        int size = c10.size();
                        int i11 = 0;
                        while (true) {
                            if (i11 >= size) {
                                z10 = true;
                                break;
                            }
                            if (!d2.n.c((d2.y) c10.get(i11))) {
                                z10 = false;
                                break;
                            }
                            i11++;
                        }
                        if (z10) {
                            yVar = (d2.y) mVar.c().get(0);
                        }
                        if (yVar == null) {
                            d2.o oVar2 = d2.o.Initial;
                            this.f20441t = bVar2;
                            this.f20438q = yVar2;
                            this.f20439r = yVar;
                            this.f20440s = 2;
                            obj = bVar2.P(oVar2, this);
                            if (obj == f10) {
                                return f10;
                            }
                            d2.m mVar2 = (d2.m) obj;
                            List c102 = mVar2.c();
                            int size2 = c102.size();
                            int i112 = 0;
                            while (true) {
                                if (i112 >= size2) {
                                }
                                i112++;
                            }
                            if (z10) {
                            }
                            if (yVar == null) {
                                this.f20442u.h0(r1.g.q(yVar.h(), yVar2.h()));
                                return n0.f34904a;
                            }
                        }
                    }
                    this.f20442u.h0(r1.g.f34318b.c());
                    bVar2 = bVar;
                    yVar = null;
                    yVar2 = (d2.y) obj;
                    if (yVar == null) {
                    }
                }
            }

            /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
            a(h0 h0Var, c0 c0Var, vm.d dVar) {
                super(2, dVar);
                this.f20436q = h0Var;
                this.f20437r = c0Var;
            }

            @Override // kotlin.coroutines.jvm.internal.a
            public final vm.d create(Object obj, vm.d dVar) {
                return new a(this.f20436q, this.f20437r, dVar);
            }

            @Override // kotlin.coroutines.jvm.internal.a
            public final Object invokeSuspend(Object obj) {
                Object f10;
                f10 = wm.d.f();
                int i10 = this.f20435p;
                if (i10 == 0) {
                    rm.y.b(obj);
                    h0 h0Var = this.f20436q;
                    C0445a c0445a = new C0445a(this.f20437r, null);
                    this.f20435p = 1;
                    if (b0.o.c(h0Var, c0445a, this) == f10) {
                        return f10;
                    }
                } else {
                    if (i10 != 1) {
                        throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                    }
                    rm.y.b(obj);
                }
                return n0.f34904a;
            }

            @Override // dn.p
            public final Object invoke(m0 m0Var, vm.d dVar) {
                return ((a) create(m0Var, dVar)).invokeSuspend(n0.f34904a);
            }
        }

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        d(c0 c0Var, vm.d dVar) {
            super(2, dVar);
            this.f20434r = c0Var;
        }

        @Override // dn.p
        /* renamed from: b, reason: merged with bridge method [inline-methods] */
        public final Object invoke(h0 h0Var, vm.d dVar) {
            return ((d) create(h0Var, dVar)).invokeSuspend(n0.f34904a);
        }

        @Override // kotlin.coroutines.jvm.internal.a
        public final vm.d create(Object obj, vm.d dVar) {
            d dVar2 = new d(this.f20434r, dVar);
            dVar2.f20433q = obj;
            return dVar2;
        }

        @Override // kotlin.coroutines.jvm.internal.a
        public final Object invokeSuspend(Object obj) {
            Object f10;
            f10 = wm.d.f();
            int i10 = this.f20432p;
            if (i10 == 0) {
                rm.y.b(obj);
                a aVar = new a((h0) this.f20433q, this.f20434r, null);
                this.f20432p = 1;
                if (tp.n0.f(aVar, this) == f10) {
                    return f10;
                }
            } else {
                if (i10 != 1) {
                    throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                }
                rm.y.b(obj);
            }
            return n0.f34904a;
        }
    }

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

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

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

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

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        f(y3 y3Var, y3 y3Var2, dn.a aVar) {
            super(0);
            this.f20443p = y3Var;
            this.f20444q = y3Var2;
            this.f20445r = aVar;
        }

        @Override // dn.a
        /* renamed from: a, reason: merged with bridge method [inline-methods] */
        public final p invoke() {
            return new p((dn.r) this.f20443p.getValue(), (dn.l) this.f20444q.getValue(), ((Number) this.f20445r.invoke()).intValue());
        }
    }

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

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

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

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        g(y3 y3Var, c0 c0Var) {
            super(0);
            this.f20446p = y3Var;
            this.f20447q = c0Var;
        }

        @Override // dn.a
        /* renamed from: a, reason: merged with bridge method [inline-methods] */
        public final r invoke() {
            p pVar = (p) this.f20446p.getValue();
            return new r(this.f20447q, pVar, new j0(this.f20447q.E(), pVar));
        }
    }

    /* JADX WARN: Removed duplicated region for block: B:138:0x0491  */
    /* JADX WARN: Removed duplicated region for block: B:13:0x0072  */
    /* JADX WARN: Removed duplicated region for block: B:140:0x0221  */
    /* JADX WARN: Removed duplicated region for block: B:141:0x020a  */
    /* JADX WARN: Removed duplicated region for block: B:142:0x01c4  */
    /* JADX WARN: Removed duplicated region for block: B:149:0x01a4  */
    /* JADX WARN: Removed duplicated region for block: B:155:0x0189  */
    /* JADX WARN: Removed duplicated region for block: B:161:0x016e  */
    /* JADX WARN: Removed duplicated region for block: B:167:0x0151  */
    /* JADX WARN: Removed duplicated region for block: B:174:0x013a  */
    /* JADX WARN: Removed duplicated region for block: B:17:0x0093  */
    /* JADX WARN: Removed duplicated region for block: B:182:0x011c  */
    /* JADX WARN: Removed duplicated region for block: B:189:0x0101  */
    /* JADX WARN: Removed duplicated region for block: B:196:0x00e3  */
    /* JADX WARN: Removed duplicated region for block: B:203:0x00c7  */
    /* JADX WARN: Removed duplicated region for block: B:209:0x00af  */
    /* JADX WARN: Removed duplicated region for block: B:20:0x00ac  */
    /* JADX WARN: Removed duplicated region for block: B:216:0x0096  */
    /* JADX WARN: Removed duplicated region for block: B:223:0x0075  */
    /* JADX WARN: Removed duplicated region for block: B:23:0x00c3  */
    /* JADX WARN: Removed duplicated region for block: B:27:0x00de  */
    /* JADX WARN: Removed duplicated region for block: B:30:0x00fc  */
    /* JADX WARN: Removed duplicated region for block: B:33:0x0118  */
    /* JADX WARN: Removed duplicated region for block: B:37:0x0137  */
    /* JADX WARN: Removed duplicated region for block: B:40:0x014e  */
    /* JADX WARN: Removed duplicated region for block: B:44:0x016b  */
    /* JADX WARN: Removed duplicated region for block: B:48:0x0186  */
    /* JADX WARN: Removed duplicated region for block: B:52:0x01a1  */
    /* JADX WARN: Removed duplicated region for block: B:56:0x01bf  */
    /* JADX WARN: Removed duplicated region for block: B:59:0x01e1  */
    /* JADX WARN: Removed duplicated region for block: B:72:0x01ff  */
    /* JADX WARN: Removed duplicated region for block: B:74:0x0202  */
    /* JADX WARN: Removed duplicated region for block: B:77:0x0212  */
    /* JADX WARN: Removed duplicated region for block: B:80:0x021e  */
    /* JADX WARN: Removed duplicated region for block: B:82:0x0224  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public static final void a(l1.i iVar, c0 c0Var, e0.w wVar, boolean z10, b0.q qVar, b0.b0 b0Var, boolean z11, int i10, float f10, h0.g gVar, c2.a aVar, dn.l lVar, c.b bVar, c.InterfaceC0608c interfaceC0608c, c0.j jVar, dn.r rVar, y0.m mVar, int i11, int i12, int i13) {
        int i14;
        int i15;
        int i16;
        int i17;
        int i18;
        y0.m mVar2;
        int i19;
        boolean z12;
        boolean z13;
        m0 m0Var;
        int i20;
        boolean z14;
        int i21;
        float f11;
        int i22;
        y0.m r10 = mVar.r(538371694);
        if ((i13 & 1) != 0) {
            i14 = i11 | 6;
        } else if ((i11 & 6) == 0) {
            i14 = (r10.R(iVar) ? 4 : 2) | i11;
        } else {
            i14 = i11;
        }
        if ((i13 & 2) != 0) {
            i14 |= 48;
        } else if ((i11 & 48) == 0) {
            i14 |= r10.R(c0Var) ? 32 : 16;
        }
        if ((i13 & 4) != 0) {
            i14 |= 384;
        } else if ((i11 & 384) == 0) {
            i14 |= r10.R(wVar) ? 256 : 128;
            if ((i13 & 8) == 0) {
                i14 |= 3072;
            } else if ((i11 & 3072) == 0) {
                i14 |= r10.c(z10) ? 2048 : 1024;
                if ((i13 & 16) != 0) {
                    i14 |= 24576;
                } else if ((i11 & 24576) == 0) {
                    i14 |= r10.R(qVar) ? 16384 : 8192;
                }
                if ((i13 & 32) != 0) {
                    i14 |= 196608;
                } else if ((i11 & 196608) == 0) {
                    i14 |= r10.R(b0Var) ? 131072 : 65536;
                }
                if ((i13 & 64) == 0) {
                    i22 = (1572864 & i11) == 0 ? r10.c(z11) ? 1048576 : 524288 : 1572864;
                    i15 = i13 & 128;
                    if (i15 == 0) {
                        i14 |= 12582912;
                        i16 = i10;
                    } else {
                        i16 = i10;
                        if ((i11 & 12582912) == 0) {
                            i14 |= r10.i(i16) ? 8388608 : 4194304;
                        }
                    }
                    i17 = i13 & 256;
                    if (i17 == 0) {
                        i14 |= 100663296;
                    } else if ((i11 & 100663296) == 0) {
                        i14 |= r10.h(f10) ? 67108864 : 33554432;
                    }
                    if ((i13 & 512) == 0) {
                        i14 |= 805306368;
                    } else if ((805306368 & i11) == 0) {
                        i14 |= r10.R(gVar) ? 536870912 : SQLiteDatabase.CREATE_IF_NECESSARY;
                        if ((i13 & UserMetadata.MAX_ATTRIBUTE_SIZE) != 0) {
                            i18 = i12 | 6;
                        } else if ((i12 & 6) == 0) {
                            i18 = (r10.m(aVar) ? 4 : 2) | i12;
                        } else {
                            i18 = i12;
                        }
                        if ((i13 & 2048) != 0) {
                            i18 |= 48;
                        } else if ((i12 & 48) == 0) {
                            i18 |= r10.m(lVar) ? 32 : 16;
                            if ((i13 & 4096) == 0) {
                                i18 |= 384;
                            } else if ((i12 & 384) == 0) {
                                i18 |= r10.R(bVar) ? 256 : 128;
                                if ((i13 & UserMetadata.MAX_INTERNAL_KEY_SIZE) != 0) {
                                    i18 |= 3072;
                                } else if ((i12 & 3072) == 0) {
                                    i18 |= r10.R(interfaceC0608c) ? 2048 : 1024;
                                    if ((i13 & 16384) == 0) {
                                        i18 |= 24576;
                                    } else if ((i12 & 24576) == 0) {
                                        i18 |= r10.R(jVar) ? 16384 : 8192;
                                        if ((i13 & 32768) != 0) {
                                            i18 |= 196608;
                                        } else if ((i12 & 196608) == 0) {
                                            i18 |= r10.m(rVar) ? 131072 : 65536;
                                        }
                                        if ((i14 & 306783379) != 306783378 && (74899 & i18) == 74898 && r10.v()) {
                                            r10.A();
                                            f11 = f10;
                                            mVar2 = r10;
                                            i21 = i16;
                                        } else {
                                            if (i15 != 0) {
                                                i16 = 0;
                                            }
                                            float t10 = i17 != 0 ? c3.h.t(0) : f10;
                                            if (y0.p.H()) {
                                                y0.p.Q(538371694, i14, i18, "androidx.compose.foundation.pager.Pager (LazyLayoutPager.kt:101)");
                                            }
                                            if (!(i16 >= 0)) {
                                                throw new IllegalArgumentException(("beyondViewportPageCount should be greater than or equal to 0, you selected " + i16).toString());
                                            }
                                            int i23 = i14 & 112;
                                            boolean z15 = i23 == 32;
                                            Object f12 = r10.f();
                                            if (z15 || f12 == y0.m.f51621a.a()) {
                                                f12 = new C0444c(c0Var);
                                                r10.I(f12);
                                            }
                                            int i24 = i14 >> 3;
                                            int i25 = i24 & 14;
                                            int i26 = i18 >> 12;
                                            int i27 = i14;
                                            int i28 = i18;
                                            int i29 = i16;
                                            dn.a c10 = c(c0Var, rVar, lVar, (dn.a) f12, r10, i25 | (i26 & 112) | ((i18 << 3) & 896));
                                            Object f13 = r10.f();
                                            m.a aVar2 = y0.m.f51621a;
                                            if (f13 == aVar2.a()) {
                                                y0.b0 b0Var2 = new y0.b0(p0.i(vm.h.f40193p, r10));
                                                r10.I(b0Var2);
                                                f13 = b0Var2;
                                            }
                                            m0 a10 = ((y0.b0) f13).a();
                                            boolean z16 = i23 == 32;
                                            Object f14 = r10.f();
                                            if (z16 || f14 == aVar2.a()) {
                                                f14 = new b(c0Var);
                                                r10.I(f14);
                                            }
                                            int i30 = i27 & 7168;
                                            int i31 = (i27 & 896) | i23 | i30 | (57344 & i27);
                                            int i32 = i27 >> 6;
                                            int i33 = i28 << 18;
                                            dn.p a11 = t.a(c10, c0Var, wVar, z10, qVar, i29, t10, gVar, bVar, interfaceC0608c, jVar, a10, (dn.a) f14, r10, i31 | (i32 & 458752) | (3670016 & i32) | (29360128 & i32) | (234881024 & i33) | (i33 & 1879048192), i26 & 14);
                                            b0.q qVar2 = b0.q.Vertical;
                                            if (qVar == qVar2) {
                                                z12 = true;
                                                mVar2 = r10;
                                                i19 = i25;
                                            } else {
                                                mVar2 = r10;
                                                i19 = i25;
                                                z12 = false;
                                            }
                                            g0.e0 a12 = z.a(c0Var, z12, mVar2, i19);
                                            boolean z17 = (i23 == 32) | ((i27 & 458752) == 131072);
                                            Object f15 = mVar2.f();
                                            if (z17 || f15 == aVar2.a()) {
                                                f15 = new e0(b0Var, c0Var);
                                                mVar2.I(f15);
                                            }
                                            e0 e0Var = (e0) f15;
                                            b0.d dVar = (b0.d) mVar2.t(b0.e.a());
                                            boolean R = (i23 == 32) | mVar2.R(dVar);
                                            Object f16 = mVar2.f();
                                            if (R || f16 == aVar2.a()) {
                                                f16 = new j(c0Var, dVar);
                                                mVar2.I(f16);
                                            }
                                            j jVar2 = (j) f16;
                                            l1.i c11 = androidx.compose.foundation.lazy.layout.f.c(iVar.f(c0Var.P()).f(c0Var.t()), c10, a12, qVar, z11, z10, mVar2, (i24 & 7168) | (57344 & i32) | ((i27 << 6) & 458752));
                                            if (qVar == qVar2) {
                                                z13 = z11;
                                                m0Var = a10;
                                                z14 = true;
                                                i20 = i23;
                                            } else {
                                                z13 = z11;
                                                m0Var = a10;
                                                i20 = i23;
                                                z14 = false;
                                            }
                                            int i34 = i27 << 3;
                                            g0.v.a(c10, androidx.compose.ui.input.nestedscroll.a.b(b(u0.a(g0.l.b(m.e(c11, c0Var, z14, m0Var, z13), h.a(c0Var, i29, mVar2, ((i27 >> 18) & 112) | i19), c0Var.u(), z10, (c3.t) mVar2.t(c1.j()), qVar, z11, mVar2, (a1.b.f110s << 6) | i30 | (i34 & 458752) | (i27 & 3670016)), c0Var, qVar, z11, z10, e0Var, c0Var.A(), jVar2, mVar2, i20 | (i32 & 896) | ((i27 >> 9) & 7168) | (i34 & 57344), 0), c0Var), aVar, null, 2, null), c0Var.M(), a11, mVar2, 0, 0);
                                            if (y0.p.H()) {
                                                y0.p.P();
                                            }
                                            i21 = i29;
                                            f11 = t10;
                                        }
                                        x2 y10 = mVar2.y();
                                        if (y10 != null) {
                                            y10.a(new a(iVar, c0Var, wVar, z10, qVar, b0Var, z11, i21, f11, gVar, aVar, lVar, bVar, interfaceC0608c, jVar, rVar, i11, i12, i13));
                                            return;
                                        }
                                        return;
                                    }
                                    if ((i13 & 32768) != 0) {
                                    }
                                    if ((i14 & 306783379) != 306783378) {
                                    }
                                    if (i15 != 0) {
                                    }
                                    if (i17 != 0) {
                                    }
                                    if (y0.p.H()) {
                                    }
                                    if (!(i16 >= 0)) {
                                    }
                                }
                                if ((i13 & 16384) == 0) {
                                }
                                if ((i13 & 32768) != 0) {
                                }
                                if ((i14 & 306783379) != 306783378) {
                                }
                                if (i15 != 0) {
                                }
                                if (i17 != 0) {
                                }
                                if (y0.p.H()) {
                                }
                                if (!(i16 >= 0)) {
                                }
                            }
                            if ((i13 & UserMetadata.MAX_INTERNAL_KEY_SIZE) != 0) {
                            }
                            if ((i13 & 16384) == 0) {
                            }
                            if ((i13 & 32768) != 0) {
                            }
                            if ((i14 & 306783379) != 306783378) {
                            }
                            if (i15 != 0) {
                            }
                            if (i17 != 0) {
                            }
                            if (y0.p.H()) {
                            }
                            if (!(i16 >= 0)) {
                            }
                        }
                        if ((i13 & 4096) == 0) {
                        }
                        if ((i13 & UserMetadata.MAX_INTERNAL_KEY_SIZE) != 0) {
                        }
                        if ((i13 & 16384) == 0) {
                        }
                        if ((i13 & 32768) != 0) {
                        }
                        if ((i14 & 306783379) != 306783378) {
                        }
                        if (i15 != 0) {
                        }
                        if (i17 != 0) {
                        }
                        if (y0.p.H()) {
                        }
                        if (!(i16 >= 0)) {
                        }
                    }
                    if ((i13 & UserMetadata.MAX_ATTRIBUTE_SIZE) != 0) {
                    }
                    if ((i13 & 2048) != 0) {
                    }
                    if ((i13 & 4096) == 0) {
                    }
                    if ((i13 & UserMetadata.MAX_INTERNAL_KEY_SIZE) != 0) {
                    }
                    if ((i13 & 16384) == 0) {
                    }
                    if ((i13 & 32768) != 0) {
                    }
                    if ((i14 & 306783379) != 306783378) {
                    }
                    if (i15 != 0) {
                    }
                    if (i17 != 0) {
                    }
                    if (y0.p.H()) {
                    }
                    if (!(i16 >= 0)) {
                    }
                }
                i14 |= i22;
                i15 = i13 & 128;
                if (i15 == 0) {
                }
                i17 = i13 & 256;
                if (i17 == 0) {
                }
                if ((i13 & 512) == 0) {
                }
                if ((i13 & UserMetadata.MAX_ATTRIBUTE_SIZE) != 0) {
                }
                if ((i13 & 2048) != 0) {
                }
                if ((i13 & 4096) == 0) {
                }
                if ((i13 & UserMetadata.MAX_INTERNAL_KEY_SIZE) != 0) {
                }
                if ((i13 & 16384) == 0) {
                }
                if ((i13 & 32768) != 0) {
                }
                if ((i14 & 306783379) != 306783378) {
                }
                if (i15 != 0) {
                }
                if (i17 != 0) {
                }
                if (y0.p.H()) {
                }
                if (!(i16 >= 0)) {
                }
            }
            if ((i13 & 16) != 0) {
            }
            if ((i13 & 32) != 0) {
            }
            if ((i13 & 64) == 0) {
            }
            i14 |= i22;
            i15 = i13 & 128;
            if (i15 == 0) {
            }
            i17 = i13 & 256;
            if (i17 == 0) {
            }
            if ((i13 & 512) == 0) {
            }
            if ((i13 & UserMetadata.MAX_ATTRIBUTE_SIZE) != 0) {
            }
            if ((i13 & 2048) != 0) {
            }
            if ((i13 & 4096) == 0) {
            }
            if ((i13 & UserMetadata.MAX_INTERNAL_KEY_SIZE) != 0) {
            }
            if ((i13 & 16384) == 0) {
            }
            if ((i13 & 32768) != 0) {
            }
            if ((i14 & 306783379) != 306783378) {
            }
            if (i15 != 0) {
            }
            if (i17 != 0) {
            }
            if (y0.p.H()) {
            }
            if (!(i16 >= 0)) {
            }
        }
        if ((i13 & 8) == 0) {
        }
        if ((i13 & 16) != 0) {
        }
        if ((i13 & 32) != 0) {
        }
        if ((i13 & 64) == 0) {
        }
        i14 |= i22;
        i15 = i13 & 128;
        if (i15 == 0) {
        }
        i17 = i13 & 256;
        if (i17 == 0) {
        }
        if ((i13 & 512) == 0) {
        }
        if ((i13 & UserMetadata.MAX_ATTRIBUTE_SIZE) != 0) {
        }
        if ((i13 & 2048) != 0) {
        }
        if ((i13 & 4096) == 0) {
        }
        if ((i13 & UserMetadata.MAX_INTERNAL_KEY_SIZE) != 0) {
        }
        if ((i13 & 16384) == 0) {
        }
        if ((i13 & 32768) != 0) {
        }
        if ((i14 & 306783379) != 306783378) {
        }
        if (i15 != 0) {
        }
        if (i17 != 0) {
        }
        if (y0.p.H()) {
        }
        if (!(i16 >= 0)) {
        }
    }

    private static final l1.i b(l1.i iVar, c0 c0Var) {
        return iVar.f(q0.c(l1.i.f27362a, c0Var, new d(c0Var, null)));
    }

    private static final dn.a c(c0 c0Var, dn.r rVar, dn.l lVar, dn.a aVar, y0.m mVar, int i10) {
        if (y0.p.H()) {
            y0.p.Q(-1372505274, i10, -1, "androidx.compose.foundation.pager.rememberPagerItemProviderLambda (LazyLayoutPager.kt:258)");
        }
        y3 o10 = n3.o(rVar, mVar, (i10 >> 3) & 14);
        y3 o11 = n3.o(lVar, mVar, (i10 >> 6) & 14);
        boolean R = ((((i10 & 14) ^ 6) > 4 && mVar.R(c0Var)) || (i10 & 6) == 4) | mVar.R(o10) | mVar.R(o11) | ((((i10 & 7168) ^ 3072) > 2048 && mVar.R(aVar)) || (i10 & 3072) == 2048);
        Object f10 = mVar.f();
        if (R || f10 == y0.m.f51621a.a()) {
            f10 = new kotlin.jvm.internal.e0(n3.e(n3.n(), new g(n3.e(n3.n(), new f(o10, o11, aVar)), c0Var))) { // from class: h0.c.e
                @Override // kn.m
                public Object get() {
                    return ((y3) this.receiver).getValue();
                }
            };
            mVar.I(f10);
        }
        kn.m mVar2 = (kn.m) f10;
        if (y0.p.H()) {
            y0.p.P();
        }
        return mVar2;
    }
}
