package B1;

/* JADX INFO: loaded from: classes.dex */
public final class d {

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

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

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

    public final void a(c cVar) {
        synchronized (this) {
            while (this.f443c) {
                try {
                    try {
                        wait();
                    } catch (InterruptedException unused) {
                    }
                } finally {
                }
            }
            if (this.f442b == cVar) {
                return;
            }
            this.f442b = cVar;
            if (this.f441a) {
                cVar.onCancel();
            }
        }
    }
}
