package I5;

import A6.n;
import O6.p;
import Z6.InterfaceC0382w;
import c7.K;
import com.google.android.gms.internal.measurement.C1;
import com.martsnew.tv.R;
import y5.C1763h;

/* 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 f3400u;

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

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

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

    @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.f3402w, dVar);
    }

    /* JADX WARN: Code restructure failed: missing block: B:22:0x0077, code lost:
    
        if (r2.g(r1, r7) == r0) goto L23;
     */
    @Override // G6.a
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final Object p(Object obj) throws Throwable {
        Object objA;
        F6.a aVar = F6.a.f2580q;
        int i = this.f3401v;
        m mVar = this.f3402w;
        if (i == 0) {
            C1.N(obj);
            String str = (String) mVar.f3404e.e();
            this.f3401v = 1;
            objA = mVar.f3403d.a(str, this);
            if (objA != aVar) {
            }
            return aVar;
        }
        if (i != 1) {
            if (i != 2) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            C1.N(obj);
            return n.f457a;
        }
        C1.N(obj);
        objA = ((A6.j) obj).f449q;
        boolean z8 = objA instanceof A6.i;
        K k8 = mVar.f3405f;
        if (!z8) {
            C1763h c1763h = new C1763h(k.f3397r);
            k8.getClass();
            k8.g(null, c1763h);
        }
        Throwable thA = A6.j.a(objA);
        if (thA != null) {
            if (thA instanceof W4.a) {
                C1763h c1763h2 = new C1763h(k.f3398s);
                k8.getClass();
                k8.g(null, c1763h2);
            } else {
                y5.n nVar = new y5.n(R.string.msg_unknown_error);
                this.f3400u = objA;
                this.f3401v = 2;
            }
        }
        return n.f457a;
    }
}
