package o5;

import com.google.android.gms.internal.measurement.C1;
import com.martsnew.data.model.response.EpisodeDetailResponse;
import f5.C0926C;
import f5.C0950k;
import h5.AbstractC1033b;
import j5.C1078i;

/* JADX INFO: renamed from: o5.m, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C1374m {

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

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

    public C1374m(C0926C c0926c, C1078i c1078i) {
        P6.g.e(c0926c, "movieRepository");
        P6.g.e(c1078i, "episodeDetailMapper");
        this.f15781a = c0926c;
        this.f15782b = c1078i;
    }

    /* 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) {
        C1373l c1373l;
        C1374m c1374m;
        if (cVar instanceof C1373l) {
            c1373l = (C1373l) cVar;
            int i = c1373l.f15780w;
            if ((i & Integer.MIN_VALUE) != 0) {
                c1373l.f15780w = i - Integer.MIN_VALUE;
            } else {
                c1373l = new C1373l(this, cVar);
            }
        }
        Object objA = c1373l.f15778u;
        F6.a aVar = F6.a.f2580q;
        int i5 = c1373l.f15780w;
        if (i5 == 0) {
            C1.N(objA);
            c1373l.f15777t = this;
            c1373l.f15780w = 1;
            C0926C c0926c = this.f15781a;
            c0926c.getClass();
            o6.x xVar = AbstractC1033b.f13423a;
            objA = AbstractC1033b.a(new C0950k(c0926c, j8, null), c1373l);
            if (objA == aVar) {
                return aVar;
            }
            c1374m = this;
        } else {
            if (i5 != 1) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            c1374m = c1373l.f15777t;
            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();
        }
        C1078i c1078i = c1374m.f15782b;
        EpisodeDetailResponse episodeDetailResponse = (EpisodeDetailResponse) ((X4.b) cVar2).f7228a;
        c1078i.getClass();
        return C1078i.b(episodeDetailResponse);
    }
}
