// File: /workspace/github_c_makefile_star2_O0/jeff-1amstudios[P]carmageddon-1-cheat-code-disassembly/src/test/framework/unity.c
// Function: UnityAssertEqualIntArray
void UnityAssertEqualIntArray(UNITY_INTERNAL_PTR expected,
                              UNITY_INTERNAL_PTR actual,
                              const UNITY_UINT32 num_elements,
                              const char* msg,
                              const UNITY_LINE_TYPE lineNumber,
                              const UNITY_DISPLAY_STYLE_T style,
                              const UNITY_FLAGS_T flags)
{
    UNITY_UINT32 elements = num_elements;
    unsigned int length   = style & 0xF;

    RETURN_IF_FAIL_OR_IGNORE;

    if (num_elements == 0)
    {
        UnityPrintPointlessAndBail();
    }

    if (expected == actual)
    {
        return; /* Both are NULL or same pointer */
    }

    if (UnityIsOneArrayNull(expected, actual, lineNumber, msg))
    {
        UNITY_FAIL_AND_BAIL;
    }

    while ((elements > 0) && elements--)
    {
        UNITY_INT expect_val;
        UNITY_INT actual_val;
        switch (length)
        {
            case 1:
                expect_val = *(UNITY_PTR_ATTRIBUTE const UNITY_INT8*)expected;
                actual_val = *(UNITY_PTR_ATTRIBUTE const UNITY_INT8*)actual;
                break;
            case 2:
                expect_val = *(UNITY_PTR_ATTRIBUTE const UNITY_INT16*)expected;
                actual_val = *(UNITY_PTR_ATTRIBUTE const UNITY_INT16*)actual;
                break;
#ifdef UNITY_SUPPORT_64
            case 8:
                expect_val = *(UNITY_PTR_ATTRIBUTE const UNITY_INT64*)expected;
                actual_val = *(UNITY_PTR_ATTRIBUTE const UNITY_INT64*)actual;
                break;
#endif
            default: /* length 4 bytes */
                expect_val = *(UNITY_PTR_ATTRIBUTE const UNITY_INT32*)expected;
                actual_val = *(UNITY_PTR_ATTRIBUTE const UNITY_INT32*)actual;
                length = 4;
                break;
        }

        if (expect_val != actual_val)
        {
            if (style & UNITY_DISPLAY_RANGE_UINT && length < sizeof(expect_val))
            {   /* For UINT, remove sign extension (padding 1's) from signed type casts above */
                UNITY_INT mask = 1;
                mask = (mask << 8 * length) - 1;
                expect_val &= mask;
                actual_val &= mask;
            }
            UnityTestResultsFailBegin(lineNumber);
            UnityPrint(UnityStrElement);
            UnityPrintNumberUnsigned(num_elements - elements - 1);
            UnityPrint(UnityStrExpected);
            UnityPrintNumberByStyle(expect_val, style);
            UnityPrint(UnityStrWas);
            UnityPrintNumberByStyle(actual_val, style);
            UnityAddMsgIfSpecified(msg);
            UNITY_FAIL_AND_BAIL;
        }
        if (flags == UNITY_ARRAY_TO_ARRAY)
        {
            expected = (UNITY_INTERNAL_PTR)(length + (const char*)expected);
        }
        actual   = (UNITY_INTERNAL_PTR)(length + (const char*)actual);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movl 0x10(%rbp), %eax
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movl %r9d, -0x2c(%rbp)
movl -0x14(%rbp), %eax
movl %eax, -0x30(%rbp)
movl -0x2c(%rbp), %eax
andl $0xf, %eax
movl %eax, -0x34(%rbp)
cmpq $0x0, 0x8097(%rip)      # 0xdeb0
jne 0x5e25
cmpq $0x0, 0x8095(%rip)      # 0xdeb8
je 0x5e2a
jmp 0x6072
cmpl $0x0, -0x14(%rbp)
jne 0x5e6e
movq -0x28(%rbp), %rdi
callq 0x5ad0
leaq 0x4590(%rip), %rdi      # 0xa3d0
callq 0x5020
movq -0x20(%rbp), %rdi
callq 0x5b10
movq $0x1, 0x8057(%rip) # 0xdeb0
leaq 0x8010(%rip), %rdi      # 0xde70
addq $0x50, %rdi
movl $0x1, %esi
callq 0x21d0
movq -0x8(%rbp), %rax
cmpq -0x10(%rbp), %rax
jne 0x5e7d
jmp 0x6072
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x28(%rbp), %rdx
movq -0x20(%rbp), %rcx
callq 0x6080
cmpl $0x0, %eax
je 0x5eb7
movq $0x1, 0x800e(%rip) # 0xdeb0
leaq 0x7fc7(%rip), %rdi      # 0xde70
addq $0x50, %rdi
movl $0x1, %esi
callq 0x21d0
jmp 0x5eb9
xorl %eax, %eax
cmpl $0x0, -0x30(%rbp)
movb %al, -0x51(%rbp)
jbe 0x5ed8
movl -0x30(%rbp), %eax
movl %eax, %ecx
addl $-0x1, %ecx
movl %ecx, -0x30(%rbp)
cmpl $0x0, %eax
setne %al
movb %al, -0x51(%rbp)
movb -0x51(%rbp), %al
testb $0x1, %al
jne 0x5ee4
jmp 0x6072
movl -0x34(%rbp), %eax
movl %eax, -0x58(%rbp)
subl $0x1, %eax
je 0x5f05
jmp 0x5ef1
movl -0x58(%rbp), %eax
subl $0x2, %eax
je 0x5f1f
jmp 0x5efb
movl -0x58(%rbp), %eax
subl $0x8, %eax
je 0x5f39
jmp 0x5f51
movq -0x8(%rbp), %rax
movsbq (%rax), %rax
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rax
movsbq (%rax), %rax
movq %rax, -0x48(%rbp)
jmp 0x5f6e
movq -0x8(%rbp), %rax
movswq (%rax), %rax
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rax
movswq (%rax), %rax
movq %rax, -0x48(%rbp)
jmp 0x5f6e
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x48(%rbp)
jmp 0x5f6e
movq -0x8(%rbp), %rax
movslq (%rax), %rax
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rax
movslq (%rax), %rax
movq %rax, -0x48(%rbp)
movl $0x4, -0x34(%rbp)
movq -0x40(%rbp), %rax
cmpq -0x48(%rbp), %rax
je 0x6047
movl -0x2c(%rbp), %eax
andl $0x20, %eax
cmpl $0x0, %eax
je 0x5fc7
movl -0x34(%rbp), %eax
cmpq $0x8, %rax
jae 0x5fc7
movq $0x1, -0x50(%rbp)
movq -0x50(%rbp), %rax
movl -0x34(%rbp), %ecx
shll $0x3, %ecx
movl %ecx, %ecx
shlq %cl, %rax
subq $0x1, %rax
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rax
andq -0x40(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x50(%rbp), %rax
andq -0x48(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x28(%rbp), %rdi
callq 0x5ad0
leaq 0x4430(%rip), %rdi      # 0xa407
callq 0x5020
movl -0x14(%rbp), %eax
subl -0x30(%rbp), %eax
subl $0x1, %eax
movl %eax, %eax
movl %eax, %edi
callq 0x5340
leaq 0x437c(%rip), %rdi      # 0xa371
callq 0x5020
movq -0x40(%rbp), %rdi
movl -0x2c(%rbp), %esi
callq 0x5290
leaq 0x436f(%rip), %rdi      # 0xa37c
callq 0x5020
movq -0x48(%rbp), %rdi
movl -0x2c(%rbp), %esi
callq 0x5290
movq -0x20(%rbp), %rdi
callq 0x5b10
movq $0x1, 0x7e7e(%rip) # 0xdeb0
leaq 0x7e37(%rip), %rdi      # 0xde70
addq $0x50, %rdi
movl $0x1, %esi
callq 0x21d0
cmpl $0x1, 0x10(%rbp)
jne 0x605d
movl -0x34(%rbp), %ecx
movq -0x8(%rbp), %rax
movl %ecx, %ecx
addq %rcx, %rax
movq %rax, -0x8(%rbp)
movl -0x34(%rbp), %ecx
movq -0x10(%rbp), %rax
movl %ecx, %ecx
addq %rcx, %rax
movq %rax, -0x10(%rbp)
jmp 0x5eb9
addq $0x60, %rsp
popq %rbp
retq
nopl (%rax,%rax)