// File: /workspace/github_c_makefile_star2_O0/jeff-1amstudios[P]carmageddon-1-cheat-code-disassembly/src/test/framework/unity.c
// Function: UnityAssertEqualStringArray
void UnityAssertEqualStringArray(UNITY_INTERNAL_PTR expected,
                                 const char** actual,
                                 const UNITY_UINT32 num_elements,
                                 const char* msg,
                                 const UNITY_LINE_TYPE lineNumber,
                                 const UNITY_FLAGS_T flags)
{
    UNITY_UINT32 i = 0;
    UNITY_UINT32 j = 0;
    const char* expd = NULL;
    const char* act = NULL;

    RETURN_IF_FAIL_OR_IGNORE;

    /* if no elements, it's an error */
    if (num_elements == 0)
    {
        UnityPrintPointlessAndBail();
    }

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

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

    if (flags != UNITY_ARRAY_TO_ARRAY)
    {
        expd = (const char*)expected;
    }

    do
    {
        act = actual[j];
        if (flags == UNITY_ARRAY_TO_ARRAY)
        {
            expd = ((const char* const*)expected)[j];
        }

        /* if both pointers not null compare the strings */
        if (expd && act)
        {
            for (i = 0; expd[i] || act[i]; i++)
            {
                if (expd[i] != act[i])
                {
                    Unity.CurrentTestFailed = 1;
                    break;
                }
            }
        }
        else
        { /* handle case of one pointers being null (if both null, test should pass) */
            if (expd != act)
            {
                Unity.CurrentTestFailed = 1;
            }
        }

        if (Unity.CurrentTestFailed)
        {
            UnityTestResultsFailBegin(lineNumber);
            if (num_elements > 1)
            {
                UnityPrint(UnityStrElement);
                UnityPrintNumberUnsigned(j);
            }
            UnityPrintExpectedAndActualStrings(expd, act);
            UnityAddMsgIfSpecified(msg);
            UNITY_FAIL_AND_BAIL;
        }
    } while (++j < num_elements);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
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 $0x0, -0x30(%rbp)
movl $0x0, -0x34(%rbp)
movq $0x0, -0x40(%rbp)
movq $0x0, -0x48(%rbp)
cmpq $0x0, 0x713b(%rip)      # 0xdeb0
jne 0x6d81
cmpq $0x0, 0x7139(%rip)      # 0xdeb8
je 0x6d86
jmp 0x6f54
cmpl $0x0, -0x14(%rbp)
jne 0x6dca
movq -0x28(%rbp), %rdi
callq 0x5ad0
leaq 0x3634(%rip), %rdi      # 0xa3d0
callq 0x5020
movq -0x20(%rbp), %rdi
callq 0x5b10
movq $0x1, 0x70fb(%rip) # 0xdeb0
leaq 0x70b4(%rip), %rdi      # 0xde70
addq $0x50, %rdi
movl $0x1, %esi
callq 0x21d0
movq -0x8(%rbp), %rax
cmpq -0x10(%rbp), %rax
jne 0x6dd9
jmp 0x6f54
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x28(%rbp), %rdx
movq -0x20(%rbp), %rcx
callq 0x6080
cmpl $0x0, %eax
je 0x6e13
movq $0x1, 0x70b2(%rip) # 0xdeb0
leaq 0x706b(%rip), %rdi      # 0xde70
addq $0x50, %rdi
movl $0x1, %esi
callq 0x21d0
cmpl $0x1, -0x2c(%rbp)
je 0x6e21
movq -0x8(%rbp), %rax
movq %rax, -0x40(%rbp)
jmp 0x6e23
movq -0x10(%rbp), %rax
movl -0x34(%rbp), %ecx
movq (%rax,%rcx,8), %rax
movq %rax, -0x48(%rbp)
cmpl $0x1, -0x2c(%rbp)
jne 0x6e47
movq -0x8(%rbp), %rax
movl -0x34(%rbp), %ecx
movq (%rax,%rcx,8), %rax
movq %rax, -0x40(%rbp)
cmpq $0x0, -0x40(%rbp)
je 0x6ec4
cmpq $0x0, -0x48(%rbp)
je 0x6ec4
movl $0x0, -0x30(%rbp)
movq -0x40(%rbp), %rax
movl -0x30(%rbp), %ecx
movsbl (%rax,%rcx), %ecx
movb $0x1, %al
cmpl $0x0, %ecx
movb %al, -0x49(%rbp)
jne 0x6e85
movq -0x48(%rbp), %rax
movl -0x30(%rbp), %ecx
movsbl (%rax,%rcx), %eax
cmpl $0x0, %eax
setne %al
movb %al, -0x49(%rbp)
movb -0x49(%rbp), %al
testb $0x1, %al
jne 0x6e8e
jmp 0x6ec2
movq -0x40(%rbp), %rax
movl -0x30(%rbp), %ecx
movsbl (%rax,%rcx), %eax
movq -0x48(%rbp), %rcx
movl -0x30(%rbp), %edx
movsbl (%rcx,%rdx), %ecx
cmpl %ecx, %eax
je 0x6eb5
movq $0x1, 0x6ffd(%rip) # 0xdeb0
jmp 0x6ec2
jmp 0x6eb7
movl -0x30(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x30(%rbp)
jmp 0x6e5c
jmp 0x6edb
movq -0x40(%rbp), %rax
cmpq -0x48(%rbp), %rax
je 0x6ed9
movq $0x1, 0x6fd7(%rip) # 0xdeb0
jmp 0x6edb
cmpq $0x0, 0x6fcd(%rip)      # 0xdeb0
je 0x6f40
movq -0x28(%rbp), %rdi
callq 0x5ad0
cmpl $0x1, -0x14(%rbp)
jbe 0x6f0a
leaq 0x350c(%rip), %rdi      # 0xa407
callq 0x5020
movl -0x34(%rbp), %eax
movl %eax, %edi
callq 0x5340
movq -0x40(%rbp), %rdi
movq -0x48(%rbp), %rsi
callq 0x6ab0
movq -0x20(%rbp), %rdi
callq 0x5b10
movq $0x1, 0x6f85(%rip) # 0xdeb0
leaq 0x6f3e(%rip), %rdi      # 0xde70
addq $0x50, %rdi
movl $0x1, %esi
callq 0x21d0
jmp 0x6f42
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
cmpl -0x14(%rbp), %eax
jb 0x6e23
addq $0x50, %rsp
popq %rbp
retq
nopw (%rax,%rax)