package V2;

import android.content.Context;
import com.debridstream.tv.ProfileViewModel;
import m3.AbstractC2467b;
import w4.C3137A;

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

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

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final /* synthetic */ ProfileViewModel f7640b;

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

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

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public Y2(ProfileViewModel profileViewModel, Context context, A0 a02, R2 r22, A4.d dVar) {
        super(2, dVar);
        this.f7640b = profileViewModel;
        this.f7641c = context;
        this.f7642d = a02;
        this.f7643e = r22;
    }

    @Override // C4.a
    public final A4.d create(Object obj, A4.d dVar) {
        return new Y2(this.f7640b, this.f7641c, this.f7642d, this.f7643e, dVar);
    }

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

    @Override // C4.a
    public final Object invokeSuspend(Object obj) {
        B4.a aVar = B4.a.f492a;
        int i6 = this.f7639a;
        if (i6 == 0) {
            AbstractC2467b.l(obj);
            Context applicationContext = this.f7641c.getApplicationContext();
            kotlin.jvm.internal.o.g(applicationContext, "getApplicationContext(...)");
            R2 r22 = this.f7643e;
            this.f7639a = 1;
            if (this.f7640b.completeProfileEntry(applicationContext, this.f7642d, r22.f7513a, this) == aVar) {
                return aVar;
            }
        } else {
            if (i6 != 1) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            AbstractC2467b.l(obj);
        }
        return C3137A.f25453a;
    }
}
