package d3;

import androidx.compose.runtime.MutableState;
import androidx.media3.exoplayer.ExoPlayer;
import java.util.concurrent.atomic.AtomicBoolean;
import m3.AbstractC2467b;
import w4.C3137A;

/* JADX INFO: loaded from: classes.dex */
public final class V1 extends C4.j implements J4.e {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public int f15385a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public /* synthetic */ Object f15386b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final /* synthetic */ long f15387c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final /* synthetic */ MutableState f15388d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final /* synthetic */ ExoPlayer f15389e;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public final /* synthetic */ AtomicBoolean f15390f;

    /* JADX INFO: renamed from: j, reason: collision with root package name */
    public final /* synthetic */ MutableState f15391j;

    /* JADX INFO: renamed from: k, reason: collision with root package name */
    public final /* synthetic */ MutableState f15392k;
    public final /* synthetic */ MutableState l;

    /* JADX INFO: renamed from: m, reason: collision with root package name */
    public final /* synthetic */ MutableState f15393m;

    /* JADX INFO: renamed from: n, reason: collision with root package name */
    public final /* synthetic */ MutableState f15394n;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public V1(long j4, MutableState mutableState, ExoPlayer exoPlayer, AtomicBoolean atomicBoolean, MutableState mutableState2, MutableState mutableState3, MutableState mutableState4, MutableState mutableState5, MutableState mutableState6, A4.d dVar) {
        super(2, dVar);
        this.f15387c = j4;
        this.f15388d = mutableState;
        this.f15389e = exoPlayer;
        this.f15390f = atomicBoolean;
        this.f15391j = mutableState2;
        this.f15392k = mutableState3;
        this.l = mutableState4;
        this.f15393m = mutableState5;
        this.f15394n = mutableState6;
    }

    @Override // C4.a
    public final A4.d create(Object obj, A4.d dVar) {
        V1 v12 = new V1(this.f15387c, this.f15388d, this.f15389e, this.f15390f, this.f15391j, this.f15392k, this.l, this.f15393m, this.f15394n, dVar);
        v12.f15386b = obj;
        return v12;
    }

    @Override // J4.e
    public final Object invoke(Object obj, Object obj2) {
        return ((V1) create((V4.C) obj, (A4.d) obj2)).invokeSuspend(C3137A.f25453a);
    }

    @Override // C4.a
    public final Object invokeSuspend(Object obj) {
        V4.C c6;
        B4.a aVar = B4.a.f492a;
        int i6 = this.f15385a;
        if (i6 == 0) {
            AbstractC2467b.l(obj);
            V4.C c7 = (V4.C) this.f15386b;
            this.f15386b = c7;
            this.f15385a = 1;
            if (V4.E.l(250L, this) == aVar) {
                return aVar;
            }
            c6 = c7;
        } else {
            if (i6 != 1) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            c6 = (V4.C) this.f15386b;
            AbstractC2467b.l(obj);
        }
        boolean zV = V4.E.v(c6);
        C3137A c3137a = C3137A.f25453a;
        if (!zV) {
            return c3137a;
        }
        long jG = v2.G(this.f15388d, this.f15387c);
        v2.I(this.f15389e, this.f15390f, this.f15391j, this.f15392k, this.l, this.f15393m, jG);
        this.f15394n.setValue(null);
        return c3137a;
    }
}
