package defpackage;

/* JADX INFO: renamed from: ʾː, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public final class C0261 implements InterfaceC4110, InterfaceC2653 {

    /* JADX INFO: renamed from: ʽˈˋ, reason: contains not printable characters */
    public final Object f1850;

    /* JADX INFO: renamed from: ːˏᵟᵯ, reason: contains not printable characters */
    public volatile C4436 f1851;

    /* JADX INFO: renamed from: ᵲᵶᵳˈ, reason: contains not printable characters */
    public final InterfaceC4110 f1853;

    /* JADX INFO: renamed from: ᵵᵽ, reason: contains not printable characters */
    public boolean f1854;

    /* JADX INFO: renamed from: ᵷᵺʾᵖ, reason: contains not printable characters */
    public volatile InterfaceC2653 f1855;

    /* JADX INFO: renamed from: ᵨᵣ, reason: contains not printable characters */
    public int f1852 = 3;

    /* JADX INFO: renamed from: ᵻˈᵦʼ, reason: contains not printable characters */
    public int f1856 = 3;

    public C0261(Object obj, InterfaceC4110 interfaceC4110) {
        this.f1850 = obj;
        this.f1853 = interfaceC4110;
    }

    @Override // defpackage.InterfaceC2653
    public final void clear() {
        synchronized (this.f1850) {
            this.f1854 = false;
            this.f1852 = 3;
            this.f1856 = 3;
            this.f1855.clear();
            this.f1851.clear();
        }
    }

    /* JADX WARN: Multi-variable type inference failed */
    /* JADX WARN: Type inference failed for: r2v2, types: [ᵭʔʾˆ] */
    /* JADX WARN: Type inference failed for: r2v4 */
    /* JADX WARN: Type inference failed for: r2v5 */
    @Override // defpackage.InterfaceC4110
    public final InterfaceC4110 getRoot() {
        ?? root;
        synchronized (this.f1850) {
            try {
                InterfaceC4110 interfaceC4110 = this.f1853;
                this = this;
                if (interfaceC4110 != null) {
                    root = interfaceC4110.getRoot();
                }
            } catch (Throwable th) {
                throw th;
            }
        }
        return root;
    }

    @Override // defpackage.InterfaceC2653
    public final boolean isRunning() {
        boolean z;
        synchronized (this.f1850) {
            z = true;
            if (this.f1852 != 1) {
                z = false;
            }
        }
        return z;
    }

    @Override // defpackage.InterfaceC2653
    /* JADX INFO: renamed from: ʽˈˋ, reason: contains not printable characters */
    public final boolean mo1479(InterfaceC2653 interfaceC2653) {
        if (!(interfaceC2653 instanceof C0261)) {
            return false;
        }
        C0261 c0261 = (C0261) interfaceC2653;
        if (this.f1851 == null) {
            if (c0261.f1851 != null) {
                return false;
            }
        } else if (!this.f1851.mo1479(c0261.f1851)) {
            return false;
        }
        return this.f1855 == null ? c0261.f1855 == null : this.f1855.mo1479(c0261.f1855);
    }

    @Override // defpackage.InterfaceC4110
    /* JADX INFO: renamed from: ˊᵫᵗ, reason: contains not printable characters */
    public final boolean mo1480(InterfaceC2653 interfaceC2653) {
        boolean z;
        synchronized (this.f1850) {
            try {
                InterfaceC4110 interfaceC4110 = this.f1853;
                z = (interfaceC4110 == null || interfaceC4110.mo1480(this)) && (interfaceC2653.equals(this.f1851) || this.f1852 != 4);
            } finally {
            }
        }
        return z;
    }

    @Override // defpackage.InterfaceC4110
    /* JADX INFO: renamed from: ːˏᵟᵯ, reason: contains not printable characters */
    public final void mo1481(InterfaceC2653 interfaceC2653) {
        synchronized (this.f1850) {
            try {
                if (!interfaceC2653.equals(this.f1851)) {
                    this.f1856 = 5;
                    return;
                }
                this.f1852 = 5;
                InterfaceC4110 interfaceC4110 = this.f1853;
                if (interfaceC4110 != null) {
                    interfaceC4110.mo1481(this);
                }
            } catch (Throwable th) {
                throw th;
            }
        }
    }

    @Override // defpackage.InterfaceC2653
    /* JADX INFO: renamed from: ᵨᵣ, reason: contains not printable characters */
    public final void mo1482() {
        synchronized (this.f1850) {
            try {
                if (!AbstractC2704.m6530(this.f1856)) {
                    this.f1856 = 2;
                    this.f1855.mo1482();
                }
                if (!AbstractC2704.m6530(this.f1852)) {
                    this.f1852 = 2;
                    this.f1851.mo1482();
                }
            } catch (Throwable th) {
                throw th;
            }
        }
    }

    @Override // defpackage.InterfaceC2653
    /* JADX INFO: renamed from: ᵱᵽʡᵚ, reason: contains not printable characters */
    public final void mo1483() {
        synchronized (this.f1850) {
            try {
                this.f1854 = true;
                try {
                    if (this.f1852 != 4 && this.f1856 != 1) {
                        this.f1856 = 1;
                        this.f1855.mo1483();
                    }
                    if (this.f1854 && this.f1852 != 1) {
                        this.f1852 = 1;
                        this.f1851.mo1483();
                    }
                    this.f1854 = false;
                } catch (Throwable th) {
                    this.f1854 = false;
                    throw th;
                }
            } catch (Throwable th2) {
                throw th2;
            }
        }
    }

    @Override // defpackage.InterfaceC4110, defpackage.InterfaceC2653
    /* JADX INFO: renamed from: ᵲᵶᵳˈ, reason: contains not printable characters */
    public final boolean mo1484() {
        boolean z;
        synchronized (this.f1850) {
            try {
                z = this.f1855.mo1484() || this.f1851.mo1484();
            } finally {
            }
        }
        return z;
    }

    @Override // defpackage.InterfaceC4110
    /* JADX INFO: renamed from: ᵵᵽ, reason: contains not printable characters */
    public final boolean mo1485(InterfaceC2653 interfaceC2653) {
        boolean z;
        synchronized (this.f1850) {
            try {
                InterfaceC4110 interfaceC4110 = this.f1853;
                z = (interfaceC4110 == null || interfaceC4110.mo1485(this)) && interfaceC2653.equals(this.f1851) && !mo1484();
            } finally {
            }
        }
        return z;
    }

    @Override // defpackage.InterfaceC2653
    /* JADX INFO: renamed from: ᵶᵥᵝ, reason: contains not printable characters */
    public final boolean mo1486() {
        boolean z;
        synchronized (this.f1850) {
            z = this.f1852 == 4;
        }
        return z;
    }

    @Override // defpackage.InterfaceC4110
    /* JADX INFO: renamed from: ᵷᵺʾᵖ, reason: contains not printable characters */
    public final void mo1487(InterfaceC2653 interfaceC2653) {
        synchronized (this.f1850) {
            try {
                if (interfaceC2653.equals(this.f1855)) {
                    this.f1856 = 4;
                    return;
                }
                this.f1852 = 4;
                InterfaceC4110 interfaceC4110 = this.f1853;
                if (interfaceC4110 != null) {
                    interfaceC4110.mo1487(this);
                }
                if (!AbstractC2704.m6530(this.f1856)) {
                    this.f1855.clear();
                }
            } catch (Throwable th) {
                throw th;
            }
        }
    }

    @Override // defpackage.InterfaceC2653
    /* JADX INFO: renamed from: ᵻʽᵯ, reason: contains not printable characters */
    public final boolean mo1488() {
        boolean z;
        synchronized (this.f1850) {
            z = this.f1852 == 3;
        }
        return z;
    }

    @Override // defpackage.InterfaceC4110
    /* JADX INFO: renamed from: ᵻˈᵦʼ, reason: contains not printable characters */
    public final boolean mo1489(InterfaceC2653 interfaceC2653) {
        boolean z;
        synchronized (this.f1850) {
            try {
                InterfaceC4110 interfaceC4110 = this.f1853;
                z = (interfaceC4110 == null || interfaceC4110.mo1489(this)) && interfaceC2653.equals(this.f1851) && this.f1852 != 2;
            } finally {
            }
        }
        return z;
    }
}
