package defpackage;

import defpackage.hd1;
import kotlin.Metadata;
import kotlin.coroutines.Continuation;
import kotlin.coroutines.jvm.internal.DebugMetadata;
import kotlin.coroutines.jvm.internal.SuspendLambda;

/* JADX INFO: renamed from: pra, reason: from Kotlin metadata and case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
@Metadata(d1 = {"\u0000\u0016\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0011\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\u0010\u0006\u001a\u00020\u0005\"\u0006\b\u0000\u0010\u0000\u0018\u0001\"\u0004\b\u0001\u0010\u0001*\b\u0012\u0004\u0012\u00028\u00010\u00022\f\u0010\u0004\u001a\b\u0012\u0004\u0012\u00028\u00000\u0003H\u008a@¢\u0006\u0004\b\u0006\u0010\u0007¨\u0006\b"}, d2 = {"T", "R", "Ll43;", "", "it", "Le6a;", "<anonymous>", "(Ll43;Lkotlin/Array;)V", "se3"}, k = 3, mv = {1, 8, 0})
@DebugMetadata(c = "androidx.work.impl.constraints.WorkConstraintsTracker$track$$inlined$combine$1$3", f = "WorkConstraintsTracker.kt", i = {}, l = {292}, m = "invokeSuspend", n = {}, s = {})
@vx8
public final class C0665pra extends SuspendLambda implements ir3<l43<? super hd1>, hd1[], Continuation<? super e6a>, Object> {
    public int a;
    public /* synthetic */ l43 b;
    public /* synthetic */ Object[] c;

    @Override // defpackage.ir3
    public final Object invoke(Object obj, Object obj2, Object obj3) {
        C0665pra c0665pra = new C0665pra(3, (Continuation) obj3);
        c0665pra.b = (l43) obj;
        c0665pra.c = (Object[]) obj2;
        return c0665pra.invokeSuspend(e6a.a);
    }

    @Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
    public final Object invokeSuspend(Object obj) {
        hd1 hd1Var;
        hd1 hd1Var2;
        ck1 ck1Var = ck1.a;
        int i = this.a;
        if (i == 0) {
            s38.b(obj);
            l43 l43Var = this.b;
            hd1[] hd1VarArr = (hd1[]) this.c;
            int length = hd1VarArr.length;
            int i2 = 0;
            while (true) {
                hd1Var = hd1.a.a;
                if (i2 >= length) {
                    hd1Var2 = null;
                    break;
                }
                hd1Var2 = hd1VarArr[i2];
                if (!cr4.b(hd1Var2, hd1Var)) {
                    break;
                }
                i2++;
            }
            if (hd1Var2 != null) {
                hd1Var = hd1Var2;
            }
            this.a = 1;
            if (l43Var.emit(hd1Var, this) == ck1Var) {
                return ck1Var;
            }
        } else {
            if (i != 1) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            s38.b(obj);
        }
        return e6a.a;
    }
}
