package zf;

import android.util.SparseIntArray;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import androidx.databinding.n;
import ca.canadapost.core.common.ui.CpcDialogFragmentView;
import cg.a;

/* loaded from: classes4.dex */
public class t1 extends s1 implements a.InterfaceC0282a {
    private static final n.i G = null;
    private static final SparseIntArray H = null;
    private final TextView D;
    private final View.OnClickListener E;
    private long F;

    public t1(androidx.databinding.e eVar, View view) {
        this(eVar, view, androidx.databinding.n.E(eVar, view, 3, G, H));
    }

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

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

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

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

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

    public void W(jg.j1 j1Var) {
        this.C = j1Var;
        synchronized (this) {
            this.F |= 4;
        }
        f(yf.a.f52373d);
        super.J();
    }

    @Override // cg.a.InterfaceC0282a
    public final void a(int i10, View view) {
        jg.j1 j1Var = this.C;
        if (j1Var != null) {
            j1Var.Q();
        }
    }

    /* 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.F;
            this.F = 0L;
        }
        jg.j1 j1Var = this.C;
        boolean z10 = false;
        String str2 = null;
        if ((15 & j10) != 0) {
            if ((j10 & 13) != 0) {
                androidx.lifecycle.f0 X = j1Var != null ? j1Var.X() : null;
                S(0, X);
                if (X != null) {
                    str = (String) X.f();
                    if ((j10 & 14) != 0) {
                        androidx.lifecycle.f0 T = j1Var != null ? j1Var.T() : null;
                        S(1, T);
                        z10 = androidx.databinding.n.M(T != null ? (Boolean) T.f() : null);
                    }
                    str2 = str;
                }
            }
            str = null;
            if ((j10 & 14) != 0) {
            }
            str2 = str;
        }
        if ((j10 & 13) != 0) {
            b4.e.e(this.D, str2);
        }
        if ((j10 & 14) != 0) {
            this.B.setEnabled(z10);
        }
        if ((j10 & 8) != 0) {
            this.B.setOnClickListener(this.E);
        }
    }

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

    private t1(androidx.databinding.e eVar, View view, Object[] objArr) {
        super(eVar, view, 2, (CpcDialogFragmentView) objArr[0], (Button) objArr[2]);
        this.F = -1L;
        this.A.setTag(null);
        TextView textView = (TextView) objArr[1];
        this.D = textView;
        textView.setTag(null);
        this.B.setTag(null);
        P(view);
        this.E = new cg.a(this, 1);
        B();
    }
}
