package ඓ.ῲ.K.㗗;

import com.bumptech.glide.request.RequestCoordinator;

/* renamed from: ඓ.ῲ.K.㗗.ῲ  reason: contains not printable characters */
/* compiled from: ErrorRequestCoordinator */
public final class C1196 implements RequestCoordinator, AbstractC1189 {

    /* renamed from: ʬ  reason: contains not printable characters */
    public volatile AbstractC1189 f4727;

    /* renamed from: ඓ  reason: contains not printable characters */
    public RequestCoordinator.RequestState f4728;

    /* renamed from: ῲ  reason: contains not printable characters */
    public final RequestCoordinator f4729;

    /* renamed from: K  reason: contains not printable characters */
    public final Object f4730;

    /* renamed from: 㴹  reason: contains not printable characters */
    public RequestCoordinator.RequestState f4731;

    /* renamed from: 㸾  reason: contains not printable characters */
    public volatile AbstractC1189 f4732;

    public C1196(Object obj, RequestCoordinator requestCoordinator) {
        RequestCoordinator.RequestState requestState = RequestCoordinator.RequestState.CLEARED;
        this.f4728 = requestState;
        this.f4731 = requestState;
        this.f4730 = obj;
        this.f4729 = requestCoordinator;
    }

    @Override // ඓ.ῲ.K.㗗.AbstractC1189
    public void clear() {
        synchronized (this.f4730) {
            this.f4728 = RequestCoordinator.RequestState.CLEARED;
            this.f4727.clear();
            if (this.f4731 != RequestCoordinator.RequestState.CLEARED) {
                this.f4731 = RequestCoordinator.RequestState.CLEARED;
                this.f4732.clear();
            }
        }
    }

    @Override // com.bumptech.glide.request.RequestCoordinator
    public RequestCoordinator getRoot() {
        RequestCoordinator root;
        synchronized (this.f4730) {
            root = this.f4729 != null ? this.f4729.getRoot() : this;
        }
        return root;
    }

    @Override // ඓ.ῲ.K.㗗.AbstractC1189
    public boolean isRunning() {
        boolean z;
        synchronized (this.f4730) {
            if (this.f4728 != RequestCoordinator.RequestState.RUNNING) {
                if (this.f4731 != RequestCoordinator.RequestState.RUNNING) {
                    z = false;
                }
            }
            z = true;
        }
        return z;
    }

    @Override // ඓ.ῲ.K.㗗.AbstractC1189
    public void pause() {
        synchronized (this.f4730) {
            if (this.f4728 == RequestCoordinator.RequestState.RUNNING) {
                this.f4728 = RequestCoordinator.RequestState.PAUSED;
                this.f4727.pause();
            }
            if (this.f4731 == RequestCoordinator.RequestState.RUNNING) {
                this.f4731 = RequestCoordinator.RequestState.PAUSED;
                this.f4732.pause();
            }
        }
    }

    @Override // ඓ.ῲ.K.㗗.AbstractC1189
    /* renamed from: ʬ  reason: contains not printable characters */
    public boolean m3186() {
        boolean z;
        synchronized (this.f4730) {
            if (this.f4728 != RequestCoordinator.RequestState.SUCCESS) {
                if (this.f4731 != RequestCoordinator.RequestState.SUCCESS) {
                    z = false;
                }
            }
            z = true;
        }
        return z;
    }

    @Override // com.bumptech.glide.request.RequestCoordinator
    /* renamed from: ඓ  reason: contains not printable characters */
    public boolean m3187(AbstractC1189 r5) {
        boolean z;
        boolean z2;
        synchronized (this.f4730) {
            RequestCoordinator requestCoordinator = this.f4729;
            z = false;
            if (requestCoordinator != null) {
                if (!requestCoordinator.m1332(this)) {
                    z2 = false;
                    if (z2 && m3190(r5)) {
                        z = true;
                    }
                }
            }
            z2 = true;
            z = true;
        }
        return z;
    }

    @Override // ඓ.ῲ.K.㗗.AbstractC1189
    /* renamed from: ῲ  reason: contains not printable characters */
    public void m3188() {
        synchronized (this.f4730) {
            if (this.f4728 != RequestCoordinator.RequestState.RUNNING) {
                this.f4728 = RequestCoordinator.RequestState.RUNNING;
                this.f4727.m3179();
            }
        }
    }

