package defpackage;

import java.util.Map;
import kotlin.Metadata;
import kotlin.coroutines.Continuation;
import kotlin.coroutines.jvm.internal.DebugMetadata;
import kotlin.coroutines.jvm.internal.RestrictedSuspendLambda;

/* JADX INFO: renamed from: tf6, 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'\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0005\u001a\u00020\u0004\"\u0004\b\u0000\u0010\u0000\"\u0004\b\u0001\u0010\u0001*\u0014\u0012\u0010\u0012\u000e\u0012\u0004\u0012\u00028\u0000\u0012\u0004\u0012\u00028\u00010\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$entries$1$iterator$1$1", f = "ScatterMap.kt", i = {0, 0, 0, 0, 0, 0, 0}, l = {1328}, 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 C0702tf6 extends RestrictedSuspendLambda implements gr3<rg8<? super Map.Entry<Object, Object>>, Continuation<? super e6a>, Object> {
    public uf6 a;
    public cg6 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 */ uf6 m;

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

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

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

    /* JADX WARN: Code restructure failed: missing block: B:17:0x0071, 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;
        cg6 cg6Var = this.b;
        uf6 uf6Var = 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;
        uf6Var.b = i6;
        bf6 bf6Var = new bf6(cg6Var.b, cg6Var.c, i6);
        this.l = rg8Var;
        this.a = uf6Var;
        this.b = cg6Var;
        this.c = jArr;
        this.d = i5;
        this.e = i4;
        this.j = j;
        this.f = i3;
        this.i = i2;
        this.k = 1;
        rg8Var.a(bf6Var, this);
        ck1 ck1Var2 = ck1.a;
        return ck1Var;
    }
}
