// File: /workspace/github_c_makefile_star2_O3/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 0x608b(%rip), %xmm1     # 0xade0
movaps %xmm1, 0x20(%rsp)
movaps 0x606f(%rip), %xmm1     # 0xadd0
movaps %xmm1, 0x10(%rsp)
movq 0x711b(%rip), %rax      # 0xbe88
orq 0x710c(%rip), %rax      # 0xbe80
jne 0x4de5
movl %edx, %ebp
movq %rdi, %rbx
cmpl $0x7, %edx
ja 0x4dee
movl %ebp, %eax
leaq 0x3527(%rip), %rcx      # 0x82b0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
ucomiss 0x3503(%rip), %xmm0     # 0x829c
setae %al
xorl %r14d, %r14d
jmp 0x4ddc
ucomiss %xmm0, %xmm0
setp %al
movl $0x2, %r14d
jmp 0x4ddc
movd %xmm0, %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
cmpl $0x7f800000, %eax       # imm = 0x7F800000
setl %al
movl $0x3, %r14d
jmp 0x4ddc
movss 0x34c8(%rip), %xmm1     # 0x8298
ucomiss %xmm0, %xmm1
setae %al
movl $0x1, %r14d
movl %ebp, %ecx
andb $0x1, %cl
cmpb %cl, %al
jne 0x4dfd
addq $0x30, %rsp
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x361b(%rip), %rax      # 0x8410
movq %rax, 0x10(%rsp)
xorl %r14d, %r14d
movd %xmm0, 0xc(%rsp)
movq %rsi, %rdi
callq 0x46b4
leaq 0x3521(%rip), %rdi      # 0x8333
callq 0x3f36
testb $0x1, %bpl
jne 0x4e29
leaq 0x3600(%rip), %rdi      # 0x8424
callq 0x3f36
movq 0x10(%rsp,%r14,8), %rdi
callq 0x3f36
leaq 0x3504(%rip), %rdi      # 0x833e
callq 0x3f36
movss 0xc(%rsp), %xmm0
callq 0x41dd
movq %rbx, %rdi
callq 0x46db
movq $0x1, 0x7023(%rip) # 0xbe80
leaq 0x702c(%rip), %rdi      # 0xbe90
movl $0x1, %esi
callq 0x21d0