package defpackage;

/* renamed from: ᵵᵪːˊ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C4744 implements InterfaceC1725 {

    /* renamed from: ˀᵗᵝᵭ, reason: contains not printable characters */
    public boolean f17586;

    /* renamed from: ᵡⁱᵥ, reason: contains not printable characters */
    public int f17587;

    /* renamed from: ᵢˇᵭ, reason: contains not printable characters */
    public final boolean f17588;

    /* renamed from: ᵤᵙᵷ, reason: contains not printable characters */
    public final InterfaceC4207 f17589;

    /* renamed from: ᵧᵾˀˈ, reason: contains not printable characters */
    public final boolean f17590;

    /* renamed from: ᵾᵬ, reason: contains not printable characters */
    public final C3652 f17591;

    /* renamed from: ᵿʗᵝʽ, reason: contains not printable characters */
    public final InterfaceC1725 f17592;

    public C4744(InterfaceC1725 interfaceC1725, boolean z, boolean z2, InterfaceC4207 interfaceC4207, C3652 c3652) {
        ᵼᵙᵖᵱ.ˏˋٴ(interfaceC1725, "Argument must not be null");
        this.f17592 = interfaceC1725;
        this.f17590 = z;
        this.f17588 = z2;
        this.f17589 = interfaceC4207;
        ᵼᵙᵖᵱ.ˏˋٴ(c3652, "Argument must not be null");
        this.f17591 = c3652;
    }

    @Override // defpackage.InterfaceC1725
    public final Object get() {
        return this.f17592.get();
    }

    public final synchronized String toString() {
        return "EngineResource{isMemoryCacheable=" + this.f17590 + ", listener=" + this.f17591 + ", key=" + this.f17589 + ", acquired=" + this.f17587 + ", isRecycled=" + this.f17586 + ", resource=" + this.f17592 + '}';
    }

    /* renamed from: ˇʼʤˎ, reason: contains not printable characters */
    public final void m10025() {
        boolean z;
        synchronized (this) {
            int i = this.f17587;
            if (i <= 0) {
                throw new IllegalStateException("Cannot release a recycled or not yet acquired resource");
            }
            z = true;
            int i2 = i - 1;
            this.f17587 = i2;
            if (i2 != 0) {
                z = false;
            }
        }
        if (z) {
            this.f17591.m8242(this.f17589, this);
        }
    }

    @Override // defpackage.InterfaceC1725
    /* renamed from: ˏᵙ */
    public final int mo3008() {
        return this.f17592.mo3008();
    }

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public final synchronized void m10026() {
        if (this.f17586) {
            throw new IllegalStateException("Cannot acquire a recycled resource");
        }
        this.f17587++;
    }

    @Override // defpackage.InterfaceC1725
    /* renamed from: ᵴᵳ */
    public final synchronized void mo3009() {
        if (this.f17587 > 0) {
            throw new IllegalStateException("Cannot recycle a resource while it is still acquired");
        }
        if (this.f17586) {
            throw new IllegalStateException("Cannot recycle a resource that has already been recycled");
        }
        this.f17586 = true;
        if (this.f17588) {
            this.f17592.mo3009();
        }
    }

    @Override // defpackage.InterfaceC1725
    /* renamed from: ᵻᵢﹳᵰ */
    public final Class mo3010() {
        return this.f17592.mo3010();
    }
}
