// File: /workspace/github_cpp_makefile_star2_O1/sjain12[P]CliqueCounting/tests/test_cliques_edge_sampling.cpp
// Function: main
int main(int argc, char *argv[])
{
    if(argc < 11) {
        usage();
        exit(1);
    }

    std::vector<std::string> graphs; // input files
	srand (time(NULL));
    int min_clique_size = 0, max_clique_size = 0, runs = 0, i = 0;
    float start_threshold = 0.0, end_threshold = 0.0, threshold_interval = 0.0, p;
	int num_samples=0, full=0;
    char c;
    printf("*****************************\n");
    while ((c = getopt(argc, argv, "i:m:M:r:p:")) != -1) {
        switch (c) {
            case 'i': {
                // multiple input files
                char *token = std::strtok(optarg, ",");
                printf("Input Files: ");
                while (token != NULL) {
                    graphs.push_back(std::string(token));
                    printf("%s,",token);
                    token = std::strtok(NULL, ",");
                }
                printf("\n");
            }
            break;

            case 'm':
                min_clique_size = atoi(optarg);
                cout << "Min Clique Size: " << min_clique_size << endl;
            break;

            case 'M':
                max_clique_size = atoi(optarg);
                cout << "Max Clique Size: " << max_clique_size << endl;
            break;

            case 'r':
                runs = atoi(optarg);
                cout << "Runs: " << runs << endl;
            break;

            case 'p':
                p = atof(optarg);
                cout << "Probability: " << p << endl;
            break;

        }
    }
    printf("*****************************\n\n");

    
    populate_nCr();
    
    for (std::vector<std::string>::iterator it=graphs.begin(); it!=graphs.end(); ++it)
    {
        std::string fname = "../graphs/" + *it;
        std::cout << fname << std::endl;
        string f = *it;
        char *token = std::strtok(strdup(f.c_str()), ".");
        string gname(token);
        cout << "GNAME = " << gname << endl;

        for(i=min_clique_size; i<=max_clique_size; i++)
        {
			string outfile(gname + "_" + to_string(i) + "_0." + to_string(int(p*100)) + "_" + to_string(runs) + "_es");
			std::string ofname = "../results/cliques/" + outfile;
    		std::cout << ofname << std::endl;
    		std::ofstream of;
    		of.open(ofname);
    		if (!of.is_open())
    		{
        		std::cout << "Could not open output file." << std::endl;
        		exit(1);
  			}
    		printf("Output File: %s\n", ofname.c_str());

			of << "csize,estimate,time,edges,num_cliques," << endl;
       	
			for (int run=0; run < runs; run++)
			{
                Graph g;
                printf("Loading graph\n");
                if (loadGraph_p(fname.c_str(), g, 1, IOFormat::escape, p))
                    exit(1);
                cout << "vertices: " << g.nVertices << " edges = " << g.nEdges << std::endl;

                printf("Converting to CSR\n");
                CGraph cg = makeCSR(g);

                printf("Creating DAG\n");
                CDAG dag = degreeOrdered(&cg);

                cout << "vertices: " << g.nVertices << " edges = " << g.nEdges << std::endl;

                cliques_edge_sampling_1(cg, dag, of, gname, "", i, p);
            	of << std::endl;
                delGraph(g);
            	delCGraph(cg);
                delCDAG(dag);

            }
			of.close();

        }
    }

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x4a8, %rsp            # imm = 0x4A8
cmpl $0xa, %edi
jle 0x599c
movq %rsi, %rbx
movl %edi, %ebp
xorps %xmm0, %xmm0
movaps %xmm0, 0x1a0(%rsp)
movq $0x0, 0x1b0(%rsp)
movq $0x0, 0x50(%rsp)
xorl %edi, %edi
callq 0x3250
movl %eax, %edi
callq 0x3280
leaq 0x5a54(%rip), %rdi      # 0xa2af
callq 0x33f0
leaq 0x5897(%rip), %rdx      # 0xa0fe
movl %ebp, 0x24(%rsp)
movl %ebp, %edi
movq %rbx, 0x58(%rsp)
movq %rbx, %rsi
callq 0x30a0
shll $0x18, %eax
movl $0x0, %ecx
movq %rcx, 0x48(%rsp)
movl $0x0, 0x20(%rsp)
cmpl $0xff000000, %eax       # imm = 0xFF000000
je 0x4b77
leaq 0x2b8(%rsp), %rbp
leaq 0x5870(%rip), %r13      # 0xa119
leaq 0x2a8(%rsp), %r15
leaq 0x1a0(%rsp), %r12
leaq 0x5857(%rip), %r14      # 0xa117
movl $0x0, 0x20(%rsp)
movq $0x0, 0x48(%rsp)
movq $0x0, 0x50(%rsp)
sarl $0x18, %eax
leal -0x69(%rax), %ecx
cmpl $0x9, %ecx
ja 0x4996
leaq 0x5734(%rip), %rdx      # 0xa024
movslq (%rdx,%rcx,4), %rax
addq %rdx, %rax
jmpq *%rax
movq 0x96b8(%rip), %rax      # 0xdfb8
movq (%rax), %rdi
movq %r13, %rsi
callq 0x3410
movq %rax, %rbx
leaq 0x57f4(%rip), %rdi      # 0xa109
xorl %eax, %eax
callq 0x3050
testq %rbx, %rbx
je 0x4987
movq %rbp, 0x2a8(%rsp)
movq %rbx, %rdi
callq 0x3130
leaq (%rax,%rbx), %rdx
movq %r15, %rdi
movq %rbx, %rsi
callq 0x6418
movq %r12, %rdi
movq %r15, %rsi
callq 0x64a8
movq 0x2a8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x4968
movq 0x2b8(%rsp), %rsi
incq %rsi
callq 0x32d0
movq %r14, %rdi
movq %rbx, %rsi
xorl %eax, %eax
callq 0x3050
xorl %edi, %edi
movq %r13, %rsi
callq 0x3410
movq %rax, %rbx
testq %rax, %rax
jne 0x4921
movl $0xa, %edi
callq 0x33a0
jmp 0x4b54
cmpl $0x4d, %eax
jne 0x4b54
movq 0x9612(%rip), %rax      # 0xdfb8
movq (%rax), %rdi
callq 0x3400
movq %rax, 0x48(%rsp)
movl $0x11, %edx
movq 0x9611(%rip), %rdi      # 0xdfd0
leaq 0x5767(%rip), %rsi      # 0xa12d
callq 0x3310
movq 0x95fe(%rip), %rdi      # 0xdfd0
movq 0x48(%rsp), %rsi
callq 0x34a0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3290
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31b0
jmp 0x4b54
movq 0x95a6(%rip), %rax      # 0xdfb8
movq (%rax), %rdi
callq 0x3350
movsd %xmm0, 0x60(%rsp)
movl $0xd, %edx
movq 0x95a4(%rip), %rdi      # 0xdfd0
leaq 0x5713(%rip), %rsi      # 0xa146
callq 0x3310
xorps %xmm0, %xmm0
cvtsd2ss 0x60(%rsp), %xmm0
movss %xmm0, 0x60(%rsp)
cvtss2sd %xmm0, %xmm0
movq 0x957e(%rip), %rdi      # 0xdfd0
callq 0x3450
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3290
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31b0
jmp 0x4b54
movq 0x952b(%rip), %rax      # 0xdfb8
movq (%rax), %rdi
callq 0x3400
movq %rax, 0x50(%rsp)
movl $0x6, %edx
movq 0x952a(%rip), %rdi      # 0xdfd0
leaq 0x5692(%rip), %rsi      # 0xa13f
callq 0x3310
movq 0x9517(%rip), %rdi      # 0xdfd0
movq 0x50(%rsp), %rsi
callq 0x34a0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3290
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31b0
jmp 0x4b54
movq 0x94c2(%rip), %rax      # 0xdfb8
movq (%rax), %rdi
callq 0x3400
movl %eax, 0x20(%rsp)
movl $0x11, %edx
movq 0x94c2(%rip), %rdi      # 0xdfd0
leaq 0x5606(%rip), %rsi      # 0xa11b
callq 0x3310
movq 0x94af(%rip), %rdi      # 0xdfd0
movl 0x20(%rsp), %esi
callq 0x34a0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3290
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31b0
movl 0x24(%rsp), %edi
movq 0x58(%rsp), %rsi
leaq 0x559a(%rip), %rdx      # 0xa0fe
callq 0x30a0
shll $0x18, %eax
cmpl $0xff000000, %eax       # imm = 0xFF000000
jne 0x48da
leaq 0x574f(%rip), %rdi      # 0xa2cd
callq 0x33f0
callq 0x38c5
movq 0x1a0(%rsp), %r15
cmpq 0x1a8(%rsp), %r15
je 0x594d
movss 0x547a(%rip), %xmm0     # 0xa020
mulss 0x60(%rsp), %xmm0
cvttss2si %xmm0, %r12d
movl %r12d, %eax
negl %eax
cmovsl %r12d, %eax
movl %eax, 0x58(%rsp)
shrl $0x1f, %r12d
movq 0x50(%rsp), %rax
movl %eax, %ecx
negl %ecx
cmovsl %eax, %ecx
movl %ecx, 0x24(%rsp)
movl %eax, %r13d
shrl $0x1f, %r13d
movq 0x93e8(%rip), %rax      # 0xdfc8
movq (%rax), %rcx
movq %rcx, 0x178(%rsp)
movq 0x18(%rax), %rax
movq %rax, 0x170(%rsp)
movslq 0x20(%rsp), %rax
movq %rax, 0x288(%rsp)
movq 0x48(%rsp), %rax
incl %eax
movl %eax, 0x10c(%rsp)
movq 0x93b7(%rip), %rbp      # 0xdfd0
leaq 0x2a8(%rsp), %r14
movq %r12, 0x2a0(%rsp)
movq %r13, 0x298(%rsp)
leaq 0x228(%rsp), %rdi
leaq 0x5514(%rip), %rsi      # 0xa154
movq %r15, %rdx
callq 0x5d0d
movq 0x228(%rsp), %rsi
movq 0x230(%rsp), %rdx
movq %rbp, %rdi
callq 0x3310
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3290
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31b0
leaq 0x218(%rsp), %rax
movq %rax, 0x208(%rsp)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
addq %rsi, %rdx
leaq 0x208(%rsp), %rdi
callq 0x5e5e
movq 0x208(%rsp), %rdi
callq 0x34e0
movq %rax, %rdi
leaq 0x54a4(%rip), %rsi      # 0xa16c
callq 0x3410
leaq 0x110(%rsp), %rdi
movq %rax, %rsi
movq %r14, %rdx
callq 0x5cd0
movq %r15, 0x290(%rsp)
movl $0x8, %edx
movq %rbp, %rdi
leaq 0x5468(%rip), %rsi      # 0xa15f
callq 0x3310
movq 0x110(%rsp), %rsi
movq 0x118(%rsp), %rdx
movq %rbp, %rdi
callq 0x3310
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3290
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31b0
movq 0x48(%rsp), %rax
cmpl %eax, 0x20(%rsp)
jg 0x58c4
movq 0x288(%rsp), %r15
leaq 0x98(%rsp), %rax
movq %rax, 0x88(%rsp)
movq 0x110(%rsp), %rsi
movq 0x118(%rsp), %rdx
addq %rsi, %rdx
leaq 0x88(%rsp), %rbx
movq %rbx, %rdi
callq 0x5e5e
movq %rbx, %rdi
leaq 0x53d6(%rip), %rsi      # 0xa168
callq 0x3500
movl %r15d, %r13d
negl %r13d
cmovsl %r15d, %r13d
movl $0x1, %r12d
cmpl $0xa, %r13d
jb 0x4df4
movl $0x4, %r12d
movl %r13d, %eax
cmpl $0x63, %eax
jbe 0x4deb
cmpl $0x3e7, %eax            # imm = 0x3E7
jbe 0x4df1
cmpl $0x2710, %eax           # imm = 0x2710
jb 0x4df4
movl %eax, %ecx
movl $0xd1b71759, %edx       # imm = 0xD1B71759
imulq %rdx, %rcx
shrq $0x2d, %rcx
addl $0x4, %r12d
cmpl $0x1869f, %eax          # imm = 0x1869F
movl %ecx, %eax
ja 0x4db6
addl $-0x3, %r12d
jmp 0x4df4
addl $-0x2, %r12d
jmp 0x4df4
decl %r12d
movl %r15d, %ebx
shrl $0x1f, %ebx
leal (%r12,%rbx), %esi
leaq 0xf8(%rsp), %rax
movq %rax, 0xe8(%rsp)
leaq 0xe8(%rsp), %rdi
movl $0x2d, %edx
callq 0x3320
movl %ebx, %edi
addq 0xe8(%rsp), %rdi
movl %r12d, %esi
movl %r13d, %edx
callq 0x5df1
movq 0x88(%rsp), %rcx
movl $0xf, %esi
leaq 0x98(%rsp), %rax
cmpq %rax, %rcx
je 0x4e57
movq 0x98(%rsp), %rsi
movq 0x90(%rsp), %r8
movq 0xf0(%rsp), %rdx
leaq (%rdx,%r8), %rax
cmpq %rsi, %rax
leaq 0x78(%rsp), %r13
jbe 0x4e99
movl $0xf, %esi
leaq 0xf8(%rsp), %rdi
cmpq %rdi, 0xe8(%rsp)
je 0x4e94
movq 0xf8(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x4eb0
movq 0xe8(%rsp), %rsi
leaq 0x88(%rsp), %rdi
callq 0x30f0
jmp 0x4ec1
leaq 0xe8(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x32f0
movq %r13, 0x68(%rsp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0x4ee1
movq %rdx, 0x68(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x78(%rsp)
jmp 0x4ee9
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x70(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x68(%rsp), %rdi
leaq 0x5258(%rip), %rsi      # 0xa16a
callq 0x3500
leaq 0x38(%rsp), %rsi
movq %rsi, 0x28(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x4f3f
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x4f45
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x30(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movl $0x1, %r12d
cmpl $0xa, 0x58(%rsp)
jb 0x4fb2
movl $0x4, %r12d
movl 0x58(%rsp), %eax
cmpl $0x63, %eax
jbe 0x4fa9
cmpl $0x3e7, %eax            # imm = 0x3E7
jbe 0x4faf
cmpl $0x2710, %eax           # imm = 0x2710
jb 0x4fb2
movl %eax, %ecx
movl $0xd1b71759, %edx       # imm = 0xD1B71759
imulq %rdx, %rcx
shrq $0x2d, %rcx
addl $0x4, %r12d
cmpl $0x1869f, %eax          # imm = 0x1869F
movl %ecx, %eax
ja 0x4f74
addl $-0x3, %r12d
jmp 0x4fb2
addl $-0x2, %r12d
jmp 0x4fb2
decl %r12d
movq 0x2a0(%rsp), %rbx
leal (%rbx,%r12), %esi
leaq 0xd8(%rsp), %rax
movq %rax, 0xc8(%rsp)
leaq 0xc8(%rsp), %rdi
movl $0x2d, %edx
callq 0x3320
movq 0xc8(%rsp), %rdi
addq %rbx, %rdi
movl %r12d, %esi
movl 0x58(%rsp), %edx
callq 0x5df1
movq 0x28(%rsp), %rcx
movl $0xf, %esi
leaq 0x38(%rsp), %rax
cmpq %rax, %rcx
je 0x5010
movq 0x38(%rsp), %rsi
movq 0x30(%rsp), %r8
movq 0xd0(%rsp), %rdx
leaq (%rdx,%r8), %rax
cmpq %rsi, %rax
jbe 0x504a
movl $0xf, %esi
leaq 0xd8(%rsp), %rdi
cmpq %rdi, 0xc8(%rsp)
je 0x5045
movq 0xd8(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x505e
movq 0xc8(%rsp), %rsi
leaq 0x28(%rsp), %rdi
callq 0x30f0
jmp 0x506f
leaq 0xc8(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x32f0
leaq 0x140(%rsp), %rsi
movq %rsi, 0x130(%rsp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0x50a0
movq %rdx, 0x130(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x140(%rsp)
jmp 0x50a6
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x138(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x130(%rsp), %rdi
leaq 0x5093(%rip), %rsi      # 0xa168
callq 0x3500
leaq 0x1d0(%rsp), %rsi
movq %rsi, 0x1c0(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x510e
movq %rdx, 0x1c0(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x1d0(%rsp)
jmp 0x5114
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x1c8(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movl $0x1, %r12d
cmpl $0xa, 0x24(%rsp)
jb 0x5184
movl $0x4, %r12d
movl 0x24(%rsp), %eax
cmpl $0x63, %eax
jbe 0x517b
cmpl $0x3e7, %eax            # imm = 0x3E7
jbe 0x5181
cmpl $0x2710, %eax           # imm = 0x2710
jb 0x5184
movl %eax, %ecx
movl $0xd1b71759, %edx       # imm = 0xD1B71759
imulq %rdx, %rcx
shrq $0x2d, %rcx
addl $0x4, %r12d
cmpl $0x1869f, %eax          # imm = 0x1869F
movl %ecx, %eax
ja 0x5146
addl $-0x3, %r12d
jmp 0x5184
addl $-0x2, %r12d
jmp 0x5184
decl %r12d
movq 0x298(%rsp), %rbx
leal (%rbx,%r12), %esi
leaq 0xb8(%rsp), %rax
movq %rax, 0xa8(%rsp)
leaq 0xa8(%rsp), %rdi
movl $0x2d, %edx
callq 0x3320
movq 0xa8(%rsp), %rdi
addq %rbx, %rdi
movl %r12d, %esi
movl 0x24(%rsp), %edx
callq 0x5df1
movq 0x1c0(%rsp), %rcx
movl $0xf, %esi
leaq 0x1d0(%rsp), %rax
cmpq %rax, %rcx
je 0x51eb
movq 0x1d0(%rsp), %rsi
movq 0x1c8(%rsp), %r8
movq 0xb0(%rsp), %rdx
leaq (%rdx,%r8), %rax
cmpq %rsi, %rax
leaq 0x2b8(%rsp), %r12
jbe 0x5230
movl $0xf, %esi
leaq 0xb8(%rsp), %rdi
cmpq %rdi, 0xa8(%rsp)
je 0x522b
movq 0xb8(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x5247
movq 0xa8(%rsp), %rsi
leaq 0x1c0(%rsp), %rdi
callq 0x30f0
jmp 0x5258
leaq 0xa8(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x32f0
movq %r12, 0x2a8(%rsp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0x5281
movq %rdx, 0x2a8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x2b8(%rsp)
jmp 0x5289
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x2b0(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
movq %r14, %rdi
leaq 0x4ebb(%rip), %rsi      # 0xa16e
callq 0x3500
leaq 0x190(%rsp), %rsi
movq %rsi, 0x180(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x52ec
movq %rdx, 0x180(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x190(%rsp)
jmp 0x52f2
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x188(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x2a8(%rsp), %rdi
cmpq %r12, %rdi
je 0x532a
movq 0x2b8(%rsp), %rsi
incq %rsi
callq 0x32d0
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0x534f
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x32d0
movq 0x1c0(%rsp), %rdi
leaq 0x1d0(%rsp), %rax
cmpq %rax, %rdi
je 0x5374
movq 0x1d0(%rsp), %rsi
incq %rsi
callq 0x32d0
movq 0x130(%rsp), %rdi
leaq 0x140(%rsp), %rax
cmpq %rax, %rdi
je 0x5399
movq 0x140(%rsp), %rsi
incq %rsi
callq 0x32d0
movq 0xc8(%rsp), %rdi
leaq 0xd8(%rsp), %rax
cmpq %rax, %rdi
je 0x53be
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x32d0
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x53da
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x32d0
movq 0x68(%rsp), %rdi
cmpq %r13, %rdi
je 0x53f1
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x32d0
movq 0xe8(%rsp), %rdi
leaq 0xf8(%rsp), %rax
cmpq %rax, %rdi
je 0x5416
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0x32d0
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0x543b
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x32d0
leaq 0x28(%rsp), %rdi
leaq 0x4d2b(%rip), %rsi      # 0xa172
leaq 0x180(%rsp), %rdx
callq 0x5d0d
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
movq %rbp, %rdi
callq 0x3310
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x3290
movsbl %al, %esi
movq %r12, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31b0
movq %r14, %rdi
callq 0x3490
movq %r14, %rdi
leaq 0x28(%rsp), %rsi
movl $0x10, %edx
callq 0x3140
leaq 0x318(%rsp), %rdi
callq 0x30b0
testb %al, %al
je 0x596e
movq 0x28(%rsp), %rsi
leaq 0x4cbb(%rip), %rdi      # 0xa186
xorl %eax, %eax
callq 0x3050
movl $0x26, %edx
movq %r14, %rdi
leaq 0x4cb6(%rip), %rsi      # 0xa197
callq 0x3310
movq 0x2a8(%rsp), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3290
movsbl %al, %esi
movq %r14, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31b0
movq 0x50(%rsp), %rax
movl %eax, %r13d
testl %eax, %eax
jle 0x582c
leaq 0x4dc3(%rip), %rdi      # 0xa2ec
callq 0x33f0
movq 0x228(%rsp), %rdi
leaq 0x68(%rsp), %rsi
movl $0x1, %edx
movl $0x1, %ecx
movss 0x60(%rsp), %xmm0
callq 0x908d
testl %eax, %eax
jne 0x5992
movl $0xa, %edx
movq %rbp, %rdi
leaq 0x4c57(%rip), %rsi      # 0xa1be
callq 0x3310
movq 0x68(%rsp), %rsi
movq %rbp, %rdi
callq 0x3270
movq %rax, %r12
movl $0x9, %edx
movq %rax, %rdi
leaq 0x4c3e(%rip), %rsi      # 0xa1c9
callq 0x3310
movq 0x70(%rsp), %rsi
movq %r12, %rdi
callq 0x3270
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x3290
movsbl %al, %esi
movq %r12, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31b0
leaq 0x4d2c(%rip), %rdi      # 0xa2fa
callq 0x33f0
movups 0x68(%rsp), %xmm0
movups 0x78(%rsp), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
leaq 0x88(%rsp), %rbx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x6dbf
leaq 0x4d0d(%rip), %rdi      # 0xa30c
callq 0x33f0
leaq 0x130(%rsp), %rdi
movq %rbx, %rsi
callq 0x36b5
movl $0xa, %edx
movq %rbp, %rdi
leaq 0x4b9b(%rip), %rsi      # 0xa1be
callq 0x3310
movq 0x68(%rsp), %rsi
movq %rbp, %rdi
callq 0x3270
movq %rax, %r12
movl $0x9, %edx
movq %rax, %rdi
leaq 0x4b82(%rip), %rsi      # 0xa1c9
callq 0x3310
movq 0x70(%rsp), %rsi
movq %r12, %rdi
callq 0x3270
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x3290
movsbl %al, %esi
movq %r12, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31b0
leaq 0x278(%rsp), %rax
movq %rax, 0x268(%rsp)
movq 0x110(%rsp), %rsi
movq 0x118(%rsp), %rdx
addq %rsi, %rdx
leaq 0x268(%rsp), %rdi
callq 0x5e5e
leaq 0x258(%rsp), %rax
movq %rax, 0x248(%rsp)
leaq 0x248(%rsp), %rdi
leaq 0x4e5d(%rip), %rdx      # 0xa52f
movq %rdx, %rsi
callq 0x6418
leaq 0x88(%rsp), %rdi
leaq 0x130(%rsp), %rsi
movq %r14, %rdx
movq %r15, %r9
movss 0x60(%rsp), %xmm0
callq 0x40c9
movq 0x248(%rsp), %rdi
leaq 0x258(%rsp), %rax
cmpq %rax, %rdi
je 0x5720
movq 0x258(%rsp), %rsi
incq %rsi
callq 0x32d0
movq 0x268(%rsp), %rdi
leaq 0x278(%rsp), %rax
cmpq %rax, %rdi
je 0x5745
movq 0x278(%rsp), %rsi
incq %rsi
callq 0x32d0
movq 0x2a8(%rsp), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x3290
movsbl %al, %esi
movq %r14, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31b0
movups 0x68(%rsp), %xmm0
movups 0x78(%rsp), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
callq 0x68ae
movups 0x88(%rsp), %xmm0
movups 0x98(%rsp), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
callq 0x6a34
movups 0x130(%rsp), %xmm0
movups 0x140(%rsp), %xmm1
movups 0x150(%rsp), %xmm2
movups 0x160(%rsp), %xmm3
movaps %xmm3, 0x1f0(%rsp)
movaps %xmm2, 0x1e0(%rsp)
movaps %xmm1, 0x1d0(%rsp)
movaps %xmm0, 0x1c0(%rsp)
movups 0x130(%rsp), %xmm0
movups 0x140(%rsp), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
callq 0x6a34
leaq 0x1d0(%rsp), %rax
movups 0x10(%rax), %xmm0
movups 0x20(%rax), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
callq 0x6a34
decl %r13d
jne 0x5522
movq %r14, %rdi
callq 0x33b0
movq 0x178(%rsp), %rax
movq %rax, 0x2a8(%rsp)
movq -0x18(%rax), %rax
movq 0x170(%rsp), %rcx
movq %rcx, 0x2a8(%rsp,%rax)
leaq 0x2b0(%rsp), %rdi
callq 0x3220
leaq 0x3a0(%rsp), %rdi
callq 0x3100
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x588e
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x32d0
movq 0x180(%rsp), %rdi
leaq 0x190(%rsp), %rax
cmpq %rax, %rdi
je 0x58b3
movq 0x190(%rsp), %rsi
incq %rsi
callq 0x32d0
incq %r15
cmpl %r15d, 0x10c(%rsp)
jne 0x4d55
movq 0x110(%rsp), %rdi
leaq 0x120(%rsp), %rax
cmpq %rax, %rdi
je 0x58e9
movq 0x120(%rsp), %rsi
incq %rsi
callq 0x32d0
movq 0x208(%rsp), %rdi
leaq 0x218(%rsp), %rax
cmpq %rax, %rdi
movq 0x290(%rsp), %r15
je 0x5916
movq 0x218(%rsp), %rsi
incq %rsi
callq 0x32d0
movq 0x228(%rsp), %rdi
leaq 0x238(%rsp), %rax
cmpq %rax, %rdi
je 0x593b
movq 0x238(%rsp), %rsi
incq %rsi
callq 0x32d0
addq $0x20, %r15
cmpq 0x1a8(%rsp), %r15
jne 0x4c31
leaq 0x1a0(%rsp), %rdi
callq 0x5d96
xorl %eax, %eax
addq $0x4a8, %rsp            # imm = 0x4A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x865b(%rip), %rdi      # 0xdfd0
leaq 0x4709(%rip), %rsi      # 0xa085
movl $0x1b, %edx
callq 0x3310
movq 0x8643(%rip), %rdi      # 0xdfd0
callq 0x3150
movl $0x1, %edi
callq 0x3340
callq 0x47fb
jmp 0x5992
jmp 0x59b3
movq %rax, %rbx
jmp 0x5c70
jmp 0x59dc
jmp 0x59b3
jmp 0x59b3
movq %rax, %rbx
jmp 0x5cba
movq %rax, %rbx
movq 0x2a8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x5cba
movq 0x2b8(%rsp), %rsi
jmp 0x5cb2
movq %rax, %rbx
jmp 0x5c95
jmp 0x5b38
jmp 0x5bcd
jmp 0x5b40
movq %rax, %rbx
jmp 0x5b09
movq %rax, %rbx
jmp 0x5af2
movq %rax, %rbx
jmp 0x5ad6
movq %rax, %rbx
jmp 0x5ab1
movq %rax, %rbx
jmp 0x5a8c
movq %rax, %rbx
jmp 0x5a67
movq %rax, %rbx
jmp 0x5a42
movq %rax, %rbx
movq 0x2a8(%rsp), %rdi
cmpq %r12, %rdi
je 0x5a42
movq 0x2b8(%rsp), %rsi
incq %rsi
callq 0x32d0
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0x5a67
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x32d0
movq 0x1c0(%rsp), %rdi
leaq 0x1d0(%rsp), %rax
cmpq %rax, %rdi
je 0x5a8c
movq 0x1d0(%rsp), %rsi
incq %rsi
callq 0x32d0
movq 0x130(%rsp), %rdi
leaq 0x140(%rsp), %rax
cmpq %rax, %rdi
je 0x5ab1
movq 0x140(%rsp), %rsi
incq %rsi
callq 0x32d0
movq 0xc8(%rsp), %rdi
leaq 0xd8(%rsp), %rax
cmpq %rax, %rdi
je 0x5ad6
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x32d0
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x5af2
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x32d0
movq 0x68(%rsp), %rdi
cmpq %r13, %rdi
je 0x5b09
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x32d0
movq 0xe8(%rsp), %rdi
leaq 0xf8(%rsp), %rax
cmpq %rax, %rdi
je 0x5b43
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0x32d0
jmp 0x5b43
movq %rax, %rbx
jmp 0x5c26
movq %rax, %rbx
jmp 0x5c4b
movq %rax, %rbx
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0x5c4b
movq 0x98(%rsp), %rsi
jmp 0x5c43
jmp 0x5b6b
movq %rax, %rbx
jmp 0x5c0a
jmp 0x5bcd
movq %rax, %rbx
jmp 0x5ba2
movq %rax, %rbx
movq 0x248(%rsp), %rdi
leaq 0x258(%rsp), %rax
cmpq %rax, %rdi
je 0x5ba2
movq 0x258(%rsp), %rsi
incq %rsi
callq 0x32d0
movq 0x268(%rsp), %rdi
leaq 0x278(%rsp), %rax
cmpq %rax, %rdi
je 0x5bd0
movq 0x278(%rsp), %rsi
incq %rsi
callq 0x32d0
jmp 0x5bd0
jmp 0x5bcd
jmp 0x5bcd
movq %rax, %rbx
leaq 0x2b0(%rsp), %rdi
movq 0x178(%rsp), %rax
movq %rax, -0x8(%rdi)
movq -0x18(%rax), %rax
movq 0x170(%rsp), %rcx
movq %rcx, 0x2a8(%rsp,%rax)
callq 0x3220
leaq 0x3a0(%rsp), %rdi
callq 0x3100
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x5c26
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x32d0
movq 0x180(%rsp), %rdi
leaq 0x190(%rsp), %rax
cmpq %rax, %rdi
je 0x5c4b
movq 0x190(%rsp), %rsi
incq %rsi
callq 0x32d0
movq 0x110(%rsp), %rdi
leaq 0x120(%rsp), %rax
cmpq %rax, %rdi
je 0x5c70
movq 0x120(%rsp), %rsi
incq %rsi
callq 0x32d0
movq 0x208(%rsp), %rdi
leaq 0x218(%rsp), %rax
cmpq %rax, %rdi
je 0x5c95
movq 0x218(%rsp), %rsi
incq %rsi
callq 0x32d0
movq 0x228(%rsp), %rdi
leaq 0x238(%rsp), %rax
cmpq %rax, %rdi
je 0x5cba
movq 0x238(%rsp), %rsi
incq %rsi
callq 0x32d0
leaq 0x1a0(%rsp), %rdi
callq 0x5d96
movq %rbx, %rdi
callq 0x34c0
nop