package defpackage;

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

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

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

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

    /* JADX WARN: Code restructure failed: missing block: B:17:0x0062, code lost:
    
        r4 = 8 - ((~(r7 - r8)) >>> 31);
        r2 = 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.j;
        if (i == 0) {
            s38.b(obj);
            throw null;
        }
        if (i != 1) {
            throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
        }
        int i2 = this.f;
        int i3 = this.e;
        long j = this.i;
        int i4 = this.d;
        int i5 = this.c;
        long[] jArr = this.b;
        Object[] objArr = this.a;
        rg8 rg8Var = (rg8) this.k;
        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);
        Object obj2 = objArr[(i4 << 3) + i2];
        this.k = rg8Var;
        this.a = objArr;
        this.b = jArr;
        this.c = i5;
        this.d = i4;
        this.i = j;
        this.e = i3;
        this.f = i2;
        this.j = 1;
        rg8Var.a(obj2, this);
        ck1 ck1Var2 = ck1.a;
        return ck1Var;
    }
}
