package defpackage;

import android.util.Log;
import j$.util.DesugarCollections;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Locale;
import java.util.regex.Pattern;
import java.util.regex.PatternSyntaxException;

/* JADX INFO: renamed from: ᵪᵪ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public final class C3925 {

    /* JADX INFO: renamed from: ʽˈˋ, reason: contains not printable characters */
    public final int f14988;

    /* JADX INFO: renamed from: ˊᵫᵗ, reason: contains not printable characters */
    public final /* synthetic */ C1549 f14989;

    /* JADX INFO: renamed from: ːˏᵟᵯ, reason: contains not printable characters */
    public Boolean f14990;

    /* JADX INFO: renamed from: ᵨᵣ, reason: contains not printable characters */
    public Long f14991;

    /* JADX INFO: renamed from: ᵲᵶᵳˈ, reason: contains not printable characters */
    public final String f14992;

    /* JADX INFO: renamed from: ᵵᵽ, reason: contains not printable characters */
    public final /* synthetic */ int f14993;

    /* JADX INFO: renamed from: ᵷᵺʾᵖ, reason: contains not printable characters */
    public Boolean f14994;

    /* JADX INFO: renamed from: ᵻʽᵯ, reason: contains not printable characters */
    public final AbstractC4729 f14995;

    /* JADX INFO: renamed from: ᵻˈᵦʼ, reason: contains not printable characters */
    public Long f14996;

    public C3925(C1549 c1549, String str, int i, AbstractC4729 abstractC4729, int i2) {
        this.f14993 = i2;
        this.f14989 = c1549;
        this.f14992 = str;
        this.f14988 = i;
        this.f14995 = abstractC4729;
    }

    /* JADX INFO: renamed from: ːˏᵟᵯ, reason: contains not printable characters */
    public static Boolean m8655(Boolean bool, boolean z) {
        if (bool == null) {
            return null;
        }
        return Boolean.valueOf(bool.booleanValue() != z);
    }

    /* JADX WARN: Removed duplicated region for block: B:38:0x008a  */
    /* JADX WARN: Removed duplicated region for block: B:80:0x0108  */
    /* JADX INFO: renamed from: ᵨᵣ, reason: contains not printable characters */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public static Boolean m8656(BigDecimal bigDecimal, C5130 c5130, double d) {
        BigDecimal bigDecimal2;
        BigDecimal bigDecimal3;
        BigDecimal bigDecimal4;
        int i;
        ᵘᵞʿⁱ.ᵶᵥᵝ(c5130);
        if (c5130.m10636()) {
            if (c5130.m10642() != 1 && (c5130.m10642() != 5 ? c5130.m10638() : c5130.m10639() && c5130.m10641())) {
                int iM10642 = c5130.m10642();
                try {
                    if (c5130.m10642() == 5) {
                        if (C1962.m5267(c5130.m10640()) && C1962.m5267(c5130.m10633())) {
                            BigDecimal bigDecimal5 = new BigDecimal(c5130.m10640());
                            bigDecimal4 = new BigDecimal(c5130.m10633());
                            bigDecimal3 = bigDecimal5;
                            bigDecimal2 = null;
                            if (iM10642 == 5 ? bigDecimal2 != null : bigDecimal3 != null) {
                                i = iM10642 - 1;
                                if (i != 1) {
                                    if (i != 2) {
                                        if (i != 3) {
                                            if (i == 4 && bigDecimal3 != null) {
                                                return Boolean.valueOf(bigDecimal.compareTo(bigDecimal3) >= 0 && bigDecimal.compareTo(bigDecimal4) <= 0);
                                            }
                                        } else if (bigDecimal2 != null) {
                                            if (d != 0.0d) {
                                                return Boolean.valueOf(bigDecimal.compareTo(bigDecimal2.subtract(new BigDecimal(d).multiply(new BigDecimal(2)))) > 0 && bigDecimal.compareTo(bigDecimal2.add(new BigDecimal(d).multiply(new BigDecimal(2)))) < 0);
                                            }
                                            return Boolean.valueOf(bigDecimal.compareTo(bigDecimal2) == 0);
                                        }
                                    } else if (bigDecimal2 != null) {
                                        return Boolean.valueOf(bigDecimal.compareTo(bigDecimal2) > 0);
                                    }
                                } else if (bigDecimal2 != null) {
                                    return Boolean.valueOf(bigDecimal.compareTo(bigDecimal2) < 0);
                                }
                            }
                        }
                    } else if (C1962.m5267(c5130.m10637())) {
                        bigDecimal2 = new BigDecimal(c5130.m10637());
                        bigDecimal3 = null;
                        bigDecimal4 = null;
                        if (iM10642 == 5) {
                            i = iM10642 - 1;
                            if (i != 1) {
                            }
                        } else {
                            i = iM10642 - 1;
                            if (i != 1) {
                            }
                        }
                    }
                } catch (NumberFormatException unused) {
                }
            }
        }
        return null;
    }

    /* JADX WARN: Can't fix incorrect switch cases order, some code will duplicate */
    /* JADX INFO: renamed from: ᵷᵺʾᵖ, reason: contains not printable characters */
    public static Boolean m8657(String str, C1767 c1767, C3485 c3485) {
        List listM4902;
        ᵘᵞʿⁱ.ᵶᵥᵝ(c1767);
        if (str != null && c1767.m4899() && c1767.m4896() != 1 && (c1767.m4896() != 7 ? c1767.m4897() : c1767.m4903() != 0)) {
            int iM4896 = c1767.m4896();
            boolean zM4900 = c1767.m4900();
            String strM4898 = (zM4900 || iM4896 == 2 || iM4896 == 7) ? c1767.m4898() : c1767.m4898().toUpperCase(Locale.ENGLISH);
            if (c1767.m4903() == 0) {
                listM4902 = null;
            } else {
                listM4902 = c1767.m4902();
                if (!zM4900) {
                    ArrayList arrayList = new ArrayList(listM4902.size());
                    Iterator it = listM4902.iterator();
                    while (it.hasNext()) {
                        arrayList.add(((String) it.next()).toUpperCase(Locale.ENGLISH));
                    }
                    listM4902 = DesugarCollections.unmodifiableList(arrayList);
                }
            }
            String str2 = iM4896 == 2 ? strM4898 : null;
            if (iM4896 != 7 ? strM4898 != null : listM4902 != null && !listM4902.isEmpty()) {
                if (!zM4900 && iM4896 != 2) {
                    str = str.toUpperCase(Locale.ENGLISH);
                }
                switch (iM4896 - 1) {
                    case 1:
                        if (str2 != null) {
                            try {
                                return Boolean.valueOf(Pattern.compile(str2, true != zM4900 ? 66 : 0).matcher(str).matches());
                            } catch (PatternSyntaxException unused) {
                                if (c3485 != null) {
                                    c3485.f13424.m4474(str2, "Invalid regular expression in REGEXP audience filter. expression");
                                }
                            }
                        }
                        break;
                    case 2:
                        return Boolean.valueOf(str.startsWith(strM4898));
                    case 3:
                        return Boolean.valueOf(str.endsWith(strM4898));
                    case 4:
                        return Boolean.valueOf(str.contains(strM4898));
                    case 5:
                        return Boolean.valueOf(str.equals(strM4898));
                    case C5224.STRING_SET_FIELD_NUMBER /* 6 */:
                        if (listM4902 != null) {
                            return Boolean.valueOf(listM4902.contains(str));
                        }
                        break;
                }
            }
        }
        return null;
    }

    /* JADX INFO: renamed from: ʽˈˋ, reason: contains not printable characters */
    public boolean m8658(Long l, Long l2, C4822 c4822, boolean z) {
        boolean z2;
        Boolean boolM8655;
        Boolean boolM8656;
        Boolean boolM86562;
        Boolean boolM86563;
        C3934.m8666();
        C1103 c1103 = (C1103) ((ᵜᵪʾ) this.f14989).ˌᴵ;
        C3691 c3691 = c1103.f4726;
        C2063 c2063 = c1103.f4717;
        C3485 c3485 = c1103.f4729;
        boolean zM8314 = c3691.m8314(this.f14992, AbstractC3818.f14548);
        C3607 c3607 = (C3607) this.f14995;
        boolean zM8135 = c3607.m8135();
        boolean zM8137 = c3607.m8137();
        boolean zM8139 = c3607.m8139();
        boolean z3 = zM8135 || zM8137 || zM8139;
        if (z && !z3) {
            C1103.m3564(c3485);
            c3485.f13414.m4475("Property filter already evaluated true and it is not associated with an enhanced audience. audience ID, filter ID", Integer.valueOf(this.f14988), c3607.m8134() ? Integer.valueOf(c3607.m8131()) : null);
            return true;
        }
        C3918 c3918M8136 = c3607.m8136();
        boolean zM8646 = c3918M8136.m8646();
        if (!c4822.m10074()) {
            z2 = zM8139;
            if (!c4822.m10068()) {
                if (!c4822.m10072()) {
                    C1103.m3564(c3485);
                    c3485.f13424.m4474(c2063.m5502(c4822.m10067()), "User property has no value, property");
                } else if (c3918M8136.m8643()) {
                    String strM10070 = c4822.m10070();
                    C1767 c1767M8640 = c3918M8136.m8640();
                    C1103.m3564(c3485);
                    boolM8655 = m8655(m8657(strM10070, c1767M8640, c3485), zM8646);
                } else if (!c3918M8136.m8641()) {
                    C1103.m3564(c3485);
                    c3485.f13424.m4474(c2063.m5502(c4822.m10067()), "No string or number filter defined. property");
                } else if (C1962.m5267(c4822.m10070())) {
                    String strM100702 = c4822.m10070();
                    C5130 c5130M8645 = c3918M8136.m8645();
                    if (C1962.m5267(strM100702)) {
                        try {
                            boolM8656 = m8656(new BigDecimal(strM100702), c5130M8645, 0.0d);
                        } catch (NumberFormatException unused) {
                            boolM8656 = null;
                        }
                        boolM8655 = m8655(boolM8656, zM8646);
                    } else {
                        boolM8656 = null;
                        boolM8655 = m8655(boolM8656, zM8646);
                    }
                } else {
                    C1103.m3564(c3485);
                    c3485.f13424.m4475("Invalid user property value for Numeric number filter. property, value", c2063.m5502(c4822.m10067()), c4822.m10070());
                }
                boolM8655 = null;
            } else if (c3918M8136.m8641()) {
                double dM10077 = c4822.m10077();
                try {
                    boolM86562 = m8656(new BigDecimal(dM10077), c3918M8136.m8645(), Math.ulp(dM10077));
                } catch (NumberFormatException unused2) {
                    boolM86562 = null;
                }
                boolM8655 = m8655(boolM86562, zM8646);
            } else {
                C1103.m3564(c3485);
                c3485.f13424.m4474(c2063.m5502(c4822.m10067()), "No number filter for double property. property");
                boolM8655 = null;
            }
        } else if (c3918M8136.m8641()) {
            z2 = zM8139;
            try {
                boolM86563 = m8656(new BigDecimal(c4822.m10075()), c3918M8136.m8645(), 0.0d);
            } catch (NumberFormatException unused3) {
                boolM86563 = null;
            }
            boolM8655 = m8655(boolM86563, zM8646);
        } else {
            C1103.m3564(c3485);
            c3485.f13424.m4474(c2063.m5502(c4822.m10067()), "No number filter for long property. property");
            z2 = zM8139;
            boolM8655 = null;
        }
        C1103.m3564(c3485);
        c3485.f13414.m4474(boolM8655 == null ? "null" : boolM8655, "Property filter result");
        if (boolM8655 == null) {
            return false;
        }
        this.f14990 = Boolean.TRUE;
        if (!z2 || boolM8655.booleanValue()) {
            if (!z || c3607.m8135()) {
                this.f14994 = boolM8655;
            }
            if (boolM8655.booleanValue() && z3 && c4822.m10069()) {
                long jM10065 = c4822.m10065();
                if (l != null) {
                    jM10065 = l.longValue();
                }
                if (zM8314 && c3607.m8135() && !c3607.m8137() && l2 != null) {
                    jM10065 = l2.longValue();
                }
                if (c3607.m8137()) {
                    this.f14996 = Long.valueOf(jM10065);
                } else {
                    this.f14991 = Long.valueOf(jM10065);
                }
            }
        }
        return true;
    }

    /* JADX WARN: Removed duplicated region for block: B:150:0x035f  */
    /* JADX WARN: Removed duplicated region for block: B:234:0x03c9 A[EDGE_INSN: B:234:0x03c9->B:161:0x03c9 BREAK  A[LOOP:3: B:89:0x0246->B:238:0x0246], SYNTHETIC] */
    /* JADX WARN: Removed duplicated region for block: B:58:0x017c  */
    /* JADX WARN: Type inference fix 'apply assigned field type' failed
    java.lang.UnsupportedOperationException: ArgType.getObject(), call class: class jadx.core.dex.instructions.args.ArgType$UnknownArg
    	at jadx.core.dex.instructions.args.ArgType.getObject(ArgType.java:593)
    	at jadx.core.dex.attributes.nodes.ClassTypeVarsAttr.getTypeVarsMapFor(ClassTypeVarsAttr.java:35)
    	at jadx.core.dex.nodes.utils.TypeUtils.replaceClassGenerics(TypeUtils.java:177)
    	at jadx.core.dex.visitors.typeinference.FixTypesVisitor.insertExplicitUseCast(FixTypesVisitor.java:397)
    	at jadx.core.dex.visitors.typeinference.FixTypesVisitor.tryFieldTypeWithNewCasts(FixTypesVisitor.java:359)
    	at jadx.core.dex.visitors.typeinference.FixTypesVisitor.applyFieldType(FixTypesVisitor.java:309)
    	at jadx.core.dex.visitors.typeinference.FixTypesVisitor.visit(FixTypesVisitor.java:94)
     */
    /* JADX INFO: renamed from: ᵲᵶᵳˈ, reason: contains not printable characters */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public boolean m8659(Long l, Long l2, C4943 c4943, long j, C3711 c3711, boolean z) {
        boolean z2;
        C3485 c3485;
        Boolean boolM8656;
        Boolean boolM86562;
        long j2;
        Boolean boolM86563;
        Boolean boolM86564;
        int i;
        C3934.m8666();
        C1549 c1549 = this.f14989;
        C1103 c1103 = (C1103) ((ᵜᵪʾ) c1549).ˌᴵ;
        C3691 c3691 = c1103.f4726;
        C3485 c34852 = c1103.f4729;
        C2063 c2063 = c1103.f4717;
        C0511 c0511 = AbstractC3818.f14551;
        String str = this.f14992;
        boolean zM8314 = c3691.m8314(str, c0511);
        C4012 c4012 = (C4012) this.f14995;
        long j3 = c4012.m8812() ? c3711.f14131 : j;
        C1103.m3564(c34852);
        C1623 c1623 = c34852.f13414;
        C1623 c16232 = c34852.f13424;
        boolean zIsLoggable = Log.isLoggable(c34852.m7985(), 2);
        int i2 = this.f14988;
        bool = null;
        bool = null;
        bool = null;
        bool = null;
        bool = null;
        bool = null;
        bool = null;
        bool = null;
        bool = null;
        bool = null;
        bool = null;
        Boolean bool = null;
        if (zIsLoggable) {
            C1103.m3564(c34852);
            c1623.m4477("Evaluating filter. audience, filter, event", Integer.valueOf(i2), c4012.m8811() ? Integer.valueOf(c4012.m8808()) : null, c2063.m5504(c4012.m8809()));
            C1103.m3564(c34852);
            C1962 c1962 = c1549.f18892.f11095;
            C2894.m6882(c1962);
            StringBuilder sb = new StringBuilder();
            sb.append("\nevent_filter {\n");
            if (c4012.m8811()) {
                i = 0;
                C1962.m5261(sb, 0, "filter_id", Integer.valueOf(c4012.m8808()));
            } else {
                i = 0;
            }
            C1962.m5261(sb, i, "event_name", ((C1103) ((ᵜᵪʾ) c1962).ˌᴵ).f4717.m5504(c4012.m8809()));
            String strM5268 = C1962.m5268(c4012.m8806(), c4012.m8810(), c4012.m8812());
            if (!strM5268.isEmpty()) {
                C1962.m5261(sb, 0, "filter_type", strM5268);
            }
            if (c4012.m8817()) {
                C1962.m5265(sb, 1, "event_count_filter", c4012.m8818());
            }
            if (c4012.m8813() > 0) {
                sb.append("  filters {\n");
                Iterator it = c4012.m8814().iterator();
                while (it.hasNext()) {
                    c1962.m5274(sb, 2, (C3918) it.next());
                }
            }
            C1962.m5257(1, sb);
            sb.append("}\n}\n");
            c1623.m4474(sb.toString(), "Filter definition");
        }
        if (!c4012.m8811() || c4012.m8808() > 256) {
            C1103.m3564(c34852);
            c16232.m4475("Invalid event filter ID. appId, id", C3485.m7979(str), String.valueOf(c4012.m8811() ? Integer.valueOf(c4012.m8808()) : null));
            return false;
        }
        boolean z3 = c4012.m8806() || c4012.m8810() || c4012.m8812();
        if (z && !z3) {
            C1103.m3564(c34852);
            c1623.m4475("Event filter already evaluated true and it is not associated with an enhanced audience. audience ID, filter ID", Integer.valueOf(i2), c4012.m8811() ? Integer.valueOf(c4012.m8808()) : null);
            return true;
        }
        String strM10274 = c4943.m10274();
        if (c4012.m8817()) {
            try {
                boolM86564 = m8656(new BigDecimal(j3), c4012.m8818(), 0.0d);
            } catch (NumberFormatException unused) {
                boolM86564 = null;
            }
            if (boolM86564 != null) {
                if (boolM86564.booleanValue()) {
                    HashSet hashSet = new HashSet();
                    Iterator it2 = c4012.m8814().iterator();
                    while (true) {
                        if (!it2.hasNext()) {
                            C3310 c3310 = new C3310(0);
                            Iterator it3 = c4943.m10263().iterator();
                            while (true) {
                                if (!it3.hasNext()) {
                                    Iterator it4 = c4012.m8814().iterator();
                                    while (true) {
                                        if (!it4.hasNext()) {
                                            z2 = zM8314;
                                            c3485 = c34852;
                                            bool = Boolean.TRUE;
                                            break;
                                        }
                                        C3918 c3918 = (C3918) it4.next();
                                        boolean z4 = c3918.m8644() && c3918.m8646();
                                        String strM8648 = c3918.m8648();
                                        if (strM8648.isEmpty()) {
                                            C1103.m3564(c34852);
                                            c16232.m4474(c2063.m5504(strM10274), "Event has empty param name. event");
                                            break;
                                        }
                                        Object obj = c3310.get(strM8648);
                                        if (obj instanceof Long) {
                                            if (!c3918.m8641()) {
                                                C1103.m3564(c34852);
                                                c16232.m4475("No number filter for long param. event, param", c2063.m5504(strM10274), c2063.m5501(strM8648));
                                                break;
                                            }
                                            try {
                                                boolM8656 = m8656(new BigDecimal(((Long) obj).longValue()), c3918.m8645(), 0.0d);
                                            } catch (NumberFormatException unused2) {
                                                boolM8656 = null;
                                            }
                                            if (boolM8656 == null) {
                                                break;
                                            }
                                            if (boolM8656.booleanValue() == z4) {
                                                bool = Boolean.FALSE;
                                                break;
                                            }
                                        } else if (obj instanceof Double) {
                                            if (!c3918.m8641()) {
                                                C1103.m3564(c34852);
                                                c16232.m4475("No number filter for double param. event, param", c2063.m5504(strM10274), c2063.m5501(strM8648));
                                                break;
                                            }
                                            double dDoubleValue = ((Double) obj).doubleValue();
                                            try {
                                                boolM86562 = m8656(new BigDecimal(dDoubleValue), c3918.m8645(), Math.ulp(dDoubleValue));
                                            } catch (NumberFormatException unused3) {
                                                boolM86562 = null;
                                            }
                                            if (boolM86562 == null) {
                                                break;
                                            }
                                            if (boolM86562.booleanValue() == z4) {
                                                bool = Boolean.FALSE;
                                                break;
                                            }
                                        } else if (obj instanceof String) {
                                            if (!c3918.m8643()) {
                                                if (!c3918.m8641()) {
                                                    z2 = zM8314;
                                                    c3485 = c34852;
                                                    C1103.m3564(c3485);
                                                    c16232.m4475("No filter for String param. event, param", c2063.m5504(strM10274), c2063.m5501(strM8648));
                                                    break;
                                                }
                                                String str2 = (String) obj;
                                                if (!C1962.m5267(str2)) {
                                                    z2 = zM8314;
                                                    c3485 = c34852;
                                                    C1103.m3564(c3485);
                                                    c16232.m4475("Invalid param value for number filter. event, param", c2063.m5504(strM10274), c2063.m5501(strM8648));
                                                    break;
                                                }
                                                C5130 c5130M8645 = c3918.m8645();
                                                if (C1962.m5267(str2)) {
                                                    try {
                                                        z2 = zM8314;
                                                        c3485 = c34852;
                                                        j2 = 0;
                                                    } catch (NumberFormatException unused4) {
                                                        z2 = zM8314;
                                                        c3485 = c34852;
                                                        j2 = 0;
                                                    }
                                                    try {
                                                        boolM86563 = m8656(new BigDecimal(str2), c5130M8645, 0.0d);
                                                    } catch (NumberFormatException unused5) {
                                                        boolM86563 = null;
                                                    }
                                                    if (boolM86563 == null) {
                                                        break;
                                                    }
                                                    if (boolM86563.booleanValue() == z4) {
                                                        bool = Boolean.FALSE;
                                                        break;
                                                    }
                                                    c34852 = c3485;
                                                    zM8314 = z2;
                                                } else {
                                                    z2 = zM8314;
                                                    c3485 = c34852;
                                                    boolM86563 = null;
                                                }
                                            } else {
                                                C1767 c1767M8640 = c3918.m8640();
                                                C1103.m3564(c34852);
                                                boolM86563 = m8657((String) obj, c1767M8640, c34852);
                                                z2 = zM8314;
                                                c3485 = c34852;
                                            }
                                            j2 = 0;
                                            if (boolM86563 == null) {
                                            }
                                        } else {
                                            z2 = zM8314;
                                            c3485 = c34852;
                                            if (obj == null) {
                                                C1103.m3564(c3485);
                                                c1623.m4475("Missing param for filter. event, param", c2063.m5504(strM10274), c2063.m5501(strM8648));
                                                bool = Boolean.FALSE;
                                            } else {
                                                C1103.m3564(c3485);
                                                c16232.m4475("Unknown param type. event, param", c2063.m5504(strM10274), c2063.m5501(strM8648));
                                            }
                                        }
                                    }
                                } else {
                                    C0114 c0114 = (C0114) it3.next();
                                    if (hashSet.contains(c0114.m1189())) {
                                        if (!c0114.m1196()) {
                                            if (!c0114.m1185()) {
                                                if (!c0114.m1191()) {
                                                    C1103.m3564(c34852);
                                                    c16232.m4475("Unknown value for param. event, param", c2063.m5504(strM10274), c2063.m5501(c0114.m1189()));
                                                    break;
                                                }
                                                c3310.put(c0114.m1189(), c0114.m1198());
                                            } else {
                                                c3310.put(c0114.m1189(), c0114.m1185() ? Double.valueOf(c0114.m1192()) : null);
                                            }
                                        } else {
                                            c3310.put(c0114.m1189(), c0114.m1196() ? Long.valueOf(c0114.m1200()) : null);
                                        }
                                    }
                                }
                            }
                        } else {
                            C3918 c39182 = (C3918) it2.next();
                            if (c39182.m8648().isEmpty()) {
                                C1103.m3564(c34852);
                                c16232.m4474(c2063.m5504(strM10274), "null or empty param name in filter. event");
                                break;
                            }
                            hashSet.add(c39182.m8648());
                        }
                    }
                } else {
                    bool = Boolean.FALSE;
                }
            }
            z2 = zM8314;
            c3485 = c34852;
        }
        C1103.m3564(c3485);
        c1623.m4474(bool == null ? "null" : bool, "Event filter result");
        if (bool == null) {
            return false;
        }
        Boolean bool2 = Boolean.TRUE;
        this.f14990 = bool2;
        if (!bool.booleanValue()) {
            return true;
        }
        this.f14994 = bool2;
        if (!z3 || !c4943.m10275()) {
            return true;
        }
        Long lValueOf = Long.valueOf(c4943.m10277());
        if (c4012.m8810()) {
            if (z2 && c4012.m8817()) {
                lValueOf = l;
            }
            this.f14996 = lValueOf;
            return true;
        }
        if (z2 && c4012.m8817()) {
            lValueOf = l2;
        }
        this.f14991 = lValueOf;
        return true;
    }
}
