package o5;

import com.google.android.gms.internal.measurement.C1;
import com.martsnew.data.model.response.InWatchlistResponse;
import f5.C0933J;
import f5.C0939P;
import h5.AbstractC1033b;
import java.util.List;

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

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

    public C1353C(C0939P c0939p) {
        P6.g.e(c0939p, "userRepository");
        this.f15722a = c0939p;
    }

    /* JADX WARN: Removed duplicated region for block: B:7:0x0013  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final Object a(List list, G6.c cVar) {
        C1352B c1352b;
        if (cVar instanceof C1352B) {
            c1352b = (C1352B) cVar;
            int i = c1352b.f15721v;
            if ((i & Integer.MIN_VALUE) != 0) {
                c1352b.f15721v = i - Integer.MIN_VALUE;
            } else {
                c1352b = new C1352B(this, cVar);
            }
        }
        Object objA = c1352b.f15719t;
        F6.a aVar = F6.a.f2580q;
        int i5 = c1352b.f15721v;
        if (i5 == 0) {
            C1.N(objA);
            c1352b.f15721v = 1;
            C0939P c0939p = this.f15722a;
            c0939p.getClass();
            o6.x xVar = AbstractC1033b.f13423a;
            objA = AbstractC1033b.a(new C0933J(c0939p, list, null), c1352b);
            if (objA == aVar) {
                return aVar;
            }
        } else {
            if (i5 != 1) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            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();
        }
        List list2 = ((InWatchlistResponse) ((X4.b) cVar2).f7228a).f10809a;
        return list2 == null ? B6.t.f1032q : list2;
    }
}