    /* renamed from: ⁱ  reason: contains not printable characters */
    public final boolean m3190(AbstractC1189 r3) {
        return r3.equals(this.f4727) || (this.f4728 == RequestCoordinator.RequestState.FAILED && r3.equals(this.f4732));
    }

    @Override // ඓ.ῲ.K.㗗.AbstractC1189
    /* renamed from: K  reason: contains not printable characters */
    public boolean m3192(AbstractC1189 r4) {
        if (!(r4 instanceof C1196)) {
            return false;
        }
        C1196 r42 = (C1196) r4;
        if (!this.f4727.m3181(r42.f4727) || !this.f4732.m3181(r42.f4732)) {
            return false;
        }
        return true;
    }

    @Override // com.bumptech.glide.request.RequestCoordinator
    /* renamed from: 㴹  reason: contains not printable characters */
    public boolean m3193(AbstractC1189 r5) {
        boolean z;
        boolean z2;
        synchronized (this.f4730) {
            RequestCoordinator requestCoordinator = this.f4729;
            z = false;
            if (requestCoordinator != null) {
                if (!requestCoordinator.m1335(this)) {
                    z2 = false;
                    if (z2 && m3190(r5)) {
                        z = true;
                    }
                }
            }
            z2 = true;
            z = true;
        }
        return z;
    }

    @Override // ඓ.ῲ.K.㗗.AbstractC1189
    /* renamed from: 㸾  reason: contains not printable characters */
    public boolean m3195() {
        boolean z;
        synchronized (this.f4730) {
            z = this.f4728 == RequestCoordinator.RequestState.CLEARED && this.f4731 == RequestCoordinator.RequestState.CLEARED;
        }
        return z;
    }

    @Override // com.bumptech.glide.request.RequestCoordinator
    /* renamed from: ʬ  reason: contains not printable characters */
    public void m3185(AbstractC1189 r3) {
        synchronized (this.f4730) {
            if (!r3.equals(this.f4732)) {
                this.f4728 = RequestCoordinator.RequestState.FAILED;
                if (this.f4731 != RequestCoordinator.RequestState.RUNNING) {
                    this.f4731 = RequestCoordinator.RequestState.RUNNING;
                    this.f4732.m3179();
                }
                return;
            }
            this.f4731 = RequestCoordinator.RequestState.FAILED;
            if (this.f4729 != null) {
                this.f4729.m1331(this);
            }
        }
    }

    @Override // ඓ.ῲ.K.㗗.AbstractC1189, com.bumptech.glide.request.RequestCoordinator
    /* renamed from: K  reason: contains not printable characters */
    public boolean m3191() {
        boolean z;
        synchronized (this.f4730) {
            if (!this.f4727.m3180()) {
                if (!this.f4732.m3180()) {
                    z = false;
                }
            }
            z = true;
        }
        return z;
    }

    @Override // com.bumptech.glide.request.RequestCoordinator
    /* renamed from: 㸾  reason: contains not printable characters */
    public void m3194(AbstractC1189 r3) {
        synchronized (this.f4730) {
            if (r3.equals(this.f4727)) {
                this.f4728 = RequestCoordinator.RequestState.SUCCESS;
            } else if (r3.equals(this.f4732)) {
                this.f4731 = RequestCoordinator.RequestState.SUCCESS;
            }
            if (this.f4729 != null) {
                this.f4729.m1336(this);
            }
        }
    }

    @Override // com.bumptech.glide.request.RequestCoordinator
    /* renamed from: ῲ  reason: contains not printable characters */
    public boolean m3189(AbstractC1189 r5) {
        boolean z;
        boolean z2;
        synchronized (this.f4730) {
            RequestCoordinator requestCoordinator = this.f4729;
            z = false;
            if (requestCoordinator != null) {
                if (!requestCoordinator.m1333(this)) {
                    z2 = false;
                    if (z2 && m3190(r5)) {
                        z = true;
                    }
                }
            }
            z2 = true;
            z = true;
        }
        return z;
    }
}
