package o;

import java.util.HashMap;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final class I90 {
    public final OC a;
    public Object b;
    public QQ c;
    public int j;
    public int d = -1;
    public final ZQ e = AbstractC2001nt0.s();
    public final ZQ f = new ZQ();
    public final C0713aR g = new C0713aR();
    public final C1479iR h = new C1479iR(new C0095Dr[16]);
    public final C0270Kk i = new C0270Kk(1, this);
    public final ZQ k = AbstractC2001nt0.s();
    public final HashMap l = new HashMap();

    public I90(OC oc) {
        this.a = oc;
    }

    public final void a(Object obj, S1 s1, NC nc) {
        boolean z;
        int i;
        int i2;
        Object obj2 = this.b;
        QQ qq = this.c;
        int i3 = this.d;
        this.b = obj;
        this.c = (QQ) this.f.g(obj);
        if (this.d == -1) {
            this.d = Long.hashCode(AbstractC2884x90.k().g());
        }
        C0270Kk c0270Kk = this.i;
        C1479iR c1479iRD = AbstractC0752ap.D();
        boolean z2 = true;
        try {
            c1479iRD.b(c0270Kk);
            BP.r(nc, s1);
            c1479iRD.k(c1479iRD.n - 1);
            Object obj3 = this.b;
            int i4 = this.d;
            QQ qq2 = this.c;
            if (qq2 != null) {
                long[] jArr = qq2.a;
                int length = jArr.length - 2;
                if (length >= 0) {
                    int i5 = 0;
                    while (true) {
                        long j = jArr[i5];
                        if ((((~j) << 7) & j & (-9187201950435737472L)) != -9187201950435737472L) {
                            int i6 = 8;
                            int i7 = 8 - ((~(i5 - length)) >>> 31);
                            z = z2;
                            int i8 = 0;
                            while (i8 < i7) {
                                if ((j & 255) < 128) {
                                    int i9 = (i5 << 3) + i8;
                                    i2 = i6;
                                    Object obj4 = qq2.b[i9];
                                    i = i8;
                                    boolean z3 = qq2.c[i9] != i4 ? z : false;
                                    if (z3) {
                                        d(obj3, obj4);
                                    }
                                    if (z3) {
                                        qq2.g(i9);
                                    }
                                } else {
                                    i = i8;
                                    i2 = i6;
                                }
                                j >>= i2;
                                i8 = i + 1;
                                i6 = i2;
                            }
                            if (i7 != i6) {
                                break;
                            }
                        } else {
                            z = z2;
                        }
                        if (i5 == length) {
                            break;
                        }
                        i5++;
                        z2 = z;
                    }
                }
            }
            this.b = obj2;
            this.c = qq;
            this.d = i3;
        } catch (Throwable th) {
            c1479iRD.k(c1479iRD.n - 1);
            throw th;
        }
    }

    /* JADX WARN: Removed duplicated region for block: B:120:0x02a9 A[PHI: r12
      0x02a9: PHI (r12v44 boolean) = (r12v43 boolean), (r12v45 boolean) binds: [B:111:0x0282, B:119:0x02a7] A[DONT_GENERATE, DONT_INLINE]] */
    /* JADX WARN: Removed duplicated region for block: B:186:0x041c  */
    /* JADX WARN: Removed duplicated region for block: B:221:0x04d5 A[PHI: r12
      0x04d5: PHI (r12v14 boolean) = (r12v13 boolean), (r12v15 boolean) binds: [B:212:0x04ae, B:220:0x04d3] A[DONT_GENERATE, DONT_INLINE]] */
    /* JADX WARN: Removed duplicated region for block: B:225:0x04e3  */
    /* JADX WARN: Removed duplicated region for block: B:228:0x04ed  */
    /* JADX WARN: Removed duplicated region for block: B:243:0x0530 A[EDGE_INSN: B:243:0x0530->B:323:0x0539 BREAK  A[LOOP:18: B:233:0x04ff->B:244:0x0532], PHI: r12
      0x0530: PHI (r12v5 boolean) = (r12v4 boolean), (r12v6 boolean) binds: [B:234:0x0509, B:242:0x052e] A[DONT_GENERATE, DONT_INLINE]] */
    /* JADX WARN: Removed duplicated region for block: B:320:0x0539 A[SYNTHETIC] */
    /* JADX WARN: Removed duplicated region for block: B:61:0x014c  */
    /* JADX WARN: Removed duplicated region for block: B:98:0x0245 A[PHI: r12
      0x0245: PHI (r12v53 boolean) = (r12v52 boolean), (r12v54 boolean) binds: [B:89:0x021e, B:97:0x0243] A[DONT_GENERATE, DONT_INLINE]] */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public final boolean b(java.util.Set r45) {
        /*
            Method dump skipped, instructions count: 1556
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: o.I90.b(java.util.Set):boolean");
    }

    /* JADX WARN: Removed duplicated region for block: B:27:0x008b  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public final void c(java.lang.Object r21, int r22, java.lang.Object r23, o.QQ r24) {
        /*
            r20 = this;
            r0 = r20
            r1 = r21
            r2 = r22
            r3 = r24
            int r4 = r0.j
            if (r4 <= 0) goto Le
            goto La4
        Le:
            int r4 = r3.c(r1)
            if (r4 >= 0) goto L17
            int r4 = ~r4
            r6 = -1
            goto L1b
        L17:
            int[] r6 = r3.c
            r6 = r6[r4]
        L1b:
            java.lang.Object[] r7 = r3.b
            r7[r4] = r1
            int[] r3 = r3.c
            r3[r4] = r2
            boolean r3 = r1 instanceof o.C0095Dr
            r4 = 2
            if (r3 == 0) goto L90
            if (r6 == r2) goto L90
            r2 = r1
            o.Dr r2 = (o.C0095Dr) r2
            o.Cr r2 = r2.h()
            java.util.HashMap r3 = r0.l
            java.lang.Object r7 = r2.f
            r3.put(r1, r7)
            o.QQ r2 = r2.e
            o.ZQ r3 = r0.k
            o.AbstractC2001nt0.D(r3, r1)
            java.lang.Object[] r7 = r2.b
            long[] r2 = r2.a
            int r8 = r2.length
            int r8 = r8 - r4
            if (r8 < 0) goto L90
            r10 = 0
        L48:
            r11 = r2[r10]
            long r13 = ~r11
            r15 = 7
            long r13 = r13 << r15
            long r13 = r13 & r11
            r15 = -9187201950435737472(0x8080808080808080, double:-2.937446524422997E-306)
            long r13 = r13 & r15
            int r13 = (r13 > r15 ? 1 : (r13 == r15 ? 0 : -1))
            if (r13 == 0) goto L8b
            int r13 = r10 - r8
            int r13 = ~r13
            int r13 = r13 >>> 31
            r14 = 8
            int r13 = 8 - r13
            r15 = 0
        L62:
            if (r15 >= r13) goto L89
            r16 = 255(0xff, double:1.26E-321)
            long r16 = r11 & r16
            r18 = 128(0x80, double:6.3E-322)
            int r16 = (r16 > r18 ? 1 : (r16 == r18 ? 0 : -1))
            if (r16 >= 0) goto L85
            int r16 = r10 << 3
            int r16 = r16 + r15
            r16 = r7[r16]
            r9 = r16
            o.Ga0 r9 = (o.Ga0) r9
            boolean r5 = r9 instanceof o.Ha0
            if (r5 == 0) goto L82
            r5 = r9
            o.Ha0 r5 = (o.Ha0) r5
            r5.f(r4)
        L82:
            o.AbstractC2001nt0.j(r3, r9, r1)
        L85:
            long r11 = r11 >> r14
            int r15 = r15 + 1
            goto L62
        L89:
            if (r13 != r14) goto L90
        L8b:
            if (r10 == r8) goto L90
            int r10 = r10 + 1
            goto L48
        L90:
            r2 = -1
            if (r6 != r2) goto La4
            boolean r2 = r1 instanceof o.Ha0
            if (r2 == 0) goto L9d
            r2 = r1
            o.Ha0 r2 = (o.Ha0) r2
            r2.f(r4)
        L9d:
            o.ZQ r2 = r0.e
            r3 = r23
            o.AbstractC2001nt0.j(r2, r1, r3)
        La4:
            return
        */
        throw new UnsupportedOperationException("Method not decompiled: o.I90.c(java.lang.Object, int, java.lang.Object, o.QQ):void");
    }

    public final void d(Object obj, Object obj2) {
        ZQ zq = this.e;
        AbstractC2001nt0.C(zq, obj2, obj);
        if (!(obj2 instanceof C0095Dr) || zq.c(obj2)) {
            return;
        }
        AbstractC2001nt0.D(this.k, obj2);
        this.l.remove(obj2);
    }

    /* JADX WARN: Removed duplicated region for block: B:27:0x009a  */
    /* JADX WARN: Removed duplicated region for block: B:29:0x00a5  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public final void e() {
        /*
            Method dump skipped, instructions count: 220
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: o.I90.e():void");
    }
}
