package defpackage;

/* renamed from: ᵤᵚᵗ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C3442 {

    /* renamed from: ˏᵙ, reason: contains not printable characters */
    public C4183 f12876;

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public final C0043 f12877;

    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public final InterfaceC1612 f12878;

    /* renamed from: ᵻᵢﹳᵰ, reason: contains not printable characters */
    public final int f12879;

    public C3442(InterfaceC2644 interfaceC2644, InterfaceC1612 interfaceC1612, long j, long j2, long j3, long j4, long j5, int i) {
        this.f12878 = interfaceC1612;
        this.f12879 = i;
        this.f12877 = new C0043(interfaceC2644, j, j2, j3, j4, j5);
    }

    /* renamed from: ˏᵙ, reason: contains not printable characters */
    public static int m7816(InterfaceC1383 interfaceC1383, long j, C4184 c4184) {
        if (j == interfaceC1383.getPosition()) {
            return 0;
        }
        c4184.f15658 = j;
        return 1;
    }

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public static int m7817(int i, byte[] bArr) {
        return (bArr[i + 3] & 255) | ((bArr[i] & 255) << 24) | ((bArr[i + 1] & 255) << 16) | ((bArr[i + 2] & 255) << 8);
    }

    /* JADX WARN: Code restructure failed: missing block: B:32:0x00cb, code lost:
    
        return m7816(r28, r8, r29);
     */
    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public final int m7818(defpackage.InterfaceC1383 r28, defpackage.C4184 r29) {
        /*
            r27 = this;
            r0 = r27
            r1 = r28
            r2 = r29
        L6:
            ᵮˁᵸ r3 = r0.f12876
            r3.getClass()
            long r4 = r3.f15652
            long r6 = r3.f15651
            long r8 = r3.f15656
            long r6 = r6 - r4
            int r10 = r0.f12879
            long r10 = (long) r10
            int r6 = (r6 > r10 ? 1 : (r6 == r10 ? 0 : -1))
            r7 = 0
            ˌᵜ r10 = r0.f12878
            if (r6 > 0) goto L26
            r0.f12876 = r7
            r10.mo4627()
            int r0 = m7816(r1, r4, r2)
            return r0
        L26:
            long r4 = r1.getPosition()
            long r4 = r8 - r4
            r11 = 0
            int r6 = (r4 > r11 ? 1 : (r4 == r11 ? 0 : -1))
            if (r6 < 0) goto Lc7
            r13 = 262144(0x40000, double:1.295163E-318)
            int r6 = (r4 > r13 ? 1 : (r4 == r13 ? 0 : -1))
            if (r6 > 0) goto Lc7
            int r4 = (int) r4
            r1.mo4248(r4)
            r1.mo4245()
            long r4 = r3.f15655
            ᵼˉʓ r4 = r10.mo4628(r1, r4)
            int r5 = r4.f19695
            r15 = r11
            long r11 = r4.f19694
            r17 = r13
            long r13 = r4.f19692
            r4 = -3
            if (r5 == r4) goto Lbd
            r4 = -2
            if (r5 == r4) goto L9c
            r4 = -1
            if (r5 == r4) goto L7d
            if (r5 != 0) goto L76
            long r3 = r1.getPosition()
            long r3 = r13 - r3
            int r5 = (r3 > r15 ? 1 : (r3 == r15 ? 0 : -1))
            if (r5 < 0) goto L6c
            int r5 = (r3 > r17 ? 1 : (r3 == r17 ? 0 : -1))
            if (r5 > 0) goto L6c
            int r3 = (int) r3
            r1.mo4248(r3)
        L6c:
            r0.f12876 = r7
            r10.mo4627()
            int r0 = m7816(r1, r13, r2)
            return r0
        L76:
            java.lang.String r0 = "Invalid case"
            ᵹˉᵞ.ᵳٴᵶ(r0)
            r0 = 0
            return r0
        L7d:
            r3.f15650 = r11
            r3.f15651 = r13
            long r4 = r3.f15655
            long r6 = r3.f15657
            long r8 = r3.f15652
            r15 = r4
            long r4 = r3.f15653
            r25 = r4
            r17 = r6
            r21 = r8
            r19 = r11
            r23 = r13
            long r4 = defpackage.C4183.m9107(r15, r17, r19, r21, r23, r25)
            r3.f15656 = r4
            goto L6
        L9c:
            r4 = r11
            r6 = r13
            r3.f15657 = r4
            r3.f15652 = r6
            long r8 = r3.f15655
            long r10 = r3.f15650
            long r12 = r3.f15651
            long r14 = r3.f15653
            r17 = r4
            r21 = r6
            r19 = r10
            r23 = r12
            r25 = r14
            r15 = r8
            long r4 = defpackage.C4183.m9107(r15, r17, r19, r21, r23, r25)
            r3.f15656 = r4
            goto L6
        Lbd:
            r0.f12876 = r7
            r10.mo4627()
            int r0 = m7816(r1, r8, r2)
            return r0
        Lc7:
            int r0 = m7816(r1, r8, r2)
            return r0
        */
        throw new UnsupportedOperationException("Method not decompiled: defpackage.C3442.m7818(ˊᵬᐧ, ᵮˆ):int");
    }

    /* renamed from: ᵻᵢﹳᵰ, reason: contains not printable characters */
    public final void m7819(long j) {
        C4183 c4183 = this.f12876;
        if (c4183 == null || c4183.f15654 != j) {
            C0043 c0043 = this.f12877;
            this.f12876 = new C4183(j, c0043.f1184.m6630(j), c0043.f1183, c0043.f1186, c0043.f1181, c0043.f1182);
        }
    }
}
