package n;

import m3.AbstractC2467b;
import w4.C3137A;

/* JADX INFO: loaded from: classes.dex */
public final class P extends C4.i implements J4.e {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public R4.i f21358a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public Q f21359b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public long[] f21360c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public int f21361d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public int f21362e;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public int f21363f;

    /* JADX INFO: renamed from: j, reason: collision with root package name */
    public int f21364j;

    /* JADX INFO: renamed from: k, reason: collision with root package name */
    public long f21365k;
    public int l;

    /* JADX INFO: renamed from: m, reason: collision with root package name */
    public /* synthetic */ Object f21366m;

    /* JADX INFO: renamed from: n, reason: collision with root package name */
    public final /* synthetic */ Q f21367n;

    /* JADX INFO: renamed from: o, reason: collision with root package name */
    public final /* synthetic */ R4.i f21368o;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public P(Q q6, R4.i iVar, A4.d dVar) {
        super(2, dVar);
        this.f21367n = q6;
        this.f21368o = iVar;
    }

    @Override // C4.a
    public final A4.d create(Object obj, A4.d dVar) {
        P p6 = new P(this.f21367n, this.f21368o, dVar);
        p6.f21366m = obj;
        return p6;
    }

    @Override // J4.e
    public final Object invoke(Object obj, Object obj2) {
        return ((P) create((R4.m) obj, (A4.d) obj2)).invokeSuspend(C3137A.f25453a);
    }

    /* JADX WARN: Removed duplicated region for block: B:13:0x0054  */
    /* JADX WARN: Removed duplicated region for block: B:15:0x0069  */
    /* JADX WARN: Removed duplicated region for block: B:20:0x009a  */
    /* JADX WARN: Removed duplicated region for block: B:23:0x00a4  */
    /* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:12:0x0052 -> B:22:0x00a2). Please report as a decompilation issue!!! */
    /* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:13:0x0054 -> B:14:0x0067). Please report as a decompilation issue!!! */
    /* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:16:0x0070 -> B:19:0x0097). Please report as a decompilation issue!!! */
    @Override // C4.a
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final Object invokeSuspend(Object obj) {
        R4.m mVar;
        Q q6;
        long[] jArr;
        int length;
        R4.i iVar;
        int i6;
        long j4;
        B4.a aVar = B4.a.f492a;
        int i7 = this.l;
        if (i7 == 0) {
            AbstractC2467b.l(obj);
            mVar = (R4.m) this.f21366m;
            q6 = this.f21367n;
            jArr = q6.f21369b.f21388a;
            length = jArr.length - 2;
            if (length >= 0) {
                iVar = this.f21368o;
                i6 = 0;
                j4 = jArr[i6];
                if ((((~j4) << 7) & j4 & (-9187201950435737472L)) != -9187201950435737472L) {
                }
                if (i6 != length) {
                }
            }
            return C3137A.f25453a;
        }
        if (i7 != 1) {
            throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
        }
        int i8 = this.f21364j;
        int i9 = this.f21363f;
        long j6 = this.f21365k;
        int i10 = this.f21362e;
        int i11 = this.f21361d;
        long[] jArr2 = this.f21360c;
        Q q7 = this.f21359b;
        R4.i iVar2 = this.f21358a;
        R4.m mVar2 = (R4.m) this.f21366m;
        AbstractC2467b.l(obj);
        j6 >>= 8;
        i8++;
        if (i8 < i9) {
            if (i9 == 8) {
                length = i11;
                jArr = jArr2;
                q6 = q7;
                mVar = mVar2;
                i6 = i10;
                iVar = iVar2;
                if (i6 != length) {
                    i6++;
                    j4 = jArr[i6];
                    if ((((~j4) << 7) & j4 & (-9187201950435737472L)) != -9187201950435737472L) {
                        mVar2 = mVar;
                        i8 = 0;
                        q7 = q6;
                        jArr2 = jArr;
                        i9 = 8 - ((~(i6 - length)) >>> 31);
                        iVar2 = iVar;
                        i10 = i6;
                        i11 = length;
                        j6 = j4;
                        if (i8 < i9) {
                            if ((255 & j6) < 128) {
                                int i12 = (i10 << 3) + i8;
                                iVar2.f6104b = i12;
                                Object obj2 = q7.f21369b.f21389b[i12];
                                this.f21366m = mVar2;
                                this.f21358a = iVar2;
                                this.f21359b = q7;
                                this.f21360c = jArr2;
                                this.f21361d = i11;
                                this.f21362e = i10;
                                this.f21365k = j6;
                                this.f21363f = i9;
                                this.f21364j = i8;
                                this.l = 1;
                                mVar2.a(this, obj2);
                                B4.a aVar2 = B4.a.f492a;
                                return aVar;
                            }
                            j6 >>= 8;
                            i8++;
                            if (i8 < i9) {
                            }
                        }
                    }
                    if (i6 != length) {
                    }
                }
            }
            return C3137A.f25453a;
        }
    }
}
