package o;

import java.util.NoSuchElementException;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final class AQ {
    public final ZQ a;

    public /* synthetic */ AQ(ZQ zq) {
        this.a = zq;
    }

    public static final Object a(ZQ zq) {
        Object objG = zq.g(null);
        if (objG == null) {
            return null;
        }
        if (!(objG instanceof UQ)) {
            zq.k(null);
            return objG;
        }
        UQ uq = (UQ) objG;
        if (uq.g()) {
            throw new NoSuchElementException("List is empty.");
        }
        int i = uq.b - 1;
        Object objE = uq.e(i);
        uq.j(i);
        if (uq.g()) {
            zq.k(null);
        }
        if (uq.b == 1) {
            zq.m(null, uq.d());
        }
        return objE;
    }

    /* JADX WARN: Removed duplicated region for block: B:27:0x0079  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public static final o.UQ b(o.ZQ r15) {
        /*
            boolean r0 = r15.i()
            if (r0 == 0) goto L9
            o.UQ r15 = o.AbstractC1193fT.b
            return r15
        L9:
            o.UQ r0 = new o.UQ
            r0.<init>()
            java.lang.Object[] r1 = r15.c
            long[] r15 = r15.a
            int r2 = r15.length
            int r2 = r2 + (-2)
            if (r2 < 0) goto L7e
            r3 = 0
            r4 = r3
        L19:
            r5 = r15[r4]
            long r7 = ~r5
            r9 = 7
            long r7 = r7 << r9
            long r7 = r7 & r5
            r9 = -9187201950435737472(0x8080808080808080, double:-2.937446524422997E-306)
            long r7 = r7 & r9
            int r7 = (r7 > r9 ? 1 : (r7 == r9 ? 0 : -1))
            if (r7 == 0) goto L79
            int r7 = r4 - r2
            int r7 = ~r7
            int r7 = r7 >>> 31
            r8 = 8
            int r7 = 8 - r7
            r9 = r3
        L33:
            if (r9 >= r7) goto L77
            r10 = 255(0xff, double:1.26E-321)
            long r10 = r10 & r5
            r12 = 128(0x80, double:6.3E-322)
            int r10 = (r10 > r12 ? 1 : (r10 == r12 ? 0 : -1))
            if (r10 >= 0) goto L73
            int r10 = r4 << 3
            int r10 = r10 + r9
            r10 = r1[r10]
            boolean r11 = r10 instanceof o.UQ
            if (r11 == 0) goto L70
            o.UQ r10 = (o.UQ) r10
            boolean r11 = r10.g()
            if (r11 == 0) goto L50
            goto L73
        L50:
            int r11 = r0.b
            int r12 = r10.b
            int r11 = r11 + r12
            java.lang.Object[] r12 = r0.a
            int r13 = r12.length
            if (r13 >= r11) goto L5d
            r0.l(r11, r12)
        L5d:
            java.lang.Object[] r11 = r0.a
            java.lang.Object[] r12 = r10.a
            int r13 = r0.b
            int r14 = r10.b
            o.AbstractC2219q9.J(r13, r3, r14, r12, r11)
            int r11 = r0.b
            int r10 = r10.b
            int r11 = r11 + r10
            r0.b = r11
            goto L73
        L70:
            r0.a(r10)
        L73:
            long r5 = r5 >> r8
            int r9 = r9 + 1
            goto L33
        L77:
            if (r7 != r8) goto L7e
        L79:
            if (r4 == r2) goto L7e
            int r4 = r4 + 1
            goto L19
        L7e:
            return r0
        */
        throw new UnsupportedOperationException("Method not decompiled: o.AQ.b(o.ZQ):o.UQ");
    }

    public final boolean equals(Object obj) {
        if (obj instanceof AQ) {
            return F3.c(this.a, ((AQ) obj).a);
        }
        return false;
    }

    public final int hashCode() {
        return this.a.hashCode();
    }

    public final String toString() {
        return "MultiValueMap(map=" + this.a + ')';
    }
}
