package o5;

import com.google.android.gms.internal.measurement.C1;
import com.martsnew.data.model.response.PageDataResponse;
import f5.C0925B;
import f5.C0926C;
import h5.AbstractC1033b;
import java.util.List;
import n4.u0;

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

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

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final j5.q f15739b;

    public C1359I(C0926C c0926c, j5.q qVar) {
        P6.g.e(c0926c, "movieRepository");
        P6.g.e(qVar, "movieMapper");
        this.f15738a = c0926c;
        this.f15739b = qVar;
    }

    /* JADX WARN: Removed duplicated region for block: B:7:0x0013  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final Object a(String str, int i, int i5, G6.c cVar) {
        C1358H c1358h;
        C1359I c1359i;
        int i8;
        int i9;
        if (cVar instanceof C1358H) {
            c1358h = (C1358H) cVar;
            int i10 = c1358h.f15737y;
            if ((i10 & Integer.MIN_VALUE) != 0) {
                c1358h.f15737y = i10 - Integer.MIN_VALUE;
            } else {
                c1358h = new C1358H(this, cVar);
            }
        }
        Object objA = c1358h.f15735w;
        F6.a aVar = F6.a.f2580q;
        int i11 = c1358h.f15737y;
        if (i11 == 0) {
            C1.N(objA);
            c1358h.f15732t = this;
            c1358h.f15733u = i;
            c1358h.f15734v = i5;
            c1358h.f15737y = 1;
            C0926C c0926c = this.f15738a;
            c0926c.getClass();
            o6.x xVar = AbstractC1033b.f13423a;
            objA = AbstractC1033b.a(new C0925B(i, i5, null, c0926c, str), c1358h);
            if (objA == aVar) {
                return aVar;
            }
            c1359i = this;
            i8 = i;
            i9 = i5;
        } else {
            if (i11 != 1) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            i9 = c1358h.f15734v;
            i8 = c1358h.f15733u;
            c1359i = c1358h.f15732t;
            C1.N(objA);
        }
        X4.c cVar2 = (X4.c) objA;
        if (cVar2 instanceof X4.a) {
            return C1.j(((X4.a) cVar2).f7227a);
        }
        if (!(cVar2 instanceof X4.b)) {
            throw new A6.b();
        }
        j5.q qVar = c1359i.f15739b;
        List list = ((PageDataResponse) ((X4.b) cVar2).f7228a).f10896e;
        qVar.getClass();
        return new k5.m(i8, i9, u0.u(qVar, list));
    }
}
