package B;

import h1.C2069a;
import i0.C2239c;
import i0.InterfaceC2242f;
import i0.InterfaceC2255s;

/* JADX INFO: loaded from: classes.dex */
public final class B implements A, InterfaceC0092w {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final G0.C0 f112a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final long f113b;

    public B(G0.C0 c02, long j4) {
        this.f112a = c02;
        this.f113b = j4;
    }

    public final float a() {
        long j4 = this.f113b;
        if (!C2069a.c(j4)) {
            return Float.POSITIVE_INFINITY;
        }
        return this.f112a.L(C2069a.g(j4));
    }

    @Override // B.InterfaceC0092w
    public final InterfaceC2255s align(InterfaceC2255s interfaceC2255s, InterfaceC2242f interfaceC2242f) {
        return interfaceC2255s.then(new C0077o(interfaceC2242f, false));
    }

    public final float b() {
        long j4 = this.f113b;
        if (!C2069a.d(j4)) {
            return Float.POSITIVE_INFINITY;
        }
        return this.f112a.L(C2069a.h(j4));
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof B)) {
            return false;
        }
        B b5 = (B) obj;
        return kotlin.jvm.internal.o.c(this.f112a, b5.f112a) && C2069a.b(this.f113b, b5.f113b);
    }

    public final int hashCode() {
        return Long.hashCode(this.f113b) + (this.f112a.hashCode() * 31);
    }

    @Override // B.InterfaceC0092w
    public final InterfaceC2255s matchParentSize(InterfaceC2255s interfaceC2255s) {
        return interfaceC2255s.then(new C0077o(C2239c.f18798e, true));
    }

    public final String toString() {
        return "BoxWithConstraintsScopeImpl(density=" + this.f112a + ", constraints=" + ((Object) C2069a.k(this.f113b)) + ')';
    }
}
