// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/inter.cpp
// Function: gen_src_shared_interval_simple(unsigned int, ma_ug_t*, unsigned long*, unsigned long, kv_ul_ov_t*)
uint32_t gen_src_shared_interval_simple(uint32_t src, ma_ug_t *ug, uint64_t *flt, uint64_t flt_n, 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; 

	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, ovlpq, ovlpt, is_cov, fi = 0;
		for (k = rn + 1, i = rn; k <= res->n; k++) {
			if(k == res->n || res->a[k].tn != res->a[i].tn) {
				for (; fi < flt_n && (flt[fi]>>32) < res->a[i].tn; fi++);
				if(fi < flt_n && (flt[fi]>>32) == 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--;
							}
						}
						// if(on > 1) radix_sort_ul_ov_srt_qs(res->a + i, res->a + k);
					}
				} else {
					for (v = i; v < k; v++) res->a[v].tn = (uint32_t)-1;
				}
				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->a[z].sec = ((uint32_t)(0x3fffffff));
			z++;
		}
		res->n = z;
	}
	return res->n - rn;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x128, %rsp            # imm = 0x128
movq %r8, %rbx
movq %rcx, 0x90(%rsp)
movq %rdx, 0x88(%rsp)
movl %edi, %r13d
movq 0x8(%r8), %rax
movq %rax, 0x60(%rsp)
leal (%r13,%r13), %edx
movq %rsi, 0x10(%rsp)
movq 0x18(%rsi), %rax
movq 0x28(%rax), %rcx
movq %rdx, 0x50(%rsp)
movq (%rcx,%rdx,8), %rcx
movl %ecx, %edx
movq %rdx, 0x38(%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, 0xc(%rsp)
xorl %eax, %eax
leaq 0xf0(%rsp), %r12
cmpq 0x38(%rsp), %rax
je 0x17e393
movq %rax, 0x40(%rsp)
imulq $0x18, %rax, %rsi
movq 0x20(%rsp), %rax
cmpl $0x0, 0xc(%rax,%rsi)
js 0x17e118
addq 0x20(%rsp), %rsi
movl 0x8(%rsi), %r14d
movl %r14d, %eax
shrl %eax
cmpl 0xc(%rsp), %eax
jne 0x17e122
movq 0x40(%rsp), %rax
incq %rax
jmp 0x17e0e4
movq 0x10(%rsp), %rdi
leaq 0x6c(%rsp), %rdx
callq 0x17cb1d
cmpl %r13d, 0x6c(%rsp)
jne 0x17e194
cmpl %r13d, 0x78(%rsp)
je 0x17e194
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
cmpq 0x10(%rbx), %rcx
jne 0x17e171
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
movdqu 0x6c(%rsp), %xmm0
movupd 0x78(%rsp), %xmm1
movupd %xmm1, 0xc(%rax,%rcx)
movdqu %xmm0, (%rax,%rcx)
movq 0x10(%rsp), %rax
movq 0x18(%rax), %rax
movq 0x28(%rax), %rcx
xorq $0x1, %r14
movq (%rcx,%r14,8), %rcx
movl %ecx, %edx
movq %rdx, 0x30(%rsp)
shrq $0x20, %rcx
imulq $0x18, %rcx, %rcx
addq 0x8(%rax), %rcx
movq %rcx, 0x28(%rsp)
xorl %eax, %eax
cmpq 0x30(%rsp), %rax
je 0x17e118
movq %rax, 0x18(%rsp)
imulq $0x18, %rax, %r15
movq 0x28(%rsp), %rax
cmpl $0x0, 0xc(%rax,%r15)
js 0x17e386
addq 0x28(%rsp), %r15
movl 0x8(%r15), %ebp
movl %ebp, %eax
shrl %eax
cmpl 0xc(%rsp), %eax
je 0x17e386
movq 0x10(%rsp), %rdi
movq %r15, %rsi
movq %r12, %r14
leaq 0x10c(%rsp), %r12
movq %r12, %rdx
callq 0x17cb1d
leaq 0x6c(%rsp), %rsi
movq %r12, %rdx
movq %r14, %r12
leaq 0xb4(%rsp), %r14
movq %r14, %rcx
callq 0x17cc5b
testl %eax, %eax
je 0x17e386
cmpl %r13d, 0xb4(%rsp)
jne 0x17e2b0
cmpl %r13d, 0xc0(%rsp)
je 0x17e2b0
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
cmpq 0x10(%rbx), %rcx
jne 0x17e283
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
movdqu 0xb4(%rsp), %xmm0
movupd 0xc0(%rsp), %xmm1
movupd %xmm1, 0xc(%rax,%rcx)
movdqu %xmm0, (%rax,%rcx)
movl 0x8(%r15), %ebp
movq 0x10(%rsp), %rax
movq 0x18(%rax), %rax
movq 0x28(%rax), %rcx
xorl $0x1, %ebp
movq (%rcx,%rbp,8), %rcx
movl %ecx, %ebp
shrq $0x20, %rcx
imulq $0x18, %rcx, %r15
addq 0x8(%rax), %r15
subq $0x1, %rbp
jb 0x17e386
cmpl $0x0, 0xc(%r15)
js 0x17e37d
movq 0x10(%rsp), %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x17cb1d
movq %r14, %rsi
movq %r12, %rdx
leaq 0x98(%rsp), %rcx
callq 0x17cc5b
testl %eax, %eax
je 0x17e37d
cmpl %r13d, 0x98(%rsp)
jne 0x17e37d
cmpl %r13d, 0xa4(%rsp)
je 0x17e37d
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
cmpq 0x10(%rbx), %rcx
jne 0x17e354
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
movdqu 0x98(%rsp), %xmm0
movupd 0xa4(%rsp), %xmm1
movupd %xmm1, 0xc(%rax,%rcx)
movdqu %xmm0, (%rax,%rcx)
addq $0x18, %r15
jmp 0x17e2d2
movq 0x18(%rsp), %rax
incq %rax
jmp 0x17e1c3
movq 0x10(%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, 0x38(%rsp)
shrq $0x20, %rcx
imulq $0x18, %rcx, %rcx
addq 0x8(%rax), %rcx
movq %rcx, 0x20(%rsp)
xorl %eax, %eax
leaq 0xb4(%rsp), %r12
leaq 0xf0(%rsp), %rbp
movq %r13, 0x58(%rsp)
cmpq 0x38(%rsp), %rax
je 0x17e68d
movq %rax, 0x40(%rsp)
imulq $0x18, %rax, %rsi
movq 0x20(%rsp), %rax
cmpl $0x0, 0xc(%rax,%rsi)
js 0x17e40c
addq 0x20(%rsp), %rsi
movl 0x8(%rsi), %r14d
movl %r14d, %eax
shrl %eax
cmpl 0xc(%rsp), %eax
jne 0x17e416
movq 0x40(%rsp), %rax
incq %rax
jmp 0x17e3d8
movq 0x10(%rsp), %rdi
leaq 0x6c(%rsp), %rdx
callq 0x17cb1d
cmpl %r13d, 0x6c(%rsp)
jne 0x17e488
cmpl %r13d, 0x78(%rsp)
je 0x17e488
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
cmpq 0x10(%rbx), %rcx
jne 0x17e465
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
movdqu 0x6c(%rsp), %xmm0
movupd 0x78(%rsp), %xmm1
movupd %xmm1, 0xc(%rax,%rcx)
movdqu %xmm0, (%rax,%rcx)
movq 0x10(%rsp), %rax
movq 0x18(%rax), %rax
movq 0x28(%rax), %rcx
xorq $0x1, %r14
movq (%rcx,%r14,8), %rcx
movl %ecx, %edx
movq %rdx, 0x30(%rsp)
shrq $0x20, %rcx
imulq $0x18, %rcx, %rcx
addq 0x8(%rax), %rcx
movq %rcx, 0x28(%rsp)
xorl %eax, %eax
cmpq 0x30(%rsp), %rax
je 0x17e40c
movq %rax, 0x18(%rsp)
imulq $0x18, %rax, %r14
movq 0x28(%rsp), %rax
cmpl $0x0, 0xc(%rax,%r14)
js 0x17e680
addq 0x28(%rsp), %r14
movl 0x8(%r14), %r15d
movl %r15d, %eax
shrl %eax
cmpl 0xc(%rsp), %eax
je 0x17e680
movq 0x10(%rsp), %rdi
movq %r14, %rsi
movq %rbp, %r13
movq %r12, %rbp
leaq 0x10c(%rsp), %r12
movq %r12, %rdx
callq 0x17cb1d
leaq 0x6c(%rsp), %rsi
movq %r12, %rdx
movq %rbp, %r12
movq %r13, %rbp
movq 0x58(%rsp), %r13
movq %r12, %rcx
callq 0x17cc5b
testl %eax, %eax
je 0x17e680
cmpl %r13d, 0xb4(%rsp)
jne 0x17e5a8
cmpl %r13d, 0xc0(%rsp)
je 0x17e5a8
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
cmpq 0x10(%rbx), %rcx
jne 0x17e57b
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
movdqu 0xb4(%rsp), %xmm0
movupd 0xc0(%rsp), %xmm1
movupd %xmm1, 0xc(%rax,%rcx)
movdqu %xmm0, (%rax,%rcx)
movl 0x8(%r14), %r15d
movq 0x10(%rsp), %rax
movq 0x18(%rax), %rax
movq 0x28(%rax), %rcx
xorl $0x1, %r15d
movq (%rcx,%r15,8), %rcx
movl %ecx, %r15d
shrq $0x20, %rcx
imulq $0x18, %rcx, %r14
addq 0x8(%rax), %r14
subq $0x1, %r15
jb 0x17e680
cmpl $0x0, 0xc(%r14)
js 0x17e677
movq 0x10(%rsp), %rdi
movq %r14, %rsi
movq %rbp, %rdx
callq 0x17cb1d
movq %r12, %rsi
movq %rbp, %rdx
leaq 0x98(%rsp), %rcx
callq 0x17cc5b
testl %eax, %eax
je 0x17e677
cmpl %r13d, 0x98(%rsp)
jne 0x17e677
cmpl %r13d, 0xa4(%rsp)
je 0x17e677
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
cmpq 0x10(%rbx), %rcx
jne 0x17e64e
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
movdqu 0x98(%rsp), %xmm0
movupd 0xa4(%rsp), %xmm1
movupd %xmm1, 0xc(%rax,%rcx)
movdqu %xmm0, (%rax,%rcx)
addq $0x18, %r14
jmp 0x17e5cc
movq 0x18(%rsp), %rax
incq %rax
jmp 0x17e4b7
movq (%rbx), %rax
movq 0x60(%rsp), %r15
movl %r15d, %r14d
imulq $0x1c, %r14, %rdi
addq %rax, %rdi
imulq $0x1c, 0x8(%rbx), %rsi
addq %rax, %rsi
callq 0x1574e1
movq 0x8(%rbx), %rax
cmpq %r14, %rax
jbe 0x17ea7d
xorl %r11d, %r11d
movq 0x64bac(%rip), %xmm0    # 0x1e3270
movapd 0x64bb4(%rip), %xmm1    # 0x1e3280
movsd 0x64e14(%rip), %xmm2    # 0x1e34e8
movl %r15d, 0x4c(%rsp)
movq 0x90(%rsp), %r14
movq 0x88(%rsp), %r15
movl 0x4c(%rsp), %esi
pushq $0x1
popq %r10
movl %r10d, %edx
leal (%rsi,%rdx), %edi
cmpq %rdi, %rax
jb 0x17ea20
je 0x17e71d
movq (%rbx), %rcx
imulq $0x1c, %rdi, %r8
movl 0xc(%rcx,%r8), %r8d
imulq $0x1c, %rsi, %r9
leal 0x1(%rdx), %r10d
cmpl 0xc(%rcx,%r9), %r8d
je 0x17e6f1
cmpq %r14, %r11
movq %r14, %rcx
cmovaq %r11, %rcx
leal (%rsi,%rdx), %r8d
movl %r8d, 0x4c(%rsp)
imulq $0x1c, %rsi, %r10
cmpq %r14, %r11
jae 0x17e753
movq (%r15,%r11,8), %r8
shrq $0x20, %r8
movq (%rbx), %r12
movl 0xc(%r12,%r10), %r9d
cmpq %r9, %r8
jae 0x17e75b
incq %r11
jmp 0x17e734
movq %rcx, %r11
jmp 0x17e9ed
cmpl %r9d, %r8d
jne 0x17e9ed
cmpl $0x2, %edx
jb 0x17e6e9
movq %r11, 0xd0(%rsp)
movq %rax, 0xd8(%rsp)
addq %r12, %r10
addq $0x18, %r10
xorl %r11d, %r11d
movq %rsi, %rax
movq %r12, 0x50(%rsp)
movq %rsi, 0xe8(%rsp)
cmpq %rdi, %rax
jae 0x17ea0b
movq %rax, 0x38(%rsp)
imulq $0x1c, %rax, %rax
cmpl $-0x1, 0xc(%r12,%rax)
je 0x17e9c7
movq 0x50(%rsp), %rcx
leaq (%rcx,%rax), %rdx
movq %rdx, 0x10(%rsp)
addq %rcx, %rax
addq $0x8, %rax
movq %rax, 0x18(%rsp)
xorl %r13d, %r13d
movq 0xe8(%rsp), %rbp
movq %r11, 0x40(%rsp)
cmpq %rdi, %rbp
jae 0x17e9c7
cmpq %r13, %r11
je 0x17e937
cmpl $-0x1, -0xc(%r10,%r13)
je 0x17e937
movl (%r10,%r13), %eax
movq 0x10(%rsp), %rcx
xorl 0x18(%rcx), %eax
js 0x17e937
movq 0x10(%rsp), %rax
movl 0x4(%rax), %r14d
movl -0x14(%r10,%r13), %r12d
cmpl %r12d, %r14d
movl %r12d, %ecx
cmoval %r14d, %ecx
movl -0x10(%r10,%r13), %edx
movq 0x18(%rsp), %rax
movl (%rax), %esi
cmpl %edx, %esi
movl %edx, %r15d
cmovbl %esi, %r15d
cmpl %ecx, %r15d
jbe 0x17e937
movl %esi, %r11d
movl %edx, 0x58(%rsp)
movq 0x18(%rsp), %rdx
movl 0x8(%rdx), %r9d
movl -0x8(%r10,%r13), %eax
cmpl %eax, %r9d
movl %eax, 0x30(%rsp)
movl %r9d, 0x28(%rsp)
cmoval %r9d, %eax
movl -0x4(%r10,%r13), %r9d
movl 0xc(%rdx), %esi
movl %r14d, %edx
movl %r11d, %r14d
movq 0x40(%rsp), %r11
cmpl %r9d, %esi
movl %r9d, 0xc(%rsp)
cmovbl %esi, %r9d
cmpl %eax, %r9d
jbe 0x17e937
movl %r12d, %r8d
movl %ecx, %ecx
movl %r15d, %r15d
subq %rcx, %r15
movl %eax, %eax
movl %r9d, %ecx
subq %rax, %rcx
movq %rcx, 0x20(%rsp)
movl %r14d, %ecx
subl %edx, %ecx
movl %esi, %r9d
subl 0x28(%rsp), %r9d
cmpq %rcx, %r15
jne 0x17e8bf
cmpq %r9, 0x20(%rsp)
je 0x17e8f1
movl 0x58(%rsp), %eax
movl %r14d, %r12d
movl %r8d, %r14d
movl %eax, %r8d
subl %r14d, %r8d
movl 0xc(%rsp), %eax
subl 0x30(%rsp), %eax
movq %r8, 0xe0(%rsp)
cmpq %r8, %r15
movl %r14d, %r8d
movl %r12d, %r14d
jne 0x17e943
cmpq %rax, 0x20(%rsp)
jne 0x17e943
cmpl %r8d, %edx
jbe 0x17e8ff
movq 0x18(%rsp), %rax
movl %r8d, -0x4(%rax)
movl 0x58(%rsp), %edx
cmpl %edx, %r14d
movl 0xc(%rsp), %ecx
jae 0x17e913
movq 0x18(%rsp), %rax
movl %edx, (%rax)
movl 0x30(%rsp), %edx
cmpl %edx, 0x28(%rsp)
jbe 0x17e925
movq 0x18(%rsp), %rax
movl %edx, 0x8(%rax)
cmpl %ecx, %esi
jae 0x17e931
movq 0x18(%rsp), %rax
movl %ecx, 0xc(%rax)
orl $-0x1, -0xc(%r10,%r13)
incq %rbp
addq $0x1c, %r13
jmp 0x17e7db
movq %r15, %xmm4
punpckldq %xmm0, %xmm4    # xmm4 = xmm4[0],xmm0[0],xmm4[1],xmm0[1]
subpd %xmm1, %xmm4
movapd %xmm4, %xmm3
unpckhpd %xmm4, %xmm3            # xmm3 = xmm3[1],xmm4[1]
movq %rax, %r15
movl %ecx, %eax
cvtsi2sd %rax, %xmm5
addsd %xmm4, %xmm3
mulsd %xmm2, %xmm5
ucomisd %xmm3, %xmm5
jae 0x17e937
movl 0xe0(%rsp), %eax
cvtsi2sd %rax, %xmm4
mulsd %xmm2, %xmm4
ucomisd %xmm3, %xmm4
jae 0x17e937
movq 0x20(%rsp), %xmm4
punpckldq %xmm0, %xmm4    # xmm4 = xmm4[0],xmm0[0],xmm4[1],xmm0[1]
subpd %xmm1, %xmm4
movapd %xmm4, %xmm3
unpckhpd %xmm4, %xmm3            # xmm3 = xmm3[1],xmm4[1]
cvtsi2sd %r9, %xmm5
addsd %xmm4, %xmm3
mulsd %xmm2, %xmm5
ucomisd %xmm3, %xmm5
jae 0x17e937
cvtsi2sd %r15, %xmm4
mulsd %xmm2, %xmm4
ucomisd %xmm3, %xmm4
jb 0x17e8f1
jmp 0x17e937
movq 0x38(%rsp), %rax
incq %rax
addq $0x1c, %r11
movq 0x90(%rsp), %r14
movq 0x88(%rsp), %r15
movq 0x50(%rsp), %r12
jmp 0x17e793
addq $0xc, %r10
cmpq %rdi, %rsi
jae 0x17e6e9
movq (%rbx), %rcx
orl $-0x1, (%rcx,%r10)
incq %rsi
addq $0x1c, %r10
jmp 0x17e9f1
movq 0xd8(%rsp), %rax
movq 0xd0(%rsp), %r11
jmp 0x17e6e9
movq 0x60(%rsp), %rcx
movl %ecx, %r8d
movl %r8d, %r8d
movl %ecx, %edx
cmpq %r8, %rax
jbe 0x17ea71
movq (%rbx), %rsi
imulq $0x1c, %r8, %rdi
cmpl $-0x1, 0xc(%rsi,%rdi)
je 0x17ea6c
addq %rsi, %rdi
imulq $0x1c, %rdx, %rdx
movdqu (%rdi), %xmm0
movupd 0xc(%rdi), %xmm1
movupd %xmm1, 0xc(%rsi,%rdx)
movdqu %xmm0, (%rsi,%rdx)
movq (%rbx), %rsi
orl $0x3fffffff, 0x18(%rsi,%rdx) # imm = 0x3FFFFFFF
incl %ecx
movq 0x8(%rbx), %rax
incl %r8d
jmp 0x17ea28
movq %rdx, 0x8(%rbx)
movq %rdx, %rax
movq 0x60(%rsp), %r15
subl %r15d, %eax
addq $0x128, %rsp            # imm = 0x128
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq