// File: /workspace/github_cpp_makefile_star2_O2/JenTus[P]TCEM/src_TCEM/allocator.cc
// Function: Cide::allocator::rcGreedy(long long, bool)
double allocator::rcGreedy(int64 rcSampleSize, bool extraResults) {
        // For initialization the k_r and k_b, to delete later.

        double totalExpScore = 0;
        std::vector<double> ExpScore(n*n, 0); // use to store hyper_degreepairs

        int bestPairID = -1, bestRedNodeID = -1, bestBlueNodeID = -1;
        std::vector<int> isValidRed = std::vector<int>(n,tao);
        std::vector<int> isValidBlue = std::vector<int>(n,1);
        std::vector<bool> isCovered = std::vector<bool>(rcSampleSize, false);
        std::set<int> rednodes;
        std::set<int> bluenodes;

        int flag_red = 0;

        clock_t begin = clock();

        for (int i = 0; i < n; i++){
            for (int j = 0; j < n; j++){
                if (i != j){
                    ExpScore[i*n + j] = hyper_degreepairs[i*n + j];
                }
            }
        }

        seedSet.clear();
        seedScores.clear(); // seedScores should be cleared as well.

        while ((int)seedSet.size() < k_b) {

            double tempsum = accumulate(ExpScore.begin(), ExpScore.end(), 0.01);
            if(tempsum < 1){
                break;
            }
            // here I use the vector to store the results, but can use the priority queue.
            //bestPairID = std::max_element(ExpScore.begin(), ExpScore.end()) - ExpScore.begin();
            bestPairID = std::distance(ExpScore.begin(), std::max_element(ExpScore.begin(), ExpScore.end()));
            //cout << "bestPairID is " << bestPairID   <<endl;
            bestRedNodeID = (int) bestPairID / n;
            rednodes.insert(bestRedNodeID);
            bestBlueNodeID = (int) bestPairID % n;
            bluenodes.insert(bestBlueNodeID);

            // if can not select, then just pop out
            if (isValidRed[bestRedNodeID] == 0 || isValidBlue[bestBlueNodeID] == 0) {
                ExpScore[bestPairID] = 0;
                continue;
            }

            // push
            seedSet.push_back(bestPairID); // store
            //cout << "ExpScore is " << ExpScore[bestPairID] << "rc sample size is " <<rcSampleSize << "n is " << n << endl;
            seedScores.push_back(ExpScore[bestPairID]); // store score, dividing later

            // make update
            isValidRed[bestRedNodeID] -= 1;
            isValidRed[bestBlueNodeID] = 0;
            isValidBlue[bestBlueNodeID] = 0;
            isValidBlue[bestRedNodeID] = 0;

            if(isValidRed[bestRedNodeID] <= 0){
                for (int i = 0; i < n; ++i) {
                   ExpScore[bestRedNodeID*n + i] = 0;
                }
            }

            for (int i = 0; i < n; ++i) {
               ExpScore[i*n + bestBlueNodeID]  = 0;
               ExpScore[i*n + bestRedNodeID]  = 0;
               ExpScore[bestBlueNodeID*n + i] = 0;
            }

            // if red nodes reaches k_r
            if(rednodes.size() == k_r && flag_red == 0){
                for (int i = 0; i < n; ++i) {
                    if(rednodes.count(i) == 0){
                        isValidRed[i] = 0;
                        for (int j = 0; j < n; ++j) {
                           ExpScore[i*n + j] = 0;
                        }
                    }
                }
                flag_red = 1;
            }

//            cout << "sum of Expscore is " << accumulate(ExpScore.begin(), ExpScore.end(), 0) << endl;

            // update the ExpScore of the pairs whose marginal gain change due to the best pair selection
            int tmpsize = hyperGpairs[bestPairID].size();
            for (int j = 0; j < tmpsize; j++) {
                int rcID = hyperGpairs[bestPairID][j]; // get the rcID
                if(isCovered[rcID] == false){ // ensure not to repeatedly --
                    int ttmpsize = hyperGTpairs[rcID].size();
                    for (int z = 0; z < ttmpsize; z++) {
                        int pairID = hyperGTpairs[rcID][z];
                        if (ExpScore[pairID] != 0) {
                            ExpScore[pairID]--;
                        }
                    }
                    isCovered[rcID] = true;
                }
           }
        } // end of while k loop

        for (int i1 = 0; i1 < seedScores.size(); ++i1) {
           totalExpScore += seedScores[i1];
        }

        int covercount = 0;
        for (int l = 0; l < isCovered.size(); ++l) {
            if(isCovered[l])
                covercount++;
        }


        ///////////// produce the additional results here
        ////////////  Remember should write the f function results not the g function result.
        if(extraResults) {

        cout << "totalExpScore is: " << totalExpScore << " cover is " << covercount << " sample size is " << rcSampleSize << endl;

            clock_t end = clock();

            //cout << "total tdem time taken (in seconds) " << totalDuration << " total memory (in mb) " << totalMemory << endl;
            int redbluecount = 0;

            vector<int> s1(rednodes.begin(), rednodes.end());
            vector<int> s2(bluenodes.begin(), bluenodes.end());
            sort(s1.begin(), s1.end());
            sort(s2.begin(), s2.end());


            for (int i = 0; i < rcSampleSize; ++i) {
                vector<int> RedList = rcList->at(0)->hyperGT[i];
                vector<int> BlueList = rcList->at(1)->hyperGT[i];

                sort(RedList.begin(), RedList.end());
                sort(BlueList.begin(), BlueList.end());

                if(intersection_size(s1, RedList) >= 1){
                    if(intersection_size(s2, BlueList) >= 1){
                        redbluecount +=1;
                    }
                }
            }

            totalDuration = double(end - begin) / CLOCKS_PER_SEC + duration_common; // in seconds
            totalMemory = getCurrentMemoryUsage(); // in MB

            float totalscore = (float) redbluecount / (float) rcSampleSize;

            cout << "Total score of Greedy is " << totalscore*n << "  g result is " << totalExpScore / (float) rcSampleSize *n  << endl;

            std::ostringstream streamObj1;
            streamObj1 << std::fixed << std::setprecision(2)<<totalscore*n << "(" << totalExpScore/(float) rcSampleSize*n << ")";

            writeInMasterOutputFile("Greedy", totalDuration,  totalMemory, streamObj1.str(), rednodes, bluenodes);

        } // end of extra results
        
        return totalExpScore / (double)rcSampleSize;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x368, %rsp            # imm = 0x368
movl %edx, %ebx
movq %rsi, 0x30(%rsp)
movq %rdi, %r14
movl 0x68(%rdi), %esi
imull %esi, %esi
leaq 0x1f0(%rsp), %rdx
andq $0x0, (%rdx)
leaq 0x40(%rsp), %rdi
leaq 0xd0(%rsp), %rcx
callq 0x838e
orl $-0x1, 0x10(%rsp)
orl $-0x1, 0xc(%rsp)
orl $-0x1, 0x14(%rsp)
movslq 0x68(%r14), %rsi
leaq 0x80(%r14), %rdx
leaq 0xb8(%rsp), %rdi
leaq 0x1f0(%rsp), %rcx
callq 0x858e
movslq 0x68(%r14), %rsi
leaq 0x1f0(%rsp), %rdx
movl $0x1, (%rdx)
leaq 0x100(%rsp), %rdi
leaq 0xd0(%rsp), %rcx
callq 0x858e
leaq 0x1f0(%rsp), %rdx
movb $0x0, (%rdx)
leaq 0x118(%rsp), %rdi
leaq 0xd0(%rsp), %rcx
movq 0x30(%rsp), %rsi
callq 0x85e4
leaq 0xd8(%rsp), %rax
andl $0x0, (%rax)
andq $0x0, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
andq $0x0, 0x20(%rax)
leaq 0x148(%rsp), %rax
andl $0x0, (%rax)
andq $0x0, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
andq $0x0, 0x20(%rax)
callq 0x31c0
movq %rax, 0x60(%rsp)
movl 0x68(%r14), %eax
movslq %eax, %rcx
xorl %edx, %edx
testl %ecx, %ecx
movl $0x0, %esi
cmovgl %ecx, %esi
shlq $0x3, %rcx
xorl %edi, %edi
cmpq %rsi, %rdi
je 0x7374
movq 0xb58(%r14), %r8
addq %rdx, %r8
movq 0x40(%rsp), %r9
addq %rdx, %r9
xorl %r10d, %r10d
cmpq %r10, %rax
je 0x736c
cmpq %r10, %rdi
je 0x7367
movsd (%r8,%r10,8), %xmm0
movsd %xmm0, (%r9,%r10,8)
incq %r10
jmp 0x7351
incq %rdi
addq %rcx, %rdx
jmp 0x7337
movq 0xa8(%r14), %rax
cmpq %rax, 0xb0(%r14)
je 0x738b
movq %rax, 0xb0(%r14)
movl %ebx, 0x5c(%rsp)
movq 0xc0(%r14), %rcx
cmpq %rcx, 0xc8(%r14)
je 0x73a6
movq %rcx, 0xc8(%r14)
leaq 0xa8(%r14), %rcx
movq %rcx, 0x20(%rsp)
leaq 0xc0(%r14), %rcx
movq %rcx, 0x38(%rsp)
leaq 0xd0(%rsp), %rbx
leaq 0xc(%rsp), %r15
leaq 0x140(%rsp), %rbp
leaq 0x118(%rsp), %r12
movq %rax, %rcx
movl $0x0, 0x18(%rsp)
subq %rax, %rcx
shrq $0x2, %rcx
cmpl %ecx, 0x7c(%r14)
jle 0x770f
movq 0x40(%rsp), %r13
movq 0x48(%rsp), %rsi
movq %r13, %rax
movsd 0x6d3c(%rip), %xmm0     # 0xe148
cmpq %rsi, %rax
je 0x741b
addsd (%rax), %xmm0
addq $0x8, %rax
jmp 0x740c
movsd 0x6cfd(%rip), %xmm1     # 0xe120
ucomisd %xmm0, %xmm1
ja 0x770f
movq %r13, %rdi
callq 0x9889
subq %r13, %rax
shrq $0x3, %rax
movl %eax, 0x10(%rsp)
cltd
idivl 0x68(%r14)
movl %eax, 0xc(%rsp)
movq %rbx, %rdi
movq %r15, %rsi
callq 0x98b4
movl 0x10(%rsp), %eax
cltd
idivl 0x68(%r14)
movl %edx, 0x14(%rsp)
movq %rbp, %rdi
leaq 0x14(%rsp), %rsi
callq 0x98b4
movslq 0xc(%rsp), %rax
movq 0xb8(%rsp), %rcx
cmpl $0x0, (%rcx,%rax,4)
je 0x7513
movslq 0x14(%rsp), %rax
movq 0x100(%rsp), %rcx
cmpl $0x0, (%rcx,%rax,4)
je 0x7513
movq 0x20(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x854e
movslq 0x10(%rsp), %rsi
shlq $0x3, %rsi
addq 0x40(%rsp), %rsi
movq 0x38(%rsp), %rdi
callq 0x8648
movslq 0xc(%rsp), %rax
movq 0xb8(%rsp), %rdx
decl (%rdx,%rax,4)
movslq 0x14(%rsp), %rax
andl $0x0, (%rdx,%rax,4)
movslq 0x14(%rsp), %rax
movq 0x100(%rsp), %rcx
andl $0x0, (%rcx,%rax,4)
movslq 0xc(%rsp), %rax
andl $0x0, (%rcx,%rax,4)
movslq 0xc(%rsp), %rcx
movl 0x68(%r14), %eax
movq 0x40(%rsp), %rsi
xorl %edi, %edi
cmpl %edi, (%rdx,%rcx,4)
jle 0x7527
testl %eax, %eax
movl $0x0, %edx
cmovgl %eax, %edx
jmp 0x7553
movslq 0x10(%rsp), %rax
movq 0x40(%rsp), %rcx
andq $0x0, (%rcx,%rax,8)
jmp 0x76fc
movl %eax, %edx
imull %ecx, %edx
movslq %edx, %rdi
testl %eax, %eax
movl $0x0, %edx
cmovgl %eax, %edx
leaq (%rsi,%rdi,8), %rsi
xorl %edi, %edi
cmpq %rdi, %rdx
je 0x754e
andq $0x0, (%rsi,%rdi,8)
incq %rdi
jmp 0x753f
movq 0x40(%rsp), %rsi
movslq %eax, %rdi
movslq 0x14(%rsp), %r8
movl %r8d, %r9d
imull %eax, %r9d
movslq %r9d, %r9
shlq $0x3, %rdi
leaq (%rsi,%r9,8), %r9
xorl %r10d, %r10d
cmpq %r10, %rdx
je 0x758c
andq $0x0, (%rsi,%r8,8)
andq $0x0, (%rsi,%rcx,8)
andq $0x0, (%r9,%r10,8)
incq %r10
addq %rdi, %rsi
jmp 0x7570
movslq 0x78(%r14), %rcx
cmpq %rcx, 0xf8(%rsp)
sete %cl
cmpl $0x0, 0x18(%rsp)
sete %dl
testb %dl, %cl
je 0x7625
xorl %ecx, %ecx
movl %ecx, 0x1f0(%rsp)
cmpl %eax, %ecx
jge 0x761e
movq %rbx, %rdi
leaq 0x1f0(%rsp), %rsi
callq 0x866a
movl 0x1f0(%rsp), %ecx
testq %rax, %rax
je 0x75d8
movl 0x68(%r14), %eax
incl %ecx
jmp 0x75a9
movslq %ecx, %rax
movq 0xb8(%rsp), %rcx
andl $0x0, (%rcx,%rax,4)
movl 0x68(%r14), %eax
movl 0x1f0(%rsp), %ecx
movl %ecx, %edx
imull %eax, %edx
movslq %edx, %rdx
testl %eax, %eax
movl $0x0, %esi
cmovgl %eax, %esi
shlq $0x3, %rdx
addq 0x40(%rsp), %rdx
xorl %edi, %edi
cmpq %rdi, %rsi
je 0x75d4
andq $0x0, (%rdx,%rdi,8)
incq %rdi
jmp 0x760f
pushq $0x1
popq %rax
movl %eax, 0x18(%rsp)
movslq 0x10(%rsp), %rax
movq 0xb40(%r14), %rcx
imulq $0x18, %rax, %rax
movq 0x8(%rcx,%rax), %r15
subq (%rcx,%rax), %r15
shrq $0x2, %r15
testl %r15d, %r15d
movl $0x0, %eax
cmovlel %eax, %r15d
xorl %ebp, %ebp
cmpq %r15, %rbp
je 0x76ef
movslq 0x10(%rsp), %rax
movq 0xb40(%r14), %rcx
imulq $0x18, %rax, %rax
movq (%rcx,%rax), %rax
movslq (%rax,%rbp,4), %r13
movq %r12, %rdi
movq %r13, %rsi
callq 0x8684
testq %rdx, (%rax)
jne 0x76e7
movq 0xb28(%r14), %rcx
imulq $0x18, %r13, %rdx
movq (%rcx,%rdx), %rax
movq 0x8(%rcx,%rdx), %rcx
subq %rax, %rcx
shrq $0x2, %rcx
movq 0x40(%rsp), %rdx
testl %ecx, %ecx
movl $0x0, %esi
cmovlel %esi, %ecx
xorl %esi, %esi
cmpq %rsi, %rcx
je 0x76d9
movslq (%rax,%rsi,4), %rdi
movsd (%rdx,%rdi,8), %xmm0
ucomisd 0x6aa5(%rip), %xmm0     # 0xe168
jne 0x76c7
jnp 0x76d4
addsd 0x6a91(%rip), %xmm0     # 0xe160
movsd %xmm0, (%rdx,%rdi,8)
incq %rsi
jmp 0x76ad
movq %r12, %rdi
movq %r13, %rsi
callq 0x8684
orq %rdx, (%rax)
incq %rbp
jmp 0x7650
leaq 0xc(%rsp), %r15
leaq 0x140(%rsp), %rbp
movq 0xa8(%r14), %rax
movq 0xb0(%r14), %rcx
jmp 0x73e6
movq 0xc0(%r14), %rax
movq 0xc8(%r14), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
xorpd %xmm0, %xmm0
movsd %xmm0, 0x18(%rsp)
xorl %edx, %edx
cmpq %rdx, %rcx
je 0x774b
movsd 0x18(%rsp), %xmm0
addsd (%rax,%rdx,8), %xmm0
movsd %xmm0, 0x18(%rsp)
incq %rdx
jmp 0x7730
xorl %r15d, %r15d
leaq 0x118(%rsp), %r12
xorl %ebx, %ebx
movq 0x128(%rsp), %rax
movl 0x130(%rsp), %ecx
subq 0x118(%rsp), %rax
leaq (%rcx,%rax,8), %rax
cmpq %r15, %rax
jbe 0x7792
movq %r12, %rdi
movq %r15, %rsi
callq 0x8684
andq (%rax), %rdx
cmpq $0x1, %rdx
sbbl $-0x1, %ebx
incq %r15
jmp 0x7758
cmpb $0x0, 0x5c(%rsp)
je 0x7b93
movq 0xd834(%rip), %rdi      # 0x14fd8
leaq 0x6a9e(%rip), %rsi      # 0xe249
callq 0x32c0
movq %rax, %rdi
movsd 0x18(%rsp), %xmm0
callq 0x34d0
leaq 0x6a97(%rip), %rsi      # 0xe25c
movq %rax, %rdi
callq 0x32c0
movq %rax, %rdi
movl %ebx, %esi
callq 0x3530
leaq 0x6a89(%rip), %rsi      # 0xe267
movq %rax, %rdi
callq 0x32c0
movq %rax, %rdi
movq 0x30(%rsp), %rsi
callq 0x30f0
movq %rax, %rdi
callq 0x3150
callq 0x31c0
movq %rax, %rbx
movq 0xe8(%rsp), %rsi
leaq 0xa0(%rsp), %rdi
leaq 0x1f0(%rsp), %rcx
leaq 0xd8(%rsp), %rdx
callq 0x86a2
movq 0x158(%rsp), %rsi
leaq 0x88(%rsp), %rdi
leaq 0x1f0(%rsp), %rcx
leaq 0x148(%rsp), %rdx
callq 0x86a2
movq %rbx, 0x20(%rsp)
movq 0xa0(%rsp), %rdi
movq 0xa8(%rsp), %rsi
callq 0x9b85
movq 0x88(%rsp), %rdi
movq 0x90(%rsp), %rsi
callq 0x9b85
xorl %r12d, %r12d
movq 0x30(%rsp), %rax
testq %rax, %rax
movl $0x0, %ebp
cmovgq %rax, %rbp
leaq 0x1f0(%rsp), %r15
leaq 0x68(%rsp), %r13
xorl %ebx, %ebx
subq $0x1, %rbp
jb 0x7953
movq 0xae8(%r14), %rdi
xorl %esi, %esi
callq 0x856c
movq (%rax), %rax
movq 0x18(%rax), %rsi
addq %r12, %rsi
movq %r15, %rdi
callq 0x86d4
movq 0xae8(%r14), %rdi
pushq $0x1
popq %rsi
callq 0x856c
movq (%rax), %rax
movq 0x18(%rax), %rsi
addq %r12, %rsi
movq %r13, %rdi
callq 0x86d4
movq 0x1f0(%rsp), %rdi
movq 0x1f8(%rsp), %rsi
callq 0x9b85
movq 0x68(%rsp), %rdi
movq 0x70(%rsp), %rsi
callq 0x9b85
leaq 0xa0(%rsp), %rdi
movq %r15, %rsi
callq 0x8721
testq %rax, %rax
je 0x793a
leaq 0x88(%rsp), %rdi
movq %r13, %rsi
callq 0x8721
cmpq $0x1, %rax
sbbl $-0x1, %ebx
movq %r13, %rdi
callq 0x8e40
movq %r15, %rdi
callq 0x8e40
addq $0x18, %r12
jmp 0x789f
movq 0x20(%rsp), %rax
subq 0x60(%rsp), %rax
cvtsi2sd %rax, %xmm0
divsd 0x67d6(%rip), %xmm0     # 0xe140
addsd 0x8(%r14), %xmm0
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0xb70(%r14)
callq 0xadf0
movss %xmm0, 0xb74(%r14)
movq 0xd646(%rip), %rdi      # 0x14fd8
leaq 0x68df(%rip), %rsi      # 0xe278
callq 0x32c0
cvtsi2ss %ebx, %xmm1
cvtsi2ssq 0x30(%rsp), %xmm0
movss %xmm0, 0x20(%rsp)
divss %xmm0, %xmm1
cvtsi2ssl 0x68(%r14), %xmm0
movss %xmm1, 0x38(%rsp)
mulss %xmm1, %xmm0
movq %rax, %rdi
callq 0x31f0
leaq 0x68c0(%rip), %rsi      # 0xe292
movq %rax, %rdi
callq 0x32c0
cvtss2sd 0x20(%rsp), %xmm0
movsd 0x18(%rsp), %xmm1
divsd %xmm0, %xmm1
cvtsi2sdl 0x68(%r14), %xmm0
movsd %xmm1, 0x20(%rsp)
mulsd %xmm1, %xmm0
movq %rax, %rdi
callq 0x34d0
movq %rax, %rdi
callq 0x3150
leaq 0x1f0(%rsp), %rdi
callq 0x33f0
leaq 0x1f0(%rsp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rcx
movl $0xfffffefb, %edx       # imm = 0xFFFFFEFB
andl 0x208(%rsp,%rcx), %edx
orl $0x4, %edx
movl %edx, 0x208(%rsp,%rcx)
movq -0x18(%rax), %rax
movq $0x2, 0x1f8(%rsp,%rax)
cvtsi2ssl 0x68(%r14), %xmm1
movss 0x38(%rsp), %xmm0
mulss %xmm1, %xmm0
callq 0x31f0
leaq 0x6839(%rip), %rsi      # 0xe2a1
movq %rax, %rdi
callq 0x32c0
cvtsi2sdl 0x68(%r14), %xmm1
movsd 0x20(%rsp), %xmm0
mulsd %xmm1, %xmm0
movq %rax, %rdi
callq 0x34d0
leaq 0x6d12(%rip), %rsi      # 0xe7a1
movq %rax, %rdi
callq 0x32c0
leaq 0x6805(%rip), %rsi      # 0xe2a3
leaq 0x68(%rsp), %rdi
leaq 0x2f(%rsp), %rdx
callq 0x3100
movss 0xb70(%r14), %xmm0
movss %xmm0, 0x20(%rsp)
movss 0xb74(%r14), %xmm0
movss %xmm0, 0x38(%rsp)
leaq 0x1f8(%rsp), %rsi
leaq 0x170(%rsp), %rdi
callq 0x34b0
leaq 0x1c0(%rsp), %rdi
leaq 0xd0(%rsp), %rsi
callq 0x8b5e
leaq 0x190(%rsp), %rdi
leaq 0x140(%rsp), %rsi
callq 0x8b5e
leaq 0x68(%rsp), %rsi
leaq 0x170(%rsp), %rdx
leaq 0x1c0(%rsp), %rcx
leaq 0x190(%rsp), %r8
movq %r14, %rdi
movss 0x20(%rsp), %xmm0
movss 0x38(%rsp), %xmm1
callq 0x7ec8
leaq 0x190(%rsp), %rdi
callq 0x8d86
leaq 0x1c0(%rsp), %rdi
callq 0x8d86
leaq 0x170(%rsp), %rdi
callq 0x3130
leaq 0x68(%rsp), %rdi
callq 0x3130
leaq 0x1f0(%rsp), %rdi
callq 0x30b0
leaq 0x88(%rsp), %rdi
callq 0x8e40
leaq 0xa0(%rsp), %rdi
callq 0x8e40
cvtsi2sdq 0x30(%rsp), %xmm0
movsd 0x18(%rsp), %xmm1
divsd %xmm0, %xmm1
movsd %xmm1, 0x18(%rsp)
leaq 0x140(%rsp), %rdi
callq 0x8d86
leaq 0xd0(%rsp), %rdi
callq 0x8d86
leaq 0x118(%rsp), %rdi
callq 0x8754
leaq 0x100(%rsp), %rdi
callq 0x8e40
leaq 0xb8(%rsp), %rdi
callq 0x8e40
leaq 0x40(%rsp), %rdi
callq 0x8e4e
movsd 0x18(%rsp), %xmm0
addq $0x368, %rsp            # imm = 0x368
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x190(%rsp), %rdi
callq 0x8d86
jmp 0x7c22
movq %rax, %rbx
leaq 0x1c0(%rsp), %rdi
callq 0x8d86
jmp 0x7c34
movq %rax, %rbx
leaq 0x170(%rsp), %rdi
callq 0x3130
jmp 0x7c46
movq %rax, %rbx
leaq 0x68(%rsp), %rdi
callq 0x3130
jmp 0x7c7a
jmp 0x7c77
jmp 0x7c8d
movq %rax, %rbx
jmp 0x7cc0
jmp 0x7cd5
movq %rax, %rbx
jmp 0x7cff
movq %rax, %rbx
jmp 0x7d0c
movq %rax, %rbx
jmp 0x7d19
jmp 0x7c8d
movq %rax, %rbx
leaq 0x1f0(%rsp), %rdi
callq 0x30b0
jmp 0x7cb3
jmp 0x7c8d
jmp 0x7cd5
movq %rax, %rbx
jmp 0x7cb3
movq %rax, %rbx
jmp 0x7ca6
jmp 0x7cd5
movq %rax, %rbx
leaq 0x68(%rsp), %rdi
callq 0x8e40
leaq 0x1f0(%rsp), %rdi
callq 0x8e40
leaq 0x88(%rsp), %rdi
callq 0x8e40
leaq 0xa0(%rsp), %rdi
callq 0x8e40
jmp 0x7cd8
jmp 0x7cd5
jmp 0x7cd5
jmp 0x7cd5
movq %rax, %rbx
leaq 0x140(%rsp), %rdi
callq 0x8d86
leaq 0xd0(%rsp), %rdi
callq 0x8d86
leaq 0x118(%rsp), %rdi
callq 0x8754
leaq 0x100(%rsp), %rdi
callq 0x8e40
leaq 0xb8(%rsp), %rdi
callq 0x8e40
leaq 0x40(%rsp), %rdi
callq 0x8e4e
movq %rbx, %rdi
callq 0x3560
nop