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: dg6, reason: from Kotlin metadata and case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
@Metadata(d1 = {"\u0000\u000e\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0003\u001a\u00020\u0002\"\u0004\b\u0000\u0010\u0000*\b\u0012\u0004\u0012\u00028\u00000\u0001H\u008a@¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"E", "Lrg8;", "Le6a;", "<anonymous>", "(Lrg8;)V"}, k = 3, mv = {1, 8, 0})
@DebugMetadata(c = "androidx.collection.MutableScatterSet$MutableSetWrapper$iterator$1$iterator$1", f = "ScatterSet.kt", i = {0, 0, 0, 0, 0, 0, 0}, l = {1060}, m = "invokeSuspend", n = {"$this$iterator", "m$iv", "lastIndex$iv", "i$iv", "slot$iv", "bitCount$iv", "j$iv"}, s = {"L$0", "L$3", "I$0", "I$1", "J$0", "I$2", "I$3"})
@vx8
final class C0534dg6 extends RestrictedSuspendLambda implements gr3<rg8<Object>, Continuation<? super e6a>, Object> {
    public eg6 a;
    public fg6 b;
    public long[] c;
    public int d;
    public int e;
    public int f;
    public int i;
    public long j;
    public int k;
    public /* synthetic */ Object l;
    public final /* synthetic */ eg6 m;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C0534dg6(eg6 eg6Var, Continuation continuation) {
        super(2, continuation);
        this.m = eg6Var;
    }

    @Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
    public final Continuation create(Object obj, Continuation continuation) {
        C0534dg6 c0534dg6 = new C0534dg6(this.m, continuation);
        c0534dg6.l = obj;
        return c0534dg6;
    }

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

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