package defpackage;

/* JADX INFO: renamed from: ᵠˉ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public final class C3144 implements InterfaceC1364 {

    /* JADX INFO: renamed from: ˈᵲᵢ, reason: contains not printable characters */
    public boolean f11978;

    /* JADX INFO: renamed from: ˌᴵ, reason: contains not printable characters */
    public final boolean f11979;

    /* JADX INFO: renamed from: ᵔᵖᵹᵫ, reason: contains not printable characters */
    public final InterfaceC1364 f11980;

    /* JADX INFO: renamed from: ᵜᵪʾ, reason: contains not printable characters */
    public final boolean f11981;

    /* JADX INFO: renamed from: ᵨᵼⁱ, reason: contains not printable characters */
    public final C3580 f11982;

    /* JADX INFO: renamed from: ᵯᵷʽ, reason: contains not printable characters */
    public final InterfaceC0883 f11983;

    /* JADX INFO: renamed from: ᵶˇᵱ, reason: contains not printable characters */
    public int f11984;

    public C3144(InterfaceC1364 interfaceC1364, boolean z, boolean z2, InterfaceC0883 interfaceC0883, C3580 c3580) {
        ᵿᵽᵤ.ːˏᵟᵯ(interfaceC1364, "Argument must not be null");
        this.f11980 = interfaceC1364;
        this.f11979 = z;
        this.f11981 = z2;
        this.f11983 = interfaceC0883;
        ᵿᵽᵤ.ːˏᵟᵯ(c3580, "Argument must not be null");
        this.f11982 = c3580;
    }

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

    public final synchronized String toString() {
        return "EngineResource{isMemoryCacheable=" + this.f11979 + ", listener=" + this.f11982 + ", key=" + this.f11983 + ", acquired=" + this.f11984 + ", isRecycled=" + this.f11978 + ", resource=" + this.f11980 + '}';
    }

    @Override // defpackage.InterfaceC1364
    /* JADX INFO: renamed from: ʽˈˋ */
    public final synchronized void mo2291() {
        if (this.f11984 > 0) {
            throw new IllegalStateException("Cannot recycle a resource while it is still acquired");
        }
        if (this.f11978) {
            throw new IllegalStateException("Cannot recycle a resource that has already been recycled");
        }
        this.f11978 = true;
        if (this.f11981) {
            this.f11980.mo2291();
        }
    }

    @Override // defpackage.InterfaceC1364
    /* JADX INFO: renamed from: ːˏᵟᵯ */
    public final int mo2292() {
        return this.f11980.mo2292();
    }

    /* JADX INFO: renamed from: ᵨᵣ, reason: contains not printable characters */
    public final void m7249() {
        boolean z;
        synchronized (this) {
            int i = this.f11984;
            if (i <= 0) {
                throw new IllegalStateException("Cannot release a recycled or not yet acquired resource");
            }
            z = true;
            int i2 = i - 1;
            this.f11984 = i2;
            if (i2 != 0) {
                z = false;
            }
        }
        if (z) {
            this.f11982.m8090(this.f11983, this);
        }
    }

    /* JADX INFO: renamed from: ᵲᵶᵳˈ, reason: contains not printable characters */
    public final synchronized void m7250() {
        if (this.f11978) {
            throw new IllegalStateException("Cannot acquire a recycled resource");
        }
        this.f11984++;
    }

    @Override // defpackage.InterfaceC1364
    /* JADX INFO: renamed from: ᵷᵺʾᵖ */
    public final Class mo2294() {
        return this.f11980.mo2294();
    }
}
