package com.strmr.ps.ui.rowitems;

import com.strmr.ps.data.model.ContentItem;
import defpackage.ak1;
import defpackage.ck1;
import defpackage.e6a;
import defpackage.gr3;
import defpackage.i50;
import defpackage.s38;
import defpackage.vx8;
import defpackage.wj0;
import defpackage.xf8;
import defpackage.y41;
import java.util.ArrayList;
import java.util.List;
import kotlin.Metadata;
import kotlin.coroutines.Continuation;
import kotlin.coroutines.jvm.internal.DebugMetadata;
import kotlin.coroutines.jvm.internal.SuspendLambda;

/* JADX INFO: loaded from: classes3.dex */
@Metadata(d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0003\u001a\b\u0012\u0004\u0012\u00020\u00020\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0003\u0010\u0004"}, d2 = {"Lak1;", "", "Le6a;", "<anonymous>", "(Lak1;)Ljava/util/List;"}, k = 3, mv = {2, 0, 0})
@DebugMetadata(c = "com.strmr.ps.ui.rowitems.RowItemsViewModel$enrichAllItems$1$1", f = "RowItemsViewModel.kt", i = {}, l = {108}, m = "invokeSuspend", n = {}, s = {})
@vx8
final class f extends SuspendLambda implements gr3<ak1, Continuation<? super List<? extends e6a>>, Object> {
    public int a;
    public /* synthetic */ Object b;
    public final /* synthetic */ List c;
    public final /* synthetic */ xf8 d;
    public final /* synthetic */ RowItemsViewModel e;
    public final /* synthetic */ ArrayList f;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public f(List list, xf8 xf8Var, RowItemsViewModel rowItemsViewModel, ArrayList arrayList, Continuation continuation) {
        super(2, continuation);
        this.c = list;
        this.d = xf8Var;
        this.e = rowItemsViewModel;
        this.f = arrayList;
    }

    @Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
    public final Continuation create(Object obj, Continuation continuation) {
        f fVar = new f(this.c, this.d, this.e, this.f, continuation);
        fVar.b = obj;
        return fVar;
    }

    @Override // defpackage.gr3
    public final Object invoke(Object obj, Object obj2) {
        return ((f) create((ak1) obj, (Continuation) obj2)).invokeSuspend(e6a.a);
    }

    @Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
    public final Object invokeSuspend(Object obj) {
        ck1 ck1Var = ck1.a;
        int i = this.a;
        if (i != 0) {
            if (i != 1) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            s38.b(obj);
            return obj;
        }
        s38.b(obj);
        ak1 ak1Var = (ak1) this.b;
        List list = this.c;
        ArrayList arrayList = new ArrayList(y41.p(list, 10));
        int i2 = 0;
        for (Object obj2 : list) {
            int i3 = i2 + 1;
            if (i2 < 0) {
                y41.bm();
                throw null;
            }
            arrayList.add(wj0.a(ak1Var, null, new e(this.d, this.e, (ContentItem) obj2, this.f, i2, null), 3));
            i2 = i3;
        }
        this.a = 1;
        Object objA = i50.a(arrayList, this);
        return objA == ck1Var ? ck1Var : objA;
    }
}
