// File: /workspace/github_c_makefile_star2_O2/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 0x7414(%rip), %rax      # 0xbe88
orq 0x7405(%rip), %rax      # 0xbe80
jne 0x4b31
testl %edx, %edx
je 0x4b9f
movq %rsi, %r12
movq %rdi, %rbx
cmpq %rsi, %rdi
je 0x4b31
movl %r9d, %r15d
movl %edx, 0xc(%rsp)
movq %rbx, %rdi
movq %r12, %rsi
movq %r8, %rbp
movq %r8, %rdx
movq %rcx, 0x10(%rsp)
callq 0x439f
testl %eax, %eax
jne 0x4b80
xorl %eax, %eax
cmpl $0x1, %r15d
movq %rbx, %r13
cmoveq %rax, %r13
movq 0x73af(%rip), %rax      # 0xbe80
movl 0xc(%rsp), %ecx
xorl %r14d, %r14d
movq %rbp, %rdi
cmpl $0x1, %r15d
jne 0x4ae5
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 0x4b1f
xorl %edx, %edx
movl %edx, %r8d
movb (%r13,%r8), %sil
movb (%rbp,%r8), %r9b
movl %esi, %r8d
orb %r9b, %r8b
je 0x4b24
incl %edx
cmpb %r9b, %sil
je 0x4b01
jmp 0x4b40
cmpq %rbp, %r13
jne 0x4b40
testq %rax, %rax
jne 0x4b9a
incq %r14
cmpq %rcx, %r14
jne 0x4adb
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq $0x1, 0x7335(%rip) # 0xbe80
callq 0x3fad
cmpl $0x1, 0xc(%rsp)
je 0x4b6b
leaq 0x2869(%rip), %rdi      # 0x73c7
callq 0x3942
movq %r14, %rdi
callq 0x3b17
movq %r13, %rdi
movq %rbp, %rsi
callq 0x48ab
movq 0x10(%rsp), %rdi
callq 0x3fd2
movq $0x1, 0x72f5(%rip) # 0xbe80
leaq 0x72fe(%rip), %rdi      # 0xbe90
pushq $0x1
popq %rsi
callq 0x21d0
xorl %r14d, %r14d
jmp 0x4b4b
movq %r8, %rdi
movq %rcx, %rbx
callq 0x3fad
leaq 0x27df(%rip), %rdi      # 0x7390
callq 0x3942
movq %rbx, %rdi
jmp 0x4b7b