// File: /workspace/github_c_makefile_star2_O1/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq 0x6d3f(%rip), %rax      # 0xbe88
orq 0x6d30(%rip), %rax      # 0xbe80
jne 0x521b
testl %edx, %edx
je 0x527c
movq %rsi, %r12
movq %rdi, %rbx
cmpq %rsi, %rdi
je 0x521b
movl %r9d, %r15d
movl %edx, %ebp
movq %rbx, %rdi
movq %r12, %rsi
movq %r8, 0x10(%rsp)
movq %r8, %rdx
movq %rcx, 0x8(%rsp)
callq 0x4a33
testl %eax, %eax
jne 0x5260
xorl %r14d, %r14d
cmpl $0x1, %r15d
movq %rbx, %r13
cmoveq %r14, %r13
movq 0x6cd9(%rip), %rcx      # 0xbe80
movl %ebp, %r9d
movl %ebp, %eax
movq 0x10(%rsp), %rdi
cmpl $0x1, %r15d
jne 0x51bb
movq (%rbx,%r14,8), %r13
movq (%r12,%r14,8), %rbp
testq %r13, %r13
setne %dl
testq %rbp, %rbp
setne %sil
andb %dl, %sil
cmpb $0x1, %sil
jne 0x51f9
xorl %r8d, %r8d
movl %r8d, %edx
movb (%r13,%rdx), %sil
testb %sil, %sil
jne 0x51ec
cmpb $0x0, (%rbp,%rdx)
je 0x520e
leal 0x1(%rdx), %r8d
cmpb (%rbp,%rdx), %sil
je 0x51d8
jmp 0x51fe
cmpq %rbp, %r13
je 0x520e
movq $0x1, 0x6c77(%rip) # 0xbe80
movl $0x1, %ecx
testq %rcx, %rcx
jne 0x522a
incq %r14
cmpq %rax, %r14
jne 0x51b1
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %r9d, %ebx
callq 0x466d
cmpl $0x1, %ebx
je 0x524b
leaq 0x3189(%rip), %rdi      # 0x83c7
callq 0x3efa
movq %r14, %rdi
callq 0x40ea
movq %r13, %rdi
movq %rbp, %rsi
callq 0x4f63
movq 0x8(%rsp), %rdi
callq 0x4694
movq $0x1, 0x6c15(%rip) # 0xbe80
leaq 0x6c1e(%rip), %rdi      # 0xbe90
movl $0x1, %esi
callq 0x21d0
movq %r8, %rdi
movq %rcx, %rbx
callq 0x466d
leaq 0x3102(%rip), %rdi      # 0x8390
callq 0x3efa
movq %rbx, %rdi
jmp 0x525b