// File: /workspace/github_cpp_makefile_star2_O1/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 0x7ede(%rip), %r12      # 0x15fd0
leaq 0x297e(%rip), %rsi      # 0x10a77
movl $0x23, %edx
movq %r12, %rdi
callq 0x21d0
movq 0x7ed3(%rip), %rdi      # 0x15fe0
movq (%rdi), %rax
addq -0x18(%rax), %rdi
movl $0xa, %esi
callq 0x2180
movsbl %al, %ecx
movq 0x7eb8(%rip), %r15      # 0x15fe0
leaq 0x10(%rsp), %rsi
movl $0x100, %edx            # imm = 0x100
movq %r15, %rdi
callq 0x22a0
leaq 0x1f21(%rip), %rsi      # 0x10062
leaq 0x10(%rsp), %rdi
callq 0x2230
testq %rax, %rax
jne 0xe1eb
leaq 0x10(%rsp), %r13
leaq 0x1f02(%rip), %rbp      # 0x10062
movl $0x1a, %edx
movq %r12, %rdi
leaq 0x1ef9(%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 0x277b(%rip), %rsi      # 0x10926
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 0xe160
movq %rax, %rdi
callq 0x2220
movl %eax, 0xc(%rsp)
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0xe20d
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rbx)
jmp 0xe21a
leaq 0xc(%rsp), %rdx
movq %rbx, %rdi
callq 0xef2e
leaq 0x1e41(%rip), %rsi      # 0x10062
xorl %edi, %edi
callq 0x2230
testq %rax, %rax
je 0xe42d
leaq 0xc(%rsp), %r12
leaq 0x1e25(%rip), %r13      # 0x10062
movq %rax, %rdi
callq 0x2220
movl %eax, 0xc(%rsp)
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0xe25f
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rbx)
jmp 0xe26a
movq %rbx, %rdi
movq %r12, %rdx
callq 0xef2e
xorl %edi, %edi
movq %r13, %rsi
callq 0x2230
testq %rax, %rax
jne 0xe23d
jmp 0xe42d
movq (%rbx), %rax
cmpq %rax, 0x8(%rbx)
je 0xe28b
movq %rax, 0x8(%rbx)
movq 0x7d3e(%rip), %r12      # 0x15fd0
leaq 0x1dcf(%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 0x7d0b(%rip), %rdi      # 0x15fd0
callq 0x2030
movq %rax, %rdi
callq 0x20f0
movq 0x7cf7(%rip), %rdi      # 0x15fd0
leaq 0x2797(%rip), %rsi      # 0x10a77
movl $0x23, %edx
callq 0x21d0
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x2180
movsbl %al, %ecx
movq 0x7cd8(%rip), %r12      # 0x15fe0
leaq 0x10(%rsp), %rsi
movl $0x100, %edx            # imm = 0x100
movq %r12, %rdi
callq 0x22a0
leaq 0x1d41(%rip), %rsi      # 0x10062
leaq 0x10(%rsp), %rdi
callq 0x2230
testq %rax, %rax
jne 0xe3c6
movq 0x7c95(%rip), %r13      # 0x15fd0
leaq 0x1d26(%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 0x7c62(%rip), %rdi      # 0x15fd0
callq 0x2030
movq %rax, %rdi
callq 0x20f0
movq 0x7c4e(%rip), %rdi      # 0x15fd0
leaq 0x259d(%rip), %rsi      # 0x10926
movl $0x2c, %edx
callq 0x21d0
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x2180
movsbl %al, %ecx
movq 0x7c2e(%rip), %rdi      # 0x15fe0
leaq 0x10(%rsp), %rsi
movl $0x100, %edx            # imm = 0x100
callq 0x22a0
jmp 0xe31a
movq %rax, %rdi
callq 0x2220
movl %eax, 0xc(%rsp)
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0xe41e
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rbx)
leaq 0x1c75(%rip), %rsi      # 0x10062
xorl %edi, %edi
callq 0x2230
testq %rax, %rax
je 0xe42d
movq %rax, %rdi
callq 0x2220
movl %eax, 0xc(%rsp)
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
jne 0xe3dc
leaq 0xc(%rsp), %rdx
movq %rbx, %rdi
callq 0xef2e
jmp 0xe3e6
leaq 0xc(%rsp), %rdx
movq %rbx, %rdi
callq 0xef2e
jmp 0xe3e6
movq %rbx, %rsi
movq %r14, %rdx
callq 0xea06
testb %al, %al
je 0xe27e
movq %rbx, %rax
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xe463
jmp 0xe463
jmp 0xe463
jmp 0xe463
jmp 0xe463
jmp 0xe463
jmp 0xe463
movq %rax, %r14
movq (%rbx), %rdi
testq %rdi, %rdi
je 0xe47a
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x21a0
movq %r14, %rdi
callq 0x2280