package n;

import m3.AbstractC2467b;
import w4.C3137A;

/* JADX INFO: renamed from: n.h, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C2581h extends C4.i implements J4.e {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public C2582i f21440a;

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

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

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

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

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

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

    /* JADX INFO: renamed from: k, reason: collision with root package name */
    public int f21447k;
    public /* synthetic */ Object l;

    /* JADX INFO: renamed from: m, reason: collision with root package name */
    public final /* synthetic */ C2582i f21448m;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C2581h(C2582i c2582i, A4.d dVar) {
        super(2, dVar);
        this.f21448m = c2582i;
    }

    @Override // C4.a
    public final A4.d create(Object obj, A4.d dVar) {
        C2581h c2581h = new C2581h(this.f21448m, dVar);
        c2581h.l = obj;
        return c2581h;
    }

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

    /* JADX WARN: Removed duplicated region for block: B:13:0x0050  */
    /* JADX WARN: Removed duplicated region for block: B:15:0x0064  */
    /* JADX WARN: Removed duplicated region for block: B:20:0x009a  */
    /* JADX WARN: Removed duplicated region for block: B:23:0x00a2  */
    /* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:12:0x004e -> B:22:0x00a0). Please report as a decompilation issue!!! */
    /* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:13:0x0050 -> B:14:0x0062). Please report as a decompilation issue!!! */
    /* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:16:0x006b -> 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;
        C2582i c2582i;
        long[] jArr;
        int length;
        int i6;
        long j4;
        B4.a aVar = B4.a.f492a;
        int i7 = this.f21447k;
        if (i7 == 0) {
            AbstractC2467b.l(obj);
            mVar = (R4.m) this.l;
            c2582i = this.f21448m;
            jArr = c2582i.f21450b.f21381a;
            length = jArr.length - 2;
            if (length >= 0) {
                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.f21445f;
        int i9 = this.f21444e;
        long j6 = this.f21446j;
        i6 = this.f21443d;
        int i10 = this.f21442c;
        long[] jArr2 = this.f21441b;
        C2582i c2582i2 = this.f21440a;
        R4.m mVar2 = (R4.m) this.l;
        AbstractC2467b.l(obj);
        j6 >>= 8;
        i8++;
        if (i8 < i9) {
            if (i9 == 8) {
                length = i10;
                jArr = jArr2;
                c2582i = c2582i2;
                mVar = mVar2;
                if (i6 != length) {
                    i6++;
                    j4 = jArr[i6];
                    if ((((~j4) << 7) & j4 & (-9187201950435737472L)) != -9187201950435737472L) {
                        c2582i2 = c2582i;
                        i9 = 8 - ((~(i6 - length)) >>> 31);
                        mVar2 = mVar;
                        i8 = 0;
                        jArr2 = jArr;
                        i10 = length;
                        j6 = j4;
                        if (i8 < i9) {
                            if ((255 & j6) < 128) {
                                int i11 = (i6 << 3) + i8;
                                X x6 = c2582i2.f21450b;
                                C2595w c2595w = new C2595w(x6.f21382b[i11], x6.f21383c[i11]);
                                this.l = mVar2;
                                this.f21440a = c2582i2;
                                this.f21441b = jArr2;
                                this.f21442c = i10;
                                this.f21443d = i6;
                                this.f21446j = j6;
                                this.f21444e = i9;
                                this.f21445f = i8;
                                this.f21447k = 1;
                                mVar2.a(this, c2595w);
                                B4.a aVar2 = B4.a.f492a;
                                return aVar;
                            }
                            j6 >>= 8;
                            i8++;
                            if (i8 < i9) {
                            }
                        }
                    }
                    if (i6 != length) {
                    }
                }
            }
            return C3137A.f25453a;
        }
    }
}
