// File: /workspace/github_cpp_makefile_star2_O3/whitefusion[P]Jaipur_cardgame-/Game.cpp
// Function: Game::sellInputVerify(Player&)
vector<int> Game::sellInputVerify(Player &p){
    vector<int> temp;
    char tmp[256];
    char *token;

    cout << "Choose the cards on HANDs to sell: ";
    //cin.getline(tmp, 256);
    cin.getline(tmp, 256);

    token = strtok(tmp, " \t\n\r\f");


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


    temp.push_back(atoi(token));

    token = strtok(NULL, " \t\n\r\f");
    while (token){
        temp.push_back(atoi(token));
        token = strtok(NULL, " \t\n\r\f");
    }

    while (!sellVerify(temp, p)){
        temp.clear();
        cout << "Invalid choice! Try again." << endl;
        cout << "Choose the cards on HANDs to sell: ";
        cin.getline(tmp, 256);

        token = strtok(tmp, " \t\n\r\f");

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


        temp.push_back(atoi(token));
        token = strtok(NULL, " \t\n\r\f");
        while (token){
            temp.push_back(atoi(token));
            token = strtok(NULL, " \t\n\r\f");
        }
    }

    return temp;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x118, %rsp            # imm = 0x118
movq %rdx, %r14
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
movq 0x7fe0(%rip), %r12      # 0x15fd0
leaq 0x2a90(%rip), %rsi      # 0x10a87
movl $0x23, %edx
movq %r12, %rdi
callq 0x21d0
movq 0x7fd5(%rip), %rdi      # 0x15fe0
movq (%rdi), %rax
addq -0x18(%rax), %rdi
movl $0xa, %esi
callq 0x2180
movsbl %al, %ecx
movq 0x7fba(%rip), %r15      # 0x15fe0
leaq 0x10(%rsp), %rsi
movl $0x100, %edx            # imm = 0x100
movq %r15, %rdi
callq 0x22a0
leaq 0x2023(%rip), %rsi      # 0x10062
leaq 0x10(%rsp), %rdi
callq 0x2230
testq %rax, %rax
jne 0xe0e9
leaq 0x10(%rsp), %r13
leaq 0x2004(%rip), %rbp      # 0x10062
movl $0x1a, %edx
movq %r12, %rdi
leaq 0x1ffb(%rip), %rsi      # 0x10068
callq 0x21d0
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x2180
movsbl %al, %esi
movq %r12, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20f0
movl $0x2c, %edx
movq %r12, %rdi
leaq 0x288d(%rip), %rsi      # 0x10936
callq 0x21d0
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x2180
movsbl %al, %ecx
movl $0x100, %edx            # imm = 0x100
movq %r15, %rdi
movq %r13, %rsi
callq 0x22a0
movq %r13, %rdi
movq %rbp, %rsi
callq 0x2230
testq %rax, %rax
je 0xe05e
movq %rax, %rdi
callq 0x2220
movl %eax, 0xc(%rsp)
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0xe10b
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rbx)
jmp 0xe118
leaq 0xc(%rsp), %rdx
movq %rbx, %rdi
callq 0xeddc
leaq 0x1f43(%rip), %rsi      # 0x10062
xorl %edi, %edi
callq 0x2230
testq %rax, %rax
je 0xe32b
leaq 0xc(%rsp), %r12
leaq 0x1f27(%rip), %r13      # 0x10062
movq %rax, %rdi
callq 0x2220
movl %eax, 0xc(%rsp)
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0xe15d
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rbx)
jmp 0xe168
movq %rbx, %rdi
movq %r12, %rdx
callq 0xeddc
xorl %edi, %edi
movq %r13, %rsi
callq 0x2230
testq %rax, %rax
jne 0xe13b
jmp 0xe32b
movq (%rbx), %rax
cmpq %rax, 0x8(%rbx)
je 0xe189
movq %rax, 0x8(%rbx)
movq 0x7e40(%rip), %r12      # 0x15fd0
leaq 0x1ed1(%rip), %rsi      # 0x10068
movl $0x1a, %edx
movq %r12, %rdi
callq 0x21d0
movq (%r12), %rax
addq -0x18(%rax), %r12
movq %r12, %rdi
movl $0xa, %esi
callq 0x2180
movsbl %al, %esi
movq 0x7e0d(%rip), %rdi      # 0x15fd0
callq 0x2030
movq %rax, %rdi
callq 0x20f0
movq 0x7df9(%rip), %rdi      # 0x15fd0
leaq 0x28a9(%rip), %rsi      # 0x10a87
movl $0x23, %edx
callq 0x21d0
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x2180
movsbl %al, %ecx
movq 0x7dda(%rip), %r12      # 0x15fe0
leaq 0x10(%rsp), %rsi
movl $0x100, %edx            # imm = 0x100
movq %r12, %rdi
callq 0x22a0
leaq 0x1e43(%rip), %rsi      # 0x10062
leaq 0x10(%rsp), %rdi
callq 0x2230
testq %rax, %rax
jne 0xe2c4
movq 0x7d97(%rip), %r13      # 0x15fd0
leaq 0x1e28(%rip), %rsi      # 0x10068
movl $0x1a, %edx
movq %r13, %rdi
callq 0x21d0
movq (%r13), %rax
addq -0x18(%rax), %r13
movq %r13, %rdi
movl $0xa, %esi
callq 0x2180
movsbl %al, %esi
movq 0x7d64(%rip), %rdi      # 0x15fd0
callq 0x2030
movq %rax, %rdi
callq 0x20f0
movq 0x7d50(%rip), %rdi      # 0x15fd0
leaq 0x26af(%rip), %rsi      # 0x10936
movl $0x2c, %edx
callq 0x21d0
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x2180
movsbl %al, %ecx
movq 0x7d30(%rip), %rdi      # 0x15fe0
leaq 0x10(%rsp), %rsi
movl $0x100, %edx            # imm = 0x100
callq 0x22a0
jmp 0xe218
movq %rax, %rdi
callq 0x2220
movl %eax, 0xc(%rsp)
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0xe31c
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rbx)
leaq 0x1d77(%rip), %rsi      # 0x10062
xorl %edi, %edi
callq 0x2230
testq %rax, %rax
je 0xe32b
movq %rax, %rdi
callq 0x2220
movl %eax, 0xc(%rsp)
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
jne 0xe2da
leaq 0xc(%rsp), %rdx
movq %rbx, %rdi
callq 0xeddc
jmp 0xe2e4
leaq 0xc(%rsp), %rdx
movq %rbx, %rdi
callq 0xeddc
jmp 0xe2e4
movq %rbx, %rsi
movq %r14, %rdx
callq 0xe8b6
testb %al, %al
je 0xe17c
movq %rbx, %rax
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xe361
jmp 0xe361
jmp 0xe361
jmp 0xe361
jmp 0xe361
jmp 0xe361
jmp 0xe361
movq %rax, %r14
movq (%rbx), %rdi
testq %rdi, %rdi
je 0xe378
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x21a0
movq %r14, %rdi
callq 0x2280