// File: /workspace/github_c_makefile_star2_O2/jeff-1amstudios[P]carmageddon-1-cheat-code-disassembly/src/test/framework/unity.c
// Function: UnityAssertFloatSpecial
void UnityAssertFloatSpecial(const UNITY_FLOAT actual,
                             const char* msg,
                             const UNITY_LINE_TYPE lineNumber,
                             const UNITY_FLOAT_TRAIT_T style)
{
    const char* trait_names[] = {UnityStrInf, UnityStrNegInf, UnityStrNaN, UnityStrDet};
    UNITY_INT should_be_trait = ((UNITY_INT)style & 1);
    UNITY_INT is_trait        = !should_be_trait;
    UNITY_INT trait_index     = (UNITY_INT)(style >> 1);

    RETURN_IF_FAIL_OR_IGNORE;

    switch (style)
    {
        case UNITY_FLOAT_IS_INF:
        case UNITY_FLOAT_IS_NOT_INF:
            is_trait = isinf(actual) && (actual > 0);
            break;
        case UNITY_FLOAT_IS_NEG_INF:
        case UNITY_FLOAT_IS_NOT_NEG_INF:
            is_trait = isinf(actual) && (actual < 0);
            break;

        case UNITY_FLOAT_IS_NAN:
        case UNITY_FLOAT_IS_NOT_NAN:
            is_trait = isnan(actual) ? 1 : 0;
            break;

        case UNITY_FLOAT_IS_DET: /* A determinate number is non infinite and not NaN. */
        case UNITY_FLOAT_IS_NOT_DET:
            is_trait = !isinf(actual) && !isnan(actual);
            break;

        default:
            trait_index = 0;
            trait_names[0] = UnityStrInvalidFloatTrait;
            break;
    }

    if (is_trait != should_be_trait)
    {
        UnityTestResultsFailBegin(lineNumber);
        UnityPrint(UnityStrExpected);
        if (!should_be_trait)
        {
            UnityPrint(UnityStrNot);
        }
        UnityPrint(trait_names[trait_index]);
        UnityPrint(UnityStrWas);
#ifndef UNITY_EXCLUDE_FLOAT_PRINT
        UnityPrintFloat((UNITY_DOUBLE)actual);
#else
        if (should_be_trait)
        {
            UnityPrint(UnityStrNot);
        }
        UnityPrint(trait_names[trait_index]);
#endif
        UnityAddMsgIfSpecified(msg);
        UNITY_FAIL_AND_BAIL;
    }
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x30, %rsp
movaps 0x67a2(%rip), %xmm1     # 0xade0
movaps %xmm1, 0x20(%rsp)
movaps 0x6786(%rip), %xmm1     # 0xadd0
movaps %xmm1, 0x10(%rsp)
movq 0x7832(%rip), %rax      # 0xbe88
orq 0x7823(%rip), %rax      # 0xbe80
jne 0x46c4
movl %edx, %ebp
movq %rdi, %rbx
cmpl $0x7, %edx
ja 0x46cd
movl %ebp, %eax
leaq 0x2c3e(%rip), %rcx      # 0x72b0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
ucomiss 0x2c1a(%rip), %xmm0     # 0x729c
setae %al
xorl %r14d, %r14d
jmp 0x46bb
ucomiss %xmm0, %xmm0
setp %al
pushq $0x2
jmp 0x46b9
movd %xmm0, %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
cmpl $0x7f800000, %eax       # imm = 0x7F800000
setl %al
pushq $0x3
jmp 0x46b9
movss 0x2be7(%rip), %xmm1     # 0x7298
ucomiss %xmm0, %xmm1
setae %al
pushq $0x1
popq %r14
movl %ebp, %ecx
andb $0x1, %cl
cmpb %cl, %al
jne 0x46dc
addq $0x30, %rsp
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x2d3c(%rip), %rax      # 0x7410
movq %rax, 0x10(%rsp)
xorl %r14d, %r14d
movss %xmm0, 0xc(%rsp)
movq %rsi, %rdi
callq 0x3fad
leaq 0x2c42(%rip), %rdi      # 0x7333
callq 0x3942
testb $0x1, %bpl
jne 0x4708
leaq 0x2d21(%rip), %rdi      # 0x7424
callq 0x3942
movq 0x10(%rsp,%r14,8), %rdi
callq 0x3942
leaq 0x2c25(%rip), %rdi      # 0x733e
callq 0x3942
movss 0xc(%rsp), %xmm0
callq 0x3bc1
movq %rbx, %rdi
callq 0x3fd2
movq $0x1, 0x7744(%rip) # 0xbe80
leaq 0x774d(%rip), %rdi      # 0xbe90
pushq $0x1
popq %rsi
callq 0x21d0