// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x70, %rsp
movl 0x18(%rbp), %eax
movl 0x10(%rbp), %eax
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movl %ecx, -0x1c(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
movl -0x1c(%rbp), %eax
movl %eax, -0x34(%rbp)
movl 0x10(%rbp), %eax
andl $0xf, %eax
movl %eax, -0x38(%rbp)
movl $0x0, -0x3c(%rbp)
cmpq $0x0, 0x76fd(%rip)      # 0xfa40
jne 0x834f
cmpq $0x0, 0x76fb(%rip)      # 0xfa48
je 0x8364
leaq 0x76aa(%rip), %rdi      # 0xfa00
addq $0x50, %rdi
movl $0x1, %esi
callq 0x10d0
cmpl $0x0, -0x1c(%rbp)
jne 0x83a8
movq -0x30(%rbp), %rdi
callq 0x73a0
leaq 0x37e6(%rip), %rdi      # 0xbb60
callq 0x6830
movq -0x28(%rbp), %rdi
callq 0x73e0
movq $0x1, 0x76ad(%rip) # 0xfa40
leaq 0x7666(%rip), %rdi      # 0xfa00
addq $0x50, %rdi
movl $0x1, %esi
callq 0x10d0
movq -0x10(%rbp), %rax
cmpq -0x18(%rbp), %rax
jne 0x83b7
jmp 0x8679
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x30(%rbp), %rdx
movq -0x28(%rbp), %rcx
callq 0x79b0
cmpl $0x0, %eax
je 0x83f1
movq $0x1, 0x7664(%rip) # 0xfa40
leaq 0x761d(%rip), %rdi      # 0xfa00
addq $0x50, %rdi
movl $0x1, %esi
callq 0x10d0
jmp 0x83f3
xorl %eax, %eax
cmpl $0x0, -0x34(%rbp)
movb %al, -0x59(%rbp)
jbe 0x8412
movl -0x34(%rbp), %eax
movl %eax, %ecx
addl $-0x1, %ecx
movl %ecx, -0x34(%rbp)
cmpl $0x0, %eax
setne %al
movb %al, -0x59(%rbp)
movb -0x59(%rbp), %al
testb $0x1, %al
jne 0x841e
jmp 0x8679
movl -0x38(%rbp), %eax
decl %eax
movl %eax, %ecx
movq %rcx, -0x68(%rbp)
subl $0x7, %eax
ja 0x84a3
movq -0x68(%rbp), %rax
leaq 0x35d7(%rip), %rcx      # 0xba10
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x10(%rbp), %rax
movsbq (%rax), %rax
movq %rax, -0x48(%rbp)
movq -0x18(%rbp), %rax
movsbq (%rax), %rax
movq %rax, -0x50(%rbp)
movl $0x1, -0x3c(%rbp)
jmp 0x84c9
movq -0x10(%rbp), %rax
movswq (%rax), %rax
movq %rax, -0x48(%rbp)
movq -0x18(%rbp), %rax
movswq (%rax), %rax
movq %rax, -0x50(%rbp)
movl $0x2, -0x3c(%rbp)
jmp 0x84c9
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x48(%rbp)
movq -0x18(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x50(%rbp)
movl $0x8, -0x3c(%rbp)
jmp 0x84c9
jmp 0x84a5
movq -0x10(%rbp), %rax
movslq (%rax), %rax
movq %rax, -0x48(%rbp)
movq -0x18(%rbp), %rax
movslq (%rax), %rax
movq %rax, -0x50(%rbp)
movl $0x4, -0x3c(%rbp)
movl $0x4, -0x38(%rbp)
movl 0x10(%rbp), %eax
andl $0x10, %eax
cmpl $0x10, %eax
jne 0x851c
movq -0x50(%rbp), %rax
cmpq -0x48(%rbp), %rax
jle 0x84fd
movq -0x50(%rbp), %rax
subq -0x48(%rbp), %rax
cmpq -0x8(%rbp), %rax
seta %al
andb $0x1, %al
movzbl %al, %eax
cltq
movq %rax, 0x7545(%rip)      # 0xfa40
jmp 0x851a
movq -0x48(%rbp), %rax
subq -0x50(%rbp), %rax
cmpq -0x8(%rbp), %rax
seta %al
andb $0x1, %al
movzbl %al, %eax
cltq
movq %rax, 0x7526(%rip)      # 0xfa40
jmp 0x8564
movq -0x50(%rbp), %rax
cmpq -0x48(%rbp), %rax
jbe 0x8545
movq -0x50(%rbp), %rax
subq -0x48(%rbp), %rax
cmpq -0x8(%rbp), %rax
seta %al
andb $0x1, %al
movzbl %al, %eax
cltq
movq %rax, 0x74fd(%rip)      # 0xfa40
jmp 0x8562
movq -0x48(%rbp), %rax
subq -0x50(%rbp), %rax
cmpq -0x8(%rbp), %rax
seta %al
andb $0x1, %al
movzbl %al, %eax
cltq
movq %rax, 0x74de(%rip)      # 0xfa40
jmp 0x8564
cmpq $0x0, 0x74d4(%rip)      # 0xfa40
je 0x8652
movl 0x10(%rbp), %eax
andl $0x20, %eax
cmpl $0x0, %eax
je 0x85ba
cmpl $0x4, -0x38(%rbp)
jae 0x85ba
movq $0x1, -0x58(%rbp)
movq -0x58(%rbp), %rax
movl -0x38(%rbp), %ecx
shll $0x3, %ecx
movl %ecx, %ecx
shlq %cl, %rax
subq $0x1, %rax
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rax
andq -0x48(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x58(%rbp), %rax
andq -0x50(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x30(%rbp), %rdi
callq 0x73a0
leaq 0x3636(%rip), %rdi      # 0xbc00
callq 0x6830
movq -0x8(%rbp), %rdi
movl 0x10(%rbp), %esi
callq 0x6ac0
leaq 0x35b5(%rip), %rdi      # 0xbb97
callq 0x6830
movl -0x1c(%rbp), %eax
subl -0x34(%rbp), %eax
subl $0x1, %eax
movl %eax, %eax
movl %eax, %edi
callq 0x6c20
leaq 0x34ec(%rip), %rdi      # 0xbaec
callq 0x6830
movq -0x48(%rbp), %rdi
movl 0x10(%rbp), %esi
callq 0x6ac0
leaq 0x34df(%rip), %rdi      # 0xbaf7
callq 0x6830
movq -0x50(%rbp), %rdi
movl 0x10(%rbp), %esi
callq 0x6ac0
movq -0x28(%rbp), %rdi
callq 0x73e0
movq $0x1, 0x7403(%rip) # 0xfa40
leaq 0x73bc(%rip), %rdi      # 0xfa00
addq $0x50, %rdi
movl $0x1, %esi
callq 0x10d0
cmpl $0x1, 0x18(%rbp)
jne 0x8666
movq -0x10(%rbp), %rax
movl -0x3c(%rbp), %ecx
addq %rcx, %rax
movq %rax, -0x10(%rbp)
movq -0x18(%rbp), %rax
movl -0x3c(%rbp), %ecx
addq %rcx, %rax
movq %rax, -0x18(%rbp)
jmp 0x83f3
addq $0x70, %rsp
popq %rbp
retq
nop