package V2;

import com.debridstream.tv.HomeViewModel;
import m3.AbstractC2467b;
import w4.C3137A;

/* JADX INFO: renamed from: V2.v2, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C0731v2 extends C4.j implements J4.e {

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

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

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

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C0731v2(int i6, HomeViewModel homeViewModel, A4.d dVar) {
        super(2, dVar);
        this.f8129c = i6;
        this.f8130d = homeViewModel;
    }

    @Override // C4.a
    public final A4.d create(Object obj, A4.d dVar) {
        C0731v2 c0731v2 = new C0731v2(this.f8129c, this.f8130d, dVar);
        c0731v2.f8128b = obj;
        return c0731v2;
    }

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

    @Override // C4.a
    public final Object invokeSuspend(Object obj) {
        Integer num;
        Throwable th;
        Object objD;
        B4.a aVar = B4.a.f492a;
        int i6 = this.f8127a;
        if (i6 == 0) {
            AbstractC2467b.l(obj);
            int i7 = this.f8129c;
            Integer num2 = new Integer(i7);
            try {
                Y2.o oVar = this.f8130d.repository;
                this.f8128b = num2;
                this.f8127a = 1;
                oVar.getClass();
                c5.e eVar = V4.N.f8259a;
                Object objH = V4.E.H(c5.d.f13466b, new Y2.e(i7, oVar, null), this);
                if (objH == aVar) {
                    return aVar;
                }
                num = num2;
                obj = objH;
            } catch (Throwable th2) {
                num = num2;
                th = th2;
                objD = AbstractC2467b.d(th);
            }
        } else {
            if (i6 != 1) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            num = (Integer) this.f8128b;
            try {
                AbstractC2467b.l(obj);
            } catch (Throwable th3) {
                th = th3;
                objD = AbstractC2467b.d(th);
            }
        }
        objD = (Y2.r) obj;
        return new w4.k(num, objD instanceof w4.m ? null : objD);
    }
}
