package com.strmr.ps.ui.usercollection;

import com.strmr.ps.ui.usercollection.UserCollectionContentViewModel;
import defpackage.ak1;
import defpackage.ck1;
import defpackage.e6a;
import defpackage.gr3;
import defpackage.io6;
import defpackage.pw7;
import defpackage.s38;
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\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\n¢\u0006\u0004\b\u0002\u0010\u0003"}, d2 = {"Lak1;", "Le6a;", "<anonymous>", "(Lak1;)V"}, k = 3, mv = {2, 0, 0})
@DebugMetadata(c = "com.strmr.ps.ui.usercollection.UserCollectionContentViewModel$loadInitial$1$1$1", f = "UserCollectionContentViewModel.kt", i = {}, l = {249}, m = "invokeSuspend", n = {}, s = {})
final class t extends SuspendLambda implements gr3<ak1, Continuation<? super e6a>, Object> {
    public int a;
    public final /* synthetic */ UserCollectionContentViewModel b;
    public final /* synthetic */ UserCollectionContentViewModel.b c;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public t(UserCollectionContentViewModel userCollectionContentViewModel, UserCollectionContentViewModel.b bVar, Continuation continuation) {
        super(2, continuation);
        this.b = userCollectionContentViewModel;
        this.c = bVar;
    }

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

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

    /* JADX WARN: Removed duplicated region for block: B:28:0x0056  */
    @Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final Object invokeSuspend(Object obj) {
        Object objN;
        ck1 ck1Var = ck1.a;
        int i = this.a;
        e6a e6aVar = e6a.a;
        if (i != 0) {
            if (i != 1) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            s38.b(obj);
            return e6aVar;
        }
        s38.b(obj);
        this.a = 1;
        pw7 pw7Var = UserCollectionContentViewModel.u;
        UserCollectionContentViewModel.b bVar = this.c;
        int iOrdinal = UserCollectionContentViewModel.i(bVar.a.getUrl()).ordinal();
        UserCollectionContentViewModel userCollectionContentViewModel = this.b;
        if (iOrdinal == 0) {
            objN = userCollectionContentViewModel.n(bVar, this);
            if (objN != ck1Var) {
            }
        } else if (iOrdinal != 1) {
            if (iOrdinal == 2) {
                objN = userCollectionContentViewModel.m(bVar, this);
                if (objN != ck1Var) {
                }
            } else if (iOrdinal != 3) {
                throw new io6();
            }
            objN = e6aVar;
        } else {
            objN = userCollectionContentViewModel.k(bVar, this);
            if (objN != ck1Var) {
                objN = e6aVar;
            }
        }
        return objN == ck1Var ? ck1Var : e6aVar;
    }
}
