package G3;

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

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

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

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

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public a(C1070a c1070a, Object obj, c cVar) {
        super(2, cVar);
        this.f821l = c1070a;
        this.f822m = obj;
    }

    @Override // j4.AbstractC0799a
    public final c create(Object obj, c cVar) {
        return new a(this.f821l, this.f822m, cVar);
    }

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

    @Override // j4.AbstractC0799a
    public final Object invokeSuspend(Object obj) throws Throwable {
        EnumC0643a enumC0643a = EnumC0643a.f6670k;
        int i = this.f820k;
        if (i != 0) {
            if (i != 1) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            AbstractC0212a.H(obj);
            return obj;
        }
        AbstractC0212a.H(obj);
        this.f820k = 1;
        Object objInvoke = this.f821l.invoke(this.f822m, this);
        return objInvoke == enumC0643a ? enumC0643a : objInvoke;
    }
}
