package u7;

import android.util.SparseIntArray;
import android.view.View;
import android.widget.FrameLayout;
import android.widget.ImageButton;
import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.databinding.n;
import androidx.recyclerview.widget.RecyclerView;
import java.util.List;

/* loaded from: classes.dex */
public class z0 extends y0 {
    private static final n.i H = null;
    private static final SparseIntArray I;
    private long G;

    static {
        SparseIntArray sparseIntArray = new SparseIntArray();
        I = sparseIntArray;
        sparseIntArray.put(h7.i.G0, 2);
        sparseIntArray.put(h7.i.f21044f, 3);
        sparseIntArray.put(h7.i.f21056l, 4);
    }

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

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

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

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

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

    public void V(o8.d0 d0Var) {
        this.F = d0Var;
        synchronized (this) {
            this.G |= 2;
        }
        f(h7.a.f20951h);
        super.J();
    }

    @Override // androidx.databinding.n
    protected void n() {
        long j10;
        synchronized (this) {
            j10 = this.G;
            this.G = 0L;
        }
        o8.d0 d0Var = this.F;
        long j11 = 4 & j10;
        int i10 = j11 != 0 ? h7.h.f21001j : 0;
        long j12 = j10 & 7;
        List list = null;
        if (j12 != 0) {
            androidx.lifecycle.a0 h02 = d0Var != null ? d0Var.h0() : null;
            S(0, h02);
            if (h02 != null) {
                list = (List) h02.f();
            }
        }
        if (j11 != 0) {
            g.h(this.C, i10, true);
        }
        if (j12 != 0) {
            g.b(this.C, list, false, false);
        }
    }

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

    private z0(androidx.databinding.e eVar, View view, Object[] objArr) {
        super(eVar, view, 1, (FrameLayout) objArr[3], (ImageButton) objArr[4], (RecyclerView) objArr[1], (ConstraintLayout) objArr[0], (View) objArr[2]);
        this.G = -1L;
        this.C.setTag(null);
        this.D.setTag(null);
        P(view);
        B();
    }
}
