package com.strmr.ps.ui.player;

import com.strmr.ps.data.model.StreamInfo;
import com.strmr.ps.data.service.AddonResolutionService;
import defpackage.ak1;
import defpackage.ck1;
import defpackage.cr4;
import defpackage.e6a;
import defpackage.gr3;
import defpackage.q38;
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\u0010\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u000e\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;", "Lq38;", "", "<anonymous>", "(Lak1;)Lq38;"}, k = 3, mv = {2, 0, 0})
@DebugMetadata(c = "com.strmr.ps.ui.player.VideoPlayerActivity$reResolveCurrentStream$1$result$1$1", f = "VideoPlayerActivity.kt", i = {}, l = {6315}, m = "invokeSuspend", n = {}, s = {})
final class aa extends SuspendLambda implements gr3<ak1, Continuation<? super q38<? extends String>>, Object> {
    public int a;
    public final /* synthetic */ VideoPlayerActivity b;
    public final /* synthetic */ StreamInfo c;
    public final /* synthetic */ Integer d;
    public final /* synthetic */ Integer e;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public aa(VideoPlayerActivity videoPlayerActivity, StreamInfo streamInfo, Integer num, Integer num2, Continuation continuation) {
        super(2, continuation);
        this.b = videoPlayerActivity;
        this.c = streamInfo;
        this.d = num;
        this.e = num2;
    }

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

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

    @Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
    public final Object invokeSuspend(Object obj) {
        Object objI;
        ck1 ck1Var = ck1.a;
        int i = this.a;
        if (i == 0) {
            s38.b(obj);
            AddonResolutionService addonResolutionService = this.b.q;
            if (addonResolutionService == null) {
                cr4.n("addonResolutionService");
                throw null;
            }
            this.a = 1;
            objI = addonResolutionService.i(this.c, this.d, this.e, null, null, false, this);
            if (objI == ck1Var) {
                return ck1Var;
            }
        } else {
            if (i != 1) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            s38.b(obj);
            objI = ((q38) obj).a;
        }
        return new q38(objI);
    }
}
