// File: /workspace/github_cpp_makefile_star2_O2/MatthewZMD[P]TetrisDual/game.cc
// Function: Game::execAction(std::istream&)
void Game::execAction(std::istream & in) {
    std::cout << "Please unleash your special powers: ";
    std::string cmd;
    in >> cmd;
    if (cmd == "blind") {
        blind();
    }
    else if (cmd == "heavy") {
        heavy();
    }
    else if (cmd == "force") {
        std::string t;
        in >> t;

        CellType type = CellType::E;

        if (t == "I") {
            type = CellType::I;
        }
        else if (t == "J") {
            type = CellType::J;
        }
        else if (t == "L") {
            type = CellType::L;
        }
        else if (t == "O") {
            type = CellType::O;
        }
        else if (t == "S") {
            type = CellType::S;
        }
        else if (t == "Z") {
            type = CellType::Z;
        }
        else if (t == "T") {
            type = CellType::T;
        }

        force(type);
    } else {
        std::cout << "What are you talking about?" << std::endl;
        execAction(in);
    }
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x48, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq 0x10cbe(%rip), %rdi     # 0x1bfa8
leaq 0x61c9(%rip), %rsi      # 0x114ba
callq 0x5290
leaq 0x38(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x28(%rsp), %rsi
movq %r14, %rdi
callq 0x5340
leaq 0x61c4(%rip), %rsi      # 0x114df
leaq 0x28(%rsp), %rdi
callq 0x5af9
testb %al, %al
je 0xb336
movq %rbx, %rdi
callq 0xb14a
jmp 0xb45f
leaq 0x61a8(%rip), %rsi      # 0x114e5
leaq 0x28(%rsp), %rdi
callq 0x5af9
testb %al, %al
je 0xb358
movq %rbx, %rdi
callq 0xb100
jmp 0xb45f
leaq 0x618c(%rip), %rsi      # 0x114eb
leaq 0x28(%rsp), %rdi
callq 0x5af9
testb %al, %al
je 0xb3c2
leaq 0x18(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x5340
leaq 0x658e(%rip), %rsi      # 0x11920
leaq 0x8(%rsp), %rdi
callq 0x5af9
xorl %esi, %esi
testb %al, %al
jne 0xb44d
leaq 0x6577(%rip), %rsi      # 0x11924
leaq 0x8(%rsp), %rdi
callq 0x5af9
testb %al, %al
je 0xb3ea
pushq $0x1
jmp 0xb44c
movq 0x10bdf(%rip), %rdi     # 0x1bfa8
leaq 0x5e55(%rip), %rsi      # 0x11225
callq 0x5290
movq %rax, %rdi
callq 0x5160
movq %rbx, %rdi
movq %r14, %rsi
callq 0xb2d6
jmp 0xb45f
leaq 0x651f(%rip), %rsi      # 0x11910
leaq 0x8(%rsp), %rdi
callq 0x5af9
testb %al, %al
je 0xb403
pushq $0x2
jmp 0xb44c
leaq 0x6509(%rip), %rsi      # 0x11913
leaq 0x8(%rsp), %rdi
callq 0x5af9
testb %al, %al
je 0xb41c
pushq $0x3
jmp 0xb44c
leaq 0x64f4(%rip), %rsi      # 0x11917
leaq 0x8(%rsp), %rdi
callq 0x5af9
testb %al, %al
je 0xb435
pushq $0x4
jmp 0xb44c
leaq 0x64f0(%rip), %rsi      # 0x1192c
leaq 0x8(%rsp), %rdi
callq 0x5af9
testb %al, %al
je 0xb471
pushq $0x5
popq %rsi
movq %rbx, %rdi
callq 0xb19c
leaq 0x8(%rsp), %rdi
callq 0x5150
leaq 0x28(%rsp), %rdi
callq 0x5150
addq $0x48, %rsp
popq %rbx
popq %r14
retq
leaq 0x64b7(%rip), %rsi      # 0x1192f
leaq 0x8(%rsp), %rdi
callq 0x5af9
movzbl %al, %esi
xorl $0x7, %esi
jmp 0xb44d
jmp 0xb48c
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x5150
jmp 0xb49e
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x5150
movq %rbx, %rdi
callq 0x54b0