package m3;

import V4.C;
import androidx.compose.runtime.MutableState;
import androidx.media3.common.Player;
import androidx.media3.exoplayer.ExoPlayer;
import androidx.media3.ui.PlayerView;
import w4.C3137A;

/* JADX INFO: renamed from: m3.t, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C2485t extends C4.j implements J4.e {

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

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

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

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C2485t(A4.d dVar, MutableState mutableState, MutableState mutableState2, MutableState mutableState3, ExoPlayer exoPlayer) {
        super(2, dVar);
        this.f20543a = mutableState;
        this.f20544b = exoPlayer;
        this.f20545c = mutableState2;
        this.f20546d = mutableState3;
    }

    @Override // C4.a
    public final A4.d create(Object obj, A4.d dVar) {
        return new C2485t(dVar, this.f20543a, this.f20545c, this.f20546d, this.f20544b);
    }

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

    /* JADX WARN: Multi-variable type inference failed */
    @Override // C4.a
    public final Object invokeSuspend(Object obj) {
        B4.a aVar = B4.a.f492a;
        AbstractC2467b.l(obj);
        PlayerView playerView = (PlayerView) this.f20543a.getValue();
        C3137A c3137a = C3137A.f25453a;
        if (playerView != null && ((AbstractC2471f) this.f20545c.getValue()) != null && ((String) this.f20546d.getValue()) != null) {
            Player player = playerView.getPlayer();
            ExoPlayer exoPlayer = this.f20544b;
            if (player != exoPlayer) {
                playerView.setPlayer(exoPlayer);
            }
            AbstractC2486u.b(playerView);
        }
        return c3137a;
    }
}
