// File: whitefusion[P]Jaipur_cardgame-/Game.cpp
// Function: Game::takeInputVerify(Market&)
int Game::takeInputVerify(Market &m){
    int take;
    char tmp[256];
    char *token;

    cout << "Choose the ID of the card want to take: ";
    cin.getline(tmp,256);
    token = strtok(tmp, " \t\n\r\f");
    while (!token){
        cout << "Invalid choice! Try again." << endl;
        cout << "Choose the ID of the card want to take: ";
        cin.getline(tmp, 256);
        token = strtok(tmp, " \t\n\r\f");
    }
    take = atoi(token);

    while(!takeVerify(m, take)){
        cout << "Invalid choice! Try again: ";
        cin.getline(tmp,256);
        token = strtok(tmp, " \t\n\r\f");
        while (!token){
            cout << "Invalid choice! Try again." << endl;
            cout << "Choose the ID of the card want to take: ";
            cin.getline(tmp, 256);
            token = strtok(tmp, " \t\n\r\f");
        }
        take = atoi(token);
    }
    return take;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x130, %rsp            # imm = 0x130
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x130(%rbp)
movq 0x109eb(%rip), %rdi     # 0x2afd0
leaq 0x4424(%rip), %rsi      # 0x1ea10
callq 0x2200
leaq -0x120(%rbp), %rsi
movq 0x109e1(%rip), %rdi     # 0x2afe0
movl $0x100, %edx            # imm = 0x100
callq 0x20a0
leaq -0x120(%rbp), %rdi
leaq 0x3a4b(%rip), %rsi      # 0x1e062
callq 0x2310
movq %rax, -0x128(%rbp)
cmpq $0x0, -0x128(%rbp)
setne %al
xorb $-0x1, %al
testb $0x1, %al
jne 0x1a636
jmp 0x1a69f
movq 0x10993(%rip), %rdi     # 0x2afd0
leaq 0x3a24(%rip), %rsi      # 0x1e068
callq 0x2200
movq %rax, %rdi
movq 0x1096d(%rip), %rsi     # 0x2afc0
callq 0x2240
movq 0x10971(%rip), %rdi     # 0x2afd0
leaq 0x43aa(%rip), %rsi      # 0x1ea10
callq 0x2200
leaq -0x120(%rbp), %rsi
movq 0x10967(%rip), %rdi     # 0x2afe0
movl $0x100, %edx            # imm = 0x100
callq 0x20a0
leaq -0x120(%rbp), %rdi
leaq 0x39d1(%rip), %rsi      # 0x1e062
callq 0x2310
movq %rax, -0x128(%rbp)
jmp 0x1a623
movq -0x128(%rbp), %rdi
callq 0x2300
movl %eax, -0x14(%rbp)
movq -0x130(%rbp), %rdi
movq -0x10(%rbp), %rsi
leaq -0x14(%rbp), %rdx
callq 0x1b170
xorb $-0x1, %al
testb $0x1, %al
jne 0x1a6cd
jmp 0x1a7a2
movq 0x108fc(%rip), %rdi     # 0x2afd0
leaq 0x435e(%rip), %rsi      # 0x1ea39
callq 0x2200
leaq -0x120(%rbp), %rsi
movq 0x108f2(%rip), %rdi     # 0x2afe0
movl $0x100, %edx            # imm = 0x100
callq 0x20a0
leaq -0x120(%rbp), %rdi
leaq 0x395c(%rip), %rsi      # 0x1e062
callq 0x2310
movq %rax, -0x128(%rbp)
cmpq $0x0, -0x128(%rbp)
setne %al
xorb $-0x1, %al
testb $0x1, %al
jne 0x1a725
jmp 0x1a78e
movq 0x108a4(%rip), %rdi     # 0x2afd0
leaq 0x3935(%rip), %rsi      # 0x1e068
callq 0x2200
movq %rax, %rdi
movq 0x1087e(%rip), %rsi     # 0x2afc0
callq 0x2240
movq 0x10882(%rip), %rdi     # 0x2afd0
leaq 0x42bb(%rip), %rsi      # 0x1ea10
callq 0x2200
leaq -0x120(%rbp), %rsi
movq 0x10878(%rip), %rdi     # 0x2afe0
movl $0x100, %edx            # imm = 0x100
callq 0x20a0
leaq -0x120(%rbp), %rdi
leaq 0x38e2(%rip), %rsi      # 0x1e062
callq 0x2310
movq %rax, -0x128(%rbp)
jmp 0x1a712
movq -0x128(%rbp), %rdi
callq 0x2300
movl %eax, -0x14(%rbp)
jmp 0x1a6ae
movl -0x14(%rbp), %eax
addq $0x130, %rsp            # imm = 0x130
popq %rbp
retq
nop