package zf;

import android.util.SparseIntArray;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;
import androidx.databinding.n;
import androidx.recyclerview.widget.RecyclerView;

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

    static {
        n.i iVar = new n.i(7);
        J = iVar;
        iVar.a(1, new String[]{"item_package_details_general_label"}, new int[]{6}, new int[]{yf.e.f52516k});
        K = null;
    }

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

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

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

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

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

    @Override // androidx.databinding.n
    protected boolean F(int i10, Object obj, int i11) {
        if (i10 == 0) {
            return V((q) obj, i11);
        }
        if (i10 == 1) {
            return X((androidx.lifecycle.f0) obj, i11);
        }
        if (i10 != 2) {
            return false;
        }
        return W((androidx.lifecycle.f0) 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.t3) obj);
        return true;
    }

    @Override // zf.e
    public void U(jg.t3 t3Var) {
        this.D = t3Var;
        synchronized (this) {
            this.I |= 8;
        }
        f(yf.a.f52373d);
        super.J();
    }

    /* JADX WARN: Removed duplicated region for block: B:28:0x0080  */
    /* JADX WARN: Removed duplicated region for block: B:36:0x009e  */
    /* JADX WARN: Removed duplicated region for block: B:41:0x00ab  */
    /* JADX WARN: Removed duplicated region for block: B:44:0x00c0  */
    /* JADX WARN: Removed duplicated region for block: B:46:0x00c7  */
    /* JADX WARN: Removed duplicated region for block: B:49:0x00d9  */
    @Override // androidx.databinding.n
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    protected void n() {
        long j10;
        boolean z10;
        boolean z11;
        boolean z12;
        Boolean bool;
        androidx.lifecycle.f0 f0Var;
        Boolean bool2;
        long j11;
        synchronized (this) {
            j10 = this.I;
            this.I = 0L;
        }
        jg.t3 t3Var = this.D;
        long j12 = j10 & 30;
        if (j12 != 0) {
            androidx.lifecycle.f0 R = t3Var != null ? t3Var.R() : null;
            S(1, R);
            Boolean bool3 = R != null ? (Boolean) R.f() : null;
            z10 = !androidx.databinding.n.M(bool3);
            if (j12 != 0) {
                j10 = z10 ? j10 | 64 : j10 | 32;
            }
            if ((j10 & 28) != 0) {
                androidx.lifecycle.f0 W = t3Var != null ? t3Var.W() : null;
                S(2, W);
                bool2 = W != null ? (Boolean) W.f() : null;
                z11 = androidx.databinding.n.M(bool2);
                z12 = !z11;
                Boolean bool4 = bool3;
                f0Var = W;
                bool = bool4;
                if ((64 & j10) != 0) {
                    if (t3Var != null) {
                        f0Var = t3Var.W();
                    }
                    S(2, f0Var);
                    if (f0Var != null) {
                        bool2 = (Boolean) f0Var.f();
                    }
                    z11 = androidx.databinding.n.M(bool2);
                }
                Boolean bool5 = bool2;
                j11 = 30 & j10;
                if (j11 != 0) {
                    r16 = !(z10 ? z11 : false);
                }
                if ((26 & j10) != 0) {
                    u7.g.k(this.A, Boolean.valueOf(z10));
                    u7.g.k(this.H, bool);
                }
                if ((24 & j10) != 0) {
                    this.B.U(t3Var);
                }
                if (j11 != 0) {
                    u7.g.k(this.B.x(), Boolean.valueOf(r16));
                }
                if ((j10 & 28) != 0) {
                    u7.g.k(this.G, bool5);
                    u7.g.k(this.C, Boolean.valueOf(z12));
                }
                androidx.databinding.n.p(this.B);
            }
            bool = bool3;
            z11 = false;
            z12 = false;
        } else {
            z10 = false;
            z11 = false;
            z12 = false;
            bool = null;
        }
        f0Var = null;
        bool2 = null;
        if ((64 & j10) != 0) {
        }
        Boolean bool52 = bool2;
        j11 = 30 & j10;
        if (j11 != 0) {
        }
        if ((26 & j10) != 0) {
        }
        if ((24 & j10) != 0) {
        }
        if (j11 != 0) {
        }
        if ((j10 & 28) != 0) {
        }
        androidx.databinding.n.p(this.B);
    }

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

    private f(androidx.databinding.e eVar, View view, Object[] objArr) {
        super(eVar, view, 3, (TextView) objArr[4], (q) objArr[6], (RecyclerView) objArr[2]);
        this.I = -1L;
        this.A.setTag(null);
        N(this.B);
        RelativeLayout relativeLayout = (RelativeLayout) objArr[0];
        this.E = relativeLayout;
        relativeLayout.setTag(null);
        RelativeLayout relativeLayout2 = (RelativeLayout) objArr[1];
        this.F = relativeLayout2;
        relativeLayout2.setTag(null);
        LinearLayout linearLayout = (LinearLayout) objArr[3];
        this.G = linearLayout;
        linearLayout.setTag(null);
        LinearLayout linearLayout2 = (LinearLayout) objArr[5];
        this.H = linearLayout2;
        linearLayout2.setTag(null);
        this.C.setTag(null);
        P(view);
        B();
    }
}
