package zf;

import android.util.SparseIntArray;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.databinding.n;
import cg.a;

/* loaded from: classes4.dex */
public class b2 extends a2 implements a.InterfaceC0282a {
    private static final n.i L;
    private static final SparseIntArray M;
    private final LinearLayout E;
    private final TextView F;
    private final LinearLayout G;
    private final LinearLayout H;
    private final TextView I;
    private final View.OnClickListener J;
    private long K;

    static {
        n.i iVar = new n.i(8);
        L = iVar;
        iVar.a(0, new String[]{"package_item_feature_pay_dutied_n_taxes_link"}, new int[]{6}, new int[]{yf.e.X});
        SparseIntArray sparseIntArray = new SparseIntArray();
        M = sparseIntArray;
        sparseIntArray.put(yf.d.f52471r1, 7);
    }

    public b2(androidx.databinding.e eVar, View view) {
        this(eVar, view, androidx.databinding.n.E(eVar, view, 8, L, M));
    }

    private boolean V(androidx.lifecycle.f0 f0Var, int i10) {
        if (i10 != yf.a.f52370a) {
            return false;
        }
        synchronized (this) {
            this.K |= 2;
        }
        return true;
    }

    private boolean W(androidx.lifecycle.f0 f0Var, int i10) {
        if (i10 != yf.a.f52370a) {
            return false;
        }
        synchronized (this) {
            this.K |= 1;
        }
        return true;
    }

    private boolean X(q2 q2Var, int i10) {
        if (i10 != yf.a.f52370a) {
            return false;
        }
        synchronized (this) {
            this.K |= 4;
        }
        return true;
    }

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

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

    @Override // androidx.databinding.n
    public void O(androidx.lifecycle.u uVar) {
        super.O(uVar);
        this.B.O(uVar);
    }

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

    @Override // zf.a2
    public void U(jg.i3 i3Var) {
        this.D = i3Var;
        synchronized (this) {
            this.K |= 8;
        }
        f(yf.a.f52373d);
        super.J();
    }

    @Override // cg.a.InterfaceC0282a
    public final void a(int i10, View view) {
        jg.i3 i3Var = this.D;
        if (i3Var != null) {
            i3Var.Y0();
        }
    }

    /* JADX WARN: Removed duplicated region for block: B:35:0x0089  */
    /* JADX WARN: Removed duplicated region for block: B:38:0x0096  */
    /* JADX WARN: Removed duplicated region for block: B:43:0x0103  */
    @Override // androidx.databinding.n
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    protected void n() {
        long j10;
        String str;
        synchronized (this) {
            j10 = this.K;
            this.K = 0L;
        }
        jg.i3 i3Var = this.D;
        int i10 = 0;
        if ((27 & j10) != 0) {
            long j11 = j10 & 25;
            if (j11 != 0) {
                androidx.lifecycle.f0 q02 = i3Var != null ? i3Var.q0() : null;
                S(0, q02);
                boolean M2 = androidx.databinding.n.M(q02 != null ? (Boolean) q02.f() : null);
                if (j11 != 0) {
                    j10 |= M2 ? 64L : 32L;
                }
                if (!M2) {
                    i10 = 8;
                }
            }
            if ((j10 & 26) != 0) {
                androidx.lifecycle.f0 d02 = i3Var != null ? i3Var.d0() : null;
                S(1, d02);
                r12 = d02 != null ? (String) d02.f() : null;
                String str2 = r12;
                r12 = this.H.getResources().getString(yf.h.f52615n0) + r12;
                str = str2;
                if ((25 & j10) != 0) {
                    this.A.setVisibility(i10);
                }
                if ((16 & j10) != 0) {
                    this.A.setOnClickListener(this.J);
                    if (androidx.databinding.n.u() >= 4) {
                        TextView textView = this.F;
                        textView.setContentDescription(textView.getResources().getString(yf.h.I0, this.F.getResources().getString(yf.h.f52600k0)));
                        this.G.setContentDescription(this.G.getResources().getString(yf.h.f52620o0, this.G.getResources().getString(yf.h.f52630q0)) + this.G.getResources().getString(yf.h.f52625p0));
                    }
                }
                if ((j10 & 26) != 0) {
                    if (androidx.databinding.n.u() >= 4) {
                        this.H.setContentDescription(r12);
                    }
                    b4.e.e(this.I, str);
                }
                androidx.databinding.n.p(this.B);
            }
        }
        str = null;
        if ((25 & j10) != 0) {
        }
        if ((16 & j10) != 0) {
        }
        if ((j10 & 26) != 0) {
        }
        androidx.databinding.n.p(this.B);
    }

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

    private b2(androidx.databinding.e eVar, View view, Object[] objArr) {
        super(eVar, view, 3, (ImageView) objArr[5], (q2) objArr[6], (TextView) objArr[7]);
        this.K = -1L;
        this.A.setTag(null);
        LinearLayout linearLayout = (LinearLayout) objArr[0];
        this.E = linearLayout;
        linearLayout.setTag(null);
        TextView textView = (TextView) objArr[1];
        this.F = textView;
        textView.setTag(null);
        LinearLayout linearLayout2 = (LinearLayout) objArr[2];
        this.G = linearLayout2;
        linearLayout2.setTag(null);
        LinearLayout linearLayout3 = (LinearLayout) objArr[3];
        this.H = linearLayout3;
        linearLayout3.setTag(null);
        TextView textView2 = (TextView) objArr[4];
        this.I = textView2;
        textView2.setTag(null);
        N(this.B);
        P(view);
        this.J = new cg.a(this, 1);
        B();
    }
}
