package jb;

import android.util.SparseIntArray;
import android.view.View;
import android.widget.FrameLayout;
import android.widget.ImageButton;
import android.widget.TextView;
import androidx.databinding.n;
import ib.x0;

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

    static {
        SparseIntArray sparseIntArray = new SparseIntArray();
        I = sparseIntArray;
        sparseIntArray.put(x0.f23111t, 4);
    }

    public f(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 != ib.a.f22530a) {
            return false;
        }
        synchronized (this) {
            this.G |= 4;
        }
        return true;
    }

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

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

    private boolean Y(androidx.lifecycle.a0 a0Var, int i10) {
        if (i10 != ib.a.f22530a) {
            return false;
        }
        synchronized (this) {
            this.G |= 16;
        }
        return true;
    }

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

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

    @Override // androidx.databinding.n
    protected boolean F(int i10, Object obj, int i11) {
        if (i10 == 0) {
            return Z((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 W((androidx.lifecycle.a0) obj, i11);
        }
        if (i10 != 4) {
            return false;
        }
        return Y((androidx.lifecycle.a0) obj, i11);
    }

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

    @Override // jb.e
    public void U(ib.h hVar) {
        this.E = hVar;
        synchronized (this) {
            this.G |= 32;
        }
        f(ib.a.f22531b);
        super.J();
    }

    /* JADX WARN: Removed duplicated region for block: B:36:0x009b  */
    @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;
        androidx.lifecycle.a0 a0Var;
        androidx.lifecycle.a0 a0Var2;
        synchronized (this) {
            j10 = this.G;
            this.G = 0L;
        }
        ib.h hVar = this.E;
        int i10 = 0;
        String str5 = null;
        if ((127 & j10) != 0) {
            if ((j10 & 97) != 0) {
                androidx.lifecycle.a0 Z = hVar != null ? hVar.Z() : null;
                S(0, Z);
                i10 = androidx.databinding.n.L(Z != null ? (Integer) Z.f() : null);
            }
            if ((j10 & 114) != 0) {
                if (hVar != null) {
                    a0Var = hVar.X();
                    a0Var2 = hVar.Y();
                } else {
                    a0Var = null;
                    a0Var2 = null;
                }
                S(1, a0Var);
                S(4, a0Var2);
                str2 = a0Var != null ? (String) a0Var.f() : null;
                str4 = a0Var2 != null ? (String) a0Var2.f() : null;
            } else {
                str2 = null;
                str4 = null;
            }
            if ((j10 & 100) != 0) {
                androidx.lifecycle.a0 V = hVar != null ? hVar.V() : null;
                S(2, V);
                if (V != null) {
                    str3 = (String) V.f();
                    if ((j10 & 104) != 0) {
                        androidx.lifecycle.a0 W = hVar != null ? hVar.W() : null;
                        S(3, W);
                        if (W != null) {
                            str5 = (String) W.f();
                        }
                    }
                    str = str5;
                }
            }
            str3 = null;
            if ((j10 & 104) != 0) {
            }
            str = str5;
        } else {
            str = null;
            str2 = null;
            str3 = null;
            str4 = null;
        }
        if ((j10 & 100) != 0) {
            b4.e.e(this.A, str3);
        }
        if ((114 & j10) != 0) {
            u7.g.f(this.C, str4, str2);
        }
        if ((97 & j10) != 0) {
            this.F.setVisibility(i10);
        }
        if ((j10 & 104) != 0) {
            b4.e.e(this.D, str);
        }
    }

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

    private f(androidx.databinding.e eVar, View view, Object[] objArr) {
        super(eVar, view, 5, (TextView) objArr[2], (ImageButton) objArr[4], (TextView) objArr[3], (TextView) objArr[1]);
        this.G = -1L;
        this.A.setTag(null);
        this.C.setTag(null);
        FrameLayout frameLayout = (FrameLayout) objArr[0];
        this.F = frameLayout;
        frameLayout.setTag(null);
        this.D.setTag(null);
        P(view);
        B();
    }
}
