// File: /workspace/github_c_makefile_star2_O1/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 0x6102(%rip), %xmm1     # 0xade0
movaps %xmm1, 0x20(%rsp)
movaps 0x60e6(%rip), %xmm1     # 0xadd0
movaps %xmm1, 0x10(%rsp)
movq 0x7192(%rip), %rax      # 0xbe88
orq 0x7183(%rip), %rax      # 0xbe80
jne 0x4d65
movl %edx, %ebp
movq %rdi, %rbx
movl %edx, %r14d
andl $0x1, %r14d
cmpl $0x7, %edx
ja 0x4d6e
movl %ebp, %eax
shrl %ebp
leaq 0x3595(%rip), %rcx      # 0x82b0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
xorl %eax, %eax
ucomiss 0x356f(%rip), %xmm0     # 0x829c
jmp 0x4d5d
xorl %eax, %eax
ucomiss %xmm0, %xmm0
setp %al
jmp 0x4d60
movd %xmm0, %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
xorl %eax, %eax
cmpl $0x7f800000, %ecx       # imm = 0x7F800000
setl %al
jmp 0x4d60
movss 0x3540(%rip), %xmm1     # 0x8298
xorl %eax, %eax
ucomiss %xmm0, %xmm1
setae %al
cmpl %r14d, %eax
jne 0x4d84
addq $0x30, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movl %r14d, %eax
xorl $0x1, %eax
leaq 0x3695(%rip), %rcx      # 0x8410
movq %rcx, 0x10(%rsp)
xorl %ebp, %ebp
jmp 0x4d60
movd %xmm0, 0xc(%rsp)
movq %rsi, %rdi
callq 0x466d
leaq 0x359a(%rip), %rdi      # 0x8333
callq 0x3efa
testq %r14, %r14
jne 0x4daf
leaq 0x367a(%rip), %rdi      # 0x8424
callq 0x3efa
movl %ebp, %eax
movq 0x10(%rsp,%rax,8), %rdi
callq 0x3efa
leaq 0x357c(%rip), %rdi      # 0x833e
callq 0x3efa
movss 0xc(%rsp), %xmm0
callq 0x41a4
movq %rbx, %rdi
callq 0x4694
movq $0x1, 0x709b(%rip) # 0xbe80
leaq 0x70a4(%rip), %rdi      # 0xbe90
movl $0x1, %esi
callq 0x21d0