package o;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final class Vb0 implements InterfaceC2281qr, InterfaceC0220Im {
    public final /* synthetic */ Wb0 l;
    public final C2448sg m;
    public C2448sg n;

    /* renamed from: o, reason: collision with root package name */
    public DX f378o = DX.m;
    public final /* synthetic */ Wb0 p;

    public Vb0(Wb0 wb0, C2448sg c2448sg) {
        this.p = wb0;
        this.l = wb0;
        this.m = c2448sg;
    }

    @Override // o.InterfaceC2281qr
    public final float B(float f) {
        return this.l.e() * f;
    }

    @Override // o.InterfaceC2281qr
    public final float J(long j) {
        return this.l.J(j);
    }

    @Override // o.InterfaceC2281qr
    public final int N(float f) {
        return this.l.N(f);
    }

    @Override // o.InterfaceC2281qr
    public final long T(long j) {
        return this.l.T(j);
    }

    @Override // o.InterfaceC2281qr
    public final float X(long j) {
        return this.l.X(j);
    }

    public final Object a(DX dx, AbstractC0728ad abstractC0728ad) {
        C2448sg c2448sg = new C2448sg(1, AbstractC2539te.G(abstractC0728ad));
        c2448sg.r();
        this.f378o = dx;
        this.n = c2448sg;
        return c2448sg.q();
    }

    public final long b() {
        Wb0 wb0 = this.p;
        wb0.getClass();
        long jT = wb0.T(AbstractC2539te.S(wb0).K.g());
        long j = wb0.I;
        float fMax = Math.max(0.0f, Float.intBitsToFloat((int) (jT >> 32)) - ((int) (j >> 32))) / 2.0f;
        float fMax2 = Math.max(0.0f, Float.intBitsToFloat((int) (jT & 4294967295L)) - ((int) (j & 4294967295L))) / 2.0f;
        return (Float.floatToRawIntBits(fMax) << 32) | (Float.floatToRawIntBits(fMax2) & 4294967295L);
    }

    public final Qj0 c() {
        Wb0 wb0 = this.p;
        wb0.getClass();
        return AbstractC2539te.S(wb0).K;
    }

    /* JADX WARN: Multi-variable type inference failed */
    /* JADX WARN: Removed duplicated region for block: B:7:0x0013  */
    /* JADX WARN: Type inference failed for: r6v0, types: [long] */
    /* JADX WARN: Type inference failed for: r6v1, types: [o.TI] */
    /* JADX WARN: Type inference failed for: r6v4, types: [o.TI] */
    /* JADX WARN: Type inference failed for: r6v7 */
    /* JADX WARN: Type inference failed for: r6v8 */
    /* JADX WARN: Type inference failed for: r8v0, types: [o.SC] */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public final java.lang.Object d(long r6, o.SC r8, o.AbstractC0298Lm r9) {
        /*
            r5 = this;
            boolean r0 = r9 instanceof o.Ub0
            if (r0 == 0) goto L13
            r0 = r9
            o.Ub0 r0 = (o.Ub0) r0
            int r1 = r0.r
            r2 = -2147483648(0xffffffff80000000, float:-0.0)
            r3 = r1 & r2
            if (r3 == 0) goto L13
            int r1 = r1 - r2
            r0.r = r1
            goto L18
        L13:
            o.Ub0 r0 = new o.Ub0
            r0.<init>(r5, r9)
        L18:
            java.lang.Object r9 = r0.p
            int r1 = r0.r
            r2 = 1
            if (r1 == 0) goto L31
            if (r1 != r2) goto L29
            o.oa0 r6 = r0.f358o
            o.IJ.H(r9)     // Catch: java.lang.Throwable -> L27
            goto L69
        L27:
            r7 = move-exception
            goto L6f
        L29:
            java.lang.IllegalStateException r6 = new java.lang.IllegalStateException
            java.lang.String r7 = "call to 'resume' before 'invoke' with coroutine"
            r6.<init>(r7)
            throw r6
        L31:
            o.IJ.H(r9)
            r3 = 0
            int r9 = (r6 > r3 ? 1 : (r6 == r3 ? 0 : -1))
            if (r9 > 0) goto L4b
            o.sg r9 = r5.n
            if (r9 == 0) goto L4b
            o.EX r1 = new o.EX
            r1.<init>(r6)
            o.H20 r3 = new o.H20
            r3.<init>(r1)
            r9.resumeWith(r3)
        L4b:
            o.Wb0 r9 = r5.p
            o.Cn r9 = r9.v0()
            o.X5 r1 = new o.X5
            r3 = 0
            r1.<init>(r6, r5, r3)
            r6 = 3
            o.oa0 r6 = o.AbstractC1692kh0.C(r9, r3, r1, r6)
            r0.f358o = r6     // Catch: java.lang.Throwable -> L27
            r0.r = r2     // Catch: java.lang.Throwable -> L27
            java.lang.Object r9 = r8.f(r5, r0)     // Catch: java.lang.Throwable -> L27
            o.Dn r7 = o.EnumC0091Dn.l
            if (r9 != r7) goto L69
            return r7
        L69:
            o.lg r7 = o.C1784lg.m
            r6.c(r7)
            return r9
        L6f:
            o.lg r8 = o.C1784lg.m
            r6.c(r8)
            throw r7
        */
        throw new UnsupportedOperationException("Method not decompiled: o.Vb0.d(long, o.SC, o.Lm):java.lang.Object");
    }

    @Override // o.InterfaceC2281qr
    public final float e() {
        return this.l.e();
    }

    @Override // o.InterfaceC2281qr
    public final long e0(float f) {
        return this.l.e0(f);
    }

    @Override // o.InterfaceC0220Im
    public final InterfaceC2747vn h() {
        return C0281Kv.l;
    }

    @Override // o.InterfaceC2281qr
    public final float n0(int i) {
        return this.l.n0(i);
    }

    @Override // o.InterfaceC2281qr
    public final float q() {
        return this.l.q();
    }

    @Override // o.InterfaceC2281qr
    public final float q0(float f) {
        return f / this.l.e();
    }

    @Override // o.InterfaceC0220Im
    public final void resumeWith(Object obj) {
        Wb0 wb0 = this.p;
        synchronized (wb0.F) {
            wb0.E.j(this);
        }
        this.m.resumeWith(obj);
    }

    @Override // o.InterfaceC2281qr
    public final long y(float f) {
        return this.l.y(f);
    }

    @Override // o.InterfaceC2281qr
    public final long z(long j) {
        return this.l.z(j);
    }
}
