package u7;

import android.util.SparseIntArray;
import android.view.View;
import android.widget.ImageButton;
import android.widget.ImageView;
import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.coordinatorlayout.widget.CoordinatorLayout;
import androidx.databinding.n;
import androidx.recyclerview.widget.RecyclerView;
import com.google.android.material.bottomnavigation.BottomNavigationView;
import java.util.List;

/* loaded from: classes.dex */
public class o extends n {
    private static final n.i N = null;
    private static final SparseIntArray O;
    private long M;

    static {
        SparseIntArray sparseIntArray = new SparseIntArray();
        O = sparseIntArray;
        sparseIntArray.put(h7.i.f21060n, 4);
        sparseIntArray.put(h7.i.f21046g, 5);
        sparseIntArray.put(h7.i.f21058m, 6);
        sparseIntArray.put(h7.i.f21056l, 7);
        sparseIntArray.put(h7.i.f21048h, 8);
        sparseIntArray.put(h7.i.f21083y0, 9);
        sparseIntArray.put(h7.i.G0, 10);
    }

    public o(androidx.databinding.e eVar, View view) {
        this(eVar, view, androidx.databinding.n.E(eVar, view, 11, N, O));
    }

    private boolean X(androidx.lifecycle.a0 a0Var, int i10) {
        if (i10 != h7.a.f20944a) {
            return false;
        }
        synchronized (this) {
            this.M |= 2;
        }
        return true;
    }

    private boolean Y(androidx.lifecycle.f0 f0Var, int i10) {
        if (i10 != h7.a.f20944a) {
            return false;
        }
        synchronized (this) {
            this.M |= 1;
        }
        return true;
    }

    @Override // androidx.databinding.n
    public void B() {
        synchronized (this) {
            this.M = 8L;
        }
        J();
    }

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

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

    @Override // u7.n
    public void W(o8.d0 d0Var) {
        this.L = d0Var;
        synchronized (this) {
            this.M |= 4;
        }
        f(h7.a.f20949f);
        super.J();
    }

    @Override // androidx.databinding.n
    protected void n() {
        long j10;
        int i10;
        int i11;
        long j11;
        long j12;
        synchronized (this) {
            j10 = this.M;
            this.M = 0L;
        }
        o8.d0 d0Var = this.L;
        List list = null;
        if ((15 & j10) != 0) {
            long j13 = j10 & 13;
            if (j13 != 0) {
                androidx.lifecycle.f0 x02 = d0Var != null ? d0Var.x0() : null;
                S(0, x02);
                boolean M = androidx.databinding.n.M(x02 != null ? (Boolean) x02.f() : null);
                if (j13 != 0) {
                    if (M) {
                        j11 = j10 | 32;
                        j12 = 128;
                    } else {
                        j11 = j10 | 16;
                        j12 = 64;
                    }
                    j10 = j11 | j12;
                }
                i10 = 4;
                i11 = M ? 0 : 4;
                if (!M) {
                    i10 = 0;
                }
            } else {
                i10 = 0;
                i11 = 0;
            }
            if ((j10 & 14) != 0) {
                androidx.lifecycle.a0 h02 = d0Var != null ? d0Var.h0() : null;
                S(1, h02);
                if (h02 != null) {
                    list = (List) h02.f();
                }
            }
        } else {
            i10 = 0;
            i11 = 0;
        }
        long j14 = j10 & 8;
        int i12 = j14 != 0 ? h7.h.f21001j : 0;
        if ((13 & j10) != 0) {
            if (androidx.databinding.n.u() >= 16) {
                this.A.setImportantForAccessibility(i10);
            }
            this.D.setVisibility(i11);
        }
        if (j14 != 0) {
            g.h(this.I, i12, true);
        }
        if ((j10 & 14) != 0) {
            g.b(this.I, list, false, false);
        }
    }

    @Override // androidx.databinding.n
    public boolean z() {
        synchronized (this) {
            return this.M != 0;
        }
    }

    private o(androidx.databinding.e eVar, View view, Object[] objArr) {
        super(eVar, view, 2, (BottomNavigationView) objArr[1], (View) objArr[5], (CoordinatorLayout) objArr[8], (View) objArr[3], (ImageButton) objArr[7], (ImageView) objArr[6], (ImageView) objArr[4], (ConstraintLayout) objArr[0], (RecyclerView) objArr[2], (ConstraintLayout) objArr[9], (View) objArr[10]);
        this.M = -1L;
        this.A.setTag(null);
        this.D.setTag(null);
        this.H.setTag(null);
        this.I.setTag(null);
        P(view);
        B();
    }
}
