// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x70, %rsp
movss %xmm0, -0x4(%rbp)
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
movq 0x6831(%rip), %rax      # 0xcdd0
movq %rax, -0x40(%rbp)
movq 0x682e(%rip), %rax      # 0xcdd8
movq %rax, -0x38(%rbp)
movq 0x682b(%rip), %rax      # 0xcde0
movq %rax, -0x30(%rbp)
movq 0x6828(%rip), %rax      # 0xcde8
movq %rax, -0x28(%rbp)
movl -0x1c(%rbp), %eax
andq $0x1, %rax
movq %rax, -0x48(%rbp)
cmpq $0x0, -0x48(%rbp)
setne %al
xorb $-0x1, %al
andb $0x1, %al
movzbl %al, %eax
cltq
movq %rax, -0x50(%rbp)
movl -0x1c(%rbp), %eax
shrl %eax
movl %eax, %eax
movq %rax, -0x58(%rbp)
cmpq $0x0, 0x78b9(%rip)      # 0xdeb0
jne 0x6603
cmpq $0x0, 0x78b7(%rip)      # 0xdeb8
je 0x6608
jmp 0x6824
movl -0x1c(%rbp), %eax
movq %rax, -0x60(%rbp)
subq $0x7, %rax
ja 0x6792
movq -0x60(%rbp), %rax
leaq 0x3cbc(%rip), %rcx      # 0xa2e0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movss -0x4(%rbp), %xmm1
movaps %xmm1, %xmm0
movaps 0x3c94(%rip), %xmm2     # 0xa2d0
pand %xmm2, %xmm0
movd %xmm1, %edx
movl $0x1, %eax
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
cmpl $0x0, %edx
cmovll %ecx, %eax
movss 0x3c44(%rip), %xmm1     # 0xa2a0
xorl %ecx, %ecx
ucomiss %xmm1, %xmm0
setnp %sil
sete %dl
testb %sil, %dl
cmovnel %eax, %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x61(%rbp)
je 0x6689
movss -0x4(%rbp), %xmm0
xorps %xmm1, %xmm1
ucomiss %xmm1, %xmm0
seta %al
movb %al, -0x61(%rbp)
movb -0x61(%rbp), %al
andb $0x1, %al
movzbl %al, %eax
cltq
movq %rax, -0x50(%rbp)
jmp 0x67a5
movss -0x4(%rbp), %xmm1
movaps %xmm1, %xmm0
movaps 0x3c25(%rip), %xmm2     # 0xa2d0
pand %xmm2, %xmm0
movd %xmm1, %edx
movl $0x1, %eax
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
cmpl $0x0, %edx
cmovll %ecx, %eax
movss 0x3bd5(%rip), %xmm1     # 0xa2a0
xorl %ecx, %ecx
ucomiss %xmm1, %xmm0
setnp %sil
sete %dl
testb %sil, %dl
cmovnel %eax, %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x62(%rbp)
je 0x66f4
xorps %xmm0, %xmm0
ucomiss -0x4(%rbp), %xmm0
seta %al
movb %al, -0x62(%rbp)
movb -0x62(%rbp), %al
andb $0x1, %al
movzbl %al, %eax
cltq
movq %rax, -0x50(%rbp)
jmp 0x67a5
movss -0x4(%rbp), %xmm0
ucomiss %xmm0, %xmm0
setp %dl
xorl %eax, %eax
movl $0x1, %ecx
testb $0x1, %dl
cmovnel %ecx, %eax
cltq
movq %rax, -0x50(%rbp)
jmp 0x67a5
movss -0x4(%rbp), %xmm1
movaps %xmm1, %xmm0
movaps 0x3b9a(%rip), %xmm2     # 0xa2d0
pand %xmm2, %xmm0
movd %xmm1, %edx
movl $0x1, %eax
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
cmpl $0x0, %edx
cmovll %ecx, %eax
movss 0x3b4a(%rip), %xmm1     # 0xa2a0
xorl %ecx, %ecx
ucomiss %xmm1, %xmm0
setnp %sil
sete %dl
testb %sil, %dl
cmovnel %eax, %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x63(%rbp)
jne 0x6782
movss -0x4(%rbp), %xmm0
ucomiss %xmm0, %xmm0
setp %al
xorb $-0x1, %al
movb %al, -0x63(%rbp)
movb -0x63(%rbp), %al
andb $0x1, %al
movzbl %al, %eax
cltq
movq %rax, -0x50(%rbp)
jmp 0x67a5
movq $0x0, -0x58(%rbp)
leaq 0x3caf(%rip), %rax      # 0xa450
movq %rax, -0x40(%rbp)
movq -0x50(%rbp), %rax
cmpq -0x48(%rbp), %rax
je 0x6824
movq -0x18(%rbp), %rdi
callq 0x5ad0
leaq 0x3bb2(%rip), %rdi      # 0xa371
callq 0x5020
cmpq $0x0, -0x48(%rbp)
jne 0x67d7
leaq 0x3c92(%rip), %rdi      # 0xa464
callq 0x5020
movq -0x58(%rbp), %rax
movq -0x40(%rbp,%rax,8), %rdi
callq 0x5020
leaq 0x3b90(%rip), %rdi      # 0xa37c
callq 0x5020
movss -0x4(%rbp), %xmm0
callq 0x5440
movq -0x10(%rbp), %rdi
callq 0x5b10
movq $0x1, 0x76a1(%rip) # 0xdeb0
leaq 0x765a(%rip), %rdi      # 0xde70
addq $0x50, %rdi
movl $0x1, %esi
callq 0x21d0
addq $0x70, %rsp
popq %rbp
retq
nopw (%rax,%rax)