// File: /workspace/github_c_makefile_star2_O0/jeff-1amstudios[P]carmageddon-1-cheat-code-disassembly/src/test/framework/unity.c
// Function: UnityAssertEqualMemory
void UnityAssertEqualMemory(UNITY_INTERNAL_PTR expected,
                            UNITY_INTERNAL_PTR actual,
                            const UNITY_UINT32 length,
                            const UNITY_UINT32 num_elements,
                            const char* msg,
                            const UNITY_LINE_TYPE lineNumber,
                            const UNITY_FLAGS_T flags)
{
    UNITY_PTR_ATTRIBUTE const unsigned char* ptr_exp = (UNITY_PTR_ATTRIBUTE const unsigned char*)expected;
    UNITY_PTR_ATTRIBUTE const unsigned char* ptr_act = (UNITY_PTR_ATTRIBUTE const unsigned char*)actual;
    UNITY_UINT32 elements = num_elements;
    UNITY_UINT32 bytes;

    RETURN_IF_FAIL_OR_IGNORE;

    if ((elements == 0) || (length == 0))
    {
        UnityPrintPointlessAndBail();
    }

    if (expected == actual)
    {
        return; /* Both are NULL or same pointer */
    }

    if (UnityIsOneArrayNull(expected, actual, lineNumber, msg))
    {
        UNITY_FAIL_AND_BAIL;
    }

    while (elements--)
    {
        bytes = length;
        while (bytes--)
        {
            if (*ptr_exp != *ptr_act)
            {
                UnityTestResultsFailBegin(lineNumber);
                UnityPrint(UnityStrMemory);
                if (num_elements > 1)
                {
                    UnityPrint(UnityStrElement);
                    UnityPrintNumberUnsigned(num_elements - elements - 1);
                }
                UnityPrint(UnityStrByte);
                UnityPrintNumberUnsigned(length - bytes - 1);
                UnityPrint(UnityStrExpected);
                UnityPrintNumberByStyle(*ptr_exp, UNITY_DISPLAY_STYLE_HEX8);
                UnityPrint(UnityStrWas);
                UnityPrintNumberByStyle(*ptr_act, UNITY_DISPLAY_STYLE_HEX8);
                UnityAddMsgIfSpecified(msg);
                UNITY_FAIL_AND_BAIL;
            }
            ptr_exp++;
            ptr_act++;
        }
        if (flags == UNITY_ARRAY_TO_VAL)
        {
            ptr_exp = (UNITY_PTR_ATTRIBUTE const unsigned char*)expected;
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movl 0x10(%rbp), %eax
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movl %ecx, -0x18(%rbp)
movq %r8, -0x20(%rbp)
movq %r9, -0x28(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x38(%rbp)
movl -0x18(%rbp), %eax
movl %eax, -0x3c(%rbp)
cmpq $0x0, 0x6f11(%rip)      # 0xdeb0
jne 0x6fab
cmpq $0x0, 0x6f0f(%rip)      # 0xdeb8
je 0x6fb0
jmp 0x7177
cmpl $0x0, -0x3c(%rbp)
je 0x6fbc
cmpl $0x0, -0x14(%rbp)
jne 0x6ffa
movq -0x28(%rbp), %rdi
callq 0x5ad0
leaq 0x3404(%rip), %rdi      # 0xa3d0
callq 0x5020
movq -0x20(%rbp), %rdi
callq 0x5b10
movq $0x1, 0x6ecb(%rip) # 0xdeb0
leaq 0x6e84(%rip), %rdi      # 0xde70
addq $0x50, %rdi
movl $0x1, %esi
callq 0x21d0
movq -0x8(%rbp), %rax
cmpq -0x10(%rbp), %rax
jne 0x7009
jmp 0x7177
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x28(%rbp), %rdx
movq -0x20(%rbp), %rcx
callq 0x6080
cmpl $0x0, %eax
je 0x7043
movq $0x1, 0x6e82(%rip) # 0xdeb0
leaq 0x6e3b(%rip), %rdi      # 0xde70
addq $0x50, %rdi
movl $0x1, %esi
callq 0x21d0
jmp 0x7045
movl -0x3c(%rbp), %eax
movl %eax, %ecx
addl $-0x1, %ecx
movl %ecx, -0x3c(%rbp)
cmpl $0x0, %eax
je 0x7177
movl -0x14(%rbp), %eax
movl %eax, -0x40(%rbp)
movl -0x40(%rbp), %eax
movl %eax, %ecx
addl $-0x1, %ecx
movl %ecx, -0x40(%rbp)
cmpl $0x0, %eax
je 0x7164
movq -0x30(%rbp), %rax
movzbl (%rax), %eax
movq -0x38(%rbp), %rcx
movzbl (%rcx), %ecx
cmpl %ecx, %eax
je 0x7147
movq -0x28(%rbp), %rdi
callq 0x5ad0
leaq 0x33f7(%rip), %rdi      # 0xa490
callq 0x5020
cmpl $0x1, -0x18(%rbp)
jbe 0x70c2
leaq 0x335c(%rip), %rdi      # 0xa407
callq 0x5020
movl -0x18(%rbp), %eax
subl -0x3c(%rbp), %eax
subl $0x1, %eax
movl %eax, %eax
movl %eax, %edi
callq 0x5340
leaq 0x33d9(%rip), %rdi      # 0xa4a2
callq 0x5020
movl -0x14(%rbp), %eax
subl -0x40(%rbp), %eax
subl $0x1, %eax
movl %eax, %eax
movl %eax, %edi
callq 0x5340
leaq 0x328a(%rip), %rdi      # 0xa371
callq 0x5020
movq -0x30(%rbp), %rax
movzbl (%rax), %eax
movl %eax, %edi
movl $0x41, %esi
callq 0x5290
leaq 0x3276(%rip), %rdi      # 0xa37c
callq 0x5020
movq -0x38(%rbp), %rax
movzbl (%rax), %eax
movl %eax, %edi
movl $0x41, %esi
callq 0x5290
movq -0x20(%rbp), %rdi
callq 0x5b10
movq $0x1, 0x6d7e(%rip) # 0xdeb0
leaq 0x6d37(%rip), %rdi      # 0xde70
addq $0x50, %rdi
movl $0x1, %esi
callq 0x21d0
movq -0x30(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x30(%rbp)
movq -0x38(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x38(%rbp)
jmp 0x705f
cmpl $0x0, 0x10(%rbp)
jne 0x7172
movq -0x8(%rbp), %rax
movq %rax, -0x30(%rbp)
jmp 0x7045
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax)