// File: /workspace/github_cpp_makefile_star2_O1/MatthewZMD[P]TetrisDual/interface.cc
// Function: Interface::cmdInterface(std::istream&)
bool Interface::cmdInterface(std::istream& in) {
    if (g->isAutoDrop()) {
        execFunc(in, 1, "drop");
        std::cout << *(g->display) << std::endl;
        return true;
    }

    std::string cmd;
    if(in >> cmd){
        // Used for multiplier
        int step;

        // Extract numbers from cmd
        cmdExtract(step, cmd);

        // Interpret the command
        cmd = cmdInterpreter(cmd, cmdList);

        if (cmd == "") {
            std::cout << "What are you talking about?" << std::endl;
        }
        else {
            execFunc(in, step, cmd);
            std::cout << *(g->display) << std::endl;
        }

        return true;
    }
    return false;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rsi, %r15
movq %rdi, %r14
movq 0x60(%rdi), %rdi
callq 0xcfb2
testb %al, %al
je 0x711c
leaq 0x58(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0xc143(%rip), %rsi      # 0x131dc
leaq 0xc140(%rip), %rdx      # 0x131e0
leaq 0x48(%rsp), %rbx
movq %rbx, %rdi
callq 0x5fae
movq %r14, %rdi
movq %r15, %rsi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x6b44
movq 0x48(%rsp), %rdi
cmpq %r12, %rdi
je 0x70d7
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x52e0
movq 0x60(%r14), %rax
movq 0x20(%rax), %rsi
movq 0x14eca(%rip), %rdi     # 0x1bfb0
callq 0xf390
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x52b0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x5040
movq %rax, %rdi
callq 0x5210
movb $0x1, %bl
jmp 0x7291
leaq 0x18(%rsp), %r13
movq %r13, -0x10(%r13)
movq $0x0, -0x8(%r13)
movb $0x0, (%r13)
leaq 0x8(%rsp), %rsi
movq %r15, %rdi
callq 0x5360
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
sete %bl
jne 0x727a
leaq 0x4(%rsp), %rsi
leaq 0x8(%rsp), %rdx
callq 0x6a14
leaq 0x68(%rsp), %rdi
leaq 0x8(%rsp), %rdx
movq %r14, %rsi
movq %r14, %rcx
xorl %r8d, %r8d
callq 0x683c
leaq 0x8(%rsp), %rdi
leaq 0x68(%rsp), %r12
movq %r12, %rsi
callq 0x5350
movq (%r12), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x71a8
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x52e0
leaq 0xc93a(%rip), %rsi      # 0x13ae9
leaq 0x8(%rsp), %rdi
callq 0x50d0
testl %eax, %eax
je 0x7238
movl 0x4(%rsp), %ebp
leaq 0x38(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
leaq 0x28(%rsp), %rdi
callq 0x6230
leaq 0x28(%rsp), %rcx
movq %r14, %rdi
movq %r15, %rsi
movl %ebp, %edx
callq 0x6b44
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0x720b
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x52e0
movq 0x60(%r14), %rax
movq 0x20(%rax), %rsi
movq 0x14d96(%rip), %rdi     # 0x1bfb0
callq 0xf390
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x52b0
jmp 0x7267
movq 0x14d71(%rip), %r14     # 0x1bfb0
leaq 0xbfdf(%rip), %rsi      # 0x13225
movl $0x1b, %edx
movq %r14, %rdi
callq 0x5320
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x52b0
movsbl %al, %esi
movq %r14, %rdi
callq 0x5040
movq %rax, %rdi
callq 0x5210
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x7291
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x52e0
movl %ebx, %eax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0x72dc
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x52e0
jmp 0x72dc
jmp 0x72d9
jmp 0x72d9
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r12, %rdi
je 0x72f3
movq 0x58(%rsp), %rsi
jmp 0x72eb
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x72f3
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x52e0
movq %rbx, %rdi
callq 0x54e0
nop