package T;

import J0.X;
import K.A0;
import V4.C;
import V4.E;
import android.view.View;
import m3.AbstractC2467b;
import w4.C3137A;

/* JADX INFO: loaded from: classes.dex */
public final class c extends C4.j implements J4.e {

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

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

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final /* synthetic */ X f6298c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final /* synthetic */ A0 f6299d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final /* synthetic */ e f6300e;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public final /* synthetic */ s f6301f;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public c(X x6, A0 a02, e eVar, s sVar, A4.d dVar) {
        super(2, dVar);
        this.f6298c = x6;
        this.f6299d = a02;
        this.f6300e = eVar;
        this.f6301f = sVar;
    }

    @Override // C4.a
    public final A4.d create(Object obj, A4.d dVar) {
        c cVar = new c(this.f6298c, this.f6299d, this.f6300e, this.f6301f, dVar);
        cVar.f6297b = obj;
        return cVar;
    }

    @Override // J4.e
    public final Object invoke(Object obj, Object obj2) {
        ((c) create((C) obj, (A4.d) obj2)).invokeSuspend(C3137A.f25453a);
        return B4.a.f492a;
    }

    @Override // C4.a
    public final Object invokeSuspend(Object obj) {
        B4.a aVar = B4.a.f492a;
        int i6 = this.f6296a;
        e eVar = this.f6300e;
        try {
            if (i6 != 0) {
                if (i6 != 1) {
                    throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                }
                AbstractC2467b.l(obj);
                throw new E3.v();
            }
            AbstractC2467b.l(obj);
            C c6 = (C) this.f6297b;
            v vVar = w.f6374a;
            X x6 = this.f6298c;
            View view = x6.f2964a;
            vVar.getClass();
            p pVar = new p(view);
            x xVar = new x(x6.f2964a, new b(this.f6301f), pVar);
            if (S.e.f6130a) {
                E.y(c6, null, null, new a(eVar, pVar, null), 3);
            }
            A0 a02 = this.f6299d;
            if (a02 != null) {
                a02.invoke(xVar);
            }
            eVar.f6309c = xVar;
            this.f6296a = 1;
            x6.a(xVar, this);
            return aVar;
        } catch (Throwable th) {
            eVar.f6309c = null;
            throw th;
        }
    }
}
