// File: /workspace/github_c_makefile_star2_O1/connycommy[P]atCmdDevice/src/test/unity.c
// Function: UnityAssertNumbersArrayWithin
void UnityAssertNumbersArrayWithin(const UNITY_UINT delta,
                                   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 ((style & UNITY_DISPLAY_RANGE_INT) == UNITY_DISPLAY_RANGE_INT)
        {
            if (actual_val > expect_val)
            {
                Unity.CurrentTestFailed = (((UNITY_UINT)actual_val - (UNITY_UINT)expect_val) > delta);
            }
            else
            {
                Unity.CurrentTestFailed = (((UNITY_UINT)expect_val - (UNITY_UINT)actual_val) > delta);
            }
        }
        else
        {
            if ((UNITY_UINT)actual_val > (UNITY_UINT)expect_val)
            {
                Unity.CurrentTestFailed = (((UNITY_UINT)actual_val - (UNITY_UINT)expect_val) > delta);
            }
            else
            {
                Unity.CurrentTestFailed = (((UNITY_UINT)expect_val - (UNITY_UINT)actual_val) > delta);
            }
        }

        if (Unity.CurrentTestFailed)
        {
            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(UnityStrDelta);
            UnityPrintNumberByStyle((UNITY_INT)delta, style);
            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
movq 0x6e3d(%rip), %rax      # 0xca38
orq 0x6e2e(%rip), %rax      # 0xca30
jne 0x5da6
movl %ecx, %ebp
testl %ecx, %ecx
je 0x5db7
movq %rdx, %r13
movq %rsi, %rbx
cmpq %rdx, %rsi
je 0x5cf9
movq %rdi, %r14
movq %rbx, %rdi
movq %r13, %rsi
movq %r9, 0x8(%rsp)
movq %r9, %rdx
movq %r8, 0x10(%rsp)
movq %r8, %rcx
callq 0x5758
testl %eax, %eax
jne 0x5d9b
movl 0x58(%rsp), %eax
movl 0x50(%rsp), %r9d
movl %r9d, %ecx
andl $0xf, %ecx
movl %ebp, %edx
xorl %r12d, %r12d
cmpl $0x8, %ecx
je 0x5c8d
cmpl $0x2, %ecx
je 0x5c7a
cmpl $0x1, %ecx
jne 0x5c9b
movsbq (%rbx), %rbp
movsbq (%r13), %r15
movl $0x1, %ecx
jmp 0x5c88
movswq (%rbx), %rbp
movswq (%r13), %r15
movl $0x2, %ecx
movb $0x1, %sil
jmp 0x5ca9
movq (%rbx), %rbp
movq (%r13), %r15
movl $0x8, %ecx
jmp 0x5ca7
movslq (%rbx), %rbp
movslq (%r13), %r15
movl $0x4, %ecx
xorl %esi, %esi
movq %r15, %rdi
testb $0x10, %r9b
jne 0x5cf2
subq %rbp, %rdi
ja 0x5cbd
movq %rbp, %rdi
subq %r15, %rdi
xorl %r8d, %r8d
cmpq %r14, %rdi
seta %r8b
movq %r8, 0x6d62(%rip)       # 0xca30
ja 0x5d08
cmpl $0x1, %eax
movl %ecx, %esi
movl $0x0, %edi
cmoveq %rsi, %rdi
addq %rdi, %rbx
addq %rsi, %r13
incq %r12
cmpl %r12d, %edx
jne 0x5c5b
jmp 0x5cf9
subq %rbp, %rdi
jle 0x5cb7
jmp 0x5cbd
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %r9d, %ebx
testb $0x20, %r9b
sete %al
xorb $0x1, %sil
orb %al, %sil
jne 0x5d31
shll $0x3, %ecx
movq $-0x1, %rax
shlq %cl, %rax
notq %rax
andq %rax, %rbp
andq %rax, %r15
movq 0x8(%rsp), %rdi
callq 0x5377
leaq 0x2e7e(%rip), %rdi      # 0x8bc0
callq 0x4bac
movq %r14, %rdi
movl %ebx, %esi
callq 0x4d26
leaq 0x2dff(%rip), %rdi      # 0x8b57
callq 0x4bac
movq %r12, %rdi
callq 0x4e12
leaq 0x2d42(%rip), %rdi      # 0x8aae
callq 0x4bac
movq %rbp, %rdi
movl %ebx, %esi
callq 0x4d26
leaq 0x2d37(%rip), %rdi      # 0x8ab9
callq 0x4bac
movq %r15, %rdi
movl %ebx, %esi
callq 0x4d26
movq 0x10(%rsp), %rdi
callq 0x539e
movq $0x1, 0x6c8a(%rip) # 0xca30
leaq 0x6c93(%rip), %rdi      # 0xca40
movl $0x1, %esi
callq 0x10d0
movq %r9, %rdi
movq %r8, %rbx
callq 0x5377
leaq 0x2d57(%rip), %rdi      # 0x8b20
callq 0x4bac
movq %rbx, %rdi
jmp 0x5d96