package zb;

import android.util.SparseIntArray;
import android.view.View;
import android.widget.LinearLayout;
import androidx.databinding.n;
import androidx.fragment.app.FragmentContainerView;

/* loaded from: classes4.dex */
public class l0 extends k0 {
    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[]{1, 2}, new int[]{h7.j.f21087b, h7.j.f21106u});
        SparseIntArray sparseIntArray = new SparseIntArray();
        I = sparseIntArray;
        sparseIntArray.put(ob.i.f31195x0, 3);
    }

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

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

    private boolean X(androidx.lifecycle.f0 f0Var, int i10) {
        if (i10 != ob.a.f31092a) {
            return false;
        }
        synchronized (this) {
            this.G |= 2;
        }
        return true;
    }

    private boolean Y(u7.l lVar, int i10) {
        if (i10 != ob.a.f31092a) {
            return false;
        }
        synchronized (this) {
            this.G |= 4;
        }
        return true;
    }

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

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

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

    @Override // androidx.databinding.n
    public boolean Q(int i10, Object obj) {
        if (ob.a.f31096e == i10) {
            U((o8.d0) obj);
        } else {
            if (ob.a.f31100i != i10) {
                return false;
            }
            V((ob.b) obj);
        }
        return true;
    }

    @Override // zb.k0
    public void U(o8.d0 d0Var) {
        this.E = d0Var;
        synchronized (this) {
            this.G |= 8;
        }
        f(ob.a.f31096e);
        super.J();
    }

    @Override // zb.k0
    public void V(ob.b bVar) {
        this.D = bVar;
    }

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

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

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