// File: /workspace/github_c_makefile_star2_O1/xiongxu[P]bam2bedGraph2/samtools-0.1.19/bcftools/prob1.c
// Function: bcf_p1_cal
int bcf_p1_cal(const bcf1_t *b, int do_contrast, bcf_p1aux_t *ma, bcf_p1rst_t *rst)
{
	int i, k;
	long double sum = 0.;
	ma->is_indel = bcf_is_indel(b);
	rst->perm_rank = -1;
	// set PL and PL_len
	for (i = 0; i < b->n_gi; ++i) {
		if (b->gi[i].fmt == bcf_str2int("PL", 2)) {
			ma->PL = (uint8_t*)b->gi[i].data;
			ma->PL_len = b->gi[i].len;
			break;
		}
	}
	if (i == b->n_gi) return -1; // no PL
	if (b->n_alleles < 2) return -1; // FIXME: find a better solution
	// 
	rst->rank0 = cal_pdg(b, ma);
	rst->f_exp = mc_cal_afs(ma, &rst->p_ref_folded, &rst->p_var_folded);
	rst->p_ref = ma->afs1[ma->M];
	for (k = 0, sum = 0.; k < ma->M; ++k)
		sum += ma->afs1[k];
	rst->p_var = (double)sum;
	{ // compute the allele count
		double max = -1;
		rst->ac = -1;
		for (k = 0; k <= ma->M; ++k)
			if (max < ma->z[k]) max = ma->z[k], rst->ac = k;
		rst->ac = ma->M - rst->ac;
	}
	// calculate f_flat and f_em
	for (k = 0, sum = 0.; k <= ma->M; ++k)
		sum += (long double)ma->z[k];
	rst->f_flat = 0.;
	for (k = 0; k <= ma->M; ++k) {
		double p = ma->z[k] / sum;
		rst->f_flat += k * p;
	}
	rst->f_flat /= ma->M;
	{ // estimate equal-tail credible interval (95% level)
		int l, h;
		double p;
		for (i = 0, p = 0.; i <= ma->M; ++i)
			if (p + ma->afs1[i] > 0.025) break;
			else p += ma->afs1[i];
		l = i;
		for (i = ma->M, p = 0.; i >= 0; --i)
			if (p + ma->afs1[i] > 0.025) break;
			else p += ma->afs1[i];
		h = i;
		rst->cil = (double)(ma->M - h) / ma->M; rst->cih = (double)(ma->M - l) / ma->M;
	}
	if (ma->n1 > 0) { // compute LRT
		double max0, max1, max2;
		for (k = 0, max0 = -1; k <= ma->M; ++k)
			if (max0 < ma->z[k]) max0 = ma->z[k];
		for (k = 0, max1 = -1; k <= ma->n1 * 2; ++k)
			if (max1 < ma->z1[k]) max1 = ma->z1[k];
		for (k = 0, max2 = -1; k <= ma->M - ma->n1 * 2; ++k)
			if (max2 < ma->z2[k]) max2 = ma->z2[k];
		rst->lrt = log(max1 * max2 / max0);
		rst->lrt = rst->lrt < 0? 1 : kf_gammaq(.5, rst->lrt);
	} else rst->lrt = -1.0;
	rst->cmp[0] = rst->cmp[1] = rst->cmp[2] = rst->p_chi2 = -1.0;
	if (do_contrast && rst->p_var > 0.5) // skip contrast2() if the locus is a strong non-variant
		rst->p_chi2 = contrast2(ma, rst->cmp);
	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x188, %rsp            # imm = 0x188
movq %rcx, %r14
movq %rdx, %rbx
movl %esi, %r15d
movq %rdi, %r12
callq 0xcef4
movl %eax, 0xc(%rbx)
movl $0xffffffff, 0x4(%r14)  # imm = 0xFFFFFFFF
movl 0x48(%r12), %r8d
testl %r8d, %r8d
jle 0x12d6f
movq 0x50(%r12), %rdx
addq $0x8, %rdx
xorl %ecx, %ecx
cmpl $0x504c, -0x8(%rdx)     # imm = 0x504C
je 0x12d73
incq %rcx
addq $0x10, %rdx
cmpq %rcx, %r8
jne 0x12d55
movl %r8d, %ecx
jmp 0x12d86
xorl %ecx, %ecx
jmp 0x12d86
movq (%rdx), %rdi
movq %rdi, 0xa0(%rbx)
movl -0x4(%rdx), %edx
movl %edx, 0xa8(%rbx)
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpl %r8d, %ecx
je 0x1455d
cmpl $0x2, 0x58(%r12)
jl 0x1455d
movq %r12, %rdi
movq %rbx, %rsi
movq %rbx, 0x10(%rsp)
callq 0x1456f
movl %eax, (%r14)
xorl %eax, %eax
movq 0x10(%rsp), %rcx
cmpl $0x0, 0xc(%rcx)
setne %al
movq 0x10(%rsp), %rcx
movq 0x28(%rcx,%rax,8), %rbx
movq 0x10(%rsp), %rax
movq 0x98(%rax), %rdi
movq 0x10(%rsp), %rax
movslq 0x4(%rax), %rax
leaq 0x8(,%rax,8), %rdx
xorl %esi, %esi
callq 0x21f0
movq 0x10(%rsp), %rdi
movl 0x8(%rdi), %edx
testl %edx, %edx
jle 0x12f32
movl (%rdi), %eax
cmpl %eax, %edx
jge 0x12f32
addl %eax, %eax
cmpl %eax, 0x4(%rdi)
jne 0x12f32
movq 0x48(%rdi), %rdi
shlq $0x4, %rdx
orq $0x8, %rdx
xorl %esi, %esi
callq 0x21f0
movq 0x10(%rsp), %rax
movq 0x50(%rax), %rdi
movq 0x10(%rsp), %rax
movslq (%rax), %rdx
movq 0x10(%rsp), %rax
movslq 0x8(%rax), %rax
subq %rax, %rdx
shlq $0x4, %rdx
orq $0x8, %rdx
xorl %esi, %esi
callq 0x21f0
xorps %xmm0, %xmm0
movq 0x10(%rsp), %rax
movups %xmm0, 0x80(%rax)
movq 0x10(%rsp), %rax
movl 0x8(%rax), %esi
movq 0x10(%rsp), %rdi
callq 0x146e0
movq 0x10(%rsp), %rax
movsd 0x78(%rax), %xmm0
movq 0x10(%rsp), %rax
movsd %xmm0, 0x88(%rax)
movq 0x10(%rsp), %rax
movq 0x38(%rax), %rsi
movq 0x10(%rsp), %rax
movq 0x50(%rax), %rdi
movq 0x10(%rsp), %rax
movslq (%rax), %rdx
movq 0x10(%rsp), %rax
movslq 0x8(%rax), %rax
subq %rax, %rdx
shlq $0x4, %rdx
orq $0x8, %rdx
callq 0x22e0
movq 0x10(%rsp), %rdi
xorl %esi, %esi
callq 0x146e0
movq 0x10(%rsp), %rax
movsd 0x80(%rax), %xmm0
movq 0x10(%rsp), %rax
addsd 0x88(%rax), %xmm0
movq 0x10(%rsp), %rax
movsd 0x78(%rax), %xmm1
subsd %xmm0, %xmm1
movsd %xmm1, 0x180(%rsp)
fldl 0x180(%rsp)
fstpt (%rsp)
callq 0x2530
movq 0x10(%rsp), %r11
movl 0x4(%r11), %eax
testl %eax, %eax
js 0x12f40
movq 0x38(%r11), %rcx
incq %rax
xorl %edx, %edx
fld %st(0)
fmull (%rcx,%rdx,8)
fstpl (%rcx,%rdx,8)
incq %rdx
cmpq %rdx, %rax
jne 0x12f20
jmp 0x12f40
xorl %esi, %esi
callq 0x146e0
movq 0x10(%rsp), %r11
fldz
fstp %st(0)
movslq 0x4(%r11), %rax
movl %eax, %ecx
fldz
fld %st(0)
testq %rax, %rax
js 0x12f6f
fstp %st(0)
movq 0x38(%r11), %rdx
leaq 0x1(%rcx), %rsi
fldz
xorl %edi, %edi
fldl (%rbx,%rdi,8)
fmull (%rdx,%rdi,8)
faddp %st, %st(1)
incq %rdi
cmpq %rdi, %rsi
jne 0x12f5f
fld %st(1)
testl %eax, %eax
js 0x13047
fstp %st(0)
movq 0x38(%r11), %rsi
movq 0x98(%r11), %rdi
leaq 0x1(%rcx), %rdx
xorl %r8d, %r8d
movsd 0x609b(%rip), %xmm0     # 0x19030
movabsq $0x7fefffffffffffff, %r9 # imm = 0x7FEFFFFFFFFFFFFF
movsd (%rbx,%r8,8), %xmm1
mulsd (%rsi,%r8,8), %xmm1
movsd %xmm1, 0x178(%rsp)
fld %st(0)
fdivrl 0x178(%rsp)
fstpl 0x170(%rsp)
movq 0x170(%rsp), %xmm1
movq %xmm1, %r10
movq %xmm1, (%rdi,%r8,8)
btrq $0x3f, %r10
cmpq %r9, %r10
jg 0x13150
incq %r8
cmpq %r8, %rdx
jne 0x12f9f
fstp %st(0)
fld %st(0)
testl %eax, %eax
fldz
fxch %st(1)
js 0x13047
fstp %st(0)
fstp %st(0)
movq 0x38(%r11), %rsi
leaq (%rbx,%rcx,8), %rdi
fldz
xorl %r8d, %r8d
fldz
fxch %st(1)
fstp %st(1)
movsd (%rbx,%r8,8), %xmm0
addsd (%rdi), %xmm0
movsd %xmm0, 0x168(%rsp)
fldl 0x168(%rsp)
fmuls 0x8437(%rip)            # 0x1b468
fmull (%rsi,%r8,8)
faddp %st, %st(1)
incq %r8
addq $-0x8, %rdi
cmpq %r8, %rdx
fldz
fxch %st(1)
jne 0x1300f
fstp %st(1)
movl $0x1, %edx
fld %st(1)
cmpl $0x2, %eax
jl 0x13095
fstp %st(0)
movq 0x38(%r11), %rdx
leaq -0x1(%rcx), %rsi
fldz
movl $0x1, %edi
movsd (%rbx,%rdi,8), %xmm0
addsd (%rbx,%rsi,8), %xmm0
movsd %xmm0, 0x160(%rsp)
fldl 0x160(%rsp)
fmuls 0x83e2(%rip)            # 0x1b468
fmull (%rdx,%rdi,8)
faddp %st, %st(1)
incq %rdi
decq %rsi
jne 0x13066
movl %eax, %edx
movl %eax, %esi
subl %edx, %esi
fdiv %st(1), %st
fstpl 0x30(%r14)
movl %edx, %edx
movsd (%rbx,%rdx,8), %xmm0
movslq %esi, %rdx
addsd (%rbx,%rdx,8), %xmm0
mulsd 0x5f62(%rip), %xmm0     # 0x19018
movq 0x38(%r11), %rdx
movsd (%rdx,%rax,8), %xmm1
addsd (%rdx), %xmm1
mulsd %xmm0, %xmm1
movsd %xmm1, 0x158(%rsp)
fdivrl 0x158(%rsp)
fstpl 0x20(%r14)
testl %eax, %eax
js 0x13130
fstp %st(0)
movq 0x90(%r11), %rdx
movq 0x98(%r11), %rsi
leaq 0x1(%rcx), %rdi
fldz
xorl %r8d, %r8d
movsd (%rsi,%r8,8), %xmm0
addsd (%rdx,%r8,8), %xmm0
xorps %xmm1, %xmm1
cvtsi2sd %r8d, %xmm1
movsd %xmm0, (%rdx,%r8,8)
mulsd (%rsi,%r8,8), %xmm1
movsd %xmm1, 0x150(%rsp)
faddl 0x150(%rsp)
incq %r8
cmpq %r8, %rdi
jne 0x130f8
movl %eax, 0xdc(%rsp)
fidivl 0xdc(%rsp)
fstpl 0x148(%rsp)
movsd 0x148(%rsp), %xmm0
jmp 0x13154
fstp %st(1)
fstp %st(0)
movsd %xmm0, 0x10(%r14)
movq 0x98(%r11), %rdx
movsd (%rdx,%rax,8), %xmm0
movsd %xmm0, 0x28(%r14)
testl %eax, %eax
jle 0x13191
fldz
xorl %esi, %esi
faddl (%rdx,%rsi,8)
incq %rsi
cmpq %rsi, %rcx
jne 0x13174
fstpl 0x140(%rsp)
movsd 0x140(%rsp), %xmm0
jmp 0x13195
xorpd %xmm0, %xmm0
movsd %xmm0, 0x38(%r14)
movl $0xffffffff, 0x8(%r14)  # imm = 0xFFFFFFFF
testl %eax, %eax
js 0x131d6
movq 0x38(%r11), %rsi
leaq 0x1(%rcx), %rdi
movsd 0x5e79(%rip), %xmm0     # 0x19030
xorl %r8d, %r8d
movsd (%rsi,%r8,8), %xmm1
ucomisd %xmm0, %xmm1
jbe 0x131ce
movl %r8d, 0x8(%r14)
movapd %xmm1, %xmm0
incq %r8
cmpq %r8, %rdi
jne 0x131ba
movl %eax, %esi
subl 0x8(%r14), %esi
movl %esi, 0x8(%r14)
fldz
testl %eax, %eax
js 0x13201
fstp %st(0)
movq 0x38(%r11), %rsi
leaq 0x1(%rcx), %rdi
fldz
xorl %r8d, %r8d
faddl (%rsi,%r8,8)
incq %r8
cmpq %r8, %rdi
jne 0x131f5
movq $0x0, 0x18(%r14)
testl %eax, %eax
js 0x1324e
movq 0x38(%r11), %rsi
movsd 0x18(%r14), %xmm0
leaq 0x1(%rcx), %rdi
xorl %r8d, %r8d
fld %st(0)
fdivrl (%rsi,%r8,8)
fstpl 0x138(%rsp)
xorps %xmm1, %xmm1
cvtsi2sd %r8d, %xmm1
mulsd 0x138(%rsp), %xmm1
addsd %xmm1, %xmm0
movsd %xmm0, 0x18(%r14)
incq %r8
cmpq %r8, %rdi
jne 0x1321e
fstp %st(0)
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
movsd 0x18(%r14), %xmm1
divsd %xmm0, %xmm1
movsd %xmm1, 0x18(%r14)
testl %eax, %eax
js 0x13292
leaq 0x1(%rcx), %rsi
xorpd %xmm1, %xmm1
xorl %edi, %edi
movsd 0x81cb(%rip), %xmm2     # 0x1b448
addsd (%rdx,%rdi,8), %xmm1
ucomisd %xmm2, %xmm1
ja 0x13296
incq %rdi
cmpq %rdi, %rsi
jne 0x1327d
jmp 0x13298
xorl %esi, %esi
jmp 0x13298
movl %edi, %esi
movl %eax, %edi
testl %eax, %eax
js 0x132c9
xorpd %xmm1, %xmm1
movsd 0x819e(%rip), %xmm2     # 0x1b448
movq %rcx, %rdi
addsd (%rdx,%rdi,8), %xmm1
ucomisd %xmm2, %xmm1
ja 0x132c9
leaq -0x1(%rdi), %r8
testq %rdi, %rdi
movq %r8, %rdi
jg 0x132ad
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
movl %eax, %edx
subl %edi, %edx
xorps %xmm1, %xmm1
cvtsi2sd %edx, %xmm1
divsd %xmm0, %xmm1
movsd %xmm1, 0x40(%r14)
movl %eax, %edx
subl %esi, %edx
xorps %xmm1, %xmm1
cvtsi2sd %edx, %xmm1
divsd %xmm0, %xmm1
movsd %xmm1, 0x48(%r14)
movl 0x8(%r11), %edx
movabsq $-0x4010000000000000, %rbx # imm = 0xBFF0000000000000
testl %edx, %edx
jle 0x1336f
movsd 0x5d23(%rip), %xmm0     # 0x19030
movapd %xmm0, %xmm1
testl %eax, %eax
js 0x1333b
movq 0x38(%r11), %rsi
incq %rcx
movsd 0x5d0c(%rip), %xmm2     # 0x19030
xorl %edi, %edi
movsd (%rsi,%rdi,8), %xmm1
maxsd %xmm2, %xmm1
incq %rdi
movapd %xmm1, %xmm2
cmpq %rdi, %rcx
jne 0x13326
movq 0x48(%r11), %rcx
leaq 0x1(,%rdx,2), %rsi
addq %rdx, %rdx
xorl %edi, %edi
movapd %xmm0, %xmm2
movsd (%rcx,%rdi,8), %xmm0
maxsd %xmm2, %xmm0
incq %rdi
cmpq %rdi, %rsi
jne 0x1334c
subl %edx, %eax
jge 0x13375
movsd 0x5cc3(%rip), %xmm2     # 0x19030
jmp 0x1339a
movq %rbx, 0x70(%r14)
jmp 0x133dd
movq 0x50(%r11), %rcx
incl %eax
movsd 0x5cad(%rip), %xmm3     # 0x19030
xorl %edx, %edx
movsd (%rcx,%rdx,8), %xmm2
maxsd %xmm3, %xmm2
incq %rdx
movapd %xmm2, %xmm3
cmpq %rdx, %rax
jne 0x13385
mulsd %xmm2, %xmm0
divsd %xmm1, %xmm0
callq 0x2210
movapd %xmm0, %xmm1
movsd %xmm0, 0x70(%r14)
xorpd %xmm0, %xmm0
ucomisd %xmm1, %xmm0
jbe 0x133c5
movsd 0x5c4d(%rip), %xmm0     # 0x19010
jmp 0x133d2
movsd 0x5c4b(%rip), %xmm0     # 0x19018
callq 0x1623a
movsd %xmm0, 0x70(%r14)
movq 0x10(%rsp), %r11
movq %rbx, 0x68(%r14)
movq %rbx, 0x60(%r14)
movq %rbx, 0x58(%r14)
movq %rbx, 0x50(%r14)
xorl %eax, %eax
testl %r15d, %r15d
je 0x1455d
movsd 0x38(%r14), %xmm0
ucomisd 0x5c12(%rip), %xmm0     # 0x19018
jbe 0x1455d
movl (%r11), %edi
movl 0x8(%r11), %r8d
movl %edi, %esi
subl %r8d, %esi
testl %r8d, %r8d
setle %dl
movq %rsi, 0xa8(%rsp)
testl %esi, %esi
setle %cl
orb %dl, %cl
xorpd %xmm0, %xmm0
jne 0x14557
movq %r8, 0x68(%rsp)
movq %rdi, 0x70(%rsp)
movq %r14, 0xc8(%rsp)
cmpq $0x0, 0x68(%r11)
jne 0x13652
movq 0x70(%rsp), %rax
leal 0x1(,%rax,2), %r14d
xorps %xmm0, %xmm0
cvtsi2sd %r14d, %xmm0
callq 0x22b0
movsd %xmm0, 0x38(%rsp)
movq 0x68(%rsp), %rax
leaq (%rax,%rax), %rbx
leaq 0x1(,%rax,2), %r15
xorps %xmm0, %xmm0
cvtsi2sd %r15d, %xmm0
callq 0x22b0
movsd %xmm0, 0x18(%rsp)
movq 0xa8(%rsp), %rax
leal 0x1(,%rax,2), %eax
movq %rax, 0x78(%rsp)
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
callq 0x22b0
addsd 0x18(%rsp), %xmm0
movsd 0x38(%rsp), %xmm1
subsd %xmm0, %xmm1
movsd %xmm1, 0x38(%rsp)
movl $0x8, %esi
movq %r15, %rdi
callq 0x2260
movq 0x10(%rsp), %rcx
movq %rax, 0x68(%rcx)
subl %ebx, %r14d
movq %r14, 0x30(%rsp)
movl $0x1, %ebx
movl $0x1, %ebp
movq $0x0, 0x58(%rsp)
movq %r15, 0x28(%rsp)
movq 0x10(%rsp), %r13
movl $0x8, %esi
movq 0x78(%rsp), %rdi
callq 0x2260
movq 0x68(%r13), %rcx
movq 0x58(%rsp), %rsi
leaq 0x1(%rsi), %rdx
movq %rdx, 0xc0(%rsp)
xorps %xmm0, %xmm0
cvtsi2sd %edx, %xmm0
movsd %xmm0, 0x88(%rsp)
movl %r15d, %edx
subl %esi, %edx
xorps %xmm0, %xmm0
cvtsi2sd %edx, %xmm0
movsd %xmm0, 0x80(%rsp)
movq %rax, (%rcx,%rsi,8)
movl %ebx, 0x50(%rsp)
movq 0x30(%rsp), %r12
xorl %r15d, %r15d
leal (%r15,%rbp), %eax
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
callq 0x22b0
movsd %xmm0, 0x18(%rsp)
movl 0x4(%r13), %eax
addl %ebx, %eax
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
callq 0x22b0
addsd 0x18(%rsp), %xmm0
movsd %xmm0, 0x18(%rsp)
movsd 0x88(%rsp), %xmm0
callq 0x22b0
movsd %xmm0, 0x40(%rsp)
leaq 0x1(%r15), %r14
xorps %xmm0, %xmm0
cvtsi2sd %r14d, %xmm0
callq 0x22b0
addsd 0x40(%rsp), %xmm0
movsd %xmm0, 0x40(%rsp)
movsd 0x80(%rsp), %xmm0
callq 0x22b0
addsd 0x40(%rsp), %xmm0
movsd %xmm0, 0x40(%rsp)
xorps %xmm0, %xmm0
cvtsi2sd %r12d, %xmm0
callq 0x22b0
addsd 0x40(%rsp), %xmm0
addsd 0x38(%rsp), %xmm0
movsd 0x18(%rsp), %xmm1
subsd %xmm0, %xmm1
movapd %xmm1, %xmm0
callq 0x2570
movq 0x68(%r13), %rax
movq 0x58(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movsd %xmm0, (%rax,%r15,8)
decl %ebx
movq %r14, %r15
decq %r12
jne 0x13562
movl 0x50(%rsp), %ebx
decl %ebx
incq %rbp
movq 0xc0(%rsp), %rcx
movq %rcx, 0x58(%rsp)
movq 0x28(%rsp), %r15
cmpq %r15, %rcx
jne 0x13509
movq 0x10(%rsp), %r9
movl 0x4(%r9), %eax
xorpd %xmm0, %xmm0
xorpd %xmm4, %xmm4
testl %eax, %eax
movq 0xc8(%rsp), %rdi
movq 0x68(%rsp), %rbx
js 0x136b5
movq 0x28(%r9), %rcx
movq 0x38(%r9), %rdx
incq %rax
fldz
xorl %esi, %esi
movsd (%rcx,%rsi,8), %xmm1
mulsd (%rdx,%rsi,8), %xmm1
movsd %xmm1, 0x130(%rsp)
faddl 0x130(%rsp)
incq %rsi
cmpq %rsi, %rax
jne 0x13683
fstpl 0x128(%rsp)
movsd 0x128(%rsp), %xmm4
leaq 0x50(%rdi), %r10
movq 0x48(%r9), %rax
movq 0x58(%r9), %rcx
leaq 0x1(,%rbx,2), %rsi
movq %rbx, %r11
addq %rbx, %r11
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
xorl %edx, %edx
movsd (%rcx,%rdx,8), %xmm1
mulsd (%rax,%rdx,8), %xmm1
ucomisd %xmm0, %xmm1
cmoval %edx, %r8d
maxsd %xmm0, %xmm1
incq %rdx
movapd %xmm1, %xmm0
cmpq %rdx, %rsi
jne 0x136d7
movq %r11, 0xd0(%rsp)
movq %rsi, 0xf0(%rsp)
movq 0x50(%r9), %rax
movq 0x60(%r9), %rcx
movq 0x70(%rsp), %rsi
subl %ebx, %esi
movl %esi, %edx
addl %esi, %edx
movl %edx, 0xd8(%rsp)
leal 0x1(,%rsi,2), %edx
xorpd %xmm0, %xmm0
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
xorl %esi, %esi
movsd (%rcx,%rsi,8), %xmm1
mulsd (%rax,%rsi,8), %xmm1
ucomisd %xmm0, %xmm1
cmoval %esi, %edi
maxsd %xmm0, %xmm1
incq %rsi
movapd %xmm1, %xmm0
cmpq %rsi, %rdx
jne 0x13735
movq 0xa8(%rsp), %rax
addl %eax, %eax
fldz
xorpd %xmm0, %xmm0
movsd %xmm0, 0x98(%rsp)
movl %edi, %ecx
movq %rcx, 0x80(%rsp)
movslq %edi, %rcx
movq %rcx, 0xe0(%rsp)
movq %rax, 0xa8(%rsp)
movl %eax, %eax
movq %rax, 0xc0(%rsp)
movsd %xmm0, 0x30(%rsp)
xorpd %xmm5, %xmm5
movsd %xmm0, 0x28(%rsp)
movq %r8, 0xe8(%rsp)
testl %r8d, %r8d
movq %r10, 0x58(%rsp)
movsd %xmm4, 0x40(%rsp)
js 0x13cb5
fstp %st(0)
movq 0xe8(%rsp), %rcx
movl %ecx, %r15d
movq 0x80(%rsp), %rax
incq %rax
movq %rax, 0xb8(%rsp)
movq 0xe0(%rsp), %rdx
movl %edx, %eax
negl %eax
movl %eax, 0xb0(%rsp)
movl %ecx, %r11d
negl %r11d
leaq (,%r15,8), %r13
movq 0xc0(%rsp), %r14
subq %rdx, %r14
leal 0x1(%rdx), %eax
movq %rax, 0x70(%rsp)
leaq 0x8(,%rdx,8), %rbp
movl %edx, %eax
notl %eax
movl %eax, 0x64(%rsp)
leal 0x1(%rdx,%rcx), %eax
movq %rax, 0x50(%rsp)
leaq 0x8(%r13,%rdx,8), %rax
movq %rax, 0x88(%rsp)
xorpd %xmm3, %xmm3
fldz
movsd 0x57ce(%rip), %xmm6     # 0x19018
movsd 0x57de(%rip), %xmm7     # 0x19030
movsd 0x7bf5(%rip), %xmm8     # 0x1b450
movsd 0x57ac(%rip), %xmm9     # 0x19010
movsd %xmm0, 0x28(%rsp)
movsd %xmm0, 0x30(%rsp)
movq %rdi, 0x68(%rsp)
testl %edi, %edi
movq %r11, 0x78(%rsp)
js 0x13a7a
xorps %xmm10, %xmm10
cvtsi2sd %r15d, %xmm10
mulsd %xmm6, %xmm10
movl 0xb0(%rsp), %eax
movl %eax, %ebx
movq 0xb8(%rsp), %r12
movsd %xmm10, 0x48(%rsp)
movq 0x28(%r9), %rax
addq %r13, %rax
movsd -0x8(%rax,%r12,8), %xmm11
movq 0x48(%r9), %rax
mulsd (%rax,%r15,8), %xmm11
movq 0x50(%r9), %rax
mulsd -0x8(%rax,%r12,8), %xmm11
divsd %xmm4, %xmm11
movq 0x68(%r9), %rax
movq (%rax,%r15,8), %rax
mulsd -0x8(%rax,%r12,8), %xmm11
ucomisd %xmm11, %xmm8
jbe 0x138f0
movapd %xmm7, %xmm11
jmp 0x13a57
movl (%r9), %esi
movl 0x8(%r9), %eax
movl %esi, %edx
xorps %xmm1, %xmm1
cvtsi2sd %eax, %xmm1
subl %eax, %edx
movapd %xmm10, %xmm0
divsd %xmm1, %xmm0
leaq -0x1(%r12), %rcx
xorps %xmm1, %xmm1
cvtsi2sd %ecx, %xmm1
xorps %xmm2, %xmm2
cvtsi2sd %edx, %xmm2
mulsd %xmm6, %xmm1
divsd %xmm2, %xmm1
ucomisd %xmm0, %xmm1
jbe 0x13933
addsd %xmm11, %xmm5
jmp 0x1395d
ucomisd %xmm1, %xmm0
jbe 0x1394c
movsd 0x30(%rsp), %xmm0
addsd %xmm11, %xmm0
movsd %xmm0, 0x30(%rsp)
jmp 0x1395d
movsd 0x28(%rsp), %xmm0
addsd %xmm11, %xmm0
movsd %xmm0, 0x28(%rsp)
leaq (%r15,%r12), %rdi
decq %rdi
xorps %xmm0, %xmm0
cvtsi2sd %edi, %xmm0
leal (%r11,%rbx), %r8d
leal (%r8,%rsi,2), %esi
xorps %xmm1, %xmm1
cvtsi2sd %esi, %xmm1
leal (%rdx,%rdx), %r8d
mulsd %xmm0, %xmm1
xorps %xmm0, %xmm0
cvtsi2sd %r8d, %xmm0
addl %eax, %eax
mulsd %xmm1, %xmm0
xorps %xmm2, %xmm2
cvtsi2sd %eax, %xmm2
mulsd %xmm0, %xmm2
ucomisd %xmm3, %xmm2
movapd %xmm9, %xmm0
jne 0x139ac
jnp 0x13a52
subl %r15d, %eax
leal (%rbx,%rdx,2), %edx
imull %r15d, %edx
imull %eax, %ecx
subl %ecx, %edx
xorps %xmm0, %xmm0
cvtsi2sd %edx, %xmm0
movapd %xmm0, %xmm3
mulsd %xmm6, %xmm3
mulsd %xmm0, %xmm3
addl %edi, %esi
xorps %xmm1, %xmm1
cvtsi2sd %esi, %xmm1
mulsd %xmm3, %xmm1
divsd %xmm2, %xmm1
movapd %xmm6, %xmm0
fstpt 0x18(%rsp)
movsd %xmm5, 0x38(%rsp)
movsd %xmm11, 0xa0(%rsp)
callq 0x1623a
movsd 0xa0(%rsp), %xmm11
movsd 0x48(%rsp), %xmm10
movsd 0x55fa(%rip), %xmm9     # 0x19010
movsd 0x7a31(%rip), %xmm8     # 0x1b450
movsd 0x5609(%rip), %xmm7     # 0x19030
movsd 0x55e9(%rip), %xmm6     # 0x19018
movsd 0x38(%rsp), %xmm5
xorpd %xmm3, %xmm3
movq 0x78(%rsp), %r11
fldt 0x18(%rsp)
movsd 0x40(%rsp), %xmm4
movq 0x58(%rsp), %r10
movq 0x10(%rsp), %r9
mulsd %xmm0, %xmm11
ucomisd %xmm11, %xmm3
ja 0x13a7a
movsd %xmm11, 0x120(%rsp)
faddl 0x120(%rsp)
incl %ebx
decq %r12
jg 0x138a8
movq 0x68(%rsp), %rax
cmpl 0xa8(%rsp), %eax
jge 0x13c8b
xorps %xmm10, %xmm10
cvtsi2sd %r15d, %xmm10
mulsd %xmm6, %xmm10
movl 0x64(%rsp), %eax
movl %eax, %ebx
xorl %r12d, %r12d
movsd %xmm10, 0x48(%rsp)
movq 0x28(%r9), %rax
addq 0x88(%rsp), %rax
movsd (%rax,%r12,8), %xmm11
movq 0x48(%r9), %rax
mulsd (%rax,%r15,8), %xmm11
movq 0x50(%r9), %rax
addq %rbp, %rax
mulsd (%rax,%r12,8), %xmm11
divsd %xmm4, %xmm11
movq 0x68(%r9), %rax
movq (%rax,%r15,8), %rax
addq %rbp, %rax
mulsd (%rax,%r12,8), %xmm11
ucomisd %xmm11, %xmm8
jbe 0x13afa
movapd %xmm7, %xmm11
jmp 0x13c65
movl (%r9), %esi
movl 0x8(%r9), %eax
movl %esi, %edx
xorps %xmm1, %xmm1
cvtsi2sd %eax, %xmm1
subl %eax, %edx
movapd %xmm10, %xmm0
divsd %xmm1, %xmm0
movq 0x70(%rsp), %rcx
addq %r12, %rcx
xorps %xmm1, %xmm1
cvtsi2sd %ecx, %xmm1
xorps %xmm2, %xmm2
cvtsi2sd %edx, %xmm2
mulsd %xmm6, %xmm1
divsd %xmm2, %xmm1
ucomisd %xmm0, %xmm1
jbe 0x13b40
addsd %xmm11, %xmm5
jmp 0x13b6a
ucomisd %xmm1, %xmm0
jbe 0x13b59
movsd 0x30(%rsp), %xmm0
addsd %xmm11, %xmm0
movsd %xmm0, 0x30(%rsp)
jmp 0x13b6a
movsd 0x28(%rsp), %xmm0
addsd %xmm11, %xmm0
movsd %xmm0, 0x28(%rsp)
movq 0x50(%rsp), %rdi
addq %r12, %rdi
xorps %xmm0, %xmm0
cvtsi2sd %edi, %xmm0
leal (%r11,%rbx), %r8d
leal (%r8,%rsi,2), %esi
xorps %xmm1, %xmm1
cvtsi2sd %esi, %xmm1
leal (%rdx,%rdx), %r8d
mulsd %xmm0, %xmm1
xorps %xmm0, %xmm0
cvtsi2sd %r8d, %xmm0
addl %eax, %eax
mulsd %xmm1, %xmm0
xorps %xmm2, %xmm2
cvtsi2sd %eax, %xmm2
mulsd %xmm0, %xmm2
ucomisd %xmm3, %xmm2
movapd %xmm9, %xmm0
jne 0x13bba
jnp 0x13c60
subl %r15d, %eax
leal (%rbx,%rdx,2), %edx
imull %r15d, %edx
imull %eax, %ecx
subl %ecx, %edx
xorps %xmm0, %xmm0
cvtsi2sd %edx, %xmm0
movapd %xmm0, %xmm3
mulsd %xmm6, %xmm3
mulsd %xmm0, %xmm3
addl %edi, %esi
xorps %xmm1, %xmm1
cvtsi2sd %esi, %xmm1
mulsd %xmm3, %xmm1
divsd %xmm2, %xmm1
movapd %xmm6, %xmm0
fstpt 0x18(%rsp)
movsd %xmm5, 0x38(%rsp)
movsd %xmm11, 0xa0(%rsp)
callq 0x1623a
movsd 0xa0(%rsp), %xmm11
movsd 0x48(%rsp), %xmm10
movsd 0x53ec(%rip), %xmm9     # 0x19010
movsd 0x7823(%rip), %xmm8     # 0x1b450
movsd 0x53fb(%rip), %xmm7     # 0x19030
movsd 0x53db(%rip), %xmm6     # 0x19018
movsd 0x38(%rsp), %xmm5
xorpd %xmm3, %xmm3
movq 0x78(%rsp), %r11
fldt 0x18(%rsp)
movsd 0x40(%rsp), %xmm4
movq 0x58(%rsp), %r10
movq 0x10(%rsp), %r9
mulsd %xmm0, %xmm11
ucomisd %xmm11, %xmm3
ja 0x13c8b
movsd %xmm11, 0x118(%rsp)
faddl 0x118(%rsp)
incq %r12
decl %ebx
cmpq %r12, %r14
jne 0x13aaa
leaq -0x1(%r15), %rax
incl %r11d
addq $-0x8, %r13
decq 0x50(%rsp)
addq $-0x8, 0x88(%rsp)
testq %r15, %r15
movq %rax, %r15
movq 0x68(%rsp), %rdi
jg 0x13870
movq 0xe0(%rsp), %rdx
movq 0xc8(%rsp), %rax
movsd 0x28(%rsp), %xmm0
movsd %xmm0, 0x50(%rax)
leaq 0x58(%rax), %r11
movsd %xmm5, 0x58(%rax)
leaq 0x60(%rax), %r14
movsd 0x30(%rsp), %xmm0
movsd %xmm0, 0x60(%rax)
movq 0xe8(%rsp), %rax
movq 0xd0(%rsp), %rcx
cmpl %ecx, %eax
movq %r11, 0x38(%rsp)
jge 0x14253
movslq %eax, %r15
movl %ecx, %ecx
movq %rcx, 0xd0(%rsp)
leaq 0x1(%rdx), %rcx
movq %rcx, 0x88(%rsp)
movl %edi, %ecx
negl %ecx
movl %ecx, 0x64(%rsp)
movl %eax, %ecx
notl %ecx
movq %rcx, 0x30(%rsp)
leaq (,%rdx,8), %r13
leal (%rax,%rdi), %ecx
incl %ecx
movq %rcx, 0x78(%rsp)
leaq 0x8(,%r15,8), %rbp
addq %r13, %rbp
subq %rdx, 0xc0(%rsp)
movl $0xfffffffe, %ecx       # imm = 0xFFFFFFFE
subl %eax, %ecx
movq %rcx, 0x70(%rsp)
addl %edi, %eax
addl $0x2, %eax
movq %rax, 0xa0(%rsp)
leaq 0x10(%r13,%r15,8), %rax
movq %rax, 0x50(%rsp)
xorpd %xmm5, %xmm5
movsd 0x5295(%rip), %xmm6     # 0x19018
movsd 0x52a5(%rip), %xmm7     # 0x19030
movsd 0x76bc(%rip), %xmm8     # 0x1b450
movsd 0x5273(%rip), %xmm9     # 0x19010
xorpd %xmm0, %xmm0
movsd %xmm0, 0x48(%rsp)
xorpd %xmm3, %xmm3
movsd %xmm0, 0x98(%rsp)
movq %rdi, 0x68(%rsp)
incq %r15
testl %edi, %edi
js 0x13fdf
xorps %xmm10, %xmm10
cvtsi2sd %r15d, %xmm10
mulsd %xmm6, %xmm10
movl 0x64(%rsp), %eax
movl %eax, %ebx
xorl %r12d, %r12d
movsd %xmm10, 0xb0(%rsp)
movq 0x28(%r9), %rax
addq %rbp, %rax
movsd (%rax,%r12,8), %xmm11
movq 0x48(%r9), %rax
mulsd (%rax,%r15,8), %xmm11
movq 0x50(%r9), %rax
addq %r13, %rax
mulsd (%rax,%r12,8), %xmm11
divsd %xmm4, %xmm11
movq 0x68(%r9), %rax
movq (%rax,%r15,8), %rax
addq %r13, %rax
mulsd (%rax,%r12,8), %xmm11
ucomisd %xmm11, %xmm8
jbe 0x13e30
movapd %xmm7, %xmm11
jmp 0x13fab
movl (%r9), %esi
movl 0x8(%r9), %eax
movl %esi, %edx
xorps %xmm1, %xmm1
cvtsi2sd %eax, %xmm1
subl %eax, %edx
movapd %xmm10, %xmm0
divsd %xmm1, %xmm0
movq 0x80(%rsp), %rcx
addq %r12, %rcx
xorps %xmm1, %xmm1
cvtsi2sd %ecx, %xmm1
xorps %xmm2, %xmm2
cvtsi2sd %edx, %xmm2
mulsd %xmm6, %xmm1
divsd %xmm2, %xmm1
ucomisd %xmm0, %xmm1
jbe 0x13e79
addsd %xmm11, %xmm3
jmp 0x13ea9
ucomisd %xmm1, %xmm0
jbe 0x13e98
movsd 0x98(%rsp), %xmm0
addsd %xmm11, %xmm0
movsd %xmm0, 0x98(%rsp)
jmp 0x13ea9
movsd 0x48(%rsp), %xmm0
addsd %xmm11, %xmm0
movsd %xmm0, 0x48(%rsp)
movq 0x78(%rsp), %rdi
addq %r12, %rdi
xorps %xmm0, %xmm0
cvtsi2sd %edi, %xmm0
movq 0x30(%rsp), %r8
addl %ebx, %r8d
leal (%r8,%rsi,2), %esi
xorps %xmm1, %xmm1
cvtsi2sd %esi, %xmm1
leal (%rdx,%rdx), %r8d
mulsd %xmm0, %xmm1
xorps %xmm0, %xmm0
cvtsi2sd %r8d, %xmm0
addl %eax, %eax
mulsd %xmm1, %xmm0
xorps %xmm2, %xmm2
cvtsi2sd %eax, %xmm2
mulsd %xmm0, %xmm2
ucomisd %xmm5, %xmm2
movapd %xmm9, %xmm0
jne 0x13efd
jnp 0x13fa6
subl %r15d, %eax
leal (%rbx,%rdx,2), %edx
imull %r15d, %edx
imull %eax, %ecx
subl %ecx, %edx
xorps %xmm0, %xmm0
cvtsi2sd %edx, %xmm0
movsd %xmm3, 0x28(%rsp)
movapd %xmm0, %xmm3
mulsd %xmm6, %xmm3
mulsd %xmm0, %xmm3
addl %edi, %esi
xorps %xmm1, %xmm1
cvtsi2sd %esi, %xmm1
mulsd %xmm3, %xmm1
divsd %xmm2, %xmm1
movapd %xmm6, %xmm0
fstpt 0x18(%rsp)
movsd %xmm11, 0xb8(%rsp)
callq 0x1623a
movsd 0xb8(%rsp), %xmm11
movsd 0xb0(%rsp), %xmm10
movsd 0x50a6(%rip), %xmm9     # 0x19010
movsd 0x74dd(%rip), %xmm8     # 0x1b450
movsd 0x50b5(%rip), %xmm7     # 0x19030
movsd 0x5095(%rip), %xmm6     # 0x19018
xorpd %xmm5, %xmm5
movsd 0x28(%rsp), %xmm3
movq 0x38(%rsp), %r11
fldt 0x18(%rsp)
movsd 0x40(%rsp), %xmm4
movq 0x58(%rsp), %r10
movq 0x10(%rsp), %r9
mulsd %xmm0, %xmm11
ucomisd %xmm11, %xmm5
ja 0x13fdf
movsd %xmm11, 0x110(%rsp)
faddl 0x110(%rsp)
movq 0x88(%rsp), %rax
addq %r12, %rax
decq %rax
decq %r12
incl %ebx
testq %rax, %rax
jg 0x13de5
movq 0x68(%rsp), %rax
cmpl 0xa8(%rsp), %eax
jge 0x1420f
xorps %xmm10, %xmm10
cvtsi2sd %r15d, %xmm10
mulsd %xmm6, %xmm10
movl 0x64(%rsp), %eax
movl %eax, %ebx
xorl %r12d, %r12d
movsd %xmm10, 0xb0(%rsp)
movq 0x28(%r9), %rax
addq 0x50(%rsp), %rax
movsd (%rax,%r12,8), %xmm11
movq 0x48(%r9), %rax
mulsd (%rax,%r15,8), %xmm11
movq 0x50(%r9), %rax
addq %r13, %rax
mulsd 0x8(%rax,%r12,8), %xmm11
divsd %xmm4, %xmm11
movq 0x68(%r9), %rax
movq (%rax,%r15,8), %rax
addq %r13, %rax
mulsd 0x8(%rax,%r12,8), %xmm11
ucomisd %xmm11, %xmm8
jbe 0x14061
movapd %xmm7, %xmm11
jmp 0x141e4
movl (%r9), %esi
movl 0x8(%r9), %eax
movl %esi, %edx
xorps %xmm1, %xmm1
cvtsi2sd %eax, %xmm1
subl %eax, %edx
movapd %xmm10, %xmm0
divsd %xmm1, %xmm0
movq 0x80(%rsp), %rcx
addq %r12, %rcx
incq %rcx
xorps %xmm1, %xmm1
cvtsi2sd %ecx, %xmm1
xorps %xmm2, %xmm2
cvtsi2sd %edx, %xmm2
mulsd %xmm6, %xmm1
divsd %xmm2, %xmm1
ucomisd %xmm0, %xmm1
jbe 0x140ad
addsd %xmm11, %xmm3
jmp 0x140dd
ucomisd %xmm1, %xmm0
jbe 0x140cc
movsd 0x98(%rsp), %xmm0
addsd %xmm11, %xmm0
movsd %xmm0, 0x98(%rsp)
jmp 0x140dd
movsd 0x48(%rsp), %xmm0
addsd %xmm11, %xmm0
movsd %xmm0, 0x48(%rsp)
movq 0xa0(%rsp), %rdi
addq %r12, %rdi
xorps %xmm0, %xmm0
cvtsi2sd %edi, %xmm0
movq 0x70(%rsp), %r8
addl %ebx, %r8d
leal (%r8,%rsi,2), %esi
xorps %xmm1, %xmm1
cvtsi2sd %esi, %xmm1
leal (%rdx,%rdx), %r8d
mulsd %xmm0, %xmm1
xorps %xmm0, %xmm0
cvtsi2sd %r8d, %xmm0
addl %eax, %eax
mulsd %xmm1, %xmm0
xorps %xmm2, %xmm2
cvtsi2sd %eax, %xmm2
mulsd %xmm0, %xmm2
ucomisd %xmm5, %xmm2
movapd %xmm9, %xmm0
jne 0x14134
jnp 0x141df
subl %r15d, %eax
leal (%rbx,%rdx,2), %edx
decl %edx
imull %r15d, %edx
imull %eax, %ecx
subl %ecx, %edx
xorps %xmm0, %xmm0
cvtsi2sd %edx, %xmm0
movsd %xmm3, 0x28(%rsp)
movapd %xmm0, %xmm3
mulsd %xmm6, %xmm3
mulsd %xmm0, %xmm3
addl %edi, %esi
xorps %xmm1, %xmm1
cvtsi2sd %esi, %xmm1
mulsd %xmm3, %xmm1
divsd %xmm2, %xmm1
movapd %xmm6, %xmm0
fstpt 0x18(%rsp)
movsd %xmm11, 0xb8(%rsp)
callq 0x1623a
movsd 0xb8(%rsp), %xmm11
movsd 0xb0(%rsp), %xmm10
movsd 0x4e6d(%rip), %xmm9     # 0x19010
movsd 0x72a4(%rip), %xmm8     # 0x1b450
movsd 0x4e7c(%rip), %xmm7     # 0x19030
movsd 0x4e5c(%rip), %xmm6     # 0x19018
xorpd %xmm5, %xmm5
movsd 0x28(%rsp), %xmm3
movq 0x38(%rsp), %r11
fldt 0x18(%rsp)
movsd 0x40(%rsp), %xmm4
movq 0x58(%rsp), %r10
movq 0x10(%rsp), %r9
mulsd %xmm0, %xmm11
ucomisd %xmm11, %xmm5
ja 0x1420f
movsd %xmm11, 0x108(%rsp)
faddl 0x108(%rsp)
incq %r12
decl %ebx
cmpq %r12, 0xc0(%rsp)
jne 0x14012
movq 0x30(%rsp), %rax
decl %eax
movq %rax, 0x30(%rsp)
incq 0x78(%rsp)
addq $0x8, %rbp
movq 0x70(%rsp), %rax
decl %eax
movq %rax, 0x70(%rsp)
incq 0xa0(%rsp)
addq $0x8, 0x50(%rsp)
cmpq 0xd0(%rsp), %r15
movq 0x68(%rsp), %rdi
jne 0x13db9
jmp 0x14261
xorpd %xmm3, %xmm3
xorpd %xmm0, %xmm0
movsd %xmm0, 0x48(%rsp)
movsd 0x48(%rsp), %xmm1
addsd (%r10), %xmm1
movsd %xmm1, (%r10)
addsd (%r11), %xmm3
movsd %xmm3, (%r11)
movsd 0x98(%rsp), %xmm0
addsd (%r14), %xmm0
movsd %xmm0, (%r14)
addsd %xmm1, %xmm3
addsd %xmm0, %xmm3
movsd 0x71ba(%rip), %xmm0     # 0x1b458
ucomisd %xmm3, %xmm0
jbe 0x1453d
fstp %st(0)
xorpd %xmm0, %xmm0
movupd %xmm0, (%r10)
movq $0x0, 0x10(%r10)
movl 0xd8(%rsp), %ebx
fldz
xorl %r15d, %r15d
movsd 0x4d49(%rip), %xmm5     # 0x19018
movsd 0x4d59(%rip), %xmm6     # 0x19030
movsd 0x7171(%rip), %xmm7     # 0x1b450
xorpd %xmm8, %xmm8
movsd 0x4d23(%rip), %xmm9     # 0x19010
movq $0x0, 0x18(%rsp)
xorl %r13d, %r13d
xorps %xmm10, %xmm10
cvtsi2sd %r13d, %xmm10
mulsd %xmm5, %xmm10
movq $-0x1, %rbp
xorl %r12d, %r12d
movsd %xmm10, 0x50(%rsp)
fldz
fstp %st(0)
movq 0x28(%r9), %rax
addq %r15, %rax
movsd 0x8(%rax,%rbp,8), %xmm11
movq 0x48(%r9), %rax
mulsd (%rax,%r13,8), %xmm11
movq 0x50(%r9), %rax
mulsd 0x8(%rax,%rbp,8), %xmm11
divsd %xmm4, %xmm11
movq 0x68(%r9), %rax
movq (%rax,%r13,8), %rax
mulsd 0x8(%rax,%rbp,8), %xmm11
ucomisd %xmm11, %xmm7
movapd %xmm6, %xmm0
ja 0x144b8
movl (%r9), %esi
movl 0x8(%r9), %eax
movl %esi, %edx
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
subl %eax, %edx
movapd %xmm10, %xmm1
divsd %xmm0, %xmm1
leaq 0x1(%rbp), %rcx
xorps %xmm0, %xmm0
cvtsi2sd %ecx, %xmm0
xorps %xmm2, %xmm2
cvtsi2sd %edx, %xmm2
mulsd %xmm5, %xmm0
divsd %xmm2, %xmm0
ucomisd %xmm0, %xmm1
movq %r10, %rdi
cmovaq %r14, %rdi
ucomisd %xmm1, %xmm0
movq 0x18(%rsp), %r8
leal (%r8,%r12), %r8d
leal (%r8,%rsi,2), %esi
cmovaq %r11, %rdi
movsd (%rdi), %xmm0
addsd %xmm11, %xmm0
movsd %xmm0, (%rdi)
addl %eax, %eax
leal (%rdx,%rdx), %r8d
leaq 0x1(,%r13), %rdi
addq %rbp, %rdi
xorps %xmm0, %xmm0
cvtsi2sd %edi, %xmm0
xorps %xmm1, %xmm1
cvtsi2sd %esi, %xmm1
cvtsi2sd %r8d, %xmm3
mulsd %xmm0, %xmm1
mulsd %xmm1, %xmm3
xorps %xmm2, %xmm2
cvtsi2sd %eax, %xmm2
mulsd %xmm3, %xmm2
ucomisd %xmm8, %xmm2
movapd %xmm9, %xmm0
jne 0x1440d
jnp 0x144ae
subl %r13d, %eax
leal (%r12,%rdx,2), %edx
imull %r13d, %edx
imull %eax, %ecx
subl %ecx, %edx
xorps %xmm0, %xmm0
cvtsi2sd %edx, %xmm0
movapd %xmm0, %xmm3
mulsd %xmm5, %xmm3
mulsd %xmm0, %xmm3
addl %edi, %esi
xorps %xmm1, %xmm1
cvtsi2sd %esi, %xmm1
mulsd %xmm3, %xmm1
divsd %xmm2, %xmm1
movapd %xmm5, %xmm0
fstpt 0x88(%rsp)
movsd %xmm11, 0x80(%rsp)
callq 0x1623a
movsd 0x80(%rsp), %xmm11
fldt 0x88(%rsp)
movsd 0x50(%rsp), %xmm10
movsd 0x4b94(%rip), %xmm9     # 0x19010
xorpd %xmm8, %xmm8
movsd 0x6fc7(%rip), %xmm7     # 0x1b450
movsd 0x4b9f(%rip), %xmm6     # 0x19030
movsd 0x4b7f(%rip), %xmm5     # 0x19018
movq 0x38(%rsp), %r11
movsd 0x40(%rsp), %xmm4
movq 0x58(%rsp), %r10
movq 0x10(%rsp), %r9
mulsd %xmm0, %xmm11
movapd %xmm11, %xmm0
ucomisd %xmm8, %xmm0
movsd %xmm0, 0x100(%rsp)
fld %st(0)
faddl 0x100(%rsp)
fcmovb %st(1), %st
fstp %st(1)
incq %rbp
decl %r12d
fld %st(0)
cmpq %rbp, %rbx
fxch %st(1)
jne 0x1431a
fstp %st(1)
incq %r13
movq 0x18(%rsp), %rax
decl %eax
movq %rax, 0x18(%rsp)
addq $0x8, %r15
cmpq 0xf0(%rsp), %r13
jne 0x142f9
movsd (%r10), %xmm0
addsd (%r11), %xmm0
addsd (%r14), %xmm0
movsd 0x6f38(%rip), %xmm1     # 0x1b458
ucomisd %xmm0, %xmm1
jbe 0x1453d
fstp %st(0)
movabsq $0x3fd5555555555555, %rax # imm = 0x3FD5555555555555
movq %rax, (%r14)
movq %rax, (%r11)
movq %rax, (%r10)
fld1
fstpl 0xf8(%rsp)
movsd 0xf8(%rsp), %xmm0
xorl %eax, %eax
movq 0xc8(%rsp), %r14
movsd %xmm0, 0x68(%r14)
addq $0x188, %rsp            # imm = 0x188
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq