// File: /workspace/github_c_makefile_star2_O3/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 0x6cdb(%rip), %rax      # 0xbe88
orq 0x6ccc(%rip), %rax      # 0xbe80
jne 0x526a
testl %edx, %edx
je 0x52da
movq %rsi, %r12
movq %rdi, %rbx
cmpq %rsi, %rdi
je 0x526a
movl %r9d, %r15d
movl %edx, 0xc(%rsp)
movq %rbx, %rdi
movq %r12, %rsi
movq %r8, %rbp
movq %r8, %rdx
movq %rcx, 0x10(%rsp)
callq 0x4aab
testl %eax, %eax
jne 0x52b9
xorl %eax, %eax
cmpl $0x1, %r15d
movq %rbx, %r13
cmoveq %rax, %r13
movq 0x6c76(%rip), %rax      # 0xbe80
movl 0xc(%rsp), %ecx
xorl %r14d, %r14d
movq %rbp, %rdi
cmpl $0x1, %r15d
jne 0x521e
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 0x5258
xorl %edx, %edx
movl %edx, %r8d
movb (%r13,%r8), %sil
movb (%rbp,%r8), %r9b
movl %esi, %r8d
orb %r9b, %r8b
je 0x525d
incl %edx
cmpb %r9b, %sil
je 0x523a
jmp 0x5279
cmpq %rbp, %r13
jne 0x5279
testq %rax, %rax
jne 0x52d5
incq %r14
cmpq %rcx, %r14
jne 0x5214
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq $0x1, 0x6bfc(%rip) # 0xbe80
callq 0x46b4
cmpl $0x1, 0xc(%rsp)
je 0x52a4
leaq 0x3130(%rip), %rdi      # 0x83c7
callq 0x3f36
movq %r14, %rdi
callq 0x4123
movq %r13, %rdi
movq %rbp, %rsi
callq 0x4fd4
movq 0x10(%rsp), %rdi
callq 0x46db
movq $0x1, 0x6bbc(%rip) # 0xbe80
leaq 0x6bc5(%rip), %rdi      # 0xbe90
movl $0x1, %esi
callq 0x21d0
xorl %r14d, %r14d
jmp 0x5284
movq %r8, %rdi
movq %rcx, %rbx
callq 0x46b4
leaq 0x30a4(%rip), %rdi      # 0x8390
callq 0x3f36
movq %rbx, %rdi
jmp 0x52b4