// File: /workspace/github_cpp_makefile_star2_O3/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 0x58c2
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 0x5b05(%rip), %rdi      # 0xa29f
callq 0x33f0
leaq 0x5948(%rip), %rdx      # 0xa0ee
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 0x4ab6
leaq 0x2b8(%rsp), %rbp
leaq 0x5921(%rip), %r13      # 0xa109
leaq 0x2a8(%rsp), %r15
leaq 0x1a0(%rsp), %r12
leaq 0x5908(%rip), %r14      # 0xa107
movl $0x0, 0x20(%rsp)
movq $0x0, 0x48(%rsp)
movq $0x0, 0x50(%rsp)
sarl $0x18, %eax
leal -0x69(%rax), %ecx
cmpl $0x9, %ecx
ja 0x48d5
leaq 0x57e5(%rip), %rdx      # 0xa014
movslq (%rdx,%rcx,4), %rax
addq %rdx, %rax
jmpq *%rax
movq 0x9779(%rip), %rax      # 0xdfb8
movq (%rax), %rdi
movq %r13, %rsi
callq 0x3410
movq %rax, %rbx
leaq 0x58a5(%rip), %rdi      # 0xa0f9
xorl %eax, %eax
callq 0x3050
testq %rbx, %rbx
je 0x48c6
movq %rbp, 0x2a8(%rsp)
movq %rbx, %rdi
callq 0x3130
leaq (%rax,%rbx), %rdx
movq %r15, %rdi
movq %rbx, %rsi
callq 0x6332
movq %r12, %rdi
movq %r15, %rsi
callq 0x63c8
movq 0x2a8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x48a7
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 0x4860
movl $0xa, %edi
callq 0x33a0
jmp 0x4a93
cmpl $0x4d, %eax
jne 0x4a93
movq 0x96d3(%rip), %rax      # 0xdfb8
movq (%rax), %rdi
callq 0x3400
movq %rax, 0x48(%rsp)
movl $0x11, %edx
movq 0x96d2(%rip), %rdi      # 0xdfd0
leaq 0x5818(%rip), %rsi      # 0xa11d
callq 0x3310
movq 0x96bf(%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 0x4a93
movq 0x9667(%rip), %rax      # 0xdfb8
movq (%rax), %rdi
callq 0x3350
movsd %xmm0, 0x60(%rsp)
movl $0xd, %edx
movq 0x9665(%rip), %rdi      # 0xdfd0
leaq 0x57c4(%rip), %rsi      # 0xa136
callq 0x3310
xorps %xmm0, %xmm0
cvtsd2ss 0x60(%rsp), %xmm0
movss %xmm0, 0x60(%rsp)
cvtss2sd %xmm0, %xmm0
movq 0x963f(%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 0x4a93
movq 0x95ec(%rip), %rax      # 0xdfb8
movq (%rax), %rdi
callq 0x3400
movq %rax, 0x50(%rsp)
movl $0x6, %edx
movq 0x95eb(%rip), %rdi      # 0xdfd0
leaq 0x5743(%rip), %rsi      # 0xa12f
callq 0x3310
movq 0x95d8(%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 0x4a93
movq 0x9583(%rip), %rax      # 0xdfb8
movq (%rax), %rdi
callq 0x3400
movl %eax, 0x20(%rsp)
movl $0x11, %edx
movq 0x9583(%rip), %rdi      # 0xdfd0
leaq 0x56b7(%rip), %rsi      # 0xa10b
callq 0x3310
movq 0x9570(%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 0x564b(%rip), %rdx      # 0xa0ee
callq 0x30a0
shll $0x18, %eax
cmpl $0xff000000, %eax       # imm = 0xFF000000
jne 0x4819
leaq 0x5800(%rip), %rdi      # 0xa2bd
callq 0x33f0
callq 0x38e8
movq 0x1a0(%rsp), %r14
cmpq 0x1a8(%rsp), %r14
je 0x5873
movss 0x552b(%rip), %xmm0     # 0xa010
mulss 0x60(%rsp), %xmm0
cvttss2si %xmm0, %r13d
movl %r13d, %eax
negl %eax
cmovsl %r13d, %eax
movl %eax, 0x58(%rsp)
shrl $0x1f, %r13d
movq 0x50(%rsp), %rax
movl %eax, %ecx
negl %ecx
cmovsl %eax, %ecx
movl %ecx, 0x24(%rsp)
movl %eax, %ebp
shrl $0x1f, %ebp
movq 0x94ab(%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, 0xac(%rsp)
movq 0x947a(%rip), %r12      # 0xdfd0
leaq 0x2a8(%rsp), %r15
movq %r13, 0x2a0(%rsp)
movq %rbp, 0x298(%rsp)
leaq 0x228(%rsp), %rdi
leaq 0x55c7(%rip), %rsi      # 0xa144
movq %r14, %rdx
callq 0x5c37
movq 0x228(%rsp), %rsi
movq 0x230(%rsp), %rdx
movq %r12, %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 (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq 0x208(%rsp), %rdi
callq 0x5d8c
movq 0x208(%rsp), %rdi
callq 0x34e0
movq %rax, %rdi
leaq 0x5557(%rip), %rsi      # 0xa15c
callq 0x3410
leaq 0x110(%rsp), %rdi
movq %rax, %rsi
movq %r15, %rdx
callq 0x5bfa
movq %r14, 0x290(%rsp)
movl $0x8, %edx
movq %r12, %rdi
leaq 0x551b(%rip), %rsi      # 0xa14f
callq 0x3310
movq 0x110(%rsp), %rsi
movq 0x118(%rsp), %rdx
movq %r12, %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 0x57ea
movq 0x288(%rsp), %r13
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 0x5d8c
movq %rbx, %rdi
leaq 0x5489(%rip), %rsi      # 0xa158
callq 0x3500
movl %r13d, %ebx
movl %r13d, %ebp
negl %ebp
cmovsl %r13d, %ebp
movl $0x1, %r14d
cmpl $0xa, %ebp
jb 0x4d31
movl $0x4, %r14d
movl %ebp, %eax
cmpl $0x63, %eax
jbe 0x4d28
cmpl $0x3e7, %eax            # imm = 0x3E7
jbe 0x4d2e
cmpl $0x2710, %eax           # imm = 0x2710
jb 0x4d31
movl %eax, %ecx
movl $0xd1b71759, %edx       # imm = 0xD1B71759
imulq %rdx, %rcx
shrq $0x2d, %rcx
addl $0x4, %r14d
cmpl $0x1869f, %eax          # imm = 0x1869F
movl %ecx, %eax
ja 0x4cf3
addl $-0x3, %r14d
jmp 0x4d31
addl $-0x2, %r14d
jmp 0x4d31
decl %r14d
shrl $0x1f, %ebx
leal (%r14,%rbx), %esi
leaq 0x100(%rsp), %rax
movq %rax, 0xf0(%rsp)
leaq 0xf0(%rsp), %rdi
movl $0x2d, %edx
callq 0x3320
movl %ebx, %edi
addq 0xf0(%rsp), %rdi
movl %r14d, %esi
movl %ebp, %edx
callq 0x5d1e
movq 0x88(%rsp), %rcx
movl $0xf, %edi
leaq 0x98(%rsp), %rax
cmpq %rax, %rcx
je 0x4d90
movq 0x98(%rsp), %rdi
movq 0x90(%rsp), %r8
movq 0xf0(%rsp), %rsi
movq 0xf8(%rsp), %rdx
leaq (%rdx,%r8), %rax
cmpq %rdi, %rax
leaq 0x78(%rsp), %rbp
jbe 0x4dd5
movl $0xf, %edi
leaq 0x100(%rsp), %r9
cmpq %r9, %rsi
je 0x4dd0
movq 0x100(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x4de4
leaq 0x88(%rsp), %rdi
callq 0x30f0
jmp 0x4df5
leaq 0xf0(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x32f0
movq %rbp, 0x68(%rsp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0x4e15
movq %rdx, 0x68(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x78(%rsp)
jmp 0x4e1c
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
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 0x5315(%rip), %rsi      # 0xa15a
callq 0x3500
leaq 0x38(%rsp), %rsi
movq %rsi, 0x28(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x4e72
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x4e78
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, %r14d
cmpl $0xa, 0x58(%rsp)
jb 0x4ee5
movl $0x4, %r14d
movl 0x58(%rsp), %eax
cmpl $0x63, %eax
jbe 0x4edc
cmpl $0x3e7, %eax            # imm = 0x3E7
jbe 0x4ee2
cmpl $0x2710, %eax           # imm = 0x2710
jb 0x4ee5
movl %eax, %ecx
movl $0xd1b71759, %edx       # imm = 0xD1B71759
imulq %rdx, %rcx
shrq $0x2d, %rcx
addl $0x4, %r14d
cmpl $0x1869f, %eax          # imm = 0x1869F
movl %ecx, %eax
ja 0x4ea7
addl $-0x3, %r14d
jmp 0x4ee5
addl $-0x2, %r14d
jmp 0x4ee5
decl %r14d
movq 0x2a0(%rsp), %rbx
leal (%rbx,%r14), %esi
leaq 0xe0(%rsp), %rax
movq %rax, 0xd0(%rsp)
leaq 0xd0(%rsp), %rdi
movl $0x2d, %edx
callq 0x3320
movq 0xd0(%rsp), %rdi
addq %rbx, %rdi
movl %r14d, %esi
movl 0x58(%rsp), %edx
callq 0x5d1e
movq 0x28(%rsp), %rcx
movl $0xf, %edi
leaq 0x38(%rsp), %rax
cmpq %rax, %rcx
je 0x4f43
movq 0x38(%rsp), %rdi
movq 0x30(%rsp), %r8
movq 0xd0(%rsp), %rsi
movq 0xd8(%rsp), %rdx
leaq (%rdx,%r8), %rax
cmpq %rdi, %rax
jbe 0x4f80
movl $0xf, %edi
leaq 0xe0(%rsp), %r9
cmpq %r9, %rsi
je 0x4f7b
movq 0xe0(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x4f8c
leaq 0x28(%rsp), %rdi
callq 0x30f0
jmp 0x4f9d
leaq 0xd0(%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 0x4fce
movq %rdx, 0x130(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x140(%rsp)
jmp 0x4fd4
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 0x5155(%rip), %rsi      # 0xa158
callq 0x3500
leaq 0x1d0(%rsp), %rsi
movq %rsi, 0x1c0(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x503c
movq %rdx, 0x1c0(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x1d0(%rsp)
jmp 0x5042
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, %r14d
cmpl $0xa, 0x24(%rsp)
jb 0x50b2
movl $0x4, %r14d
movl 0x24(%rsp), %eax
cmpl $0x63, %eax
jbe 0x50a9
cmpl $0x3e7, %eax            # imm = 0x3E7
jbe 0x50af
cmpl $0x2710, %eax           # imm = 0x2710
jb 0x50b2
movl %eax, %ecx
movl $0xd1b71759, %edx       # imm = 0xD1B71759
imulq %rdx, %rcx
shrq $0x2d, %rcx
addl $0x4, %r14d
cmpl $0x1869f, %eax          # imm = 0x1869F
movl %ecx, %eax
ja 0x5074
addl $-0x3, %r14d
jmp 0x50b2
addl $-0x2, %r14d
jmp 0x50b2
decl %r14d
movq 0x298(%rsp), %rbx
leal (%rbx,%r14), %esi
leaq 0xc0(%rsp), %rax
movq %rax, 0xb0(%rsp)
leaq 0xb0(%rsp), %rdi
movl $0x2d, %edx
callq 0x3320
movq 0xb0(%rsp), %rdi
addq %rbx, %rdi
movl %r14d, %esi
movl 0x24(%rsp), %edx
callq 0x5d1e
movq 0x1c0(%rsp), %rcx
movl $0xf, %edi
leaq 0x1d0(%rsp), %rax
cmpq %rax, %rcx
je 0x5119
movq 0x1d0(%rsp), %rdi
movq 0x1c8(%rsp), %r8
movq 0xb0(%rsp), %rsi
movq 0xb8(%rsp), %rdx
leaq (%rdx,%r8), %rax
cmpq %rdi, %rax
leaq 0x2b8(%rsp), %r14
jbe 0x5161
movl $0xf, %edi
leaq 0xc0(%rsp), %r9
cmpq %r9, %rsi
je 0x515c
movq 0xc0(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x5170
leaq 0x1c0(%rsp), %rdi
callq 0x30f0
jmp 0x5181
leaq 0xb0(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x32f0
movq %r14, 0x2a8(%rsp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0x51aa
movq %rdx, 0x2a8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x2b8(%rsp)
jmp 0x51b1
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x2b0(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
movq %r15, %rdi
leaq 0x4f83(%rip), %rsi      # 0xa15e
callq 0x3500
leaq 0x190(%rsp), %rsi
movq %rsi, 0x180(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x5214
movq %rdx, 0x180(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x190(%rsp)
jmp 0x521a
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 %r14, %rdi
je 0x5252
movq 0x2b8(%rsp), %rsi
incq %rsi
callq 0x32d0
movq 0xb0(%rsp), %rdi
leaq 0xc0(%rsp), %rax
cmpq %rax, %rdi
je 0x5277
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x32d0
movq 0x1c0(%rsp), %rdi
leaq 0x1d0(%rsp), %rax
cmpq %rax, %rdi
je 0x529c
movq 0x1d0(%rsp), %rsi
incq %rsi
callq 0x32d0
movq 0x130(%rsp), %rdi
leaq 0x140(%rsp), %rax
cmpq %rax, %rdi
je 0x52c1
movq 0x140(%rsp), %rsi
incq %rsi
callq 0x32d0
movq 0xd0(%rsp), %rdi
leaq 0xe0(%rsp), %rax
cmpq %rax, %rdi
je 0x52e6
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x32d0
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x5302
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x32d0
movq 0x68(%rsp), %rdi
cmpq %rbp, %rdi
je 0x5319
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x32d0
movq 0xf0(%rsp), %rdi
leaq 0x100(%rsp), %rax
cmpq %rax, %rdi
je 0x533e
movq 0x100(%rsp), %rsi
incq %rsi
callq 0x32d0
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0x5363
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x32d0
leaq 0x28(%rsp), %rdi
leaq 0x4df3(%rip), %rsi      # 0xa162
leaq 0x180(%rsp), %rdx
callq 0x5c37
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
movq %r12, %rdi
callq 0x3310
movq %rax, %r14
movq (%rax), %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 %r15, %rdi
callq 0x3490
movq %r15, %rdi
leaq 0x28(%rsp), %rsi
movl $0x10, %edx
callq 0x3140
leaq 0x318(%rsp), %rdi
callq 0x30b0
testb %al, %al
je 0x5894
movq 0x28(%rsp), %rsi
leaq 0x4d83(%rip), %rdi      # 0xa176
xorl %eax, %eax
callq 0x3050
movl $0x26, %edx
movq %r15, %rdi
leaq 0x4d7e(%rip), %rsi      # 0xa187
callq 0x3310
movq 0x2a8(%rsp), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x3290
movsbl %al, %esi
movq %r15, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31b0
movq 0x50(%rsp), %rax
movl %eax, %ebp
testl %eax, %eax
jle 0x5752
leaq 0x4e8c(%rip), %rdi      # 0xa2dc
callq 0x33f0
movq 0x228(%rsp), %rdi
leaq 0x68(%rsp), %rsi
movl $0x1, %edx
movl $0x1, %ecx
movss 0x60(%rsp), %xmm0
callq 0x8fd5
testl %eax, %eax
jne 0x58b8
movl $0xa, %edx
movq %r12, %rdi
leaq 0x4d20(%rip), %rsi      # 0xa1ae
callq 0x3310
movq 0x68(%rsp), %rsi
movq %r12, %rdi
callq 0x3270
movq %rax, %r14
movl $0x9, %edx
movq %rax, %rdi
leaq 0x4d07(%rip), %rsi      # 0xa1b9
callq 0x3310
movq 0x70(%rsp), %rsi
movq %r14, %rdi
callq 0x3270
movq %rax, %r14
movq (%rax), %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
leaq 0x4df5(%rip), %rdi      # 0xa2ea
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 0x6cbb
leaq 0x4dd6(%rip), %rdi      # 0xa2fc
callq 0x33f0
leaq 0x130(%rsp), %rdi
movq %rbx, %rsi
callq 0x36b5
movl $0xa, %edx
movq %r12, %rdi
leaq 0x4c64(%rip), %rsi      # 0xa1ae
callq 0x3310
movq 0x68(%rsp), %rsi
movq %r12, %rdi
callq 0x3270
movq %rax, %r14
movl $0x9, %edx
movq %rax, %rdi
leaq 0x4c4b(%rip), %rsi      # 0xa1b9
callq 0x3310
movq 0x70(%rsp), %rsi
movq %r14, %rdi
callq 0x3270
movq %rax, %r14
movq (%rax), %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
leaq 0x278(%rsp), %rax
movq %rax, 0x268(%rsp)
movq 0x110(%rsp), %rsi
movq 0x118(%rsp), %rdx
addq %rsi, %rdx
leaq 0x268(%rsp), %rdi
callq 0x5d8c
leaq 0x258(%rsp), %rax
movq %rax, 0x248(%rsp)
leaq 0x248(%rsp), %rdi
leaq 0x4f76(%rip), %rdx      # 0xa56f
movq %rdx, %rsi
callq 0x6332
leaq 0x88(%rsp), %rdi
leaq 0x130(%rsp), %rsi
movq %r15, %rdx
movq %r13, %r9
movss 0x60(%rsp), %xmm0
callq 0x404e
movq 0x248(%rsp), %rdi
leaq 0x258(%rsp), %rax
cmpq %rax, %rdi
je 0x5647
movq 0x258(%rsp), %rsi
incq %rsi
callq 0x32d0
movq 0x268(%rsp), %rdi
leaq 0x278(%rsp), %rax
cmpq %rax, %rdi
je 0x566c
movq 0x278(%rsp), %rsi
incq %rsi
callq 0x32d0
movq 0x2a8(%rsp), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x3290
movsbl %al, %esi
movq %r15, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31b0
movups 0x68(%rsp), %xmm0
movups 0x78(%rsp), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
callq 0x67d6
movups 0x88(%rsp), %xmm0
movups 0x98(%rsp), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
callq 0x695c
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 0x695c
leaq 0x1d0(%rsp), %rax
movups 0x10(%rax), %xmm0
movups 0x20(%rax), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
callq 0x695c
decl %ebp
jne 0x5449
movq %r15, %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 0x57b4
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x32d0
movq 0x180(%rsp), %rdi
leaq 0x190(%rsp), %rax
cmpq %rax, %rdi
je 0x57d9
movq 0x190(%rsp), %rsi
incq %rsi
callq 0x32d0
incq %r13
cmpl %r13d, 0xac(%rsp)
jne 0x4c92
movq 0x110(%rsp), %rdi
leaq 0x120(%rsp), %rax
cmpq %rax, %rdi
je 0x580f
movq 0x120(%rsp), %rsi
incq %rsi
callq 0x32d0
movq 0x208(%rsp), %rdi
leaq 0x218(%rsp), %rax
cmpq %rax, %rdi
movq 0x290(%rsp), %r14
je 0x583c
movq 0x218(%rsp), %rsi
incq %rsi
callq 0x32d0
movq 0x228(%rsp), %rdi
leaq 0x238(%rsp), %rax
cmpq %rax, %rdi
je 0x5861
movq 0x238(%rsp), %rsi
incq %rsi
callq 0x32d0
addq $0x20, %r14
cmpq 0x1a8(%rsp), %r14
jne 0x4b6e
leaq 0x1a0(%rsp), %rdi
callq 0x5cc0
xorl %eax, %eax
addq $0x4a8, %rsp            # imm = 0x4A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x8735(%rip), %rdi      # 0xdfd0
leaq 0x47d3(%rip), %rsi      # 0xa075
movl $0x1b, %edx
callq 0x3310
movq 0x871d(%rip), %rdi      # 0xdfd0
callq 0x3150
movl $0x1, %edi
callq 0x3340
callq 0x473a
jmp 0x58b8
jmp 0x58d9
movq %rax, %rbx
jmp 0x5b9a
jmp 0x5902
jmp 0x58d9
jmp 0x58d9
movq %rax, %rbx
jmp 0x5be4
movq %rax, %rbx
movq 0x2a8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x5be4
movq 0x2b8(%rsp), %rsi
jmp 0x5bdc
movq %rax, %rbx
jmp 0x5bbf
jmp 0x5a5e
jmp 0x5af3
jmp 0x5a66
movq %rax, %rbx
jmp 0x5a2f
movq %rax, %rbx
jmp 0x5a18
movq %rax, %rbx
jmp 0x59fc
movq %rax, %rbx
jmp 0x59d7
movq %rax, %rbx
jmp 0x59b2
movq %rax, %rbx
jmp 0x598d
movq %rax, %rbx
jmp 0x5968
movq %rax, %rbx
movq 0x2a8(%rsp), %rdi
cmpq %r14, %rdi
je 0x5968
movq 0x2b8(%rsp), %rsi
incq %rsi
callq 0x32d0
movq 0xb0(%rsp), %rdi
leaq 0xc0(%rsp), %rax
cmpq %rax, %rdi
je 0x598d
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x32d0
movq 0x1c0(%rsp), %rdi
leaq 0x1d0(%rsp), %rax
cmpq %rax, %rdi
je 0x59b2
movq 0x1d0(%rsp), %rsi
incq %rsi
callq 0x32d0
movq 0x130(%rsp), %rdi
leaq 0x140(%rsp), %rax
cmpq %rax, %rdi
je 0x59d7
movq 0x140(%rsp), %rsi
incq %rsi
callq 0x32d0
movq 0xd0(%rsp), %rdi
leaq 0xe0(%rsp), %rax
cmpq %rax, %rdi
je 0x59fc
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x32d0
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x5a18
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x32d0
movq 0x68(%rsp), %rdi
cmpq %rbp, %rdi
je 0x5a2f
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x32d0
movq 0xf0(%rsp), %rdi
leaq 0x100(%rsp), %rax
cmpq %rax, %rdi
je 0x5a69
movq 0x100(%rsp), %rsi
incq %rsi
callq 0x32d0
jmp 0x5a69
movq %rax, %rbx
jmp 0x5b50
movq %rax, %rbx
jmp 0x5b75
movq %rax, %rbx
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0x5b75
movq 0x98(%rsp), %rsi
jmp 0x5b6d
jmp 0x5a91
movq %rax, %rbx
jmp 0x5b34
jmp 0x5af3
movq %rax, %rbx
jmp 0x5ac8
movq %rax, %rbx
movq 0x248(%rsp), %rdi
leaq 0x258(%rsp), %rax
cmpq %rax, %rdi
je 0x5ac8
movq 0x258(%rsp), %rsi
incq %rsi
callq 0x32d0
movq 0x268(%rsp), %rdi
leaq 0x278(%rsp), %rax
cmpq %rax, %rdi
je 0x5af6
movq 0x278(%rsp), %rsi
incq %rsi
callq 0x32d0
jmp 0x5af6
jmp 0x5af3
jmp 0x5af3
movq %rax, %rbx
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 0x5b50
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x32d0
movq 0x180(%rsp), %rdi
leaq 0x190(%rsp), %rax
cmpq %rax, %rdi
je 0x5b75
movq 0x190(%rsp), %rsi
incq %rsi
callq 0x32d0
movq 0x110(%rsp), %rdi
leaq 0x120(%rsp), %rax
cmpq %rax, %rdi
je 0x5b9a
movq 0x120(%rsp), %rsi
incq %rsi
callq 0x32d0
movq 0x208(%rsp), %rdi
leaq 0x218(%rsp), %rax
cmpq %rax, %rdi
je 0x5bbf
movq 0x218(%rsp), %rsi
incq %rsi
callq 0x32d0
movq 0x228(%rsp), %rdi
leaq 0x238(%rsp), %rax
cmpq %rax, %rdi
je 0x5be4
movq 0x238(%rsp), %rsi
incq %rsi
callq 0x32d0
leaq 0x1a0(%rsp), %rdi
callq 0x5cc0
movq %rbx, %rdi
callq 0x34c0
nop