package R5;

import Z6.InterfaceC0382w;
import com.google.android.gms.internal.measurement.C1;
import com.martsnew.domain.model.EpisodeSource;
import k5.C1102b;

/* JADX INFO: loaded from: classes.dex */
public final class H extends G6.i implements O6.p {

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

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

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

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public H(P p3, long j8, long j9, E6.d dVar) {
        super(2, dVar);
        this.f6094v = p3;
        this.f6095w = j8;
        this.f6096x = j9;
    }

    @Override // O6.p
    public final Object k(Object obj, Object obj2) {
        return ((H) m((E6.d) obj2, (InterfaceC0382w) obj)).p(A6.n.f457a);
    }

    @Override // G6.a
    public final E6.d m(E6.d dVar, Object obj) {
        return new H(this.f6094v, this.f6095w, this.f6096x, dVar);
    }

    @Override // G6.a
    public final Object p(Object obj) throws Throwable {
        EpisodeSource episodeSource;
        F6.a aVar = F6.a.f2580q;
        int i = this.f6093u;
        A6.n nVar = A6.n.f457a;
        if (i != 0) {
            if (i != 1) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            C1.N(obj);
            ((A6.j) obj).getClass();
            return nVar;
        }
        C1.N(obj);
        P p3 = this.f6094v;
        if (p3.f6129j.f16277a.b() && (episodeSource = p3.f6138s) != null) {
            long j8 = this.f6095w;
            long j9 = this.f6096x;
            int i5 = j8 <= j9 ? (int) ((((long) 100) * j8) / j9) : 100;
            if (j8 > j9) {
                j8 = j9;
            }
            C1102b c1102b = new C1102b(episodeSource, j8, i5, p3.f6144y);
            this.f6093u = 1;
            if (p3.f6130k.a(c1102b, this) == aVar) {
                return aVar;
            }
        }
        return nVar;
    }
}
