package com.strmr.ps.data.repository;

import androidx.media3.container.NalUnitUtil;
import com.strmr.ps.data.model.tmdb.TMDBShowDetails;
import com.strmr.ps.data.remote.api.TMDBApiService;
import defpackage.ck1;
import defpackage.e6a;
import defpackage.s38;
import defpackage.sq3;
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\u0006\n\u0000\n\u0002\u0018\u0002\u0010\u0000\u001a\u00020\u0001H\n"}, d2 = {"<anonymous>", "Lcom/strmr/ps/data/model/tmdb/TMDBShowDetails;"}, k = 3, mv = {2, 0, 0}, xi = NalUnitUtil.H265_NAL_UNIT_TYPE_UNSPECIFIED)
@DebugMetadata(c = "com.strmr.ps.data.repository.ContinueWatchingRepository$enrichEpisode$showDetails$1", f = "ContinueWatchingRepository.kt", i = {}, l = {1370}, m = "invokeSuspend", n = {}, s = {})
public final class ContinueWatchingRepository$enrichEpisode$showDetails$1 extends SuspendLambda implements sq3<Continuation<? super TMDBShowDetails>, Object> {
    final /* synthetic */ int $tmdbId;
    int label;
    final /* synthetic */ ContinueWatchingRepository this$0;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public ContinueWatchingRepository$enrichEpisode$showDetails$1(ContinueWatchingRepository continueWatchingRepository, int i, Continuation<? super ContinueWatchingRepository$enrichEpisode$showDetails$1> continuation) {
        super(1, continuation);
        this.this$0 = continueWatchingRepository;
        this.$tmdbId = i;
    }

    @Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
    public final Continuation<e6a> create(Continuation<?> continuation) {
        return new ContinueWatchingRepository$enrichEpisode$showDetails$1(this.this$0, this.$tmdbId, continuation);
    }

    @Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
    public final Object invokeSuspend(Object obj) {
        ck1 ck1Var = ck1.a;
        int i = this.label;
        if (i != 0) {
            if (i != 1) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            s38.b(obj);
            return obj;
        }
        s38.b(obj);
        TMDBApiService tMDBApiService = this.this$0.tmdbApiService;
        int i2 = this.$tmdbId;
        this.label = 1;
        Object showDetails$default = TMDBApiService.DefaultImpls.getShowDetails$default(tMDBApiService, i2, null, this, 2, null);
        return showDetails$default == ck1Var ? ck1Var : showDetails$default;
    }

    @Override // defpackage.sq3
    public final Object invoke(Continuation<? super TMDBShowDetails> continuation) {
        return ((ContinueWatchingRepository$enrichEpisode$showDetails$1) create(continuation)).invokeSuspend(e6a.a);
    }
}
