// File: /workspace/github_cpp_makefile_star2_O3/statgen[P]statgen/lib/samtools-0.1.7a-hybrid/bam_plcmd.c
// Function: bam_pileup
int bam_pileup(int argc, char *argv[])
{
	int c, is_SAM = 0;
	char *fn_list = 0, *fn_fa = 0, *fn_pos = 0;
	pu_data_t *d = (pu_data_t*)calloc(1, sizeof(pu_data_t));
	d->tid = -1; d->mask = BAM_DEF_MASK;
	d->c = bam_maqcns_init();
	d->ido = bam_maqindel_opt_init();
	while ((c = getopt(argc, argv, "st:f:cT:N:r:l:im:gI:G:vM:S2a")) >= 0) {
		switch (c) {
		case 'a': d->c->is_soap = 1; break;
		case 's': d->format |= BAM_PLF_SIMPLE; break;
		case 't': fn_list = strdup(optarg); break;
		case 'l': fn_pos = strdup(optarg); break;
		case 'f': fn_fa = strdup(optarg); break;
		case 'T': d->c->theta = atof(optarg); break;
		case 'N': d->c->n_hap = atoi(optarg); break;
		case 'r': d->c->het_rate = atof(optarg); break;
		case 'M': d->c->cap_mapQ = atoi(optarg); break;
		case 'c': d->format |= BAM_PLF_CNS; break;
		case 'i': d->format |= BAM_PLF_INDEL_ONLY; break;
		case 'v': d->format |= BAM_PLF_VAR_ONLY; break;
		case 'm': d->mask = strtol(optarg, 0, 0); break;
		case 'g': d->format |= BAM_PLF_GLF; break;
		case '2': d->format |= BAM_PLF_2ND; break;
		case 'I': d->ido->q_indel = atoi(optarg); break;
		case 'G': d->ido->r_indel = atof(optarg); break;
		case 'S': is_SAM = 1; break;
		default: fprintf(stderr, "Unrecognizd option '-%c'.\n", c); return 1;
		}
	}
	if (fn_list) is_SAM = 1;
	if (optind == argc) {
		fprintf(stderr, "\n");
		fprintf(stderr, "Usage:  samtools pileup [options] <in.bam>|<in.sam>\n\n");
		fprintf(stderr, "Option: -s        simple (yet incomplete) pileup format\n");
		fprintf(stderr, "        -S        the input is in SAM\n");
		fprintf(stderr, "        -a        use the SOAPsnp model for SNP calling\n");
		fprintf(stderr, "        -2        output the 2nd best call and quality\n");
		fprintf(stderr, "        -i        only show lines/consensus with indels\n");
		fprintf(stderr, "        -m INT    filtering reads with bits in INT [%d]\n", d->mask);
		fprintf(stderr, "        -M INT    cap mapping quality at INT [%d]\n", d->c->cap_mapQ);
		fprintf(stderr, "        -t FILE   list of reference sequences (force -S)\n");
		fprintf(stderr, "        -l FILE   list of sites at which pileup is output\n");
		fprintf(stderr, "        -f FILE   reference sequence in the FASTA format\n\n");
		fprintf(stderr, "        -c        output the maq consensus sequence\n");
		fprintf(stderr, "        -v        print variants only (for -c)\n");
		fprintf(stderr, "        -g        output in the GLFv3 format (suppressing -c/-i/-s)\n");
		fprintf(stderr, "        -T FLOAT  theta in maq consensus calling model (for -c/-g) [%f]\n", d->c->theta);
		fprintf(stderr, "        -N INT    number of haplotypes in the sample (for -c/-g) [%d]\n", d->c->n_hap);
		fprintf(stderr, "        -r FLOAT  prior of a difference between two haplotypes (for -c/-g) [%f]\n", d->c->het_rate);
		fprintf(stderr, "        -G FLOAT  prior of an indel between two haplotypes (for -c/-g) [%f]\n", d->ido->r_indel);
		fprintf(stderr, "        -I INT    phred prob. of an indel in sequencing/prep. (for -c/-g) [%d]\n", d->ido->q_indel);
		fprintf(stderr, "\n");
		free(fn_list); free(fn_fa); free(d);
		return 1;
	}
	if (fn_fa) d->fai = fai_load(fn_fa);
	if (d->format & (BAM_PLF_CNS|BAM_PLF_GLF)) bam_maqcns_prepare(d->c); // consensus calling
	if (d->format & BAM_PLF_GLF) { // for glf output
		glf3_header_t *h;
		h = glf3_header_init();
		d->fp_glf = bgzf_fdopen(fileno(stdout), "w");
		glf3_header_write(d->fp_glf, h);
		glf3_header_destroy(h);
	}
	if (d->fai == 0 && (d->format & (BAM_PLF_CNS|BAM_PLF_INDEL_ONLY)))
		fprintf(stderr, "[bam_pileup] indels will not be called when -f is absent.\n");
	if (fn_fa && is_SAM && fn_list == 0) fn_list = samfaipath(fn_fa);

	{
		samfile_t *fp;
		fp = is_SAM? samopen(argv[optind], "r", fn_list) : samopen(argv[optind], "rb", 0);
		if (fp == 0 || fp->header == 0) {
			fprintf(stderr, "[bam_pileup] fail to read the header: non-exisiting file or wrong format.\n");
			return 1;
		}
		d->h = fp->header;
		if (fn_pos) d->hash = load_pos(fn_pos, d->h);
		sampileup(fp, d->mask, pileup_func, d);
		samclose(fp); // d->h will be destroyed here
	}

	// free
	if (d->format & BAM_PLF_GLF) bgzf_close(d->fp_glf);
	if (fn_pos) { // free the hash table
		khint_t k;
		for (k = kh_begin(d->hash); k < kh_end(d->hash); ++k)
			if (kh_exist(d->hash, k)) free(kh_val(d->hash, k));
		kh_destroy(64, d->hash);
	}
	free(fn_pos); free(fn_list); free(fn_fa);
	if (d->fai) fai_destroy(d->fai);
	bam_maqcns_destroy(d->c);
	free(d->ido); free(d->ref); free(d);
	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %rsi, %r15
movl %edi, %ebp
movl $0x1, %edi
movl $0x50, %esi
callq 0x3530
movq %rax, %rbx
movl $0xffffffff, 0x2c(%rax) # imm = 0xFFFFFFFF
movl $0x704, 0x38(%rax)      # imm = 0x704
xorl %r12d, %r12d
xorl %eax, %eax
callq 0x6cc5
movq %rax, 0x8(%rsp)
movq %rax, 0x8(%rbx)
xorl %eax, %eax
callq 0x7ed7
movq %rbx, 0x10(%rsp)
movq %rax, 0x18(%rsp)
movq %rax, 0x10(%rbx)
leaq 0x1a7e7(%rip), %rdx     # 0x236f0
movl %ebp, %edi
movq %r15, %rsi
callq 0x31a0
testl %eax, %eax
js 0x914a
movl $0x704, %ecx            # imm = 0x704
movq %rcx, 0x78(%rsp)
leaq 0x1a6b4(%rip), %rbx     # 0x235e0
leaq 0x1a7bd(%rip), %r13     # 0x236f0
leaq 0x1a6de(%rip), %r14     # 0x23618
movl $0x0, 0x28(%rsp)
movq $0x0, 0x20(%rsp)
movq $0x0, 0x58(%rsp)
movq $0x0, 0x38(%rsp)
leal -0x61(%rax), %ecx
cmpl $0x15, %ecx
ja 0x8f7f
movslq (%r14,%rcx,4), %rcx
addq %r14, %rcx
jmpq *%rcx
movq 0x8(%rsp), %rax
movl $0x1, 0x10(%rax)
jmp 0x90eb
leal -0x47(%rax), %ecx
cmpl $0xd, %ecx
ja 0x8fad
movslq (%rbx,%rcx,4), %rcx
addq %rbx, %rcx
jmpq *%rcx
movq 0x25049(%rip), %rax     # 0x2dfe0
movq (%rax), %rdi
callq 0x3230
cvtsd2ss %xmm0, %xmm0
movq 0x18(%rsp), %rax
jmp 0x90b5
cmpl $0x32, %eax
jne 0x9c95
orl $0x20, %r12d
jmp 0x9056
movq 0x2501a(%rip), %rax     # 0x2dfe0
movq (%rax), %rdi
callq 0x34b0
movq %rax, 0x20(%rsp)
jmp 0x90eb
orl $0x4, %r12d
jmp 0x9056
movq 0x24ffb(%rip), %rax     # 0x2dfe0
movq (%rax), %rdi
callq 0x3230
cvtsd2ss %xmm0, %xmm0
movq 0x8(%rsp), %rax
movss %xmm0, (%rax)
jmp 0x90eb
movq 0x24fda(%rip), %rax     # 0x2dfe0
movq (%rax), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x3400
movq %rax, %rcx
movq 0x10(%rsp), %rax
movq %rcx, 0x78(%rsp)
movl %ecx, 0x38(%rax)
jmp 0x90eb
orl $0x2, %r12d
jmp 0x9056
orl $0x10, %r12d
jmp 0x9056
orl $0x8, %r12d
jmp 0x9056
movq 0x24fa0(%rip), %rax     # 0x2dfe0
movq (%rax), %rdi
callq 0x34b0
movq %rax, 0x38(%rsp)
jmp 0x90eb
orl $0x1, %r12d
movq 0x10(%rsp), %rax
movl %r12d, 0x28(%rax)
jmp 0x90eb
movq 0x24f75(%rip), %rax     # 0x2dfe0
movq (%rax), %rdi
callq 0x34b0
movq %rax, 0x58(%rsp)
jmp 0x90eb
movl $0x1, 0x28(%rsp)
jmp 0x90eb
movq 0x24f55(%rip), %rax     # 0x2dfe0
movq (%rax), %rdi
callq 0x3410
movq 0x8(%rsp), %rcx
movl %eax, 0x8(%rcx)
jmp 0x90eb
movq 0x24f3c(%rip), %rax     # 0x2dfe0
movq (%rax), %rdi
callq 0x3230
cvtsd2ss %xmm0, %xmm0
movq 0x8(%rsp), %rax
movss %xmm0, 0x4(%rax)
jmp 0x90eb
movq 0x24f1d(%rip), %rax     # 0x2dfe0
movq (%rax), %rdi
callq 0x3410
movq 0x8(%rsp), %rcx
movl %eax, 0xc(%rcx)
jmp 0x90eb
movq 0x24f04(%rip), %rax     # 0x2dfe0
movq (%rax), %rdi
callq 0x3410
movq 0x18(%rsp), %rcx
movl %eax, (%rcx)
movl %ebp, %edi
movq %r15, %rsi
movq %r13, %rdx
callq 0x31a0
testl %eax, %eax
jns 0x8f5d
cmpl $0x0, 0x28(%rsp)
setne %bl
cmpq $0x0, 0x20(%rsp)
sete %r14b
movq 0x24e9f(%rip), %rax     # 0x2dfb8
cmpl %ebp, (%rax)
je 0x9a67
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
setne %bpl
je 0x9187
callq 0x1b819
movq 0x10(%rsp), %rcx
movq %rax, 0x18(%rcx)
movl 0x28(%rcx), %r12d
testq %rax, %rax
sete %r13b
jmp 0x9193
movq 0x24e67(%rip), %rax     # 0x2dfb8
movq $0x0, 0x20(%rsp)
cmpl %ebp, (%rax)
je 0x9a73
movb $0x1, %r13b
movb $0x1, %r14b
movq $0x0, 0x8(%rsp)
movq $0x0, 0x58(%rsp)
movq $0x0, 0x38(%rsp)
xorl %ebp, %ebp
jmp 0x91ae
movq $0x0, 0x38(%rsp)
movb $0x1, %r13b
movq %rbx, 0x8(%rsp)
testb $0xa, %r12b
je 0x91ae
movq 0x10(%rsp), %rbx
movq 0x8(%rbx), %rdi
callq 0x6d11
jmp 0x91b3
movq 0x10(%rsp), %rbx
movl 0x28(%rbx), %r12d
testb $0x8, %r12b
je 0x9200
xorl %eax, %eax
callq 0x1a3c0
movq %rax, %rbx
movq 0x24e2a(%rip), %rax     # 0x2dff8
movq (%rax), %rdi
callq 0x3030
leaq 0x1a1d0(%rip), %rsi     # 0x233ad
movl %eax, %edi
callq 0x101a3
movq 0x10(%rsp), %rcx
movq %rax, 0x48(%rcx)
movq %rax, %rdi
movq %rbx, %rsi
callq 0x1a474
movq %rbx, %rdi
callq 0x1a45e
testb $0x6, %r12b
sete %al
xorb $0x1, %r13b
orb %al, %r13b
je 0x9a5d
andb %r14b, %bpl
movq 0x8(%rsp), %rax
andb %al, %bpl
cmpb $0x1, %bpl
jne 0x9247
movq 0x38(%rsp), %rdi
callq 0x1525b
movq %rax, %r13
movq 0x24d7f(%rip), %rax     # 0x2dfb8
movl (%rax), %eax
movq 0x10(%rsp), %r12
movq 0x58(%rsp), %rbp
jmp 0x926b
notb %r14b
orb %al, %r14b
movq 0x24d64(%rip), %rax     # 0x2dfb8
movl (%rax), %eax
testb $0x1, %r14b
movq 0x10(%rsp), %r12
movq 0x58(%rsp), %rbp
je 0x9285
movq 0x20(%rsp), %r13
cltq
movq (%r15,%rax,8), %rdi
leaq 0x1de4f(%rip), %rsi     # 0x270c7
movq %r13, %rdx
callq 0x14d06
movq %rax, %r14
jmp 0x92a1
cltq
movq (%r15,%rax,8), %rdi
leaq 0x1a955(%rip), %rsi     # 0x23be7
xorl %edx, %edx
callq 0x14d06
movq %rax, %r14
movq 0x20(%rsp), %r13
testq %r14, %r14
je 0x9a53
movq 0x10(%r14), %rdi
testq %rdi, %rdi
je 0x9a53
movq %rdi, (%r12)
testq %rbp, %rbp
je 0x9949
movq %rdi, 0x98(%rsp)
callq 0x11941
leaq 0x8c(%rsp), %rbx
movq %rbp, %rdi
movq %rbx, %rsi
callq 0x13560
movq %rax, 0x50(%rsp)
movl $0x1, %edi
movl $0x28, %esi
callq 0x3530
movq %rax, 0x40(%rsp)
movl $0x0, 0x88(%rsp)
movq $0x0, 0x30(%rsp)
cmpl $0x0, (%rbx)
jle 0x992b
movq %r14, 0x90(%rsp)
movq %r13, 0x20(%rsp)
movq $0x0, 0x18(%rsp)
movq $0x0, 0x8(%rsp)
xorl %ebp, %ebp
xorl %r12d, %r12d
movq $0x0, 0x68(%rsp)
xorl %r14d, %r14d
xorl %ebx, %ebx
movl $0x0, 0x4c(%rsp)
xorl %ecx, %ecx
movq 0x50(%rsp), %r13
movq %rcx, 0x78(%rsp)
movq (%r13,%rcx,8), %r15
movq %r15, %rdi
xorl %esi, %esi
leaq 0x88(%rsp), %rdx
leaq 0x30(%rsp), %rcx
callq 0x110fe
cmpl $0x2, %eax
jge 0x9388
movl %ebx, %edx
jmp 0x98aa
movq %rax, 0xa0(%rsp)
movq 0x30(%rsp), %rax
movslq (%rax), %rsi
addq %r15, %rsi
movq 0x98(%rsp), %rdi
callq 0x11e22
movq %rax, 0x28(%rsp)
testl %eax, %eax
js 0x98c7
movq 0x30(%rsp), %rax
movslq 0x4(%rax), %rdi
movq %r15, 0x80(%rsp)
addq %r15, %rdi
callq 0x3410
movl %eax, %edi
cmpl %ebx, 0x4c(%rsp)
jae 0x93db
jmp 0x9640
movl %r12d, %r8d
movq 0x68(%rsp), %rax
addl %eax, %eax
cmpl %r14d, %eax
movl $0x0, %eax
sbbl %eax, %eax
orl $0x1, %eax
addl %r14d, %eax
movl $0x21, %ecx
leaq 0x1a26f(%rip), %rsi     # 0x23670
leal -0x2(%rcx), %edx
decl %ecx
cmpl %eax, (%rsi,%rdx,4)
ja 0x9401
movl %ecx, %eax
movl (%rsi,%rax,4), %r12d
cvtsi2sd %r12, %xmm0
mulsd 0x1a1b2(%rip), %xmm0    # 0x235d0
addsd 0x1a0d2(%rip), %xmm0    # 0x234f8
cvttsd2si %xmm0, %rax
cmpl %eax, 0x68(%rsp)
jae 0x963d
movl %edi, 0x70(%rsp)
movq %rax, 0x60(%rsp)
movl %r12d, %eax
shrl $0x4, %eax
leaq 0x4(,%rax,4), %rbx
movq %rbx, %rdi
callq 0x31d0
movq %rax, %rbp
movq %rax, %rdi
movl $0xaa, %esi
movq %rbx, %rdx
callq 0x3060
cmpl %r12d, %r14d
jae 0x94a4
leaq (,%r12,8), %r15
movq 0x8(%rsp), %rdi
movq %r15, %rsi
callq 0x3610
movq 0x40(%rsp), %rbx
movq %rax, 0x8(%rsp)
movq %rax, 0x18(%rbx)
movq 0x20(%rbx), %rdi
movq %r15, %rsi
callq 0x3610
movq %rax, 0x18(%rsp)
movq %rax, 0x20(%rbx)
testl %r14d, %r14d
je 0x960e
leal -0x1(%r12), %edi
movq 0x40(%rsp), %rax
movq 0x10(%rax), %r8
movl %r14d, %r13d
xorl %r10d, %r10d
movl %r10d, %eax
shrl $0x4, %eax
movl (%r8,%rax,4), %edx
leal (%r10,%r10), %ecx
andl $0x1e, %ecx
movl %edx, %esi
shrl %cl, %esi
testb $0x3, %sil
jne 0x95c5
movq 0x8(%rsp), %rsi
movq (%rsi,%r10,8), %rbx
movq 0x18(%rsp), %rsi
movq (%rsi,%r10,8), %r11
btsl %ecx, %edx
movl %edx, (%r8,%rax,4)
movq %rbx, %rcx
shrq $0x21, %rcx
movl %ebx, %eax
shll $0xb, %eax
xorl %eax, %ecx
xorl %ebx, %ecx
movl %ecx, %eax
xorl %edx, %edx
divl %r12d
movl %edx, %esi
movl %ecx, %eax
xorl %edx, %edx
divl %edi
movl %esi, %eax
movl %esi, %ecx
addl %esi, %ecx
andl $0x1e, %ecx
movl $0x2, %r15d
shll %cl, %r15d
shrl $0x4, %eax
movl (%rbp,%rax,4), %r9d
testl %r9d, %r15d
jne 0x9565
incl %edx
addl %edx, %esi
xorl %eax, %eax
cmpl %r12d, %esi
jb 0x9545
movl %r12d, %eax
subl %eax, %esi
movl %esi, %eax
shrl $0x4, %eax
movl (%rbp,%rax,4), %r9d
leal (%rsi,%rsi), %ecx
andl $0x1e, %ecx
movl $0x2, %r15d
shll %cl, %r15d
testl %r9d, %r15d
je 0x9539
notl %r15d
andl %r9d, %r15d
movl %r15d, (%rbp,%rax,4)
movl %esi, %edx
cmpl %r14d, %esi
jae 0x95b3
movl (%r8,%rax,4), %esi
movl %esi, %r9d
shrl %cl, %r9d
testb $0x3, %r9b
jne 0x95b3
movq 0x8(%rsp), %r15
movq (%r15,%rdx,8), %r9
movq %rbx, (%r15,%rdx,8)
movq 0x18(%rsp), %rbx
movq (%rbx,%rdx,8), %r15
movq %r11, (%rbx,%rdx,8)
btsl %ecx, %esi
movl %esi, (%r8,%rax,4)
movq %r9, %rbx
movq %r15, %r11
jmp 0x94f9
movq 0x8(%rsp), %rax
movq %rbx, (%rax,%rdx,8)
movq 0x18(%rsp), %rax
movq %r11, (%rax,%rdx,8)
incq %r10
cmpq %r13, %r10
jne 0x94c1
cmpl %r12d, %r14d
jbe 0x960e
leaq (,%r12,8), %r14
movq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0x3610
movq 0x40(%rsp), %rbx
movq %rax, 0x8(%rsp)
movq %rax, 0x18(%rbx)
movq 0x20(%rbx), %rdi
movq %r14, %rsi
callq 0x3610
movq %rax, 0x18(%rsp)
movq %rax, 0x20(%rbx)
movq 0x40(%rsp), %rbx
movq 0x10(%rbx), %rdi
callq 0x32c0
movq %rbp, 0x10(%rbx)
movl %r12d, (%rbx)
movq 0x68(%rsp), %rax
movl %eax, 0x8(%rbx)
movq 0x60(%rsp), %rcx
movl %ecx, 0xc(%rbx)
movl %eax, 0x4c(%rsp)
movl 0x70(%rsp), %edi
jmp 0x9647
movl %r8d, %r12d
movl %ebx, %eax
movq %rax, 0x60(%rsp)
movq 0x28(%rsp), %rbx
shlq $0x20, %rbx
decl %edi
movslq %edi, %rax
orq %rax, %rbx
movq %rbx, %rdi
shrq $0x21, %rdi
movl %eax, %ecx
shll $0xb, %ecx
xorl %ecx, %edi
xorl %eax, %edi
movl %edi, %eax
xorl %edx, %edx
divl %r12d
movl %edx, %esi
movl %edx, %eax
shrl $0x4, %eax
movl (%rbp,%rax,4), %eax
leal (%rsi,%rsi), %ecx
shrl %cl, %eax
testb $0x2, %al
movl $0x0, %r10d
je 0x9695
movl %esi, %eax
movq 0x50(%rsp), %r13
jmp 0x971c
leal -0x1(%r12), %ecx
movl %edi, %eax
xorl %edx, %edx
divl %ecx
incl %edx
movl %esi, %edi
movl %r12d, %eax
movq 0x50(%rsp), %r13
movl %edi, %ecx
shrl $0x4, %ecx
movl (%rbp,%rcx,4), %r8d
leal (%rdi,%rdi), %ecx
andl $0x1e, %ecx
movl %r8d, %r9d
shrl %cl, %r9d
testb $0x2, %r9b
jne 0x9701
testb $0x1, %r9b
jne 0x96dc
movl %edi, %r9d
movq 0x8(%rsp), %r11
cmpq %rbx, (%r11,%r9,8)
je 0x9701
btl %ecx, %r8d
cmovbl %edi, %eax
addl %edx, %edi
cmpl %r12d, %edi
movl %r12d, %ecx
cmovbl %r10d, %ecx
subl %ecx, %edi
cmpl %esi, %edi
jne 0x96ac
movb $0x1, %cl
movl %r12d, %edx
cmpl %r12d, %eax
je 0x970f
jmp 0x971c
shrl %cl, %r8d
testb $0x2, %r8b
sete %cl
movl %eax, %edx
movl %edi, %esi
cmpl %r12d, %edx
cmovel %esi, %edx
testb %cl, %cl
cmovnel %esi, %edx
movl %edx, %eax
movl %eax, %edx
shrl $0x4, %edx
movl (%rbp,%rdx,4), %esi
leal (%rax,%rax), %ecx
andl $0x1e, %ecx
movl %esi, %edi
shrl %cl, %edi
testb $0x2, %dil
jne 0x976e
testb $0x1, %dil
je 0x98f6
movl $0x3, %edi
shll %cl, %edi
movl %eax, %r8d
movq 0x8(%rsp), %rax
movq %rbx, (%rax,%r8,8)
notl %edi
andl %edi, %esi
movl %esi, (%rbp,%rdx,4)
movq 0x40(%rsp), %rax
movl 0x4(%rax), %edx
incl %edx
movq %rdx, 0x68(%rsp)
movl %edx, 0x4(%rax)
jmp 0x97a7
movl %eax, %r8d
movq 0x8(%rsp), %rax
movq %rbx, (%rax,%r8,8)
movl $0x3, %eax
shll %cl, %eax
notl %eax
andl %eax, %esi
movl %esi, (%rbp,%rdx,4)
movq 0x40(%rsp), %rax
movl 0x4(%rax), %edx
movl 0x8(%rax), %esi
incl %edx
movq %rdx, 0x68(%rsp)
movl %edx, 0x4(%rax)
incl %esi
movl %esi, 0x4c(%rsp)
movl %esi, 0x8(%rax)
movq 0x18(%rsp), %rax
movq $0x0, (%rax,%r8,8)
movq 0xa0(%rsp), %r13
cmpl $0x2, %r13d
movq 0x80(%rsp), %r14
je 0x9895
movq %r8, 0x70(%rsp)
movq 0x30(%rsp), %rax
movq %rax, 0x28(%rsp)
cmpl $0x4, %r13d
movl $0x3, %eax
cmovll %eax, %r13d
movl $0x2, %ebx
movq 0x28(%rsp), %rax
movslq (%rax,%rbx,4), %r15
movzbl (%r14,%r15), %eax
cmpl $0x2d, %eax
je 0x9807
cmpl $0x2b, %eax
jne 0x982e
callq 0x3310
movq (%rax), %rax
movsbq 0x1(%r14,%r15), %rcx
testb $0x8, 0x1(%rax,%rcx,2)
je 0x982e
incq %rbx
cmpq %rbx, %r13
jne 0x97ef
movq %r13, %rbx
movq 0x70(%rsp), %r15
jmp 0x983c
cmpq $0x3, %rbx
movq 0x70(%rsp), %r15
jb 0x9895
movl %ebx, %r13d
leal -0x1(%r13), %edi
movl $0x4, %esi
callq 0x3530
movq %rax, %rcx
movq 0x18(%rsp), %rax
movq %rcx, (%rax,%r15,8)
addl $-0x2, %r13d
movq %rcx, 0x28(%rsp)
movl %r13d, (%rcx)
movq 0x30(%rsp), %r15
addq $-0x2, %rbx
xorl %r13d, %r13d
movq 0x80(%rsp), %r14
movslq 0x8(%r15,%r13,4), %rdi
addq %r14, %rdi
callq 0x3410
movq 0x28(%rsp), %rcx
movl %eax, 0x4(%rcx,%r13,4)
incq %r13
cmpq %r13, %rbx
jne 0x9876
movq %r14, %rdi
callq 0x32c0
movl %r12d, %r14d
movq 0x50(%rsp), %r13
movq 0x60(%rsp), %rdx
movq 0x78(%rsp), %rcx
incq %rcx
movslq 0x8c(%rsp), %rax
movl %edx, %ebx
cmpq %rax, %rcx
jl 0x935b
jmp 0x990d
movq 0x2471a(%rip), %rax     # 0x2dfe8
movq (%rax), %rdi
movq 0x30(%rsp), %rax
movslq (%rax), %rax
addq %rax, %r15
leaq 0x1a352(%rip), %rsi     # 0x23c35
movq %r15, %rdx
xorl %eax, %eax
callq 0x3630
movl %ebx, %edx
movq 0x50(%rsp), %r13
jmp 0x98aa
leaq 0x30(%rsp), %rdi
movq 0x80(%rsp), %rsi
callq 0x36e8
movl %r12d, %r14d
jmp 0x98a5
movq 0x30(%rsp), %rbx
movq 0x10(%rsp), %r12
movq 0x20(%rsp), %r13
movq 0x58(%rsp), %rbp
movq 0x90(%rsp), %r14
jmp 0x992d
xorl %ebx, %ebx
movq 0x50(%rsp), %rdi
callq 0x32c0
movq %rbx, %rdi
callq 0x32c0
movq 0x40(%rsp), %rax
movq %rax, 0x20(%r12)
movl 0x38(%r12), %esi
leaq 0x35c(%rip), %rdx       # 0x9cb1
movq %r14, %rdi
movq %r12, %rcx
callq 0x151cf
movq %r14, %rdi
callq 0x150dc
testb $0x8, 0x28(%r12)
je 0x997a
movq 0x48(%r12), %rdi
callq 0x10d25
testq %rbp, %rbp
je 0x99f0
movq 0x20(%r12), %rbx
movl (%rbx), %eax
testl %eax, %eax
je 0x99cd
xorl %r14d, %r14d
xorl %r15d, %r15d
movq 0x10(%rbx), %rcx
movq %r15, %rdx
shrq $0x4, %rdx
movl (%rcx,%rdx,4), %edx
movl %r14d, %ecx
andb $0x1e, %cl
shrl %cl, %edx
testb $0x3, %dl
jne 0x99bf
movq 0x20(%rbx), %rax
movq (%rax,%r15,8), %rdi
callq 0x32c0
movq 0x20(%r12), %rbx
movl (%rbx), %eax
incq %r15
movl %eax, %ecx
addl $0x2, %r14d
cmpq %rcx, %r15
jb 0x9990
movq 0x18(%rbx), %rdi
callq 0x32c0
movq 0x10(%rbx), %rdi
callq 0x32c0
movq 0x20(%rbx), %rdi
callq 0x32c0
movq %rbx, %rdi
callq 0x32c0
movq %rbp, %rdi
callq 0x32c0
movq %r13, %rdi
callq 0x32c0
movq 0x38(%rsp), %rdi
callq 0x32c0
movq 0x18(%r12), %rdi
testq %rdi, %rdi
je 0x9a19
callq 0x1b2fd
movq 0x8(%r12), %rdi
callq 0x743e
movq 0x10(%r12), %rdi
callq 0x32c0
movq 0x40(%r12), %rdi
callq 0x32c0
movq %r12, %rdi
callq 0x32c0
xorl %eax, %eax
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x3719
jmp 0x9c8b
callq 0x36cc
jmp 0x9214
movq 0x38(%rsp), %r14
movq 0x78(%rsp), %r15
jmp 0x9a7c
movl $0x704, %r15d           # imm = 0x704
xorl %r14d, %r14d
movq 0x24565(%rip), %rbx     # 0x2dfe8
movq (%rbx), %rsi
movl $0xa, %edi
callq 0x3290
movq (%rbx), %rcx
leaq 0x19c8e(%rip), %rdi     # 0x23728
movl $0x35, %esi
movl $0x1, %edx
callq 0x3600
movq (%rbx), %rcx
leaq 0x19cab(%rip), %rdi     # 0x2375e
movl $0x38, %esi
movl $0x1, %edx
callq 0x3600
movq (%rbx), %rcx
leaq 0x19ccb(%rip), %rdi     # 0x23797
movl $0x26, %esi
movl $0x1, %edx
callq 0x3600
movq (%rbx), %rcx
leaq 0x19cd9(%rip), %rdi     # 0x237be
movl $0x38, %esi
movl $0x1, %edx
callq 0x3600
movq (%rbx), %rcx
leaq 0x19cf9(%rip), %rdi     # 0x237f7
movl $0x37, %esi
movl $0x1, %edx
callq 0x3600
movq (%rbx), %rcx
leaq 0x19d18(%rip), %rdi     # 0x2382f
movl $0x38, %esi
movl $0x1, %edx
callq 0x3600
movq (%rbx), %rdi
leaq 0x19d38(%rip), %rsi     # 0x23868
movl %r15d, %edx
xorl %eax, %eax
callq 0x3630
movq (%rbx), %rdi
movq 0x8(%rsp), %r15
movl 0xc(%r15), %edx
leaq 0x19d54(%rip), %rsi     # 0x238a1
xorl %eax, %eax
callq 0x3630
movq (%rbx), %rcx
leaq 0x19d76(%rip), %rdi     # 0x238d4
movl $0x39, %esi
movl $0x1, %edx
callq 0x3600
movq (%rbx), %rcx
leaq 0x19d97(%rip), %rdi     # 0x2390e
movl $0x3a, %esi
movl $0x1, %edx
callq 0x3600
movq (%rbx), %rcx
leaq 0x19db9(%rip), %rdi     # 0x23949
movl $0x3a, %esi
movl $0x1, %edx
callq 0x3600
movq (%rbx), %rcx
leaq 0x19ddb(%rip), %rdi     # 0x23984
movl $0x34, %esi
movl $0x1, %edx
callq 0x3600
movq (%rbx), %rcx
leaq 0x19df7(%rip), %rdi     # 0x239b9
movl $0x2f, %esi
movl $0x1, %edx
callq 0x3600
movq (%rbx), %rcx
leaq 0x19e0e(%rip), %rdi     # 0x239e9
movl $0x44, %esi
movl $0x1, %edx
callq 0x3600
movq (%rbx), %rdi
cvtss2sd 0x4(%r15), %xmm0
leaq 0x19e34(%rip), %rsi     # 0x23a2e
movb $0x1, %al
callq 0x3630
movq (%rbx), %rdi
movl 0x8(%r15), %edx
leaq 0x19e68(%rip), %rsi     # 0x23a77
xorl %eax, %eax
callq 0x3630
movq (%rbx), %rdi
xorps %xmm0, %xmm0
cvtss2sd (%r15), %xmm0
leaq 0x19e96(%rip), %rsi     # 0x23abe
movb $0x1, %al
callq 0x3630
movq (%rbx), %rdi
movq 0x18(%rsp), %r15
xorps %xmm0, %xmm0
cvtss2sd 0x4(%r15), %xmm0
leaq 0x19ec8(%rip), %rsi     # 0x23b0f
movb $0x1, %al
callq 0x3630
movq (%rbx), %rdi
movl (%r15), %edx
leaq 0x19f01(%rip), %rsi     # 0x23b5c
xorl %eax, %eax
callq 0x3630
movq (%rbx), %rsi
movl $0xa, %edi
callq 0x3290
movq 0x20(%rsp), %rdi
callq 0x32c0
movq %r14, %rdi
callq 0x32c0
movq 0x10(%rsp), %rdi
callq 0x32c0
movl $0x1, %eax
jmp 0x9a41
movq 0x2434c(%rip), %rcx     # 0x2dfe8
movq (%rcx), %rdi
leaq 0x19a67(%rip), %rsi     # 0x2370d
movl %eax, %edx
xorl %eax, %eax
callq 0x3630
jmp 0x9c8b