package G0;

import I0.AbstractC0303l;
import I0.C0290e0;
import i0.AbstractC2254r;
import java.util.List;
import n.AbstractC2589p;
import n.C2567B;

/* JADX INFO: loaded from: classes.dex */
public final class T implements z0 {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final C2567B f1928a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final /* synthetic */ W f1929b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final /* synthetic */ Object f1930c;

    public T(W w6, Object obj) {
        this.f1929b = w6;
        this.f1930c = obj;
        int[] iArr = AbstractC2589p.f21462a;
        this.f1928a = new C2567B();
    }

    @Override // G0.z0
    public final int a() {
        List listL;
        I0.H h5 = (I0.H) this.f1929b.f1944m.d(this.f1930c);
        if (h5 == null || (listL = h5.l()) == null) {
            return 0;
        }
        return listL.size();
    }

    @Override // G0.z0
    public final long b(int i6) {
        I0.H h5 = (I0.H) this.f1929b.f1944m.d(this.f1930c);
        if (h5 == null || !h5.F()) {
            return 0L;
        }
        int size = h5.l().size();
        if (i6 < 0 || i6 >= size) {
            F0.a.d("Index (" + i6 + ") is out of bound of [0, " + size + ')');
        }
        if (!this.f1928a.b(i6)) {
            return 0L;
        }
        return (((long) ((I0.H) h5.l().get(i6)).f2163K.f2227p.f1998a) << 32) | (((long) ((I0.H) h5.l().get(i6)).f2163K.f2227p.f1999b) & 4294967295L);
    }

    @Override // G0.z0
    public final void c(int i6, long j4) {
        W w6 = this.f1929b;
        I0.H h5 = (I0.H) w6.f1944m.d(this.f1930c);
        if (h5 == null || !h5.F()) {
            return;
        }
        int size = h5.l().size();
        if (i6 < 0 || i6 >= size) {
            F0.a.d("Index (" + i6 + ") is out of bound of [0, " + size + ')');
        }
        if (h5.G()) {
            F0.a.a("Pre-measure called on node that is not placed");
        }
        I0.H h6 = w6.f1936a;
        h6.f2190u = true;
        ((J0.A) I0.K.a(h5)).u((I0.H) h5.l().get(i6), j4);
        h6.f2190u = false;
        this.f1928a.a(i6);
    }

    @Override // G0.z0
    public final void d(F.g0 g0Var) {
        C0290e0 c0290e0;
        AbstractC2254r abstractC2254r;
        I0.H h5 = (I0.H) this.f1929b.f1944m.d(this.f1930c);
        if (h5 == null || (c0290e0 = h5.f2162J) == null || (abstractC2254r = (AbstractC2254r) c0290e0.f2365g) == null) {
            return;
        }
        AbstractC0303l.y(abstractC2254r, "androidx.compose.foundation.lazy.layout.TraversablePrefetchStateNode", g0Var);
    }

    @Override // G0.z0
    public final void dispose() {
        W.a(this.f1929b, this.f1930c);
    }
}
