package ae;

import android.util.SparseIntArray;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.databinding.n;
import ca.canadapost.core.common.ui.CpcFragmentContainerFullView;

/* loaded from: classes4.dex */
public class n0 extends m0 {
    private static final n.i H = null;
    private static final SparseIntArray I = null;
    private final CpcFragmentContainerFullView F;
    private long G;

    public n0(androidx.databinding.e eVar, View view) {
        this(eVar, view, androidx.databinding.n.E(eVar, view, 5, H, I));
    }

    private boolean U(androidx.lifecycle.a0 a0Var, int i10) {
        if (i10 != yd.a.f52233a) {
            return false;
        }
        synchronized (this) {
            this.G |= 1;
        }
        return true;
    }

    private boolean V(androidx.lifecycle.a0 a0Var, int i10) {
        if (i10 != yd.a.f52233a) {
            return false;
        }
        synchronized (this) {
            this.G |= 4;
        }
        return true;
    }

    private boolean W(androidx.lifecycle.a0 a0Var, int i10) {
        if (i10 != yd.a.f52233a) {
            return false;
        }
        synchronized (this) {
            this.G |= 8;
        }
        return true;
    }

    private boolean X(androidx.lifecycle.a0 a0Var, int i10) {
        if (i10 != yd.a.f52233a) {
            return false;
        }
        synchronized (this) {
            this.G |= 2;
        }
        return true;
    }

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

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

    @Override // androidx.databinding.n
    public boolean Q(int i10, Object obj) {
        if (yd.a.f52234b != i10) {
            return false;
        }
        Y((le.d) obj);
        return true;
    }

    public void Y(le.d dVar) {
        this.E = dVar;
        synchronized (this) {
            this.G |= 16;
        }
        f(yd.a.f52234b);
        super.J();
    }

    @Override // androidx.databinding.n
    protected void n() {
        long j10;
        int i10;
        int i11;
        int i12;
        int i13;
        int i14;
        synchronized (this) {
            j10 = this.G;
            this.G = 0L;
        }
        le.d dVar = this.E;
        if ((63 & j10) != 0) {
            if ((j10 & 49) != 0) {
                androidx.lifecycle.a0 Q = dVar != null ? dVar.Q() : null;
                S(0, Q);
                i14 = androidx.databinding.n.L(Q != null ? (Integer) Q.f() : null);
            } else {
                i14 = 0;
            }
            if ((j10 & 50) != 0) {
                androidx.lifecycle.a0 U = dVar != null ? dVar.U() : null;
                S(1, U);
                i11 = androidx.databinding.n.L(U != null ? (Integer) U.f() : null);
            } else {
                i11 = 0;
            }
            if ((j10 & 52) != 0) {
                androidx.lifecycle.a0 R = dVar != null ? dVar.R() : null;
                S(2, R);
                i12 = androidx.databinding.n.L(R != null ? (Integer) R.f() : null);
            } else {
                i12 = 0;
            }
            if ((j10 & 56) != 0) {
                androidx.lifecycle.a0 T = dVar != null ? dVar.T() : null;
                S(3, T);
                i10 = androidx.databinding.n.L(T != null ? (Integer) T.f() : null);
                i13 = i14;
            } else {
                i13 = i14;
                i10 = 0;
            }
        } else {
            i10 = 0;
            i11 = 0;
            i12 = 0;
            i13 = 0;
        }
        if ((49 & j10) != 0) {
            this.A.setImageResource(i13);
        }
        if ((52 & j10) != 0) {
            this.B.setText(i12);
        }
        if ((j10 & 56) != 0) {
            this.C.setText(i10);
        }
        if ((j10 & 50) != 0) {
            this.D.setText(i11);
        }
    }

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

    private n0(androidx.databinding.e eVar, View view, Object[] objArr) {
        super(eVar, view, 4, (ImageView) objArr[1], (Button) objArr[4], (TextView) objArr[3], (TextView) objArr[2]);
        this.G = -1L;
        this.A.setTag(null);
        this.B.setTag(null);
        CpcFragmentContainerFullView cpcFragmentContainerFullView = (CpcFragmentContainerFullView) objArr[0];
        this.F = cpcFragmentContainerFullView;
        cpcFragmentContainerFullView.setTag(null);
        this.C.setTag(null);
        this.D.setTag(null);
        P(view);
        B();
    }
}
