package V2;

import com.debridstream.tv.HomeViewModel;
import java.util.List;
import m3.AbstractC2467b;
import w4.C3137A;

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

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

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

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

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

    @Override // C4.a
    public final A4.d create(Object obj, A4.d dVar) {
        C0660f2 c0660f2 = new C0660f2(this.f7763c, dVar);
        c0660f2.f7762b = obj;
        return c0660f2;
    }

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

    @Override // C4.a
    public final Object invokeSuspend(Object obj) {
        Object objD;
        B4.a aVar = B4.a.f492a;
        int i6 = this.f7761a;
        try {
            if (i6 == 0) {
                AbstractC2467b.l(obj);
                Y2.o oVar = this.f7763c.repository;
                this.f7761a = 1;
                obj = oVar.o("giladg/lists/latest-4k-releases", "", 1, (28 & 8) != 0 ? 100 : 10, (28 & 16) == 0, (28 & 32) != 0 ? null : null, (28 & 64) != 0 ? null : null, this);
                if (obj == aVar) {
                    return aVar;
                }
            } else {
                if (i6 != 1) {
                    throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                }
                AbstractC2467b.l(obj);
            }
            objD = (List) obj;
        } catch (Throwable th) {
            objD = AbstractC2467b.d(th);
        }
        return w4.n.a(objD) == null ? objD : x4.y.f26065a;
    }
}
