package F4;

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 f extends AbstractC0806h implements Function2 {

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

    /* JADX INFO: renamed from: l, reason: collision with root package name */
    public /* synthetic */ Object f737l;

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public f(g gVar, h4.c cVar) {
        super(2, cVar);
        this.f738m = gVar;
    }

    @Override // j4.AbstractC0799a
    public final h4.c create(Object obj, h4.c cVar) {
        f fVar = new f(this.f738m, cVar);
        fVar.f737l = obj;
        return fVar;
    }

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

    @Override // j4.AbstractC0799a
    public final Object invokeSuspend(Object obj) throws Throwable {
        EnumC0643a enumC0643a = EnumC0643a.f6670k;
        int i = this.f736k;
        C0550i c0550i = C0550i.f6143a;
        if (i == 0) {
            AbstractC0212a.H(obj);
            E4.e eVar = (E4.e) this.f737l;
            this.f736k = 1;
            Object objCollect = this.f738m.f739n.collect(eVar, this);
            if (objCollect != enumC0643a) {
                objCollect = c0550i;
            }
            if (objCollect == enumC0643a) {
                return enumC0643a;
            }
        } else {
            if (i != 1) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            AbstractC0212a.H(obj);
        }
        return c0550i;
    }
}
