package o;

import java.util.List;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.Kt, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0279Kt implements WX {
    public final long l;
    public final InterfaceC2281qr m;
    public final int n;

    /* renamed from: o, reason: collision with root package name */
    public final C1825m2 f199o;
    public final H2 p;
    public final H2 q;
    public final C0841bl0 r;
    public final C0841bl0 s;
    public final I2 t;
    public final I2 u;
    public final I2 v;
    public final C0936cl0 w;
    public final C0936cl0 x;

    public C0279Kt(long j, InterfaceC2281qr interfaceC2281qr, C1825m2 c1825m2) {
        int iN = interfaceC2281qr.N(TO.a);
        this.l = j;
        this.m = interfaceC2281qr;
        this.n = iN;
        this.f199o = c1825m2;
        int iN2 = interfaceC2281qr.N(Float.intBitsToFloat((int) (j >> 32)));
        C0107Ed c0107Ed = C0669Zu.y;
        this.p = new H2(c0107Ed, c0107Ed, iN2);
        C0107Ed c0107Ed2 = C0669Zu.A;
        this.q = new H2(c0107Ed2, c0107Ed2, iN2);
        this.r = new C0841bl0(F3.c);
        this.s = new C0841bl0(F3.d);
        int iN3 = interfaceC2281qr.N(Float.intBitsToFloat((int) (j & 4294967295L)));
        C0133Fd c0133Fd = C0669Zu.v;
        C0133Fd c0133Fd2 = C0669Zu.x;
        this.t = new I2(c0133Fd, c0133Fd2, iN3);
        this.u = new I2(c0133Fd2, c0133Fd, iN3);
        this.v = new I2(C0669Zu.w, c0133Fd, iN3);
        this.w = new C0936cl0(c0133Fd, iN);
        this.x = new C0936cl0(c0133Fd2, iN);
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof C0279Kt)) {
            return false;
        }
        C0279Kt c0279Kt = (C0279Kt) obj;
        return this.l == c0279Kt.l && F3.c(this.m, c0279Kt.m) && this.n == c0279Kt.n && F3.c(this.f199o, c0279Kt.f199o);
    }

    @Override // o.WX
    public final long h(C1086eI c1086eI, long j, EnumC1280gK enumC1280gK, long j2) {
        C1086eI c1086eI2;
        long j3;
        char c;
        int iA;
        int i;
        char c2 = ' ';
        int i2 = (int) (j >> 32);
        int i3 = 0;
        List listS = AbstractC0008Ai.S(this.p, this.q, ((int) (c1086eI.a() >> 32)) < i2 / 2 ? this.r : this.s);
        int size = listS.size();
        int i4 = 0;
        while (true) {
            if (i4 >= size) {
                c1086eI2 = c1086eI;
                j3 = j;
                c = c2;
                iA = 0;
                break;
            }
            InterfaceC0807bP interfaceC0807bP = (InterfaceC0807bP) listS.get(i4);
            int i5 = (int) (j2 >> c2);
            int i6 = size;
            c = c2;
            j3 = j;
            int i7 = i4;
            c1086eI2 = c1086eI;
            iA = interfaceC0807bP.a(c1086eI2, j3, i5, enumC1280gK);
            if (i7 == AbstractC0008Ai.R(listS) || (iA >= 0 && i5 + iA <= i2)) {
                break;
            }
            i4 = i7 + 1;
            size = i6;
            c2 = c;
        }
        int i8 = (int) (j3 & 4294967295L);
        List listS2 = AbstractC0008Ai.S(this.t, this.u, this.v, ((int) (c1086eI2.a() & 4294967295L)) < i8 / 2 ? this.w : this.x);
        int size2 = listS2.size();
        for (int i9 = 0; i9 < size2; i9++) {
            int i10 = (int) (j2 & 4294967295L);
            int iA2 = ((InterfaceC0902cP) listS2.get(i9)).a(c1086eI2, j3, i10);
            if (i9 == AbstractC0008Ai.R(listS2) || (iA2 >= (i = this.n) && i10 + iA2 <= i8 - i)) {
                i3 = iA2;
                break;
            }
        }
        long j4 = (iA << c) | (i3 & 4294967295L);
        this.f199o.f(c1086eI2, AbstractC2001nt0.e(j4, j2));
        return j4;
    }

    public final int hashCode() {
        return this.f199o.hashCode() + AbstractC0126Ew.e(this.n, (this.m.hashCode() + (Long.hashCode(this.l) * 31)) * 31, 31);
    }

    public final String toString() {
        return "DropdownMenuPositionProvider(contentOffset=" + ((Object) C0200Hs.a(this.l)) + ", density=" + this.m + ", verticalMargin=" + this.n + ", onPositionCalculated=" + this.f199o + ')';
    }
}
