package sf;

import android.util.SparseIntArray;
import android.view.View;
import android.widget.LinearLayout;
import androidx.databinding.n;
import androidx.lifecycle.f0;
import androidx.lifecycle.u;
import h7.j;
import o8.d0;
import u7.l;

/* loaded from: classes4.dex */
public class b extends a {
    private static final n.i H;
    private static final SparseIntArray I;
    private final LinearLayout F;
    private long G;

    static {
        n.i iVar = new n.i(4);
        H = iVar;
        iVar.a(0, new String[]{"appbar", "cpc_navigation"}, new int[]{2, 3}, new int[]{j.f21087b, j.f21106u});
        SparseIntArray sparseIntArray = new SparseIntArray();
        I = sparseIntArray;
        sparseIntArray.put(rf.b.f34692h, 1);
    }

    public b(androidx.databinding.e eVar, View view) {
        this(eVar, view, n.E(eVar, view, 4, H, I));
    }

    private boolean W(u7.c cVar, int i10) {
        if (i10 != rf.a.f34681a) {
            return false;
        }
        synchronized (this) {
            this.G |= 4;
        }
        return true;
    }

    private boolean X(f0 f0Var, int i10) {
        if (i10 != rf.a.f34681a) {
            return false;
        }
        synchronized (this) {
            this.G |= 1;
        }
        return true;
    }

    private boolean Y(l lVar, int i10) {
        if (i10 != rf.a.f34681a) {
            return false;
        }
        synchronized (this) {
            this.G |= 2;
        }
        return true;
    }

    @Override // androidx.databinding.n
    public void B() {
        synchronized (this) {
            this.G = 32L;
        }
        this.A.B();
        this.B.B();
        J();
    }

    @Override // androidx.databinding.n
    protected boolean F(int i10, Object obj, int i11) {
        if (i10 == 0) {
            return X((f0) obj, i11);
        }
        if (i10 == 1) {
            return Y((l) obj, i11);
        }
        if (i10 != 2) {
            return false;
        }
        return W((u7.c) obj, i11);
    }

    @Override // androidx.databinding.n
    public void O(u uVar) {
        super.O(uVar);
        this.A.O(uVar);
        this.B.O(uVar);
    }

    @Override // androidx.databinding.n
    public boolean Q(int i10, Object obj) {
        if (rf.a.f34683c == i10) {
            U((d0) obj);
        } else {
            if (rf.a.f34684d != i10) {
                return false;
            }
            V((rf.f) obj);
        }
        return true;
    }

    @Override // sf.a
    public void U(d0 d0Var) {
        this.E = d0Var;
        synchronized (this) {
            this.G |= 8;
        }
        f(rf.a.f34683c);
        super.J();
    }

    @Override // sf.a
    public void V(rf.f fVar) {
        this.D = fVar;
    }

    @Override // androidx.databinding.n
    protected void n() {
        long j10;
        synchronized (this) {
            j10 = this.G;
            this.G = 0L;
        }
        d0 d0Var = this.E;
        long j11 = 41 & j10;
        int i10 = 0;
        if (j11 != 0) {
            f0 z02 = d0Var != null ? d0Var.z0() : null;
            S(0, z02);
            i10 = n.L(z02 != null ? (Integer) z02.f() : null);
        }
        if (j11 != 0) {
            this.B.x().setVisibility(i10);
        }
        if ((j10 & 40) != 0) {
            this.B.U(d0Var);
        }
        n.p(this.A);
        n.p(this.B);
    }

    @Override // androidx.databinding.n
    public boolean z() {
        synchronized (this) {
            if (this.G != 0) {
                return true;
            }
            return this.A.z() || this.B.z();
        }
    }

    private b(androidx.databinding.e eVar, View view, Object[] objArr) {
        super(eVar, view, 3, (u7.c) objArr[2], (l) objArr[3], (View) objArr[1]);
        this.G = -1L;
        N(this.A);
        LinearLayout linearLayout = (LinearLayout) objArr[0];
        this.F = linearLayout;
        linearLayout.setTag(null);
        N(this.B);
        P(view);
        B();
    }
}
