package defpackage;

import kotlin.Metadata;
import kotlin.coroutines.Continuation;
import kotlin.coroutines.jvm.internal.Boxing;
import kotlin.coroutines.jvm.internal.DebugMetadata;
import kotlin.coroutines.jvm.internal.RestrictedSuspendLambda;

/* JADX INFO: renamed from: zf6, reason: from Kotlin metadata and case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
@Metadata(d1 = {"\u0000\u0014\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0010\b\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0005\u001a\u00020\u0004\"\u0004\b\u0000\u0010\u0000\"\u0004\b\u0001\u0010\u0001*\b\u0012\u0004\u0012\u00020\u00030\u0002H\u008a@¢\u0006\u0004\b\u0005\u0010\u0006"}, d2 = {"K", "V", "Lrg8;", "", "Le6a;", "<anonymous>", "(Lrg8;)V"}, k = 3, mv = {1, 8, 0})
@DebugMetadata(c = "androidx.collection.MutableScatterMap$MutableMapWrapper$values$1$iterator$1$iterator$1", f = "ScatterMap.kt", i = {0, 0, 0, 0, 0, 0, 0}, l = {1511}, m = "invokeSuspend", n = {"$this$iterator", "m$iv", "lastIndex$iv", "i$iv", "slot$iv", "bitCount$iv", "j$iv"}, s = {"L$0", "L$1", "I$0", "I$1", "J$0", "I$2", "I$3"})
@vx8
final class C0760zf6 extends RestrictedSuspendLambda implements gr3<rg8<? super Integer>, Continuation<? super e6a>, Object> {
    public long[] a;
    public int b;
    public int c;
    public int d;
    public int e;
    public long f;
    public int i;
    public /* synthetic */ Object j;

    @Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
    public final Continuation create(Object obj, Continuation continuation) {
        C0760zf6 c0760zf6 = new C0760zf6(2, continuation);
        c0760zf6.j = obj;
        return c0760zf6;
    }

    @Override // defpackage.gr3
    public final Object invoke(Object obj, Object obj2) {
        return ((C0760zf6) create((rg8) obj, (Continuation) obj2)).invokeSuspend(e6a.a);
    }

    /* JADX WARN: Code restructure failed: missing block: B:17:0x005e, code lost:
    
        r3 = 8 - ((~(r6 - r7)) >>> 31);
        r1 = 0;
     */
    @Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final Object invokeSuspend(Object obj) {
        ck1 ck1Var = ck1.a;
        int i = this.i;
        if (i == 0) {
            s38.b(obj);
            throw null;
        }
        if (i != 1) {
            throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
        }
        int i2 = this.e;
        int i3 = this.d;
        long j = this.f;
        int i4 = this.c;
        int i5 = this.b;
        long[] jArr = this.a;
        rg8 rg8Var = (rg8) this.j;
        s38.b(obj);
        do {
            j >>= 8;
            i2++;
            while (i2 >= i3) {
                if (i3 == 8) {
                    while (i4 != i5) {
                        i4++;
                        j = jArr[i4];
                        if ((((~j) << 7) & j & (-9187201950435737472L)) != -9187201950435737472L) {
                            break;
                        }
                    }
                }
                return e6a.a;
            }
        } while ((255 & j) >= 128);
        Integer numBoxInt = Boxing.boxInt((i4 << 3) + i2);
        this.j = rg8Var;
        this.a = jArr;
        this.b = i5;
        this.c = i4;
        this.f = j;
        this.d = i3;
        this.e = i2;
        this.i = 1;
        rg8Var.a(numBoxInt, this);
        ck1 ck1Var2 = ck1.a;
        return ck1Var;
    }
}
