package hc;

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 gc.a2;

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

    static {
        n.i iVar = new n.i(6);
        J = iVar;
        iVar.a(0, new String[]{"cpc_navigation"}, new int[]{2}, new int[]{h7.j.f21106u});
        iVar.a(1, new String[]{"appbar"}, new int[]{3}, new int[]{h7.j.f21087b});
        SparseIntArray sparseIntArray = new SparseIntArray();
        K = sparseIntArray;
        sparseIntArray.put(a2.K, 4);
        sparseIntArray.put(a2.I, 5);
    }

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

    private boolean W(u7.c cVar, int i10) {
        if (i10 != gc.e.f19609a) {
            return false;
        }
        synchronized (this) {
            this.I |= 2;
        }
        return true;
    }

    private boolean X(androidx.lifecycle.f0 f0Var, int i10) {
        if (i10 != gc.e.f19609a) {
            return false;
        }
        synchronized (this) {
            this.I |= 4;
        }
        return true;
    }

    private boolean Y(androidx.lifecycle.f0 f0Var, int i10) {
        if (i10 != gc.e.f19609a) {
            return false;
        }
        synchronized (this) {
            this.I |= 8;
        }
        return true;
    }

    private boolean Z(u7.l lVar, int i10) {
        if (i10 != gc.e.f19609a) {
            return false;
        }
        synchronized (this) {
            this.I |= 1;
        }
        return true;
    }

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

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

    @Override // androidx.databinding.n
    public void O(androidx.lifecycle.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 (gc.e.f19611c == i10) {
            U((o8.d0) obj);
        } else {
            if (gc.e.f19613e != i10) {
                return false;
            }
            V((gc.n0) obj);
        }
        return true;
    }

    @Override // hc.a
    public void U(o8.d0 d0Var) {
        this.G = d0Var;
        synchronized (this) {
            this.I |= 16;
        }
        f(gc.e.f19611c);
        super.J();
    }

    @Override // hc.a
    public void V(gc.n0 n0Var) {
        this.F = n0Var;
    }

    /* 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.I;
            this.I = 0L;
        }
        o8.d0 d0Var = this.G;
        int i12 = 0;
        if ((92 & j10) != 0) {
            long j11 = j10 & 84;
            if (j11 != 0) {
                androidx.lifecycle.f0 x02 = d0Var != null ? d0Var.x0() : null;
                S(2, x02);
                boolean M = androidx.databinding.n.M(x02 != null ? (Boolean) x02.f() : null);
                if (j11 != 0) {
                    j10 |= M ? 256L : 128L;
                }
                if (M) {
                    i11 = 4;
                    if ((j10 & 88) != 0) {
                        androidx.lifecycle.f0 z02 = d0Var != null ? d0Var.z0() : null;
                        S(3, z02);
                        i12 = androidx.databinding.n.L(z02 != null ? (Integer) z02.f() : null);
                    }
                    int i13 = i12;
                    i12 = i11;
                    i10 = i13;
                }
            }
            i11 = 0;
            if ((j10 & 88) != 0) {
            }
            int i132 = i12;
            i12 = i11;
            i10 = i132;
        } else {
            i10 = 0;
        }
        if ((84 & j10) != 0 && androidx.databinding.n.u() >= 16) {
            this.B.setImportantForAccessibility(i12);
        }
        if ((88 & j10) != 0) {
            u7.g.c(this.B, i10);
            this.D.x().setVisibility(i10);
        }
        if ((j10 & 80) != 0) {
            this.D.U(d0Var);
        }
        androidx.databinding.n.p(this.D);
        androidx.databinding.n.p(this.A);
    }

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

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