package n;

import m3.AbstractC2467b;
import w4.C3137A;

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

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

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

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

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

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

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

    /* JADX INFO: renamed from: j, reason: collision with root package name */
    public final /* synthetic */ M f21352j;

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public L(M m6, R4.i iVar, A4.d dVar) {
        super(2, dVar);
        this.f21352j = m6;
        this.f21353k = iVar;
    }

    @Override // C4.a
    public final A4.d create(Object obj, A4.d dVar) {
        L l = new L(this.f21352j, this.f21353k, dVar);
        l.f21351f = obj;
        return l;
    }

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

    @Override // C4.a
    public final Object invokeSuspend(Object obj) {
        R4.m mVar;
        M m6;
        long[] jArr;
        int i6;
        R4.i iVar;
        B4.a aVar = B4.a.f492a;
        int i7 = this.f21350e;
        if (i7 == 0) {
            AbstractC2467b.l(obj);
            mVar = (R4.m) this.f21351f;
            m6 = this.f21352j;
            K k6 = m6.f21355b;
            jArr = k6.f21340c;
            i6 = k6.f21342e;
            iVar = this.f21353k;
        } else {
            if (i7 != 1) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            i6 = this.f21349d;
            jArr = this.f21348c;
            m6 = this.f21347b;
            iVar = this.f21346a;
            mVar = (R4.m) this.f21351f;
            AbstractC2467b.l(obj);
        }
        if (i6 == Integer.MAX_VALUE) {
            return C3137A.f25453a;
        }
        int i8 = (int) ((jArr[i6] >> 31) & 2147483647L);
        iVar.f6104b = i6;
        Object obj2 = m6.f21355b.f21339b[i6];
        this.f21351f = mVar;
        this.f21346a = iVar;
        this.f21347b = m6;
        this.f21348c = jArr;
        this.f21349d = i8;
        this.f21350e = 1;
        mVar.a(this, obj2);
        return aVar;
    }
}
