package nf;

import android.util.SparseIntArray;
import android.view.View;
import android.widget.LinearLayout;
import androidx.coordinatorlayout.widget.CoordinatorLayout;
import androidx.databinding.e;
import androidx.databinding.n;
import androidx.fragment.app.FragmentContainerView;
import androidx.lifecycle.f0;
import androidx.lifecycle.u;
import h7.j;
import o8.d0;
import u7.g;
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 CoordinatorLayout F;
    private long G;

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

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

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

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

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

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

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

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

    @Override // androidx.databinding.n
    public boolean Q(int i10, Object obj) {
        if (mf.a.f29094b != i10) {
            return false;
        }
        U((d0) obj);
        return true;
    }

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

    @Override // androidx.databinding.n
    protected void n() {
        long j10;
        synchronized (this) {
            j10 = this.G;
            this.G = 0L;
        }
        d0 d0Var = this.E;
        long j11 = 25 & 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) {
            g.c(this.B, i10);
            this.D.x().setVisibility(i10);
        }
        if ((j10 & 24) != 0) {
            this.D.U(d0Var);
        }
        n.p(this.D);
        n.p(this.A);
    }

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

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