// File: /workspace/github_c_makefile_star2_O3/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 0x6da0(%rip), %rax      # 0xca38
orq 0x6d91(%rip), %rax      # 0xca30
jne 0x5e43
movl %ecx, %ebp
testl %ecx, %ecx
je 0x5e54
movq %rdx, %r13
movq %rsi, %rbx
cmpq %rdx, %rsi
je 0x5d96
movq %rdi, %r14
movq %rbx, %rdi
movq %r13, %rsi
movq %r9, 0x8(%rsp)
movq %r9, %rdx
movq %r8, 0x10(%rsp)
movq %r8, %rcx
callq 0x57f5
testl %eax, %eax
jne 0x5e38
movl 0x58(%rsp), %eax
movl 0x50(%rsp), %r9d
movl %r9d, %ecx
andl $0xf, %ecx
movl %ebp, %edx
xorl %r12d, %r12d
cmpl $0x8, %ecx
je 0x5d2a
cmpl $0x2, %ecx
je 0x5d17
cmpl $0x1, %ecx
jne 0x5d38
movsbq (%rbx), %rbp
movsbq (%r13), %r15
movl $0x1, %ecx
jmp 0x5d25
movswq (%rbx), %rbp
movswq (%r13), %r15
movl $0x2, %ecx
movb $0x1, %sil
jmp 0x5d46
movq (%rbx), %rbp
movq (%r13), %r15
movl $0x8, %ecx
jmp 0x5d44
movslq (%rbx), %rbp
movslq (%r13), %r15
movl $0x4, %ecx
xorl %esi, %esi
movq %r15, %rdi
testb $0x10, %r9b
jne 0x5d8f
subq %rbp, %rdi
ja 0x5d5a
movq %rbp, %rdi
subq %r15, %rdi
xorl %r8d, %r8d
cmpq %r14, %rdi
seta %r8b
movq %r8, 0x6cc5(%rip)       # 0xca30
ja 0x5da5
cmpl $0x1, %eax
movl %ecx, %esi
movl $0x0, %edi
cmoveq %rsi, %rdi
addq %rdi, %rbx
addq %rsi, %r13
incq %r12
cmpl %r12d, %edx
jne 0x5cf8
jmp 0x5d96
subq %rbp, %rdi
jle 0x5d54
jmp 0x5d5a
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 0x5dce
shll $0x3, %ecx
movq $-0x1, %rax
shlq %cl, %rax
notq %rax
andq %rax, %rbp
andq %rax, %r15
movq 0x8(%rsp), %rdi
callq 0x53ea
leaq 0x2de1(%rip), %rdi      # 0x8bc0
callq 0x4b74
movq %r14, %rdi
movl %ebx, %esi
callq 0x4d50
leaq 0x2d62(%rip), %rdi      # 0x8b57
callq 0x4b74
movq %r12, %rdi
callq 0x4e77
leaq 0x2ca5(%rip), %rdi      # 0x8aae
callq 0x4b74
movq %rbp, %rdi
movl %ebx, %esi
callq 0x4d50
leaq 0x2c9a(%rip), %rdi      # 0x8ab9
callq 0x4b74
movq %r15, %rdi
movl %ebx, %esi
callq 0x4d50
movq 0x10(%rsp), %rdi
callq 0x5411
movq $0x1, 0x6bed(%rip) # 0xca30
leaq 0x6bf6(%rip), %rdi      # 0xca40
movl $0x1, %esi
callq 0x10d0
movq %r9, %rdi
movq %r8, %rbx
callq 0x53ea
leaq 0x2cba(%rip), %rdi      # 0x8b20
callq 0x4b74
movq %rbx, %rdi
jmp 0x5e33