package o;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final class AT {
    public final BT a;
    public boolean b;
    public C2807wR c;
    public final ZB d;

    public AT(ZB zb, BT bt) {
        boolean z = zb.b;
        this.a = bt;
        this.b = z;
        this.d = zb;
    }

    public final void a() {
        C2807wR c2807wR = this.c;
        if (c2807wR == null || !c2807wR.c.remove(this)) {
            return;
        }
        C3092zR c3092zR = c2807wR.b;
        if (equals(c3092zR.f)) {
            c3092zR.f = null;
            c3092zR.g = 0;
            c3092zR.h = null;
        }
        c3092zR.d.remove(this);
        c3092zR.e.remove(this);
        this.c = null;
        c3092zR.b();
    }

    public final void b(boolean z) {
        C3092zR c3092zR;
        if (this.b == z) {
            return;
        }
        this.b = z;
        C2807wR c2807wR = this.c;
        if (c2807wR == null || (c3092zR = c2807wR.b) == null) {
            return;
        }
        c3092zR.b();
    }
}
