// File: /workspace/github_c_makefile_star2_O2/connycommy[P]atCmdDevice/src/test/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;
    unsigned int increment = 0;

    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;
                increment  = sizeof(UNITY_INT8);
                break;

            case 2:
                expect_val = *(UNITY_PTR_ATTRIBUTE const UNITY_INT16*)expected;
                actual_val = *(UNITY_PTR_ATTRIBUTE const UNITY_INT16*)actual;
                increment  = sizeof(UNITY_INT16);
                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;
                increment  = sizeof(UNITY_INT64);
                break;
#endif

            default: /* default is length 4 bytes */
            case 4:
                expect_val = *(UNITY_PTR_ATTRIBUTE const UNITY_INT32*)expected;
                actual_val = *(UNITY_PTR_ATTRIBUTE const UNITY_INT32*)actual;
                increment  = sizeof(UNITY_INT32);
                length = 4;
                break;
        }

        if (expect_val != actual_val)
        {
            if ((style & UNITY_DISPLAY_RANGE_UINT) && (length < (UNITY_INT_WIDTH / 8)))
            {   /* 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;
        }
        /* Walk through array by incrementing the pointers */
        if (flags == UNITY_ARRAY_TO_ARRAY)
        {
            expected = (UNITY_INTERNAL_PTR)((const char*)expected + increment);
        }
        actual = (UNITY_INTERNAL_PTR)((const char*)actual + increment);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %r9d, 0xc(%rsp)
movq %rcx, 0x10(%rsp)
movq 0x87d9(%rip), %rax      # 0xda38
orq 0x87ca(%rip), %rax      # 0xda30
jne 0x53c8
movq %r8, %r14
movl %edx, %ebx
testl %edx, %edx
je 0x53d7
movq %rsi, %r12
movq %rdi, %r13
cmpq %rsi, %rdi
je 0x5335
movq %r13, %rdi
movq %r12, %rsi
movq %r14, %rdx
movq 0x10(%rsp), %rcx
callq 0x53ed
testl %eax, %eax
jne 0x53bd
movl 0x50(%rsp), %eax
movl 0xc(%rsp), %ecx
andl $0xf, %ecx
movl %ebx, %edx
xorl %r15d, %r15d
pushq $0x8
popq %rsi
pushq $0x2
popq %rdi
pushq $0x1
popq %r8
pushq $0x4
popq %r9
cmpl %r15d, %edx
je 0x5335
cmpl $0x8, %ecx
je 0x52f8
cmpl $0x2, %ecx
je 0x52e7
cmpl $0x1, %ecx
jne 0x5307
movsbq (%r13), %rbp
movsbq (%r12), %rbx
movb $0x1, %r10b
movl %r8d, %ecx
jmp 0x5315
movswq (%r13), %rbp
movswq (%r12), %rbx
movb $0x1, %r10b
movl %edi, %ecx
jmp 0x5315
movq (%r13), %rbp
movq (%r12), %rbx
xorl %r10d, %r10d
movl %esi, %ecx
jmp 0x5315
movslq (%r13), %rbp
movslq (%r12), %rbx
xorl %r10d, %r10d
movl %r9d, %ecx
cmpq %rbx, %rbp
jne 0x5344
cmpl $0x1, %eax
movl %ecx, %r10d
movl $0x0, %r11d
cmoveq %r10, %r11
addq %r11, %r13
addq %r10, %r12
incq %r15
jmp 0x52c1
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
testb $0x20, 0xc(%rsp)
sete %al
xorb $0x1, %r10b
orb %al, %r10b
jne 0x5367
shll $0x3, %ecx
pushq $-0x1
popq %rax
shlq %cl, %rax
notq %rax
andq %rax, %rbp
andq %rax, %rbx
movq %r14, %rdi
callq 0x4fe7
leaq 0x37c1(%rip), %rdi      # 0x8b37
callq 0x4934
movq %r15, %rdi
callq 0x4b69
leaq 0x3704(%rip), %rdi      # 0x8a8e
callq 0x4934
movq %rbp, %rdi
movl 0xc(%rsp), %ebp
movl %ebp, %esi
callq 0x4a92
leaq 0x36f5(%rip), %rdi      # 0x8a99
callq 0x4934
movq %rbx, %rdi
movl %ebp, %esi
callq 0x4a92
movq 0x10(%rsp), %rdi
callq 0x500c
movq $0x1, 0x8668(%rip) # 0xda30
leaq 0x8671(%rip), %rdi      # 0xda40
pushq $0x1
popq %rsi
callq 0x10d0
movq %r14, %rdi
callq 0x4fe7
leaq 0x371a(%rip), %rdi      # 0x8b00
callq 0x4934
jmp 0x53b3