package ae;

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;

/* loaded from: classes4.dex */
public class t extends s {
    private static final n.i H;
    private static final SparseIntArray I;
    private final CoordinatorLayout E;
    private final LinearLayout 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[]{h7.j.f21106u});
        iVar.a(1, new String[]{"appbar"}, new int[]{3}, new int[]{h7.j.f21087b});
        SparseIntArray sparseIntArray = new SparseIntArray();
        I = sparseIntArray;
        sparseIntArray.put(yd.i.P, 4);
    }

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

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

    private boolean W(androidx.lifecycle.f0 f0Var, int i10) {
        if (i10 != yd.a.f52233a) {
            return false;
        }
        synchronized (this) {
            this.G |= 4;
        }
        return true;
    }

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

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

    @Override // androidx.databinding.n
    public void B() {
        synchronized (this) {
            this.G = 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((u7.l) obj, i11);
        }
        if (i10 == 1) {
            return V((u7.c) obj, i11);
        }
        if (i10 == 2) {
            return W((androidx.lifecycle.f0) obj, i11);
        }
        if (i10 != 3) {
            return false;
        }
        return X((androidx.lifecycle.f0) obj, i11);
    }

    @Override // androidx.databinding.n
    public void O(androidx.lifecycle.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 (yd.a.f52235c != i10) {
            return false;
        }
        U((o8.d0) obj);
        return true;
    }

    @Override // ae.s
    public void U(o8.d0 d0Var) {
        this.D = d0Var;
        synchronized (this) {
            this.G |= 16;
        }
        f(yd.a.f52235c);
        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.G;
            this.G = 0L;
        }
        o8.d0 d0Var = this.D;
        int i12 = 0;
        if ((60 & j10) != 0) {
            long j11 = j10 & 52;
            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 ? 128L : 64L;
                }
                if (M) {
                    i11 = 4;
                    if ((j10 & 56) != 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 & 56) != 0) {
            }
            int i132 = i12;
            i12 = i11;
            i10 = i132;
        } else {
            i10 = 0;
        }
        if ((52 & j10) != 0 && androidx.databinding.n.u() >= 16) {
            this.F.setImportantForAccessibility(i12);
        }
        if ((56 & j10) != 0) {
            u7.g.c(this.F, i10);
            this.C.x().setVisibility(i10);
        }
        if ((j10 & 48) != 0) {
            this.C.U(d0Var);
        }
        androidx.databinding.n.p(this.C);
        androidx.databinding.n.p(this.A);
    }

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

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