package com.revenuecat.purchases.ui.revenuecatui.components.video;

import C4.e;
import C4.j;
import V4.C;
import androidx.compose.runtime.MutableState;
import m3.AbstractC2467b;
import w4.C3137A;

/* JADX INFO: loaded from: classes3.dex */
@e(c = "com.revenuecat.purchases.ui.revenuecatui.components.video.VideoViewKt$Video$1$1", f = "VideoView.kt", l = {}, m = "invokeSuspend")
public final class VideoViewKt$Video$1$1 extends j implements J4.e {
    final /* synthetic */ boolean $autoPlay;
    final /* synthetic */ MutableState<TextureVideoView> $videoView;
    int label;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public VideoViewKt$Video$1$1(MutableState<TextureVideoView> mutableState, boolean z6, A4.d dVar) {
        super(2, dVar);
        this.$videoView = mutableState;
        this.$autoPlay = z6;
    }

    @Override // C4.a
    public final A4.d create(Object obj, A4.d dVar) {
        return new VideoViewKt$Video$1$1(this.$videoView, this.$autoPlay, dVar);
    }

    @Override // J4.e
    public final Object invoke(C c6, A4.d dVar) {
        return ((VideoViewKt$Video$1$1) create(c6, dVar)).invokeSuspend(C3137A.f25453a);
    }

    @Override // C4.a
    public final Object invokeSuspend(Object obj) {
        B4.a aVar = B4.a.f492a;
        if (this.label != 0) {
            throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
        }
        AbstractC2467b.l(obj);
        TextureVideoView value = this.$videoView.getValue();
        if (value != null) {
            value.setAutoStart(this.$autoPlay);
            value.startIfNeeded();
        }
        return C3137A.f25453a;
    }
}
