// File: /workspace/github_cpp_makefile_star2_O1/whitefusion[P]Jaipur_cardgame-/AllBonus.cpp
// Function: All_Bonus::newABonus()
void All_Bonus::newABonus(){
    for (int i = 0; i < 3; ++i)
        allBonus.at(i).clear();
    allBonus.clear();

    for (int i = 0; i < 3; ++i)
        size[i] = 0;

    size[0] = 6;
    size[1] = 6;
    size[2] = 6;
    int i;
    size_t j;
    Token temp;
    vector<Token> tempvec;

    for(i = 0; i < 3 ; ++i){
        temp.setType(BonusName[i+1]);
        for( j = 0; j < Bonus.at(i).size(); ++j){
            temp.setVal(Bonus.at(i).at(j));
            tempvec.push_back(temp);
        }
        allBonus.push_back(tempvec);
        tempvec.clear();
    }

    shuffle();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
xorl %r14d, %r14d
movabsq $-0x5555555555555555, %r13 # imm = 0xAAAAAAAAAAAAAAAB
movq %rdi, (%rsp)
movq (%rdi), %rax
movq 0x8(%rdi), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
imulq %r13, %rdx
cmpq %r14, %rdx
jbe 0x7273
leaq (%r14,%r14,2), %rcx
movq (%rax,%rcx,8), %rbx
movq 0x8(%rax,%rcx,8), %r12
cmpq %rbx, %r12
je 0x70a4
leaq (%rax,%rcx,8), %rbp
movq %rbx, %r15
movq %r15, %rdi
callq 0x40dc
addq $0x28, %r15
cmpq %r12, %r15
jne 0x708b
movq %rbx, 0x8(%rbp)
movq (%rsp), %rdi
incq %r14
cmpq $0x3, %r14
jne 0x7057
movq (%rdi), %rbx
movq 0x8(%rdi), %r15
cmpq %rbx, %r15
je 0x70d5
movq %rbx, %r14
movq %r14, %rdi
callq 0x6118
addq $0x18, %r14
cmpq %r15, %r14
jne 0x70bc
movq (%rsp), %rdi
movq %rbx, 0x8(%rdi)
movabsq $0x600000006, %rax      # imm = 0x600000006
movq %rax, 0x18(%rdi)
movl $0x6, 0x20(%rdi)
leaq 0x50(%rsp), %r14
movq %r14, %rdi
callq 0x4080
xorps %xmm0, %xmm0
leaq 0x30(%rsp), %r15
movaps %xmm0, (%r15)
movq $0x0, 0x10(%r15)
leaq 0x20(%rsp), %rbp
xorl %r12d, %r12d
leaq 0x10(%rsp), %rbx
leaq 0x1(%r12), %rax
movq %rax, 0x48(%rsp)
movl %eax, 0xc(%rsp)
leaq 0xf10b(%rip), %rdi      # 0x16238
leaq 0xc(%rsp), %rsi
callq 0x6034
movq %rbp, 0x10(%rsp)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0x3f5e
movq %r14, %rdi
movq %rbx, %rsi
callq 0x40f8
movq 0x10(%rsp), %rdi
cmpq %rbp, %rdi
je 0x7170
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x21a0
movq 0xf0f9(%rip), %rdx      # 0x16270
movq 0xf0ea(%rip), %rax      # 0x16268
subq %rax, %rdx
sarq $0x3, %rdx
imulq %r13, %rdx
cmpq %r12, %rdx
jbe 0x7262
leaq (%r12,%r12,2), %rbx
xorl %ebp, %ebp
movq (%rax,%rbx,8), %rcx
movq 0x8(%rax,%rbx,8), %rax
subq %rcx, %rax
sarq $0x2, %rax
cmpq %rax, %rbp
jae 0x71e6
movl (%rcx,%rbp,4), %esi
movq %r14, %rdi
callq 0x428a
movq %r15, %rdi
movq %r14, %rsi
callq 0x6098
incq %rbp
movq 0xf0a3(%rip), %rdx      # 0x16270
movq 0xf094(%rip), %rax      # 0x16268
subq %rax, %rdx
sarq $0x3, %rdx
imulq %r13, %rdx
cmpq %r12, %rdx
ja 0x7198
jmp 0x7262
movq (%rsp), %rdi
movq %r15, %rsi
callq 0x60ec
movq 0x30(%rsp), %rbx
movq 0x38(%rsp), %rbp
cmpq %rbx, %rbp
je 0x721a
movq %rbx, %r12
movq %r12, %rdi
callq 0x40dc
addq $0x28, %r12
cmpq %rbp, %r12
jne 0x7204
movq %rbx, 0x38(%rsp)
movq 0x48(%rsp), %rax
movq %rax, %r12
cmpq $0x3, %rax
leaq 0x20(%rsp), %rbp
leaq 0x10(%rsp), %rbx
jne 0x7118
movq (%rsp), %rdi
callq 0x72c6
leaq 0x30(%rsp), %rdi
callq 0x6118
leaq 0x50(%rsp), %rdi
callq 0x40dc
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x90df(%rip), %rdi      # 0x10348
movq %r12, %rsi
xorl %eax, %eax
callq 0x21f0
leaq 0x90ce(%rip), %rdi      # 0x10348
movq %r14, %rsi
xorl %eax, %eax
callq 0x21f0
jmp 0x72a6
movq %rax, %rbx
movq 0x10(%rsp), %rdi
cmpq %rbp, %rdi
je 0x72a9
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x21a0
jmp 0x72a9
jmp 0x72a6
jmp 0x72a6
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x6118
leaq 0x50(%rsp), %rdi
callq 0x40dc
movq %rbx, %rdi
callq 0x2280
nop