package ad;

import android.util.SparseIntArray;
import android.view.View;
import android.widget.ImageView;
import android.widget.ScrollView;
import android.widget.TextView;
import androidx.databinding.n;
import androidx.lifecycle.a0;

/* loaded from: classes4.dex */
public class r extends q {
    private static final n.i J = null;
    private static final SparseIntArray K;
    private final ScrollView H;
    private long I;

    static {
        SparseIntArray sparseIntArray = new SparseIntArray();
        K = sparseIntArray;
        sparseIntArray.put(yc.x.f52209q, 2);
        sparseIntArray.put(yc.x.f52208p, 3);
        sparseIntArray.put(yc.x.f52213u, 4);
        sparseIntArray.put(yc.x.f52207o, 5);
        sparseIntArray.put(yc.x.f52217y, 6);
    }

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

    private boolean U(a0 a0Var, int i10) {
        if (i10 != yc.a.f52074a) {
            return false;
        }
        synchronized (this) {
            this.I |= 1;
        }
        return true;
    }

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

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

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

    public void V(yc.o oVar) {
        this.G = oVar;
        synchronized (this) {
            this.I |= 2;
        }
        f(yc.a.f52075b);
        super.J();
    }

    @Override // androidx.databinding.n
    protected void n() {
        long j10;
        synchronized (this) {
            j10 = this.I;
            this.I = 0L;
        }
        yc.o oVar = this.G;
        long j11 = j10 & 7;
        String str = null;
        if (j11 != 0) {
            a0 U = oVar != null ? oVar.U() : null;
            S(0, U);
            if (U != null) {
                str = (String) U.f();
            }
        }
        if (j11 != 0) {
            b4.e.e(this.D, str);
        }
    }

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

    private r(androidx.databinding.e eVar, View view, Object[] objArr) {
        super(eVar, view, 1, (TextView) objArr[5], (TextView) objArr[3], (ImageView) objArr[2], (TextView) objArr[1], (TextView) objArr[4], (TextView) objArr[6]);
        this.I = -1L;
        this.D.setTag(null);
        ScrollView scrollView = (ScrollView) objArr[0];
        this.H = scrollView;
        scrollView.setTag(null);
        P(view);
        B();
    }
}
