// File: /workspace/github_cpp_makefile_star2_O3/MatthewZMD[P]TetrisDual/interface.cc
// Function: Interface::cmdInterpreter(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&, unsigned int)
std::string Interface::cmdInterpreter(const std::string& cmd, const std::vector<std::string>& cmdList, unsigned i){
    if(cmd.size() == 0 && cmdList.size() > 1){
        // Matched more than 1 command
        return "";
    }
    std::vector<std::string> newList;
    // Loop through the command
    for(unsigned l = 0; l < cmdList.size(); ++l){
        if(cmdList.at(l).size() > i && cmd.at(0) == cmdList.at(l).at(i)){
            newList.emplace_back(cmdList.at(l));
        }
    }
    if(newList.size() == 0){
        // Cannot find any match string
        return "";
    } else if (newList.size() == 1){
        return newList.at(0);
    } else {
        return cmdInterpreter(cmd.substr(1), newList, i + 1);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rcx, %r12
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
cmpq $0x0, 0x8(%rdx)
sete %dl
movq (%rcx), %rax
movq 0x8(%rcx), %rcx
movq %rcx, %rsi
subq %rax, %rsi
cmpq $0x21, %rsi
setae %sil
andb %dl, %sil
cmpb $0x1, %sil
jne 0x68a8
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0xd269(%rip), %rdx      # 0x13b01
movq %rbx, %rdi
movq %rdx, %rsi
callq 0x5fce
jmp 0x69d8
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movq $0x0, 0x20(%rsp)
cmpq %rax, %rcx
movl %r8d, 0xc(%rsp)
je 0x6933
movq %r14, 0x30(%rsp)
movl %r8d, %r14d
movl $0x1, %ebp
xorl %esi, %esi
leaq 0x10(%rsp), %r13
shlq $0x5, %rsi
cmpq %r14, 0x8(%rax,%rsi)
jbe 0x690f
cmpq $0x0, 0x8(%r15)
je 0x69ea
addq %rax, %rsi
movq (%r15), %rdx
movb (%rdx), %dl
movq (%rsi), %rdi
cmpb (%rdi,%r14), %dl
jne 0x690f
movq %r13, %rdi
callq 0x736e
movq (%r12), %rax
movq 0x8(%r12), %rcx
movl %ebp, %esi
movq %rcx, %rdx
subq %rax, %rdx
sarq $0x5, %rdx
incl %ebp
cmpq %rsi, %rdx
ja 0x68d7
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rcx
movq 0x30(%rsp), %r14
jmp 0x6937
xorl %eax, %eax
xorl %ecx, %ecx
subq %rax, %rcx
sarq $0x5, %rcx
je 0x6965
cmpq $0x1, %rcx
movl 0xc(%rsp), %ebp
jne 0x6980
leaq 0x10(%rbx), %rcx
movq %rcx, (%rbx)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0x6248
jmp 0x69ce
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0xd18e(%rip), %rdx      # 0x13b01
movq %rbx, %rdi
movq %rdx, %rsi
callq 0x5fce
jmp 0x69ce
leaq 0x38(%rsp), %rdi
movl $0x1, %edx
movq %r15, %rsi
movq $-0x1, %rcx
callq 0x52f0
incl %ebp
leaq 0x38(%rsp), %rdx
leaq 0x10(%rsp), %rcx
movq %rbx, %rdi
movq %r14, %rsi
movl %ebp, %r8d
callq 0x684a
leaq 0x48(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x69ce
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x52e0
leaq 0x10(%rsp), %rdi
callq 0x632a
movq %rbx, %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xc881(%rip), %rdi      # 0x13272
xorl %esi, %esi
xorl %edx, %edx
xorl %eax, %eax
callq 0x5410
movq %rax, %rbx
leaq 0x48(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6a27
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x52e0
jmp 0x6a27
jmp 0x6a24
jmp 0x6a24
jmp 0x6a24
jmp 0x6a24
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x632a
movq %rbx, %rdi
callq 0x54e0
nop