package cb;

import android.util.SparseIntArray;
import android.view.View;
import android.widget.LinearLayout;
import androidx.coordinatorlayout.widget.CoordinatorLayout;
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 I;
    private static final SparseIntArray J;
    private final CoordinatorLayout F;
    private final LinearLayout G;
    private long H;

    static {
        n.i iVar = new n.i(6);
        I = 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();
        J = sparseIntArray;
        sparseIntArray.put(bb.f.f6819f, 4);
        sparseIntArray.put(bb.f.f6816c, 5);
    }

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

    private boolean V(u7.c cVar, int i10) {
        if (i10 != bb.a.f6782a) {
            return false;
        }
        synchronized (this) {
            this.H |= 2;
        }
        return true;
    }

    private boolean W(f0 f0Var, int i10) {
        if (i10 != bb.a.f6782a) {
            return false;
        }
        synchronized (this) {
            this.H |= 4;
        }
        return true;
    }

    private boolean X(f0 f0Var, int i10) {
        if (i10 != bb.a.f6782a) {
            return false;
        }
        synchronized (this) {
            this.H |= 8;
        }
        return true;
    }

    private boolean Y(l lVar, int i10) {
        if (i10 != bb.a.f6782a) {
            return false;
        }
        synchronized (this) {
            this.H |= 1;
        }
        return true;
    }

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

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

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

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

    @Override // cb.a
    public void U(d0 d0Var) {
        this.E = d0Var;
        synchronized (this) {
            this.H |= 16;
        }
        f(bb.a.f6784c);
        super.J();
    }

    /* JADX WARN: Removed duplicated region for block: B:25:0x004e  */
    @Override // androidx.databinding.n
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    protected void n() {
        long j10;
        int i10;
        int i11;
        synchronized (this) {
            j10 = this.H;
            this.H = 0L;
        }
        d0 d0Var = this.E;
        int i12 = 0;
        if ((60 & j10) != 0) {
            long j11 = j10 & 52;
            if (j11 != 0) {
                f0 x02 = d0Var != null ? d0Var.x0() : null;
                S(2, x02);
                boolean M = n.M(x02 != null ? (Boolean) x02.f() : null);
                if (j11 != 0) {
                    j10 |= M ? 128L : 64L;
                }
                if (M) {
                    i11 = 4;
                    if ((j10 & 56) != 0) {
                        f0 z02 = d0Var != null ? d0Var.z0() : null;
                        S(3, z02);
                        i12 = n.L(z02 != null ? (Integer) z02.f() : null);
                    }
                    int i13 = i12;
                    i12 = i11;
                    i10 = i13;
                }
            }
            i11 = 0;
            if ((j10 & 56) != 0) {
            }
            int i132 = i12;
            i12 = i11;
            i10 = i132;
        } else {
            i10 = 0;
        }
        if ((52 & j10) != 0 && n.u() >= 16) {
            this.G.setImportantForAccessibility(i12);
        }
        if ((56 & j10) != 0) {
            g.c(this.G, i10);
            this.C.x().setVisibility(i10);
        }
        if ((j10 & 48) != 0) {
            this.C.U(d0Var);
        }
        n.p(this.C);
        n.p(this.A);
    }

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

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