package W;

import B4.InterfaceC0027x;
import a.AbstractC0212a;
import d4.C0550i;
import i4.EnumC0643a;
import j4.AbstractC0806h;
import kotlin.jvm.functions.Function2;

/* JADX INFO: loaded from: classes.dex */
public final class I extends AbstractC0806h implements Function2 {

    /* JADX INFO: renamed from: k, reason: collision with root package name */
    public int f3042k;

    /* JADX INFO: renamed from: l, reason: collision with root package name */
    public final /* synthetic */ AbstractC0806h f3043l;

    /* JADX INFO: renamed from: m, reason: collision with root package name */
    public final /* synthetic */ C0190d f3044m;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    /* JADX WARN: Multi-variable type inference failed */
    public I(Function2 function2, C0190d c0190d, h4.c cVar) {
        super(2, cVar);
        this.f3043l = (AbstractC0806h) function2;
        this.f3044m = c0190d;
    }

    /* JADX WARN: Type inference failed for: r0v0, types: [j4.h, kotlin.jvm.functions.Function2] */
    @Override // j4.AbstractC0799a
    public final h4.c create(Object obj, h4.c cVar) {
        return new I(this.f3043l, this.f3044m, cVar);
    }

    @Override // kotlin.jvm.functions.Function2
    public final Object invoke(Object obj, Object obj2) {
        return ((I) create((InterfaceC0027x) obj, (h4.c) obj2)).invokeSuspend(C0550i.f6143a);
    }

    /* JADX WARN: Type inference failed for: r1v1, types: [j4.h, kotlin.jvm.functions.Function2] */
    @Override // j4.AbstractC0799a
    public final Object invokeSuspend(Object obj) throws Throwable {
        EnumC0643a enumC0643a = EnumC0643a.f6670k;
        int i = this.f3042k;
        if (i != 0) {
            if (i != 1) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            AbstractC0212a.H(obj);
            return obj;
        }
        AbstractC0212a.H(obj);
        Object obj2 = this.f3044m.f3117b;
        this.f3042k = 1;
        Object objInvoke = this.f3043l.invoke(obj2, this);
        return objInvoke == enumC0643a ? enumC0643a : objInvoke;
    }
}
