package V2;

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

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

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

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

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

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

    @Override // C4.a
    public final A4.d create(Object obj, A4.d dVar) {
        C0670h2 c0670h2 = new C0670h2(this.f7797c, dVar);
        c0670h2.f7796b = obj;
        return c0670h2;
    }

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

    @Override // C4.a
    public final Object invokeSuspend(Object obj) throws Throwable {
        V4.H h5;
        Object obj2;
        B4.a aVar = B4.a.f492a;
        int i6 = this.f7795a;
        if (i6 == 0) {
            AbstractC2467b.l(obj);
            V4.C c6 = (V4.C) this.f7796b;
            HomeViewModel homeViewModel = this.f7797c;
            V4.I iE = V4.E.e(c6, null, new C0660f2(homeViewModel, null), 3);
            V4.I iE2 = V4.E.e(c6, null, new C0665g2(homeViewModel, null), 3);
            this.f7796b = iE2;
            this.f7795a = 1;
            Object objM = iE.m(this);
            if (objM != aVar) {
                h5 = iE2;
                obj = objM;
            }
            return aVar;
        }
        if (i6 != 1) {
            if (i6 != 2) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            obj2 = this.f7796b;
            AbstractC2467b.l(obj);
            return new w4.k(obj2, obj);
        }
        h5 = (V4.H) this.f7796b;
        AbstractC2467b.l(obj);
        this.f7796b = obj;
        this.f7795a = 2;
        Object objAwait = h5.await(this);
        if (objAwait != aVar) {
            obj2 = obj;
            obj = objAwait;
            return new w4.k(obj2, obj);
        }
        return aVar;
    }
}
