// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/inter.cpp
// Function: gen_src_shared_interval_adv(unsigned int, ma_ug_t*, kv_ul_ov_t*)
void gen_src_shared_interval_adv(uint32_t src, ma_ug_t *ug, kv_ul_ov_t *res)
{
	uint32_t st, v, w, i, k, z, nv, nw, nz, rn; asg_arc_t *av, *aw, *az;
	ul_ov_t s1, s2, s3, s4, s5; rn = res->n; ///res->n = 0;

	st = src<<1; 
	v = st; av = asg_arc_a(ug->g, v); nv = asg_arc_n(ug->g, v);
	for (i = 0; i < nv; i++) {
        if(av[i].del) continue;
		if((av[i].v>>1) == (st>>1)) continue;
		w = av[i].v;
		cal_s_interval(ug, &(av[i]), &s1);
		if(s1.qn == src && s1.tn != src) kv_push(ul_ov_t, *res, s1);

		aw = asg_arc_a(ug->g, (w^1)); 
		nw = asg_arc_n(ug->g, (w^1));
		for (k = 0; k < nw; k++) {
			if(aw[k].del) continue;
			if((aw[k].v>>1) == (st>>1)) continue;

			cal_s_interval(ug, &(aw[k]), &s2);
			if(!cal_x_interval(ug, &s1, &s2, &s3)) continue;
			if(s3.qn == src && s3.tn != src) kv_push(ul_ov_t, *res, s3);

			az = asg_arc_a(ug->g, (aw[k].v^1)); 
			nz = asg_arc_n(ug->g, (aw[k].v^1));
			for (z = 0; z < nz; z++) {
				if(az[z].del) continue;
				cal_s_interval(ug, &(az[z]), &s4);
				if(!cal_x_interval(ug, &s3, &s4, &s5)) continue;
				if(s5.qn == src && s5.tn != src) kv_push(ul_ov_t, *res, s5);
			}
		}
    }

	st ^= 1; 
	v = st; av = asg_arc_a(ug->g, v); nv = asg_arc_n(ug->g, v);
	for (i = 0; i < nv; i++) {
        if(av[i].del) continue;
		if((av[i].v>>1) == (st>>1)) continue;
		w = av[i].v;
		cal_s_interval(ug, &(av[i]), &s1);
		if(s1.qn == src && s1.tn != src) kv_push(ul_ov_t, *res, s1);

		aw = asg_arc_a(ug->g, (w^1)); 
		nw = asg_arc_n(ug->g, (w^1));
		for (k = 0; k < nw; k++) {
			if(aw[k].del) continue;
			if((aw[k].v>>1) == (st>>1)) continue;

			cal_s_interval(ug, &(aw[k]), &s2);
			if(!cal_x_interval(ug, &s1, &s2, &s3)) continue;
			if(s3.qn == src && s3.tn != src) kv_push(ul_ov_t, *res, s3);

			az = asg_arc_a(ug->g, (aw[k].v^1)); 
			nz = asg_arc_n(ug->g, (aw[k].v^1));
			for (z = 0; z < nz; z++) {
				if(az[z].del) continue;
				cal_s_interval(ug, &(az[z]), &s4);
				if(!cal_x_interval(ug, &s3, &s4, &s5)) continue;
				if(s5.qn == src && s5.tn != src) kv_push(ul_ov_t, *res, s5);
			}
		}
    }

	radix_sort_ul_ov_srt_tn(res->a + rn, res->a + res->n);
	if(res->n > rn) {
		uint64_t os, oe, on, ovlpq, ovlpt, is_cov;
		for (k = rn + 1, i = rn; k <= res->n; k++) {
			if(k == res->n || res->a[k].tn != res->a[i].tn) {
				on = k - i;
				if(k - i > 1) {
					for (v = i; v < k; v++) {
						if(res->a[v].tn == (uint32_t)-1) continue;
						for (z = i; z < k; z++) {
							if(v == z) continue;
							if(res->a[z].tn == (uint32_t)-1) continue;
							if(res->a[v].rev != res->a[z].rev) continue;


							os = MAX(res->a[v].qs, res->a[z].qs); 
							oe = MIN(res->a[v].qe, res->a[z].qe);
							if(oe <= os) continue;
							ovlpq = oe - os;

							os = MAX(res->a[v].ts, res->a[z].ts); 
							oe = MIN(res->a[v].te, res->a[z].te);
							if(oe <= os) continue;
							ovlpt = oe - os;

							is_cov = 0;
							if(((ovlpq == (res->a[v].qe-res->a[v].qs)) && (ovlpt == (res->a[v].te-res->a[v].ts))) || 
							((ovlpq == (res->a[z].qe-res->a[z].qs)) && (ovlpt == (res->a[z].te-res->a[z].ts)))) {
								is_cov = 1;
							}

							if(!is_cov) {
								if(ovlpq <= ((res->a[v].qe-res->a[v].qs)*0.95)) continue;
								if(ovlpq <= ((res->a[z].qe-res->a[z].qs)*0.95)) continue;
								if(ovlpt <= ((res->a[v].te-res->a[v].ts)*0.95)) continue;
								if(ovlpt <= ((res->a[z].te-res->a[z].ts)*0.95)) continue;
							}

							if(res->a[v].qs > res->a[z].qs) res->a[v].qs = res->a[z].qs;
							if(res->a[v].qe < res->a[z].qe) res->a[v].qe = res->a[z].qe;
							if(res->a[v].ts > res->a[z].ts) res->a[v].ts = res->a[z].ts;
							if(res->a[v].te < res->a[z].te) res->a[v].te = res->a[z].te;
							res->a[z].tn = (uint32_t)-1; on--;

							// uint64_t vd, vz;
							// vd = (uint64_t)(res->a[v].qe-res->a[v].qs) + (uint64_t)(res->a[v].te-res->a[v].ts);
							// zd = (uint64_t)(res->a[z].qe-res->a[z].qs) + (uint64_t)(res->a[z].te-res->a[z].ts);
							// ovlp = ((vd>=zd)?(vd-zd):(zd-vd));
							// if(ovlp > 64) {
							// 	if(vd < zd) {
							// 		res->a[v].tn = (uint32_t)-1; break;
							// 	} else if(vd < zd) {
							// 		res->a[z].tn = (uint32_t)-1; continue;
							// 	}
							// }

							// vd = ((res->a[v].qe-res->a[v].qs)>=(res->a[v].te-res->a[v].ts))?
							// 		((res->a[v].qe-res->a[v].qs)-(res->a[v].te-res->a[v].ts)):
							// 			((res->a[v].te-res->a[v].ts)-(res->a[v].qe-res->a[v].qs));
							// zd = ((res->a[z].qe-res->a[z].qs)>=(res->a[z].te-res->a[z].ts))?
							// 		((res->a[z].qe-res->a[z].qs)-(res->a[z].te-res->a[z].ts)):
							// 			((res->a[z].te-res->a[z].ts)-(res->a[z].qe-res->a[z].qs));
							// if(zd <= vd) {
							// 	res->a[v].tn = (uint32_t)-1; break;
							// } else {
							// 	res->a[z].tn = (uint32_t)-1;
							// }
						}
					}
					if(on > 1) radix_sort_ul_ov_srt_qs(res->a + i, res->a + k);
				}
				i = k;
			}
		}
		for (k = z = rn; k < res->n; k++) {
			if(res->a[k].tn == (uint32_t)-1) continue;
			res->a[z++] = res->a[k];
		}
		res->n = z;
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x128, %rsp            # imm = 0x128
movq %rdx, %rbx
movl %edi, %r15d
movl 0x8(%rdx), %eax
movq %rax, 0x88(%rsp)
leal (%r15,%r15), %edx
movq %rsi, 0x8(%rsp)
movq 0x18(%rsi), %rax
movq 0x28(%rax), %rcx
movq %rdx, 0x50(%rsp)
movq (%rcx,%rdx,8), %rcx
movl %ecx, %edx
movq %rdx, 0x40(%rsp)
shrq $0x20, %rcx
imulq $0x18, %rcx, %rcx
addq 0x8(%rax), %rcx
movq %rcx, 0x20(%rsp)
movl %edi, %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movl %eax, 0x10(%rsp)
xorl %eax, %eax
leaq 0xac(%rsp), %rbp
leaq 0xf0(%rsp), %r14
movq %r15, 0x58(%rsp)
cmpq 0x40(%rsp), %rax
je 0x17d9b3
movq %rax, 0x48(%rsp)
imulq $0x18, %rax, %rsi
movq 0x20(%rsp), %rax
cmpl $0x0, 0xc(%rax,%rsi)
js 0x17d732
addq 0x20(%rsp), %rsi
movl 0x8(%rsi), %r12d
movl %r12d, %eax
shrl %eax
cmpl 0x10(%rsp), %eax
jne 0x17d73c
movq 0x48(%rsp), %rax
incq %rax
jmp 0x17d6fe
movq 0x8(%rsp), %rdi
leaq 0x64(%rsp), %rdx
callq 0x17cb1d
cmpl %r15d, 0x64(%rsp)
jne 0x17d7ae
cmpl %r15d, 0x70(%rsp)
je 0x17d7ae
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
cmpq 0x10(%rbx), %rcx
jne 0x17d78b
leaq (%rcx,%rcx), %rdx
testq %rcx, %rcx
pushq $0x2
popq %rcx
cmoveq %rcx, %rdx
movq %rdx, 0x10(%rbx)
imulq $0x1c, %rdx, %rsi
movq %rax, %rdi
callq 0x2370
movq %rax, (%rbx)
movq 0x8(%rbx), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x8(%rbx)
imulq $0x1c, %rcx, %rcx
movupd 0x64(%rsp), %xmm0
movupd 0x70(%rsp), %xmm1
movupd %xmm1, 0xc(%rax,%rcx)
movupd %xmm0, (%rax,%rcx)
movq 0x8(%rsp), %rax
movq 0x18(%rax), %rax
movq 0x28(%rax), %rcx
xorq $0x1, %r12
movq (%rcx,%r12,8), %rcx
movl %ecx, %edx
movq %rdx, 0x30(%rsp)
shrq $0x20, %rcx
imulq $0x18, %rcx, %rcx
addq 0x8(%rax), %rcx
movq %rcx, 0x18(%rsp)
xorl %eax, %eax
cmpq 0x30(%rsp), %rax
je 0x17d732
movq %rax, 0x38(%rsp)
imulq $0x18, %rax, %r13
movq 0x18(%rsp), %rax
cmpl $0x0, 0xc(%rax,%r13)
js 0x17d9a6
addq 0x18(%rsp), %r13
movl 0x8(%r13), %r12d
movl %r12d, %eax
shrl %eax
cmpl 0x10(%rsp), %eax
je 0x17d9a6
movq 0x8(%rsp), %rdi
movq %r13, %rsi
movq %rbp, %r15
movq %r14, %rbp
leaq 0x10c(%rsp), %r14
movq %r14, %rdx
callq 0x17cb1d
leaq 0x64(%rsp), %rsi
movq %r14, %rdx
movq %rbp, %r14
movq %r15, %rbp
movq 0x58(%rsp), %r15
movq %rbp, %rcx
callq 0x17cc5b
testl %eax, %eax
je 0x17d9a6
cmpl %r15d, 0xac(%rsp)
jne 0x17d8ce
cmpl %r15d, 0xb8(%rsp)
je 0x17d8ce
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
cmpq 0x10(%rbx), %rcx
jne 0x17d8a1
leaq (%rcx,%rcx), %rdx
testq %rcx, %rcx
pushq $0x2
popq %rcx
cmoveq %rcx, %rdx
movq %rdx, 0x10(%rbx)
imulq $0x1c, %rdx, %rsi
movq %rax, %rdi
callq 0x2370
movq %rax, (%rbx)
movq 0x8(%rbx), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x8(%rbx)
imulq $0x1c, %rcx, %rcx
movupd 0xac(%rsp), %xmm0
movupd 0xb8(%rsp), %xmm1
movupd %xmm1, 0xc(%rax,%rcx)
movupd %xmm0, (%rax,%rcx)
movl 0x8(%r13), %r12d
movq 0x8(%rsp), %rax
movq 0x18(%rax), %rax
movq 0x28(%rax), %rcx
xorl $0x1, %r12d
movq (%rcx,%r12,8), %rcx
movl %ecx, %r12d
shrq $0x20, %rcx
imulq $0x18, %rcx, %r13
addq 0x8(%rax), %r13
subq $0x1, %r12
jb 0x17d9a6
cmpl $0x0, 0xc(%r13)
js 0x17d99d
movq 0x8(%rsp), %rdi
movq %r13, %rsi
movq %r14, %rdx
callq 0x17cb1d
movq %rbp, %rsi
movq %r14, %rdx
leaq 0x90(%rsp), %rcx
callq 0x17cc5b
testl %eax, %eax
je 0x17d99d
cmpl %r15d, 0x90(%rsp)
jne 0x17d99d
cmpl %r15d, 0x9c(%rsp)
je 0x17d99d
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
cmpq 0x10(%rbx), %rcx
jne 0x17d974
leaq (%rcx,%rcx), %rdx
testq %rcx, %rcx
pushq $0x2
popq %rcx
cmoveq %rcx, %rdx
movq %rdx, 0x10(%rbx)
imulq $0x1c, %rdx, %rsi
movq %rax, %rdi
callq 0x2370
movq %rax, (%rbx)
movq 0x8(%rbx), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x8(%rbx)
imulq $0x1c, %rcx, %rcx
movupd 0x90(%rsp), %xmm0
movupd 0x9c(%rsp), %xmm1
movupd %xmm1, 0xc(%rax,%rcx)
movupd %xmm0, (%rax,%rcx)
addq $0x18, %r13
jmp 0x17d8f2
movq 0x38(%rsp), %rax
incq %rax
jmp 0x17d7dd
movq 0x8(%rsp), %rax
movq 0x18(%rax), %rax
movq 0x28(%rax), %rcx
movl 0x50(%rsp), %edx
movq 0x8(%rcx,%rdx,8), %rcx
movl %ecx, %edx
movq %rdx, 0x40(%rsp)
shrq $0x20, %rcx
imulq $0x18, %rcx, %rcx
addq 0x8(%rax), %rcx
movq %rcx, 0x20(%rsp)
xorl %eax, %eax
leaq 0xac(%rsp), %r14
cmpq 0x40(%rsp), %rax
je 0x17dc9d
movq %rax, 0x48(%rsp)
imulq $0x18, %rax, %rsi
movq 0x20(%rsp), %rax
cmpl $0x0, 0xc(%rax,%rsi)
js 0x17da1f
addq 0x20(%rsp), %rsi
movl 0x8(%rsi), %r12d
movl %r12d, %eax
shrl %eax
cmpl 0x10(%rsp), %eax
jne 0x17da29
movq 0x48(%rsp), %rax
incq %rax
jmp 0x17d9eb
movq 0x8(%rsp), %rdi
leaq 0x64(%rsp), %rdx
callq 0x17cb1d
cmpl %r15d, 0x64(%rsp)
jne 0x17da9b
cmpl %r15d, 0x70(%rsp)
je 0x17da9b
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
cmpq 0x10(%rbx), %rcx
jne 0x17da78
leaq (%rcx,%rcx), %rdx
testq %rcx, %rcx
pushq $0x2
popq %rcx
cmoveq %rcx, %rdx
movq %rdx, 0x10(%rbx)
imulq $0x1c, %rdx, %rsi
movq %rax, %rdi
callq 0x2370
movq %rax, (%rbx)
movq 0x8(%rbx), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x8(%rbx)
imulq $0x1c, %rcx, %rcx
movupd 0x64(%rsp), %xmm0
movupd 0x70(%rsp), %xmm1
movupd %xmm1, 0xc(%rax,%rcx)
movupd %xmm0, (%rax,%rcx)
movq 0x8(%rsp), %rax
movq 0x18(%rax), %rax
movq 0x28(%rax), %rcx
xorq $0x1, %r12
movq (%rcx,%r12,8), %rcx
movl %ecx, %edx
movq %rdx, 0x30(%rsp)
shrq $0x20, %rcx
imulq $0x18, %rcx, %rcx
addq 0x8(%rax), %rcx
movq %rcx, 0x18(%rsp)
xorl %eax, %eax
cmpq 0x30(%rsp), %rax
je 0x17da1f
movq %rax, 0x38(%rsp)
imulq $0x18, %rax, %r13
movq 0x18(%rsp), %rax
cmpl $0x0, 0xc(%rax,%r13)
js 0x17dc90
addq 0x18(%rsp), %r13
movl 0x8(%r13), %r12d
movl %r12d, %eax
shrl %eax
cmpl 0x10(%rsp), %eax
je 0x17dc90
movq 0x8(%rsp), %rdi
movq %r13, %rsi
movq %r14, %rbp
leaq 0x10c(%rsp), %r14
movq %r14, %rdx
callq 0x17cb1d
leaq 0x64(%rsp), %rsi
movq %r14, %rdx
movq %rbp, %r14
leaq 0xf0(%rsp), %rbp
movq %r14, %rcx
callq 0x17cc5b
testl %eax, %eax
je 0x17dc90
cmpl %r15d, 0xac(%rsp)
jne 0x17dbb8
cmpl %r15d, 0xb8(%rsp)
je 0x17dbb8
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
cmpq 0x10(%rbx), %rcx
jne 0x17db8b
leaq (%rcx,%rcx), %rdx
testq %rcx, %rcx
pushq $0x2
popq %rcx
cmoveq %rcx, %rdx
movq %rdx, 0x10(%rbx)
imulq $0x1c, %rdx, %rsi
movq %rax, %rdi
callq 0x2370
movq %rax, (%rbx)
movq 0x8(%rbx), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x8(%rbx)
imulq $0x1c, %rcx, %rcx
movupd 0xac(%rsp), %xmm0
movupd 0xb8(%rsp), %xmm1
movupd %xmm1, 0xc(%rax,%rcx)
movupd %xmm0, (%rax,%rcx)
movl 0x8(%r13), %r12d
movq 0x8(%rsp), %rax
movq 0x18(%rax), %rax
movq 0x28(%rax), %rcx
xorl $0x1, %r12d
movq (%rcx,%r12,8), %rcx
movl %ecx, %r12d
shrq $0x20, %rcx
imulq $0x18, %rcx, %r13
addq 0x8(%rax), %r13
subq $0x1, %r12
jb 0x17dc90
cmpl $0x0, 0xc(%r13)
js 0x17dc87
movq 0x8(%rsp), %rdi
movq %r13, %rsi
movq %rbp, %rdx
callq 0x17cb1d
movq %r14, %rsi
movq %rbp, %rdx
leaq 0x90(%rsp), %rcx
callq 0x17cc5b
testl %eax, %eax
je 0x17dc87
cmpl %r15d, 0x90(%rsp)
jne 0x17dc87
cmpl %r15d, 0x9c(%rsp)
je 0x17dc87
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
cmpq 0x10(%rbx), %rcx
jne 0x17dc5e
leaq (%rcx,%rcx), %rdx
testq %rcx, %rcx
pushq $0x2
popq %rcx
cmoveq %rcx, %rdx
movq %rdx, 0x10(%rbx)
imulq $0x1c, %rdx, %rsi
movq %rax, %rdi
callq 0x2370
movq %rax, (%rbx)
movq 0x8(%rbx), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x8(%rbx)
imulq $0x1c, %rcx, %rcx
movupd 0x90(%rsp), %xmm0
movupd 0x9c(%rsp), %xmm1
movupd %xmm1, 0xc(%rax,%rcx)
movupd %xmm0, (%rax,%rcx)
addq $0x18, %r13
jmp 0x17dbdc
movq 0x38(%rsp), %rax
incq %rax
jmp 0x17daca
movq (%rbx), %rax
movq 0x88(%rsp), %r14
imulq $0x1c, %r14, %rdi
addq %rax, %rdi
imulq $0x1c, 0x8(%rbx), %rsi
addq %rax, %rsi
callq 0x1574e1
movq 0x8(%rbx), %r8
cmpq %r14, %r8
jbe 0x17e05a
movq 0x6559f(%rip), %xmm3    # 0x1e3270
movapd 0x655a7(%rip), %xmm4    # 0x1e3280
movsd 0x65807(%rip), %xmm5    # 0x1e34e8
movl %r14d, 0x2c(%rsp)
movl 0x2c(%rsp), %r15d
pushq $0x1
popq %rax
movl %eax, %r12d
leal (%r15,%r12), %ecx
cmpq %rcx, %r8
jb 0x17e015
je 0x17dd1a
movq (%rbx), %rdx
imulq $0x1c, %rcx, %rax
movl 0xc(%rdx,%rax), %esi
imulq $0x1c, %r15, %rdi
leal 0x1(%r12), %eax
cmpl 0xc(%rdx,%rdi), %esi
je 0x17dcee
leal (%r15,%r12), %eax
movl %eax, 0x2c(%rsp)
cmpl $0x2, %r12d
jb 0x17dce6
movq %r8, 0xc8(%rsp)
movl %r12d, %eax
movq %rax, 0x50(%rsp)
imulq $0x1c, %r15, %rax
movq %rax, 0x80(%rsp)
xorl %r8d, %r8d
movq %r15, %rsi
movq %r15, 0xe8(%rsp)
movq %r12, 0xe0(%rsp)
cmpq %rcx, %rsi
jae 0x17dfbe
movq (%rbx), %rax
imulq $0x1c, %rsi, %rdx
cmpl $-0x1, 0xc(%rax,%rdx)
je 0x17dfb2
movq %rsi, 0x20(%rsp)
leaq (%rax,%rdx), %r11
addq %rax, %rdx
addq $0x8, %rdx
movq %rdx, 0x8(%rsp)
movq %r15, %r14
movq 0x80(%rsp), %rdx
leaq (%rax,%rdx), %r12
addq $0x18, %r12
xorl %r13d, %r13d
movq %r11, 0x10(%rsp)
movq %r8, 0x30(%rsp)
cmpq %rcx, %r14
jae 0x17df95
cmpq %r13, %r8
je 0x17def6
cmpl $-0x1, -0xc(%r12,%r13)
je 0x17def6
movl (%r12,%r13), %eax
xorl 0x18(%r11), %eax
js 0x17def6
movl 0x4(%r11), %ebp
movl -0x14(%r12,%r13), %esi
cmpl %esi, %ebp
movl %esi, %edi
cmoval %ebp, %edi
movl -0x10(%r12,%r13), %edx
movq 0x8(%rsp), %rax
movl (%rax), %r9d
cmpl %edx, %r9d
movl %edx, %r10d
cmovbl %r9d, %r10d
cmpl %edi, %r10d
jbe 0x17def6
movq 0x8(%rsp), %r11
movl 0x8(%r11), %r8d
movl -0x8(%r12,%r13), %eax
cmpl %eax, %r8d
movl %eax, 0x18(%rsp)
cmoval %r8d, %eax
movl -0x4(%r12,%r13), %r15d
movl 0xc(%r11), %r11d
cmpl %r15d, %r11d
movl %r15d, 0x38(%rsp)
cmovbl %r11d, %r15d
cmpl %eax, %r15d
jbe 0x17deec
movl %edi, %edi
movl %r10d, %r10d
subq %rdi, %r10
movl %eax, %eax
movl %r15d, %r15d
subq %rax, %r15
movl %r9d, %edi
subl %ebp, %edi
movl %r11d, %eax
movl %r8d, 0x48(%rsp)
subl %r8d, %eax
movq %rax, 0x58(%rsp)
cmpq %rdi, %r10
movq 0x30(%rsp), %r8
jne 0x17de73
cmpq 0x58(%rsp), %r15
je 0x17de9d
movl %r11d, 0x40(%rsp)
movl %edx, %r11d
subl %esi, %r11d
movl 0x38(%rsp), %eax
subl 0x18(%rsp), %eax
movq %r11, 0xd8(%rsp)
cmpq %r11, %r10
movl 0x40(%rsp), %r11d
jne 0x17df02
cmpq %rax, %r15
jne 0x17df02
cmpl %esi, %ebp
jbe 0x17dea9
movq 0x8(%rsp), %rdi
movl %esi, -0x4(%rdi)
cmpl %edx, %r9d
movl 0x48(%rsp), %esi
movl 0x38(%rsp), %eax
jae 0x17debd
movq 0x8(%rsp), %rdi
movl %edx, (%rdi)
movl 0x18(%rsp), %edx
cmpl %edx, %esi
jbe 0x17decd
movq 0x8(%rsp), %rsi
movl %edx, 0x8(%rsi)
cmpl %eax, %r11d
jae 0x17deda
movq 0x8(%rsp), %rdx
movl %eax, 0xc(%rdx)
orl $-0x1, -0xc(%r12,%r13)
decq 0x50(%rsp)
movq 0x10(%rsp), %r11
jmp 0x17def6
movq 0x10(%rsp), %r11
movq 0x30(%rsp), %r8
incq %r14
addq $0x1c, %r13
jmp 0x17ddaa
movq %rax, 0xd0(%rsp)
movq %r10, %xmm1
punpckldq %xmm3, %xmm1    # xmm1 = xmm1[0],xmm3[0],xmm1[1],xmm3[1]
subpd %xmm4, %xmm1
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
movl %edi, %eax
cvtsi2sd %rax, %xmm2
addsd %xmm1, %xmm0
mulsd %xmm5, %xmm2
ucomisd %xmm0, %xmm2
jae 0x17dee5
movl 0xd8(%rsp), %eax
cvtsi2sd %rax, %xmm1
mulsd %xmm5, %xmm1
ucomisd %xmm0, %xmm1
jae 0x17dee5
movq %r15, %xmm1
punpckldq %xmm3, %xmm1    # xmm1 = xmm1[0],xmm3[0],xmm1[1],xmm3[1]
subpd %xmm4, %xmm1
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
cvtsi2sdq 0x58(%rsp), %xmm2
addsd %xmm1, %xmm0
mulsd %xmm5, %xmm2
ucomisd %xmm0, %xmm2
jae 0x17dee5
cvtsi2sdq 0xd0(%rsp), %xmm1
mulsd %xmm5, %xmm1
ucomisd %xmm0, %xmm1
jb 0x17de9d
jmp 0x17dee5
movq 0x88(%rsp), %r14
movq 0xe8(%rsp), %r15
movq 0xe0(%rsp), %r12
movq 0x20(%rsp), %rsi
incq %rsi
addq $0x1c, %r8
jmp 0x17dd5a
cmpq $0x2, 0x50(%rsp)
movq 0xc8(%rsp), %r8
jb 0x17dce6
movq (%rbx), %rax
movq 0x80(%rsp), %rdi
addq %rax, %rdi
imulq $0x1c, %rcx, %rsi
addq %rax, %rsi
callq 0x1571fa
movsd 0x654f4(%rip), %xmm5    # 0x1e34e8
movapd 0x65284(%rip), %xmm4    # 0x1e3280
movq 0x6526c(%rip), %xmm3    # 0x1e3270
movq 0x8(%rbx), %r8
addl %r12d, %r15d
movl %r15d, 0x2c(%rsp)
jmp 0x17dce6
movl %r14d, %eax
movl %r14d, %r14d
movl %eax, %ecx
cmpq %r14, %r8
jbe 0x17e056
movq (%rbx), %rdx
imulq $0x1c, %r14, %rsi
cmpl $-0x1, 0xc(%rdx,%rsi)
je 0x17e051
addq %rdx, %rsi
incl %eax
imulq $0x1c, %rcx, %rcx
movupd (%rsi), %xmm0
movupd 0xc(%rsi), %xmm1
movupd %xmm1, 0xc(%rdx,%rcx)
movupd %xmm0, (%rdx,%rcx)
movq 0x8(%rbx), %r8
incl %r14d
jmp 0x17e018
movq %rcx, 0x8(%rbx)
addq $0x128, %rsp            # imm = 0x128
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq