package sf;

import android.util.SparseIntArray;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.databinding.n;
import androidx.lifecycle.a0;
import rf.m;
import tf.a;

/* loaded from: classes4.dex */
public class d extends c implements a.InterfaceC0856a {
    private static final n.i M = null;
    private static final SparseIntArray N;
    private final ConstraintLayout I;
    private final ImageView J;
    private final View.OnClickListener K;
    private long L;

    static {
        SparseIntArray sparseIntArray = new SparseIntArray();
        N = sparseIntArray;
        sparseIntArray.put(rf.b.f34689e, 4);
        sparseIntArray.put(rf.b.f34695k, 5);
        sparseIntArray.put(rf.b.f34696l, 6);
        sparseIntArray.put(rf.b.f34691g, 7);
        sparseIntArray.put(rf.b.f34694j, 8);
    }

    public d(androidx.databinding.e eVar, View view) {
        this(eVar, view, n.E(eVar, view, 9, M, N));
    }

    private boolean V(a0 a0Var, int i10) {
        if (i10 != rf.a.f34681a) {
            return false;
        }
        synchronized (this) {
            this.L |= 2;
        }
        return true;
    }

    private boolean W(a0 a0Var, int i10) {
        if (i10 != rf.a.f34681a) {
            return false;
        }
        synchronized (this) {
            this.L |= 1;
        }
        return true;
    }

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

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

    @Override // androidx.databinding.n
    public boolean Q(int i10, Object obj) {
        if (rf.a.f34682b != i10) {
            return false;
        }
        U((m) obj);
        return true;
    }

    @Override // sf.c
    public void U(m mVar) {
        this.H = mVar;
        synchronized (this) {
            this.L |= 4;
        }
        f(rf.a.f34682b);
        super.J();
    }

    @Override // tf.a.InterfaceC0856a
    public final void a(int i10, View view) {
        m mVar = this.H;
        if (mVar != null) {
            mVar.T();
        }
    }

    /* JADX WARN: Removed duplicated region for block: B:16:0x0038  */
    @Override // androidx.databinding.n
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    protected void n() {
        long j10;
        String str;
        synchronized (this) {
            j10 = this.L;
            this.L = 0L;
        }
        m mVar = this.H;
        String str2 = null;
        if ((15 & j10) != 0) {
            if ((j10 & 13) != 0) {
                a0 W = mVar != null ? mVar.W() : null;
                S(0, W);
                if (W != null) {
                    str = (String) W.f();
                    if ((j10 & 14) != 0) {
                        a0 V = mVar != null ? mVar.V() : null;
                        S(1, V);
                        if (V != null) {
                            str2 = (String) V.f();
                        }
                    }
                }
            }
            str = null;
            if ((j10 & 14) != 0) {
            }
        } else {
            str = null;
        }
        if ((14 & j10) != 0) {
            b4.e.e(this.B, str2);
        }
        if ((8 & j10) != 0) {
            this.J.setOnClickListener(this.K);
        }
        if ((j10 & 13) != 0) {
            b4.e.e(this.F, str);
        }
    }

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

    private d(androidx.databinding.e eVar, View view, Object[] objArr) {
        super(eVar, view, 2, (ConstraintLayout) objArr[4], (TextView) objArr[2], (ImageView) objArr[7], (TextView) objArr[8], (ConstraintLayout) objArr[5], (TextView) objArr[1], (TextView) objArr[6]);
        this.L = -1L;
        this.B.setTag(null);
        ConstraintLayout constraintLayout = (ConstraintLayout) objArr[0];
        this.I = constraintLayout;
        constraintLayout.setTag(null);
        ImageView imageView = (ImageView) objArr[3];
        this.J = imageView;
        imageView.setTag(null);
        this.F.setTag(null);
        P(view);
        this.K = new tf.a(this, 1);
        B();
    }
}
