package I0;

import G0.AbstractC0244a;
import i0.AbstractC2254r;
import n.C2571F;
import p0.AbstractC2686D;
import p0.C2714u;
import p0.InterfaceC2712s;

/* JADX INFO: loaded from: classes.dex */
public final class A extends AbstractC0300j0 {

    /* JADX INFO: renamed from: W, reason: collision with root package name */
    public static final I2.O f2127W;

    /* JADX INFO: renamed from: U, reason: collision with root package name */
    public InterfaceC0315y f2128U;

    /* JADX INFO: renamed from: V, reason: collision with root package name */
    public C0316z f2129V;

    static {
        I2.O oI = AbstractC2686D.i();
        oI.g(C2714u.f22942i);
        oI.m(1.0f);
        oI.n(1);
        f2127W = oI;
    }

    public A(H h5, InterfaceC0315y interfaceC0315y) {
        super(h5);
        this.f2128U = interfaceC0315y;
        this.f2129V = h5.l != null ? new C0316z(this) : null;
        if ((interfaceC0315y.getNode().getKindSet$ui() & 512) != 0) {
            throw new ClassCastException();
        }
    }

    @Override // G0.InterfaceC0273s
    public final int G(int i6) {
        InterfaceC0315y interfaceC0315y = this.f2128U;
        AbstractC0300j0 abstractC0300j0 = this.f2422s;
        kotlin.jvm.internal.o.e(abstractC0300j0);
        return interfaceC0315y.minIntrinsicWidth(this, abstractC0300j0, i6);
    }

    @Override // G0.InterfaceC0273s
    public final int K(int i6) {
        InterfaceC0315y interfaceC0315y = this.f2128U;
        AbstractC0300j0 abstractC0300j0 = this.f2422s;
        kotlin.jvm.internal.o.e(abstractC0300j0);
        return interfaceC0315y.maxIntrinsicWidth(this, abstractC0300j0, i6);
    }

    @Override // G0.Z
    public final G0.q0 Q(long j4) throws Throwable {
        u0(j4);
        InterfaceC0315y interfaceC0315y = this.f2128U;
        AbstractC0300j0 abstractC0300j0 = this.f2422s;
        kotlin.jvm.internal.o.e(abstractC0300j0);
        o1(interfaceC0315y.mo0measure3p2s80s(this, abstractC0300j0, j4));
        f1();
        return this;
    }

    @Override // I0.AbstractC0300j0
    public final void Q0() {
        if (this.f2129V == null) {
            this.f2129V = new C0316z(this);
        }
    }

    @Override // I0.AbstractC0300j0
    public final Q T0() {
        return this.f2129V;
    }

    @Override // I0.AbstractC0300j0
    public final AbstractC2254r V0() {
        return this.f2128U.getNode();
    }

    @Override // G0.InterfaceC0273s
    public final int d(int i6) {
        InterfaceC0315y interfaceC0315y = this.f2128U;
        AbstractC0300j0 abstractC0300j0 = this.f2422s;
        kotlin.jvm.internal.o.e(abstractC0300j0);
        return interfaceC0315y.maxIntrinsicHeight(this, abstractC0300j0, i6);
    }

    @Override // G0.InterfaceC0273s
    public final int j0(int i6) {
        InterfaceC0315y interfaceC0315y = this.f2128U;
        AbstractC0300j0 abstractC0300j0 = this.f2422s;
        kotlin.jvm.internal.o.e(abstractC0300j0);
        return interfaceC0315y.minIntrinsicHeight(this, abstractC0300j0, i6);
    }

    @Override // I0.AbstractC0300j0
    public final void k1(InterfaceC2712s interfaceC2712s, s0.b bVar) {
        AbstractC0300j0 abstractC0300j0;
        AbstractC0300j0 abstractC0300j02 = this.f2422s;
        kotlin.jvm.internal.o.e(abstractC0300j02);
        abstractC0300j02.O0(interfaceC2712s, bVar);
        if (!((J0.A) K.a(this.f2421r)).getShowLayoutBounds() || (abstractC0300j0 = this.f2422s) == null) {
            return;
        }
        if (h1.l.a(this.f2000c, abstractC0300j0.f2000c) && h1.j.a(abstractC0300j0.f2408C, 0L)) {
            return;
        }
        long j4 = this.f2000c;
        interfaceC2712s.i(0.5f, 0.5f, ((int) (j4 >> 32)) - 0.5f, ((int) (j4 & 4294967295L)) - 0.5f, f2127W);
    }

    @Override // G0.q0
    public final void s0(long j4, float f6, J4.c cVar) throws Throwable {
        l1(j4, f6, cVar);
        if (this.f2246m) {
            return;
        }
        g1();
        AbstractC0300j0 abstractC0300j0 = this.f2422s;
        kotlin.jvm.internal.o.e(abstractC0300j0);
        abstractC0300j0.f2247n = this.f2247n;
        D0().c();
        abstractC0300j0.f2247n = false;
    }

    @Override // I0.P
    public final int w0(AbstractC0244a abstractC0244a) {
        C0316z c0316z = this.f2129V;
        if (c0316z == null) {
            return AbstractC0303l.c(this, abstractC0244a);
        }
        C2571F c2571f = c0316z.f2256w;
        int iA = c2571f.a(abstractC0244a);
        if (iA >= 0) {
            return c2571f.f21372c[iA];
        }
        return Integer.MIN_VALUE;
    }

    public final void w1(InterfaceC0315y interfaceC0315y) {
        if (!interfaceC0315y.equals(this.f2128U) && (interfaceC0315y.getNode().getKindSet$ui() & 512) != 0) {
            throw new ClassCastException();
        }
        this.f2128U = interfaceC0315y;
    }
}
