// File: /workspace/github_cpp_makefile_star2_O3/Ciaxur[P]yagb-emu/include/imgui/imgui_demo.cpp
// Function: ExampleAppConsole::ExecCommand(char const*)
void    ExecCommand(const char* command_line)
    {
        AddLog("# %s\n", command_line);

        // Insert into history. First find match and delete it so it can be pushed to the back.
        // This isn't trying to be smart or optimal.
        HistoryPos = -1;
        for (int i = History.Size - 1; i >= 0; i--)
            if (Stricmp(History[i], command_line) == 0)
            {
                free(History[i]);
                History.erase(History.begin() + i);
                break;
            }
        History.push_back(Strdup(command_line));

        // Process command
        if (Stricmp(command_line, "CLEAR") == 0)
        {
            ClearLog();
        }
        else if (Stricmp(command_line, "HELP") == 0)
        {
            AddLog("Commands:");
            for (int i = 0; i < Commands.Size; i++)
                AddLog("- %s", Commands[i]);
        }
        else if (Stricmp(command_line, "HISTORY") == 0)
        {
            int first = History.Size - 10;
            for (int i = first > 0 ? first : 0; i < History.Size; i++)
                AddLog("%3d: %s\n", i, History[i]);
        }
        else
        {
            AddLog("Unknown command: '%s'\n", command_line);
        }

        // On command input, we scroll to bottom even if AutoScroll==false
        ScrollToBottom = true;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x52152(%rip), %rsi     # 0xc558f
movq %r14, %rdx
xorl %eax, %eax
callq 0x7322e
movl $0xffffffff, 0x130(%rbx) # imm = 0xFFFFFFFF
movl 0x120(%rbx), %r12d
movq %r12, %r15
incq %r15
testl %r12d, %r12d
jle 0x734e0
cmpl %r12d, 0x120(%rbx)
jl 0x73688
movq 0x128(%rbx), %rax
movq -0x10(%rax,%r15,8), %rdi
movq %r14, %rsi
callq 0x73b44
decq %r15
decl %r12d
testl %eax, %eax
jne 0x7345e
cmpl %r15d, 0x120(%rbx)
jl 0x73688
movq 0x128(%rbx), %rax
movq -0x8(%rax,%r15,8), %rdi
callq 0xc170
movl 0x120(%rbx), %edx
cmpl %r15d, %edx
jl 0x736a7
movq 0x128(%rbx), %rax
leaq (%rax,%r15,8), %rsi
leaq (%rax,%r15,8), %rdi
addq $-0x8, %rdi
subq %r15, %rdx
shlq $0x3, %rdx
callq 0xc130
decl 0x120(%rbx)
movq %r14, %rdi
callq 0x733ae
movq %rax, %r15
movl 0x120(%rbx), %eax
cmpl 0x124(%rbx), %eax
jne 0x7350e
leal 0x1(%rax), %r13d
testl %eax, %eax
je 0x73517
movl %eax, %ecx
shrl $0x1f, %ecx
addl %eax, %ecx
sarl %ecx
addl %eax, %ecx
jmp 0x7351c
movq 0x128(%rbx), %r12
jmp 0x73571
movl $0x8, %ecx
cmpl %r13d, %ecx
cmovgl %ecx, %r13d
movslq %r13d, %rdi
shlq $0x3, %rdi
callq 0x41c63
movq %rax, %r12
movq 0x128(%rbx), %rsi
testq %rsi, %rsi
je 0x7355d
movslq 0x120(%rbx), %rdx
shlq $0x3, %rdx
movq %r12, %rdi
callq 0xc080
movq 0x128(%rbx), %rdi
callq 0x41d3c
movq %r12, 0x128(%rbx)
movl %r13d, 0x124(%rbx)
movl 0x120(%rbx), %eax
cltq
movq %r15, (%r12,%rax,8)
incl 0x120(%rbx)
leaq 0x51d5e(%rip), %rsi     # 0xc52e2
movq %r14, %rdi
callq 0x73b44
testl %eax, %eax
je 0x735cf
leaq 0x51d3e(%rip), %rsi     # 0xc52d5
movq %r14, %rdi
callq 0x73b44
testl %eax, %eax
je 0x735dc
leaq 0x51d30(%rip), %rsi     # 0xc52da
movq %r14, %rdi
callq 0x73b44
testl %eax, %eax
je 0x73629
leaq 0x51ff0(%rip), %rsi     # 0xc55ad
movq %rbx, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0x7322e
jmp 0x73672
movq %rbx, %rdi
callq 0x731d2
jmp 0x73672
leaq 0x51fb2(%rip), %rsi     # 0xc5595
movq %rbx, %rdi
xorl %eax, %eax
callq 0x7322e
cmpl $0x0, 0x110(%rbx)
jle 0x73672
leaq 0x51fa2(%rip), %r14     # 0xc559f
xorl %r15d, %r15d
movq 0x118(%rbx), %rax
movq (%rax,%r15,8), %rdx
movq %rbx, %rdi
movq %r14, %rsi
xorl %eax, %eax
callq 0x7322e
incq %r15
movslq 0x110(%rbx), %rax
cmpq %rax, %r15
jl 0x73600
jmp 0x73672
movl 0x120(%rbx), %ecx
cmpl $0xb, %ecx
movl $0xa, %eax
cmovgel %ecx, %eax
addl $-0xa, %eax
cmpl %ecx, %eax
jge 0x73672
movl %eax, %r14d
leaq 0x51f59(%rip), %r15     # 0xc55a4
movq 0x128(%rbx), %rax
movq (%rax,%r14,8), %rcx
movq %rbx, %rdi
movq %r15, %rsi
movl %r14d, %edx
xorl %eax, %eax
callq 0x7322e
incq %r14
cmpl %r14d, 0x120(%rbx)
jg 0x7364b
movb $0x1, 0x251(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x45fe9(%rip), %rdi     # 0xb9678
leaq 0x45ff5(%rip), %rsi     # 0xb968b
leaq 0x51c6b(%rip), %rcx     # 0xc5308
movl $0x65c, %edx            # imm = 0x65C
callq 0xc140
leaq 0x4ce82(%rip), %rdi     # 0xc0530
leaq 0x45fd6(%rip), %rsi     # 0xb968b
leaq 0x51f08(%rip), %rcx     # 0xc55c4
movl $0x674, %edx            # imm = 0x674
callq 0xc140