// File: /workspace/github_c_makefile_star2_O0/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
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)
movl $0x0, -0x38(%rbp)
cmpq $0x0, 0x8320(%rip)      # 0xfa40
jne 0x772c
cmpq $0x0, 0x831e(%rip)      # 0xfa48
je 0x7741
leaq 0x82cd(%rip), %rdi      # 0xfa00
addq $0x50, %rdi
movl $0x1, %esi
callq 0x10d0
cmpl $0x0, -0x14(%rbp)
jne 0x7785
movq -0x28(%rbp), %rdi
callq 0x73a0
leaq 0x4409(%rip), %rdi      # 0xbb60
callq 0x6830
movq -0x20(%rbp), %rdi
callq 0x73e0
movq $0x1, 0x82d0(%rip) # 0xfa40
leaq 0x8289(%rip), %rdi      # 0xfa00
addq $0x50, %rdi
movl $0x1, %esi
callq 0x10d0
movq -0x8(%rbp), %rax
cmpq -0x10(%rbp), %rax
jne 0x7794
jmp 0x79a3
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x28(%rbp), %rdx
movq -0x20(%rbp), %rcx
callq 0x79b0
cmpl $0x0, %eax
je 0x77ce
movq $0x1, 0x8287(%rip) # 0xfa40
leaq 0x8240(%rip), %rdi      # 0xfa00
addq $0x50, %rdi
movl $0x1, %esi
callq 0x10d0
jmp 0x77d0
xorl %eax, %eax
cmpl $0x0, -0x30(%rbp)
movb %al, -0x51(%rbp)
jbe 0x77ef
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 0x77fb
jmp 0x79a3
movl -0x34(%rbp), %eax
decl %eax
movl %eax, %ecx
movq %rcx, -0x60(%rbp)
subl $0x7, %eax
ja 0x7880
movq -0x60(%rbp), %rax
leaq 0x41ba(%rip), %rcx      # 0xb9d0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x8(%rbp), %rax
movsbq (%rax), %rax
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rax
movsbq (%rax), %rax
movq %rax, -0x48(%rbp)
movl $0x1, -0x38(%rbp)
jmp 0x78a6
movq -0x8(%rbp), %rax
movswq (%rax), %rax
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rax
movswq (%rax), %rax
movq %rax, -0x48(%rbp)
movl $0x2, -0x38(%rbp)
jmp 0x78a6
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x48(%rbp)
movl $0x8, -0x38(%rbp)
jmp 0x78a6
jmp 0x7882
movq -0x8(%rbp), %rax
movslq (%rax), %rax
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rax
movslq (%rax), %rax
movq %rax, -0x48(%rbp)
movl $0x4, -0x38(%rbp)
movl $0x4, -0x34(%rbp)
movq -0x40(%rbp), %rax
cmpq -0x48(%rbp), %rax
je 0x797c
movl -0x2c(%rbp), %eax
andl $0x20, %eax
cmpl $0x0, %eax
je 0x78fc
cmpl $0x4, -0x34(%rbp)
jae 0x78fc
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 0x73a0
leaq 0x428b(%rip), %rdi      # 0xbb97
callq 0x6830
movl -0x14(%rbp), %eax
subl -0x30(%rbp), %eax
subl $0x1, %eax
movl %eax, %eax
movl %eax, %edi
callq 0x6c20
leaq 0x41c2(%rip), %rdi      # 0xbaec
callq 0x6830
movq -0x40(%rbp), %rdi
movl -0x2c(%rbp), %esi
callq 0x6ac0
leaq 0x41b5(%rip), %rdi      # 0xbaf7
callq 0x6830
movq -0x48(%rbp), %rdi
movl -0x2c(%rbp), %esi
callq 0x6ac0
movq -0x20(%rbp), %rdi
callq 0x73e0
movq $0x1, 0x80d9(%rip) # 0xfa40
leaq 0x8092(%rip), %rdi      # 0xfa00
addq $0x50, %rdi
movl $0x1, %esi
callq 0x10d0
cmpl $0x1, 0x10(%rbp)
jne 0x7990
movq -0x8(%rbp), %rax
movl -0x38(%rbp), %ecx
addq %rcx, %rax
movq %rax, -0x8(%rbp)
movq -0x10(%rbp), %rax
movl -0x38(%rbp), %ecx
addq %rcx, %rax
movq %rax, -0x10(%rbp)
jmp 0x77d0
addq $0x60, %rsp
popq %rbp
retq
nopl (%rax)