// File: /workspace/github_c_makefile_star2_O0/lh3[P]minigraph/cal_cov.c
// Function: mg_cov_asm
void mg_cov_asm(const gfa_t *g, int32_t n_seq, mg_gchains_t *const *gcs, int32_t min_mapq, int32_t min_blen, double *cov_seg, double *cov_link)
{
	int32_t i, j, t, *soff, *scnt, *cnt_link;
	int64_t k;
	mg_intv_t *sintv = 0;
	void *km = 0;

	// precalculate the size of sintv[] for each segment
	KCALLOC(km, scnt, g->n_seg);
	for (t = 0; t < n_seq; ++t) {
		const mg_gchains_t *gt = gcs[t];
		if (gt == 0 || gt->n_gc == 0) continue;
		for (i = 0; i < gt->n_gc; ++i) {
			const mg_gchain_t *gc = &gt->gc[i];
			assert(gc->cnt > 0 && gc->n_anchor > 0);
			if (gc->mapq < min_mapq || gc->blen < min_blen) continue;
			for (j = 0; j < gc->cnt; ++j) {
				const mg_llchain_t *lc = &gt->lc[gc->off + j];
				++scnt[lc->v>>1];
			}
		}
	}
	KMALLOC(km, soff, g->n_seg + 1);
	for (soff[0] = 0, i = 1; i <= g->n_seg; ++i)
		soff[i] = soff[i - 1] + scnt[i - 1];
	memset(scnt, 0, 4 * g->n_seg);
	KMALLOC(km, sintv, soff[g->n_seg]);

	// fill sintv[]
	KCALLOC(km, cnt_link, g->n_arc);
	for (t = 0; t < n_seq; ++t) {
		const mg_gchains_t *gt = gcs[t];
		if (gt == 0 || gt->n_gc == 0) continue;
		for (i = 0; i < gt->n_gc;) {
			const mg_gchain_t *gc = &gt->gc[i];
			if (gc->mapq < min_mapq || gc->blen < min_blen) continue;
			// count segment coverage
			for (j = 0; j < gc->cnt; ++j) {
				const mg_llchain_t *lc = &gt->lc[gc->off + j];
				int32_t s, e, tmp;
				mg_intv_t *p;
				s = 0, e = g->seg[lc->v>>1].len;
				if (j == 0) s = (int32_t)gt->a[lc->off].x + 1 - (int32_t)(gt->a[lc->off].y>>32&0xff);
				if (j == gc->cnt - 1) e = (int32_t)gt->a[lc->off + lc->cnt - 1].x + 1;
				if (lc->v&1) // convert to the forward strand of segment lc->v>>1
					tmp = g->seg[lc->v>>1].len - s, s = g->seg[lc->v>>1].len - e, e = tmp;
				p = &sintv[soff[lc->v>>1] + scnt[lc->v>>1]];
				++scnt[lc->v>>1];
				p->st = s, p->en = e, p->rev = lc->v&1, p->far = -1, p->i = -1;
			}
			// count link
			for (j = 1; j < gc->cnt; ++j) {
				const mg_llchain_t *lc0 = &gt->lc[gc->off + j - 1];
				const mg_llchain_t *lc1 = &gt->lc[gc->off + j];
				int64_t a01, a10;
				a01 = gfa_find_arc(g, lc0->v, lc1->v);
				a10 = gfa_find_arc(g, lc1->v^1, lc0->v^1);
				assert(a01 >= 0 && a10 >= 0);
				assert((g->arc[a01].comp ^ g->arc[a10].comp) == 1);
				++cnt_link[a01];
				++cnt_link[a10];
			}
		}
	}

	// update cov_link[] and cov_seg[]
	for (k = 0; k < g->n_arc; ++k)
		if (cnt_link[k] > 0) cov_link[k] += 1.0;
	for (i = 0; i < g->n_seg; ++i) {
		int32_t st = 0, en = 0, cov = 0;
		assert(scnt[i] == soff[i+1] - soff[i]);
		radix_sort_mg_intv(&sintv[soff[i]], &sintv[soff[i+1]]);
		for (j = soff[i]; j < soff[i+1]; ++j) {
			if (sintv[j].st > en)
				cov += en - st, st = sintv[j].st, en = sintv[j].en;
			else en = sintv[j].en > en? sintv[j].en : en;
		}
		cov += en - st;
		cov_seg[i] += (double)cov / g->seg[i].len;
	}

	// free
	kfree(km, cnt_link);
	kfree(km, sintv); kfree(km, soff); kfree(km, scnt);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xe0, %rsp
movq 0x10(%rbp), %rax
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movl %ecx, -0x1c(%rbp)
movl %r8d, -0x20(%rbp)
movq %r9, -0x28(%rbp)
movq $0x0, -0x60(%rbp)
movq $0x0, -0x68(%rbp)
movq -0x68(%rbp), %rdi
movq -0x8(%rbp), %rax
movl 0x4(%rax), %eax
movl %eax, %esi
movl $0x4, %edx
callq 0x2540
movq %rax, -0x48(%rbp)
movl $0x0, -0x34(%rbp)
movl -0x34(%rbp), %eax
cmpl -0xc(%rbp), %eax
jge 0x2ff41
movq -0x18(%rbp), %rax
movslq -0x34(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x70(%rbp)
cmpq $0x0, -0x70(%rbp)
je 0x2fe44
movq -0x70(%rbp), %rax
cmpl $0x0, 0x8(%rax)
jne 0x2fe49
jmp 0x2ff33
movl $0x0, -0x2c(%rbp)
movl -0x2c(%rbp), %eax
movq -0x70(%rbp), %rcx
cmpl 0x8(%rcx), %eax
jge 0x2ff31
movq -0x70(%rbp), %rax
movq 0x18(%rax), %rax
movslq -0x2c(%rbp), %rcx
imulq $0x68, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x78(%rbp)
movq -0x78(%rbp), %rax
cmpl $0x0, 0xc(%rax)
jle 0x2fe8d
movq -0x78(%rbp), %rax
cmpl $0x0, 0x10(%rax)
jle 0x2fe8d
jmp 0x2feac
leaq 0xdcf9(%rip), %rdi      # 0x3db8d
leaq 0xdd12(%rip), %rsi      # 0x3dbad
movl $0x45, %edx
leaq 0xde10(%rip), %rcx      # 0x3dcb7
callq 0x2170
movq -0x78(%rbp), %rax
movl 0x44(%rax), %eax
andl $0xff, %eax
cmpl -0x1c(%rbp), %eax
jl 0x2fec9
movq -0x78(%rbp), %rax
movl 0x2c(%rax), %eax
cmpl -0x20(%rbp), %eax
jge 0x2fecb
jmp 0x2ff23
movl $0x0, -0x30(%rbp)
movl -0x30(%rbp), %eax
movq -0x78(%rbp), %rcx
cmpl 0xc(%rcx), %eax
jge 0x2ff21
movq -0x70(%rbp), %rax
movq 0x20(%rax), %rax
movq -0x78(%rbp), %rcx
movl 0x8(%rcx), %ecx
addl -0x30(%rbp), %ecx
movslq %ecx, %rcx
imulq $0x14, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x80(%rbp)
movq -0x48(%rbp), %rax
movq -0x80(%rbp), %rcx
movl 0x8(%rcx), %ecx
shrl %ecx
movl %ecx, %ecx
movl (%rax,%rcx,4), %edx
addl $0x1, %edx
movl %edx, (%rax,%rcx,4)
movl -0x30(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x30(%rbp)
jmp 0x2fed2
jmp 0x2ff23
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0x2fe50
jmp 0x2ff33
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0x2fe17
movq -0x68(%rbp), %rdi
movq -0x8(%rbp), %rax
movl 0x4(%rax), %eax
addl $0x1, %eax
movl %eax, %eax
movl %eax, %esi
shlq $0x2, %rsi
callq 0x2890
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
movl $0x0, (%rax)
movl $0x1, -0x2c(%rbp)
movl -0x2c(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl 0x4(%rcx), %eax
ja 0x2ffb3
movq -0x40(%rbp), %rax
movl -0x2c(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movl (%rax,%rcx,4), %edx
movq -0x48(%rbp), %rax
movl -0x2c(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
addl (%rax,%rcx,4), %edx
movq -0x40(%rbp), %rax
movslq -0x2c(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0x2ff71
movq -0x48(%rbp), %rdi
movq -0x8(%rbp), %rax
movl 0x4(%rax), %eax
shll $0x2, %eax
movl %eax, %eax
movl %eax, %edx
xorl %esi, %esi
callq 0x2190
movq -0x68(%rbp), %rdi
movq -0x40(%rbp), %rax
movq -0x8(%rbp), %rcx
movl 0x4(%rcx), %ecx
movslq (%rax,%rcx,4), %rsi
shlq $0x4, %rsi
callq 0x2890
movq %rax, -0x60(%rbp)
movq -0x68(%rbp), %rdi
movq -0x8(%rbp), %rax
movq 0x40(%rax), %rsi
movl $0x4, %edx
callq 0x2540
movq %rax, -0x50(%rbp)
movl $0x0, -0x34(%rbp)
movl -0x34(%rbp), %eax
cmpl -0xc(%rbp), %eax
jge 0x304ad
movq -0x18(%rbp), %rax
movslq -0x34(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x88(%rbp)
cmpq $0x0, -0x88(%rbp)
je 0x30043
movq -0x88(%rbp), %rax
cmpl $0x0, 0x8(%rax)
jne 0x30048
jmp 0x3049f
movl $0x0, -0x2c(%rbp)
movl -0x2c(%rbp), %eax
movq -0x88(%rbp), %rcx
cmpl 0x8(%rcx), %eax
jge 0x3049d
movq -0x88(%rbp), %rax
movq 0x18(%rax), %rax
movslq -0x2c(%rbp), %rcx
imulq $0x68, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x90(%rbp)
movq -0x90(%rbp), %rax
movl 0x44(%rax), %eax
andl $0xff, %eax
cmpl -0x1c(%rbp), %eax
jl 0x300a2
movq -0x90(%rbp), %rax
movl 0x2c(%rax), %eax
cmpl -0x20(%rbp), %eax
jge 0x300a4
jmp 0x3004f
movl $0x0, -0x30(%rbp)
movl -0x30(%rbp), %eax
movq -0x90(%rbp), %rcx
cmpl 0xc(%rcx), %eax
jge 0x3030c
movq -0x88(%rbp), %rax
movq 0x20(%rax), %rax
movq -0x90(%rbp), %rcx
movl 0x8(%rcx), %ecx
addl -0x30(%rbp), %ecx
movslq %ecx, %rcx
imulq $0x14, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x98(%rbp)
movl $0x0, -0x9c(%rbp)
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x98(%rbp), %rcx
movl 0x8(%rcx), %ecx
shrl %ecx
movl %ecx, %ecx
shlq $0x6, %rcx
addq %rcx, %rax
movl (%rax), %eax
movl %eax, -0xa0(%rbp)
cmpl $0x0, -0x30(%rbp)
jne 0x30171
movq -0x88(%rbp), %rax
movq 0x28(%rax), %rax
movq -0x98(%rbp), %rcx
movslq (%rcx), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq (%rax), %rax
addl $0x1, %eax
movq -0x88(%rbp), %rcx
movq 0x28(%rcx), %rcx
movq -0x98(%rbp), %rdx
movslq (%rdx), %rdx
shlq $0x4, %rdx
addq %rdx, %rcx
movq 0x8(%rcx), %rcx
shrq $0x20, %rcx
andq $0xff, %rcx
subl %ecx, %eax
movl %eax, -0x9c(%rbp)
movl -0x30(%rbp), %eax
movq -0x90(%rbp), %rcx
movl 0xc(%rcx), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jne 0x301bc
movq -0x88(%rbp), %rax
movq 0x28(%rax), %rax
movq -0x98(%rbp), %rcx
movl (%rcx), %ecx
movq -0x98(%rbp), %rdx
addl 0x4(%rdx), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq (%rax), %rax
addl $0x1, %eax
movl %eax, -0xa0(%rbp)
movq -0x98(%rbp), %rax
movl 0x8(%rax), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x30230
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x98(%rbp), %rcx
movl 0x8(%rcx), %ecx
shrl %ecx
movl %ecx, %ecx
shlq $0x6, %rcx
addq %rcx, %rax
movl (%rax), %eax
subl -0x9c(%rbp), %eax
movl %eax, -0xa4(%rbp)
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x98(%rbp), %rcx
movl 0x8(%rcx), %ecx
shrl %ecx
movl %ecx, %ecx
shlq $0x6, %rcx
addq %rcx, %rax
movl (%rax), %eax
subl -0xa0(%rbp), %eax
movl %eax, -0x9c(%rbp)
movl -0xa4(%rbp), %eax
movl %eax, -0xa0(%rbp)
movq -0x60(%rbp), %rax
movq -0x40(%rbp), %rcx
movq -0x98(%rbp), %rdx
movl 0x8(%rdx), %edx
shrl %edx
movl %edx, %edx
movl (%rcx,%rdx,4), %ecx
movq -0x48(%rbp), %rdx
movq -0x98(%rbp), %rsi
movl 0x8(%rsi), %esi
shrl %esi
movl %esi, %esi
addl (%rdx,%rsi,4), %ecx
movslq %ecx, %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0xb0(%rbp)
movq -0x48(%rbp), %rax
movq -0x98(%rbp), %rcx
movl 0x8(%rcx), %ecx
shrl %ecx
movl %ecx, %ecx
movl (%rax,%rcx,4), %edx
addl $0x1, %edx
movl %edx, (%rax,%rcx,4)
movl -0x9c(%rbp), %ecx
movq -0xb0(%rbp), %rax
movl %ecx, (%rax)
movl -0xa0(%rbp), %edx
movq -0xb0(%rbp), %rax
movl 0x4(%rax), %ecx
andl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
andl $0x80000000, %ecx       # imm = 0x80000000
orl %edx, %ecx
movl %ecx, 0x4(%rax)
movq -0x98(%rbp), %rax
movl 0x8(%rax), %edx
andl $0x1, %edx
movq -0xb0(%rbp), %rax
movl 0x4(%rax), %ecx
andl $0x1, %edx
shll $0x1f, %edx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
orl %edx, %ecx
movl %ecx, 0x4(%rax)
movq -0xb0(%rbp), %rax
movl $0xffffffff, 0x8(%rax)  # imm = 0xFFFFFFFF
movq -0xb0(%rbp), %rax
movl $0xffffffff, 0xc(%rax)  # imm = 0xFFFFFFFF
movl -0x30(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x30(%rbp)
jmp 0x300ab
movl $0x1, -0x30(%rbp)
movl -0x30(%rbp), %eax
movq -0x90(%rbp), %rcx
cmpl 0xc(%rcx), %eax
jge 0x30498
movq -0x88(%rbp), %rax
movq 0x20(%rax), %rax
movq -0x90(%rbp), %rcx
movl 0x8(%rcx), %ecx
addl -0x30(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
imulq $0x14, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0xb8(%rbp)
movq -0x88(%rbp), %rax
movq 0x20(%rax), %rax
movq -0x90(%rbp), %rcx
movl 0x8(%rcx), %ecx
addl -0x30(%rbp), %ecx
movslq %ecx, %rcx
imulq $0x14, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0xc0(%rbp)
movq -0x8(%rbp), %rdi
movq -0xb8(%rbp), %rax
movl 0x8(%rax), %esi
movq -0xc0(%rbp), %rax
movl 0x8(%rax), %edx
callq 0x2fce0
movq %rax, -0xc8(%rbp)
movq -0x8(%rbp), %rdi
movq -0xc0(%rbp), %rax
movl 0x8(%rax), %esi
xorl $0x1, %esi
movq -0xb8(%rbp), %rax
movl 0x8(%rax), %edx
xorl $0x1, %edx
callq 0x2fce0
movq %rax, -0xd0(%rbp)
cmpq $0x0, -0xc8(%rbp)
jl 0x303df
cmpq $0x0, -0xd0(%rbp)
jl 0x303df
jmp 0x303fe
leaq 0xd936(%rip), %rdi      # 0x3dd1c
leaq 0xd7c0(%rip), %rsi      # 0x3dbad
movl $0x70, %edx
leaq 0xd8be(%rip), %rcx      # 0x3dcb7
callq 0x2170
movq -0x8(%rbp), %rax
movq 0x48(%rax), %rax
movq -0xc8(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq 0x18(%rax), %rax
shrq $0x3f, %rax
movq -0x8(%rbp), %rcx
movq 0x48(%rcx), %rcx
movq -0xd0(%rbp), %rdx
shlq $0x5, %rdx
addq %rdx, %rcx
movq 0x18(%rcx), %rcx
shrq $0x3f, %rcx
xorl %ecx, %eax
cmpl $0x1, %eax
jne 0x30443
jmp 0x30462
leaq 0xd842(%rip), %rdi      # 0x3dc8c
leaq 0xd75c(%rip), %rsi      # 0x3dbad
movl $0x71, %edx
leaq 0xd85a(%rip), %rcx      # 0x3dcb7
callq 0x2170
movq -0x50(%rbp), %rax
movq -0xc8(%rbp), %rcx
movl (%rax,%rcx,4), %edx
addl $0x1, %edx
movl %edx, (%rax,%rcx,4)
movq -0x50(%rbp), %rax
movq -0xd0(%rbp), %rcx
movl (%rax,%rcx,4), %edx
addl $0x1, %edx
movl %edx, (%rax,%rcx,4)
movl -0x30(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x30(%rbp)
jmp 0x30313
jmp 0x3004f
jmp 0x3049f
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0x3000d
movq $0x0, -0x58(%rbp)
movq -0x58(%rbp), %rax
movq -0x8(%rbp), %rcx
cmpq 0x40(%rcx), %rax
jae 0x304fb
movq -0x50(%rbp), %rax
movq -0x58(%rbp), %rcx
cmpl $0x0, (%rax,%rcx,4)
jle 0x304eb
movq 0x10(%rbp), %rax
movq -0x58(%rbp), %rcx
movsd 0xcb37(%rip), %xmm0     # 0x3d018
addsd (%rax,%rcx,8), %xmm0
movsd %xmm0, (%rax,%rcx,8)
jmp 0x304ed
movq -0x58(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x58(%rbp)
jmp 0x304b5
movl $0x0, -0x2c(%rbp)
movl -0x2c(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl 0x4(%rcx), %eax
jae 0x30702
movl $0x0, -0xd4(%rbp)
movl $0x0, -0xd8(%rbp)
movl $0x0, -0xdc(%rbp)
movq -0x48(%rbp), %rax
movslq -0x2c(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movq -0x40(%rbp), %rcx
movl -0x2c(%rbp), %edx
addl $0x1, %edx
movslq %edx, %rdx
movl (%rcx,%rdx,4), %ecx
movq -0x40(%rbp), %rdx
movslq -0x2c(%rbp), %rsi
subl (%rdx,%rsi,4), %ecx
cmpl %ecx, %eax
jne 0x3055c
jmp 0x3057b
leaq 0xd7ce(%rip), %rdi      # 0x3dd31
leaq 0xd643(%rip), %rsi      # 0x3dbad
movl $0x7d, %edx
leaq 0xd741(%rip), %rcx      # 0x3dcb7
callq 0x2170
movq -0x60(%rbp), %rdi
movq -0x40(%rbp), %rax
movslq -0x2c(%rbp), %rcx
movslq (%rax,%rcx,4), %rax
shlq $0x4, %rax
addq %rax, %rdi
movq -0x60(%rbp), %rsi
movq -0x40(%rbp), %rax
movl -0x2c(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movslq (%rax,%rcx,4), %rax
shlq $0x4, %rax
addq %rax, %rsi
callq 0x3f80
movq -0x40(%rbp), %rax
movslq -0x2c(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0x30(%rbp)
movl -0x30(%rbp), %eax
movq -0x40(%rbp), %rcx
movl -0x2c(%rbp), %edx
addl $0x1, %edx
movslq %edx, %rdx
cmpl (%rcx,%rdx,4), %eax
jge 0x306a7
movq -0x60(%rbp), %rax
movslq -0x30(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movl (%rax), %eax
cmpl -0xd8(%rbp), %eax
jbe 0x30641
movl -0xd8(%rbp), %eax
subl -0xd4(%rbp), %eax
addl -0xdc(%rbp), %eax
movl %eax, -0xdc(%rbp)
movq -0x60(%rbp), %rax
movslq -0x30(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movl (%rax), %eax
movl %eax, -0xd4(%rbp)
movq -0x60(%rbp), %rax
movslq -0x30(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movl 0x4(%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movl %eax, -0xd8(%rbp)
jmp 0x30697
movq -0x60(%rbp), %rax
movslq -0x30(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movl 0x4(%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
cmpl -0xd8(%rbp), %eax
jle 0x3067f
movq -0x60(%rbp), %rax
movslq -0x30(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movl 0x4(%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movl %eax, -0xe0(%rbp)
jmp 0x3068b
movl -0xd8(%rbp), %eax
movl %eax, -0xe0(%rbp)
movl -0xe0(%rbp), %eax
movl %eax, -0xd8(%rbp)
jmp 0x30699
movl -0x30(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x30(%rbp)
jmp 0x305c1
movl -0xd8(%rbp), %eax
subl -0xd4(%rbp), %eax
addl -0xdc(%rbp), %eax
movl %eax, -0xdc(%rbp)
cvtsi2sdl -0xdc(%rbp), %xmm0
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
movslq -0x2c(%rbp), %rcx
shlq $0x6, %rcx
addq %rcx, %rax
cvtsi2sdl (%rax), %xmm1
divsd %xmm1, %xmm0
movq -0x28(%rbp), %rax
movslq -0x2c(%rbp), %rcx
addsd (%rax,%rcx,8), %xmm0
movsd %xmm0, (%rax,%rcx,8)
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0x30502
movq -0x68(%rbp), %rdi
movq -0x50(%rbp), %rsi
callq 0x2670
movq -0x68(%rbp), %rdi
movq -0x60(%rbp), %rsi
callq 0x2670
movq -0x68(%rbp), %rdi
movq -0x40(%rbp), %rsi
callq 0x2670
movq -0x68(%rbp), %rdi
movq -0x48(%rbp), %rsi
callq 0x2670
addq $0xe0, %rsp
popq %rbp
retq
nop