package L5;

import A6.n;
import O6.p;
import Z6.InterfaceC0382w;
import c7.K;
import com.google.android.gms.internal.measurement.C1;
import com.martsnew.domain.model.Avatar;

/* JADX INFO: loaded from: classes.dex */
public final class l extends G6.i implements p {

    /* JADX INFO: renamed from: u, reason: collision with root package name */
    public Object f4045u;

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

    /* JADX INFO: renamed from: w, reason: collision with root package name */
    public final /* synthetic */ String f4047w;

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

    /* JADX INFO: renamed from: y, reason: collision with root package name */
    public final /* synthetic */ Avatar f4049y;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public l(String str, m mVar, Avatar avatar, E6.d dVar) {
        super(2, dVar);
        this.f4047w = str;
        this.f4048x = mVar;
        this.f4049y = avatar;
    }

    @Override // O6.p
    public final Object k(Object obj, Object obj2) {
        return ((l) m((E6.d) obj2, (InterfaceC0382w) obj)).p(n.f457a);
    }

    @Override // G6.a
    public final E6.d m(E6.d dVar, Object obj) {
        return new l(this.f4047w, this.f4048x, this.f4049y, dVar);
    }

    @Override // G6.a
    public final Object p(Object obj) throws Throwable {
        Object objA;
        F6.a aVar = F6.a.f2580q;
        int i = this.f4046v;
        n nVar = n.f457a;
        m mVar = this.f4048x;
        if (i == 0) {
            C1.N(obj);
            String str = this.f4047w;
            if (X6.e.j0(str).toString().length() != 0) {
                Long l8 = new Long(this.f4049y.f11004q);
                this.f4046v = 1;
                objA = mVar.f4052f.a(l8, str, this);
                if (objA != aVar) {
                }
                return aVar;
            }
            return nVar;
        }
        if (i != 1) {
            if (i != 2) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            C1.N(obj);
            return nVar;
        }
        C1.N(obj);
        objA = ((A6.j) obj).f449q;
        if (!(objA instanceof A6.i)) {
            Boolean bool = Boolean.TRUE;
            K k8 = mVar.f4056k;
            k8.getClass();
            k8.g(null, bool);
        }
        Throwable thA = A6.j.a(objA);
        if (thA != null) {
            this.f4045u = objA;
            this.f4046v = 2;
            if (mVar.f(thA, this) == aVar) {
                return aVar;
            }
        }
        return nVar;
    }
}
