package R5;

import Z6.InterfaceC0382w;
import com.martsnew.tv.ui.player.TvPlayerActivity;

/* JADX INFO: renamed from: R5.o, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C0296o extends G6.i implements O6.p {

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

    /* JADX INFO: renamed from: v, reason: collision with root package name */
    public final /* synthetic */ TvPlayerActivity f6180v;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C0296o(E6.d dVar, TvPlayerActivity tvPlayerActivity) {
        super(2, dVar);
        this.f6180v = tvPlayerActivity;
    }

    @Override // O6.p
    public final Object k(Object obj, Object obj2) throws Throwable {
        ((C0296o) m((E6.d) obj2, (InterfaceC0382w) obj)).p(A6.n.f457a);
        return F6.a.f2580q;
    }

    @Override // G6.a
    public final E6.d m(E6.d dVar, Object obj) {
        return new C0296o(dVar, this.f6180v);
    }

    /* JADX WARN: Removed duplicated region for block: B:11:0x0022 A[RETURN] */
    /* JADX WARN: Removed duplicated region for block: B:14:0x0033  */
    /* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0020 -> B:12:0x0023). Please report as a decompilation issue!!! */
    /*  JADX ERROR: JadxOverflowException in pass: RegionMakerVisitor
        jadx.core.utils.exceptions.JadxOverflowException: Regions count limit reached
        	at jadx.core.utils.ErrorsCounter.addError(ErrorsCounter.java:59)
        	at jadx.core.utils.ErrorsCounter.error(ErrorsCounter.java:31)
        	at jadx.core.dex.attributes.nodes.NotificationAttrNode.addError(NotificationAttrNode.java:19)
        */
    @Override // G6.a
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final java.lang.Object p(java.lang.Object r11) throws java.lang.Throwable {
        /*
            r10 = this;
            F6.a r0 = F6.a.f2580q
            int r1 = r10.f6179u
            r2 = 1
            if (r1 == 0) goto L15
            if (r1 != r2) goto Ld
            com.google.android.gms.internal.measurement.C1.N(r11)
            goto L23
        Ld:
            java.lang.IllegalStateException r11 = new java.lang.IllegalStateException
            java.lang.String r0 = "call to 'resume' before 'invoke' with coroutine"
            r11.<init>(r0)
            throw r11
        L15:
            com.google.android.gms.internal.measurement.C1.N(r11)
        L18:
            r10.f6179u = r2
            r3 = 15000(0x3a98, double:7.411E-320)
            java.lang.Object r11 = Z6.AbstractC0385z.h(r3, r10)
            if (r11 != r0) goto L23
            return r0
        L23:
            int r11 = com.martsnew.tv.ui.player.TvPlayerActivity.f11193a0
            com.martsnew.tv.ui.player.TvPlayerActivity r11 = r10.f6180v
            androidx.media3.exoplayer.ExoPlayer r1 = r11.W()
            O3.e r1 = (O3.e) r1
            boolean r1 = r1.s()
            if (r1 == 0) goto L18
            R5.P r4 = r11.Y()
            androidx.media3.exoplayer.ExoPlayer r1 = r11.W()
            B0.I r1 = (B0.I) r1
            long r5 = r1.M()
            androidx.media3.exoplayer.ExoPlayer r11 = r11.W()
            B0.I r11 = (B0.I) r11
            long r7 = r11.R()
            R5.H r3 = new R5.H
            r9 = 0
            r3.<init>(r4, r5, r7, r9)
            r11 = 0
            r4.e(r11, r3)
            goto L18
        */
        throw new UnsupportedOperationException("Method not decompiled: R5.C0296o.p(java.lang.Object):java.lang.Object");
    }
}
