package zf;

import android.util.SparseIntArray;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.appcompat.widget.Toolbar;
import androidx.databinding.n;

/* loaded from: classes4.dex */
public class p1 extends o1 {
    private static final n.i J;
    private static final SparseIntArray K;
    private final LinearLayout D;
    private final LinearLayout E;
    private final TextView F;
    private final TextView G;
    private final TextView H;
    private long I;

    static {
        n.i iVar = new n.i(7);
        J = iVar;
        iVar.a(1, new String[]{"package_duty_taxes_refund_dialog_button"}, new int[]{5}, new int[]{yf.e.I});
        SparseIntArray sparseIntArray = new SparseIntArray();
        K = sparseIntArray;
        sparseIntArray.put(yf.d.f52426c1, 6);
    }

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

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

    private boolean W(androidx.lifecycle.a0 a0Var, int i10) {
        if (i10 != yf.a.f52370a) {
            return false;
        }
        synchronized (this) {
            this.I |= 4;
        }
        return true;
    }

    private boolean X(androidx.lifecycle.a0 a0Var, int i10) {
        if (i10 != yf.a.f52370a) {
            return false;
        }
        synchronized (this) {
            this.I |= 8;
        }
        return true;
    }

    private boolean Y(m1 m1Var, int i10) {
        if (i10 != yf.a.f52370a) {
            return false;
        }
        synchronized (this) {
            this.I |= 1;
        }
        return true;
    }

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

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

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

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

    @Override // zf.o1
    public void U(jg.e1 e1Var) {
        this.C = e1Var;
        synchronized (this) {
            this.I |= 16;
        }
        f(yf.a.f52373d);
        super.J();
    }

    /* JADX WARN: Removed duplicated region for block: B:17:0x003b  */
    /* JADX WARN: Removed duplicated region for block: B:24:0x0057  */
    @Override // androidx.databinding.n
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    protected void n() {
        long j10;
        String str;
        String str2;
        String str3;
        String str4;
        synchronized (this) {
            j10 = this.I;
            this.I = 0L;
        }
        jg.e1 e1Var = this.C;
        if ((62 & j10) != 0) {
            if ((j10 & 50) != 0) {
                androidx.lifecycle.a0 T = e1Var != null ? e1Var.T() : null;
                S(1, T);
                if (T != null) {
                    str4 = (String) T.f();
                    if ((j10 & 52) != 0) {
                        androidx.lifecycle.a0 U = e1Var != null ? e1Var.U() : null;
                        S(2, U);
                        if (U != null) {
                            str3 = (String) U.f();
                            if ((j10 & 56) != 0) {
                                androidx.lifecycle.a0 V = e1Var != null ? e1Var.V() : null;
                                S(3, V);
                                if (V != null) {
                                    str2 = str4;
                                    str = (String) V.f();
                                }
                            }
                            str2 = str4;
                            str = null;
                        }
                    }
                    str3 = null;
                    if ((j10 & 56) != 0) {
                    }
                    str2 = str4;
                    str = null;
                }
            }
            str4 = null;
            if ((j10 & 52) != 0) {
            }
            str3 = null;
            if ((j10 & 56) != 0) {
            }
            str2 = str4;
            str = null;
        } else {
            str = null;
            str2 = null;
            str3 = null;
        }
        if ((50 & j10) != 0) {
            b4.e.e(this.F, str2);
        }
        if ((52 & j10) != 0) {
            b4.e.e(this.G, str3);
        }
        if ((56 & j10) != 0) {
            b4.e.e(this.H, str);
        }
        if ((j10 & 48) != 0) {
            this.A.U(e1Var);
        }
        androidx.databinding.n.p(this.A);
    }

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

    private p1(androidx.databinding.e eVar, View view, Object[] objArr) {
        super(eVar, view, 4, (m1) objArr[5], (Toolbar) objArr[6]);
        this.I = -1L;
        LinearLayout linearLayout = (LinearLayout) objArr[0];
        this.D = linearLayout;
        linearLayout.setTag(null);
        LinearLayout linearLayout2 = (LinearLayout) objArr[1];
        this.E = linearLayout2;
        linearLayout2.setTag(null);
        TextView textView = (TextView) objArr[2];
        this.F = textView;
        textView.setTag(null);
        TextView textView2 = (TextView) objArr[3];
        this.G = textView2;
        textView2.setTag(null);
        TextView textView3 = (TextView) objArr[4];
        this.H = textView3;
        textView3.setTag(null);
        N(this.A);
        P(view);
        B();
    }
}
