package x;

import m3.AbstractC2467b;
import w4.C3137A;

/* JADX INFO: loaded from: classes.dex */
public final class C0 implements h1.c {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final /* synthetic */ h1.c f25522a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public boolean f25523b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public boolean f25524c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final e5.c f25525d = new e5.c(false);

    public C0(h1.c cVar) {
        this.f25522a = cVar;
    }

    @Override // h1.c
    public final long I(float f6) {
        return this.f25522a.I(f6);
    }

    @Override // h1.c
    public final float L(int i6) {
        return this.f25522a.L(i6);
    }

    @Override // h1.c
    public final float N(float f6) {
        return this.f25522a.N(f6);
    }

    @Override // h1.c
    public final float T() {
        return this.f25522a.T();
    }

    @Override // h1.c
    public final float Y(float f6) {
        return this.f25522a.Y(f6);
    }

    @Override // h1.c
    public final float a() {
        return this.f25522a.a();
    }

    public final void b() {
        this.f25524c = true;
        e5.c cVar = this.f25525d;
        if (cVar.d()) {
            cVar.g(null);
        }
    }

    public final void d() {
        this.f25523b = true;
        e5.c cVar = this.f25525d;
        if (cVar.d()) {
            cVar.g(null);
        }
    }

    @Override // h1.c
    public final int g0(float f6) {
        return this.f25522a.g0(f6);
    }

    /* JADX WARN: Removed duplicated region for block: B:7:0x0013  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final Object i(C4.c cVar) {
        A0 a02;
        if (cVar instanceof A0) {
            a02 = (A0) cVar;
            int i6 = a02.f25499c;
            if ((i6 & Integer.MIN_VALUE) != 0) {
                a02.f25499c = i6 - Integer.MIN_VALUE;
            } else {
                a02 = new A0(this, cVar);
            }
        }
        Object obj = a02.f25497a;
        B4.a aVar = B4.a.f492a;
        int i7 = a02.f25499c;
        if (i7 == 0) {
            AbstractC2467b.l(obj);
            a02.f25499c = 1;
            if (this.f25525d.e(a02) == aVar) {
                return aVar;
            }
        } else {
            if (i7 != 1) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            AbstractC2467b.l(obj);
        }
        this.f25523b = false;
        this.f25524c = false;
        return C3137A.f25453a;
    }

    /* JADX WARN: Removed duplicated region for block: B:7:0x0013  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final Object k(C4.c cVar) {
        B0 b02;
        if (cVar instanceof B0) {
            b02 = (B0) cVar;
            int i6 = b02.f25507c;
            if ((i6 & Integer.MIN_VALUE) != 0) {
                b02.f25507c = i6 - Integer.MIN_VALUE;
            } else {
                b02 = new B0(this, cVar);
            }
        }
        Object obj = b02.f25505a;
        B4.a aVar = B4.a.f492a;
        int i7 = b02.f25507c;
        e5.c cVar2 = this.f25525d;
        if (i7 == 0) {
            AbstractC2467b.l(obj);
            if (!this.f25523b && !this.f25524c) {
                b02.f25507c = 1;
                if (cVar2.e(b02) == aVar) {
                    return aVar;
                }
            }
            return Boolean.valueOf(this.f25523b);
        }
        if (i7 != 1) {
            throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
        }
        AbstractC2467b.l(obj);
        cVar2.g(null);
        return Boolean.valueOf(this.f25523b);
    }

    @Override // h1.c
    public final long k0(long j4) {
        return this.f25522a.k0(j4);
    }

    @Override // h1.c
    public final long n(float f6) {
        return this.f25522a.n(f6);
    }

    @Override // h1.c
    public final long o(long j4) {
        return this.f25522a.o(j4);
    }

    @Override // h1.c
    public final float o0(long j4) {
        return this.f25522a.o0(j4);
    }

    @Override // h1.c
    public final float v(long j4) {
        return this.f25522a.v(j4);
    }
}
