// File: /workspace/github_cpp_makefile_star2_O3/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 0xcd64
testb %al, %al
je 0x7146
leaq 0x58(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0xc119(%rip), %rsi      # 0x131dc
leaq 0xc116(%rip), %rdx      # 0x131e0
leaq 0x48(%rsp), %rbx
movq %rbx, %rdi
callq 0x5fce
movq %r14, %rdi
movq %r15, %rsi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x6b6e
movq 0x48(%rsp), %rdi
cmpq %r12, %rdi
je 0x7101
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x52e0
movq 0x60(%r14), %rax
movq 0x20(%rax), %rsi
movq 0x14ea0(%rip), %rdi     # 0x1bfb0
callq 0xf0e4
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 0x72bb
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 0x72a4
leaq 0x4(%rsp), %rsi
leaq 0x8(%rsp), %rdx
callq 0x6a3a
leaq 0x68(%rsp), %rdi
leaq 0x8(%rsp), %rdx
movq %r14, %rsi
movq %r14, %rcx
xorl %r8d, %r8d
callq 0x684a
leaq 0x8(%rsp), %rdi
leaq 0x68(%rsp), %r12
movq %r12, %rsi
callq 0x5350
movq (%r12), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x71d2
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x52e0
leaq 0xc928(%rip), %rsi      # 0x13b01
leaq 0x8(%rsp), %rdi
callq 0x50d0
testl %eax, %eax
je 0x7262
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 0x6248
leaq 0x28(%rsp), %rcx
movq %r14, %rdi
movq %r15, %rsi
movl %ebp, %edx
callq 0x6b6e
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0x7235
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x52e0
movq 0x60(%r14), %rax
movq 0x20(%rax), %rsi
movq 0x14d6c(%rip), %rdi     # 0x1bfb0
callq 0xf0e4
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x52b0
jmp 0x7291
movq 0x14d47(%rip), %r14     # 0x1bfb0
leaq 0xbfb5(%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 0x72bb
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 0x7306
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x52e0
jmp 0x7306
jmp 0x7303
jmp 0x7303
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r12, %rdi
je 0x731d
movq 0x58(%rsp), %rsi
jmp 0x7315
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x731d
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x52e0
movq %rbx, %rdi
callq 0x54e0
nop