package f0;

import g0.d;
import java.util.List;
import rm.n0;
import y0.l2;
import y0.x2;

/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes.dex */
public final class n implements m {

    /* renamed from: a, reason: collision with root package name */
    private final b0 f17434a;

    /* renamed from: b, reason: collision with root package name */
    private final k f17435b;

    /* renamed from: c, reason: collision with root package name */
    private final d f17436c;

    /* renamed from: d, reason: collision with root package name */
    private final androidx.compose.foundation.lazy.layout.c f17437d;

    /* 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 {

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

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        a(int i10) {
            super(2);
            this.f17439q = i10;
        }

        public final void a(y0.m mVar, int i10) {
            if ((i10 & 3) == 2 && mVar.v()) {
                mVar.A();
                return;
            }
            if (y0.p.H()) {
                y0.p.Q(-824725566, i10, -1, "androidx.compose.foundation.lazy.LazyListItemProviderImpl.Item.<anonymous> (LazyListItemProvider.kt:77)");
            }
            k kVar = n.this.f17435b;
            int i11 = this.f17439q;
            n nVar = n.this;
            d.a aVar = kVar.e().get(i11);
            ((j) aVar.c()).a().j(nVar.e(), Integer.valueOf(i11 - aVar.b()), mVar, 0);
            if (y0.p.H()) {
                y0.p.P();
            }
        }

        @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.p {

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

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

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

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        b(int i10, Object obj, int i11) {
            super(2);
            this.f17441q = i10;
            this.f17442r = obj;
            this.f17443s = i11;
        }

        public final void a(y0.m mVar, int i10) {
            n.this.h(this.f17441q, this.f17442r, mVar, l2.a(this.f17443s | 1));
        }

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

    public n(b0 b0Var, k kVar, d dVar, androidx.compose.foundation.lazy.layout.c cVar) {
        this.f17434a = b0Var;
        this.f17435b = kVar;
        this.f17436c = dVar;
        this.f17437d = cVar;
    }

    @Override // g0.s
    public int a() {
        return this.f17435b.f();
    }

    @Override // g0.s
    public Object b(int i10) {
        Object b10 = f().b(i10);
        return b10 == null ? this.f17435b.g(i10) : b10;
    }

    @Override // g0.s
    public int c(Object obj) {
        return f().c(obj);
    }

    @Override // g0.s
    public Object d(int i10) {
        return this.f17435b.d(i10);
    }

    @Override // f0.m
    public d e() {
        return this.f17436c;
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj instanceof n) {
            return kotlin.jvm.internal.t.b(this.f17435b, ((n) obj).f17435b);
        }
        return false;
    }

    @Override // f0.m
    public androidx.compose.foundation.lazy.layout.c f() {
        return this.f17437d;
    }

    @Override // f0.m
    public List g() {
        return this.f17435b.h();
    }

    @Override // g0.s
    public void h(int i10, Object obj, y0.m mVar, int i11) {
        int i12;
        y0.m r10 = mVar.r(-462424778);
        if ((i11 & 6) == 0) {
            i12 = (r10.i(i10) ? 4 : 2) | i11;
        } else {
            i12 = i11;
        }
        if ((i11 & 48) == 0) {
            i12 |= r10.m(obj) ? 32 : 16;
        }
        if ((i11 & 384) == 0) {
            i12 |= r10.R(this) ? 256 : 128;
        }
        if ((i12 & 147) == 146 && r10.v()) {
            r10.A();
        } else {
            if (y0.p.H()) {
                y0.p.Q(-462424778, i12, -1, "androidx.compose.foundation.lazy.LazyListItemProviderImpl.Item (LazyListItemProvider.kt:75)");
            }
            g0.c0.a(obj, i10, this.f17434a.A(), g1.c.e(-824725566, true, new a(i10), r10, 54), r10, ((i12 >> 3) & 14) | 3072 | ((i12 << 3) & 112));
            if (y0.p.H()) {
                y0.p.P();
            }
        }
        x2 y10 = r10.y();
        if (y10 != null) {
            y10.a(new b(i10, obj, i11));
        }
    }

    public int hashCode() {
        return this.f17435b.hashCode();
    }
}
