package zb;

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

/* loaded from: classes4.dex */
public class x0 extends w0 {
    private static final n.i D = null;
    private static final SparseIntArray E = null;
    private long C;

    public x0(androidx.databinding.e eVar, View view) {
        this(eVar, view, androidx.databinding.n.E(eVar, view, 1, D, E));
    }

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

    @Override // androidx.databinding.n
    public void B() {
        synchronized (this) {
            this.C = 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 (ob.a.f31095d != i10) {
            return false;
        }
        V((wb.e) obj);
        return true;
    }

    public void V(wb.e eVar) {
        this.B = eVar;
        synchronized (this) {
            this.C |= 2;
        }
        f(ob.a.f31095d);
        super.J();
    }

    @Override // androidx.databinding.n
    protected void n() {
        long j10;
        synchronized (this) {
            j10 = this.C;
            this.C = 0L;
        }
        wb.e eVar = this.B;
        long j11 = 7 & j10;
        List list = null;
        if (j11 != 0) {
            androidx.lifecycle.a0 Z = eVar != null ? eVar.Z() : null;
            S(0, Z);
            if (Z != null) {
                list = (List) Z.f();
            }
        }
        long j12 = j10 & 4;
        int i10 = j12 != 0 ? ob.h.f31119f : 0;
        if (j12 != 0) {
            u7.g.h(this.A, i10, false);
        }
        if (j11 != 0) {
            u7.g.b(this.A, list, false, false);
        }
    }

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

    private x0(androidx.databinding.e eVar, View view, Object[] objArr) {
        super(eVar, view, 1, (RecyclerView) objArr[0]);
        this.C = -1L;
        this.A.setTag(null);
        P(view);
        B();
    }
}
