package hc;

import android.util.SparseIntArray;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.databinding.n;
import ca.canadapost.core.common.customView.CpcTextInput;
import gc.a2;
import gc.b2;

/* loaded from: classes4.dex */
public class l extends k {
    private static final n.i H;
    private static final SparseIntArray I;
    private final LinearLayout F;
    private long G;

    static {
        n.i iVar = new n.i(5);
        H = iVar;
        iVar.a(0, new String[]{"edit_location_name_continue_button"}, new int[]{2}, new int[]{b2.f19566h});
        SparseIntArray sparseIntArray = new SparseIntArray();
        I = sparseIntArray;
        sparseIntArray.put(a2.E, 3);
        sparseIntArray.put(a2.f19547q, 4);
    }

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

    private boolean V(androidx.lifecycle.a0 a0Var, int i10) {
        if (i10 != gc.e.f19609a) {
            return false;
        }
        synchronized (this) {
            this.G |= 2;
        }
        return true;
    }

    private boolean W(o oVar, int i10) {
        if (i10 != gc.e.f19609a) {
            return false;
        }
        synchronized (this) {
            this.G |= 1;
        }
        return true;
    }

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

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

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

    @Override // androidx.databinding.n
    public boolean Q(int i10, Object obj) {
        if (gc.e.f19610b != i10) {
            return false;
        }
        U((gc.l) obj);
        return true;
    }

    @Override // hc.k
    public void U(gc.l lVar) {
        this.E = lVar;
        synchronized (this) {
            this.G |= 4;
        }
        f(gc.e.f19610b);
        super.J();
    }

    @Override // androidx.databinding.n
    protected void n() {
        long j10;
        synchronized (this) {
            j10 = this.G;
            this.G = 0L;
        }
        gc.l lVar = this.E;
        long j11 = j10 & 14;
        int i10 = 0;
        if (j11 != 0) {
            androidx.lifecycle.a0 Z = lVar != null ? lVar.Z() : null;
            S(1, Z);
            boolean M = androidx.databinding.n.M(Z != null ? (Boolean) Z.f() : null);
            if (j11 != 0) {
                j10 |= M ? 32L : 16L;
            }
            if (!M) {
                i10 = 8;
            }
        }
        if ((j10 & 14) != 0) {
            this.D.setVisibility(i10);
        }
        androidx.databinding.n.p(this.C);
    }

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

    private l(androidx.databinding.e eVar, View view, Object[] objArr) {
        super(eVar, view, 2, (TextView) objArr[4], (CpcTextInput) objArr[3], (o) objArr[2], (TextView) objArr[1]);
        this.G = -1L;
        LinearLayout linearLayout = (LinearLayout) objArr[0];
        this.F = linearLayout;
        linearLayout.setTag(null);
        N(this.C);
        this.D.setTag(null);
        P(view);
        B();
    }
}
