// File: /workspace/github_cpp_makefile_star2_O2/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, 0x8(%rsp)
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
andq $0x0, 0x10(%rdi)
movq 0x9969(%rip), %rdi      # 0x14fd0
leaq 0x2421(%rip), %rsi      # 0xda8f
callq 0x21b0
movq 0x9966(%rip), %rdi      # 0x14fe0
leaq 0x10(%rsp), %rsi
movl $0x100, %edx            # imm = 0x100
callq 0x2080
leaq 0x10(%rsp), %r15
movq 0x993b(%rip), %r12      # 0x14fd0
leaq 0x19cc(%rip), %r13      # 0xd068
leaq 0x229b(%rip), %rbp      # 0xd93e
movq 0x9936(%rip), %r14      # 0x14fe0
movq %r15, %rdi
leaq 0x19ae(%rip), %rsi      # 0xd062
callq 0x2250
testq %rax, %rax
jne 0xb6ee
movq %r12, %rdi
movq %r13, %rsi
callq 0x21b0
movq %rax, %rdi
callq 0x20f0
movq %r12, %rdi
movq %rbp, %rsi
callq 0x21b0
movl $0x100, %edx            # imm = 0x100
movq %r14, %rdi
movq %r15, %rsi
callq 0x2080
jmp 0xb6aa
movq %rax, %rdi
callq 0x2240
leaq 0x4(%rsp), %rsi
movl %eax, (%rsi)
movq %rbx, %rdi
callq 0xc146
leaq 0x1956(%rip), %r14      # 0xd062
leaq 0x4(%rsp), %r15
xorl %edi, %edi
movq %r14, %rsi
callq 0x2250
testq %rax, %rax
je 0xb739
movq %rax, %rdi
callq 0x2240
movl %eax, 0x4(%rsp)
movq %rbx, %rdi
movq %r15, %rsi
callq 0xc146
jmp 0xb711
movq 0x9890(%rip), %r15      # 0x14fd0
movq 0x9899(%rip), %rbp      # 0x14fe0
leaq 0x10(%rsp), %r13
leaq 0x190f(%rip), %r14      # 0xd062
leaq 0x4(%rsp), %r12
movq %rbx, %rsi
movq 0x8(%rsp), %rdx
callq 0xbcaa
testb %al, %al
jne 0xb83b
movq (%rbx), %rax
cmpq %rax, 0x8(%rbx)
je 0xb77a
movq %rax, 0x8(%rbx)
movq %r15, %rdi
leaq 0x18e4(%rip), %rsi      # 0xd068
callq 0x21b0
movq %rax, %rdi
callq 0x20f0
movq %r15, %rdi
leaq 0x22f4(%rip), %rsi      # 0xda8f
callq 0x21b0
movl $0x100, %edx            # imm = 0x100
movq %rbp, %rdi
movq %r13, %rsi
callq 0x2080
movq %r13, %rdi
movq %r14, %rsi
callq 0x2250
testq %rax, %rax
jne 0xb7f8
movq %r15, %rdi
leaq 0x189e(%rip), %rsi      # 0xd068
callq 0x21b0
movq %rax, %rdi
callq 0x20f0
movq %r15, %rdi
leaq 0x215d(%rip), %rsi      # 0xd93e
callq 0x21b0
movl $0x100, %edx            # imm = 0x100
movq %rbp, %rdi
movq %r13, %rsi
callq 0x2080
jmp 0xb7b0
movq %rax, %rdi
callq 0x2240
movl %eax, 0x4(%rsp)
movq %rbx, %rdi
movq %r12, %rsi
callq 0xc146
xorl %edi, %edi
movq %r14, %rsi
callq 0x2250
testq %rax, %rax
je 0xb758
movq %rax, %rdi
callq 0x2240
movl %eax, 0x4(%rsp)
movq %rbx, %rdi
movq %r12, %rsi
callq 0xc146
jmp 0xb80f
movq %rbx, %rax
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xb85e
jmp 0xb85e
jmp 0xb85e
jmp 0xb85e
jmp 0xb85e
jmp 0xb85e
jmp 0xb85e
movq %rax, %r14
movq %rbx, %rdi
callq 0x57aa
movq %r14, %rdi
callq 0x22a0
nop