package o5;

import com.google.android.gms.internal.measurement.C1;
import com.martsnew.data.model.response.ListEpisodeResponse;
import f5.C0926C;
import f5.C0955p;
import h5.AbstractC1033b;
import j5.C1079j;

/* JADX INFO: loaded from: classes.dex */
public final class q {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final C0926C f15793a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final C1079j f15794b;

    public q(C0926C c0926c, C1079j c1079j) {
        P6.g.e(c0926c, "movieRepository");
        P6.g.e(c1079j, "episodeMapper");
        this.f15793a = c0926c;
        this.f15794b = c1079j;
    }

    /* JADX WARN: Removed duplicated region for block: B:7:0x0013  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final Object a(long j8, G6.c cVar) {
        C1377p c1377p;
        q qVar;
        if (cVar instanceof C1377p) {
            c1377p = (C1377p) cVar;
            int i = c1377p.f15792w;
            if ((i & Integer.MIN_VALUE) != 0) {
                c1377p.f15792w = i - Integer.MIN_VALUE;
            } else {
                c1377p = new C1377p(this, cVar);
            }
        }
        Object objA = c1377p.f15790u;
        F6.a aVar = F6.a.f2580q;
        int i5 = c1377p.f15792w;
        if (i5 == 0) {
            C1.N(objA);
            c1377p.f15789t = this;
            c1377p.f15792w = 1;
            C0926C c0926c = this.f15793a;
            c0926c.getClass();
            o6.x xVar = AbstractC1033b.f13423a;
            objA = AbstractC1033b.a(new C0955p(c0926c, j8, null), c1377p);
            if (objA == aVar) {
                return aVar;
            }
            qVar = this;
        } else {
            if (i5 != 1) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            qVar = c1377p.f15789t;
            C1.N(objA);
        }
        X4.c cVar2 = (X4.c) objA;
        if (!(cVar2 instanceof X4.b)) {
            if (cVar2 instanceof X4.a) {
                return C1.j(((X4.a) cVar2).f7227a);
            }
            throw new A6.b();
        }
        C1079j c1079j = qVar.f15794b;
        ListEpisodeResponse listEpisodeResponse = (ListEpisodeResponse) ((X4.b) cVar2).f7228a;
        c1079j.getClass();
        return C1079j.b(listEpisodeResponse).f13977a;
    }
}
