// File: /workspace/github_cpp_makefile_star2_O1/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 $0x118, %rsp            # imm = 0x118
movq %r8, %rbx
movq %rcx, 0x90(%rsp)
movq %rdx, 0x88(%rsp)
movl %edi, %r13d
movq 0x8(%r8), %rax
movq %rax, 0x98(%rsp)
leal (%r13,%r13), %edx
movq %rsi, 0x8(%rsp)
movq 0x18(%rsi), %rcx
movq 0x28(%rcx), %rax
movq %rdx, 0x40(%rsp)
movq (%rax,%rdx,8), %rax
testl %eax, %eax
je 0x1c016a
movq %rax, %rdx
shrq $0x20, %rdx
leaq (%rdx,%rdx,2), %rdx
shlq $0x3, %rdx
addq 0x8(%rcx), %rdx
movq %rdx, 0x18(%rsp)
movl %r13d, %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
movl %ecx, 0x28(%rsp)
movl %eax, %eax
movq %rax, 0x48(%rsp)
xorl %eax, %eax
movq %rax, 0x20(%rsp)
leaq (%rax,%rax,2), %rax
movq 0x18(%rsp), %rcx
cmpl $0x0, 0xc(%rcx,%rax,8)
js 0x1c0157
movq 0x18(%rsp), %rcx
leaq (%rcx,%rax,8), %rsi
movl 0x8(%rsi), %r14d
movl %r14d, %eax
shrl %eax
cmpl 0x28(%rsp), %eax
je 0x1c0157
movq 0x8(%rsp), %rdi
leaq 0x6c(%rsp), %rdx
callq 0x1be59e
cmpl %r13d, 0x6c(%rsp)
jne 0x1bff30
cmpl %r13d, 0x78(%rsp)
je 0x1bff30
movq 0x10(%rbx), %rax
cmpq %rax, 0x8(%rbx)
jne 0x1bfeff
leaq (%rax,%rax), %rcx
testq %rax, %rax
movl $0x2, %eax
cmoveq %rax, %rcx
movq %rcx, 0x10(%rbx)
movq (%rbx), %rdi
leaq (%rcx,%rcx,8), %rax
leaq (%rax,%rax,2), %rsi
addq %rcx, %rsi
callq 0x2370
movq %rax, (%rbx)
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x8(%rbx)
leaq (%rcx,%rcx,8), %rdx
leaq (%rdx,%rdx,2), %rdx
addq %rcx, %rdx
movdqu 0x6c(%rsp), %xmm0
movupd 0x78(%rsp), %xmm1
movupd %xmm1, 0xc(%rax,%rdx)
movdqu %xmm0, (%rax,%rdx)
movq 0x8(%rsp), %rax
movq 0x18(%rax), %rax
movq 0x28(%rax), %rcx
xorq $0x1, %r14
movq (%rcx,%r14,8), %rcx
testl %ecx, %ecx
je 0x1c0157
movq %rcx, %rdx
shrq $0x20, %rdx
leaq (%rdx,%rdx,2), %rdx
shlq $0x3, %rdx
addq 0x8(%rax), %rdx
movq %rdx, 0x38(%rsp)
movl %ecx, %eax
movq %rax, 0x30(%rsp)
xorl %eax, %eax
movq %rax, 0x10(%rsp)
leaq (%rax,%rax,2), %rax
movq 0x38(%rsp), %rcx
cmpl $0x0, 0xc(%rcx,%rax,8)
js 0x1c0144
movq 0x38(%rsp), %rcx
leaq (%rcx,%rax,8), %r15
movl 0x8(%r15), %eax
shrl %eax
cmpl 0x28(%rsp), %eax
je 0x1c0144
movq 0x8(%rsp), %rdi
movq %r15, %rsi
leaq 0xfc(%rsp), %r14
movq %r14, %rdx
callq 0x1be59e
leaq 0x6c(%rsp), %rsi
movq %r14, %rdx
leaq 0x50(%rsp), %rcx
callq 0x1be6f7
testl %eax, %eax
je 0x1c0144
cmpl %r13d, 0x50(%rsp)
jne 0x1c0045
cmpl %r13d, 0x5c(%rsp)
je 0x1c0045
movq 0x10(%rbx), %rax
cmpq %rax, 0x8(%rbx)
jne 0x1c0014
leaq (%rax,%rax), %rcx
testq %rax, %rax
movl $0x2, %eax
cmoveq %rax, %rcx
movq %rcx, 0x10(%rbx)
movq (%rbx), %rdi
leaq (%rcx,%rcx,8), %rax
leaq (%rax,%rax,2), %rsi
addq %rcx, %rsi
callq 0x2370
movq %rax, (%rbx)
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x8(%rbx)
leaq (%rcx,%rcx,8), %rdx
leaq (%rdx,%rdx,2), %rdx
addq %rcx, %rdx
movdqu 0x50(%rsp), %xmm0
movupd 0x5c(%rsp), %xmm1
movupd %xmm1, 0xc(%rax,%rdx)
movdqu %xmm0, (%rax,%rdx)
movq 0x8(%rsp), %rax
movq 0x18(%rax), %rax
movq 0x28(%rax), %rcx
movl 0x8(%r15), %edx
xorq $0x1, %rdx
movq (%rcx,%rdx,8), %rcx
testl %ecx, %ecx
je 0x1c0144
movq %rcx, %rdx
shrq $0x20, %rdx
leaq (%rdx,%rdx,2), %r15
shlq $0x3, %r15
addq 0x8(%rax), %r15
movl %ecx, %r14d
cmpl $0x0, 0xc(%r15)
js 0x1c0137
movq 0x8(%rsp), %rdi
movq %r15, %rsi
leaq 0xe0(%rsp), %r12
movq %r12, %rdx
callq 0x1be59e
leaq 0x50(%rsp), %rsi
movq %r12, %rdx
leaq 0xa4(%rsp), %rcx
callq 0x1be6f7
testl %eax, %eax
je 0x1c0137
cmpl %r13d, 0xa4(%rsp)
jne 0x1c0137
cmpl %r13d, 0xb0(%rsp)
je 0x1c0137
movq 0x10(%rbx), %rax
cmpq %rax, 0x8(%rbx)
jne 0x1c0100
leaq (%rax,%rax), %rcx
testq %rax, %rax
movl $0x2, %eax
cmoveq %rax, %rcx
movq %rcx, 0x10(%rbx)
movq (%rbx), %rdi
leaq (%rcx,%rcx,8), %rax
leaq (%rax,%rax,2), %rsi
addq %rcx, %rsi
callq 0x2370
movq %rax, (%rbx)
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x8(%rbx)
leaq (%rcx,%rcx,8), %rdx
leaq (%rdx,%rdx,2), %rdx
addq %rcx, %rdx
movdqu 0xa4(%rsp), %xmm0
movupd 0xb0(%rsp), %xmm1
movupd %xmm1, 0xc(%rax,%rdx)
movdqu %xmm0, (%rax,%rdx)
addq $0x18, %r15
decq %r14
jne 0x1c007c
movq 0x10(%rsp), %rax
incq %rax
cmpq 0x30(%rsp), %rax
jne 0x1bff6e
movq 0x20(%rsp), %rax
incq %rax
cmpq 0x48(%rsp), %rax
jne 0x1bfe79
movq 0x8(%rsp), %rax
movq 0x18(%rax), %rcx
movq 0x28(%rcx), %rax
movl 0x40(%rsp), %edx
movq 0x8(%rax,%rdx,8), %rax
testl %eax, %eax
je 0x1c04a4
movq %rax, %rdx
shrq $0x20, %rdx
leaq (%rdx,%rdx,2), %rdx
shlq $0x3, %rdx
addq 0x8(%rcx), %rdx
movq %rdx, 0x20(%rsp)
movl %r13d, %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
movl %ecx, 0x30(%rsp)
movl %eax, %eax
movq %rax, 0x18(%rsp)
xorl %eax, %eax
movq %rax, 0x28(%rsp)
leaq (%rax,%rax,2), %rax
movq 0x20(%rsp), %rcx
cmpl $0x0, 0xc(%rcx,%rax,8)
js 0x1c0491
movq 0x20(%rsp), %rcx
leaq (%rcx,%rax,8), %rsi
movl 0x8(%rsi), %r14d
movl %r14d, %eax
shrl %eax
cmpl 0x30(%rsp), %eax
je 0x1c0491
movq 0x8(%rsp), %rdi
leaq 0x6c(%rsp), %rdx
callq 0x1be59e
cmpl %r13d, 0x6c(%rsp)
jne 0x1c026d
cmpl %r13d, 0x78(%rsp)
je 0x1c026d
movq 0x10(%rbx), %rax
cmpq %rax, 0x8(%rbx)
jne 0x1c023c
leaq (%rax,%rax), %rcx
testq %rax, %rax
movl $0x2, %eax
cmoveq %rax, %rcx
movq %rcx, 0x10(%rbx)
movq (%rbx), %rdi
leaq (%rcx,%rcx,8), %rax
leaq (%rax,%rax,2), %rsi
addq %rcx, %rsi
callq 0x2370
movq %rax, (%rbx)
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x8(%rbx)
leaq (%rcx,%rcx,8), %rdx
leaq (%rdx,%rdx,2), %rdx
addq %rcx, %rdx
movdqu 0x6c(%rsp), %xmm0
movupd 0x78(%rsp), %xmm1
movupd %xmm1, 0xc(%rax,%rdx)
movdqu %xmm0, (%rax,%rdx)
movq 0x8(%rsp), %rax
movq 0x18(%rax), %rax
movq 0x28(%rax), %rcx
xorq $0x1, %r14
movq (%rcx,%r14,8), %rcx
testl %ecx, %ecx
je 0x1c0491
movq %rcx, %rdx
shrq $0x20, %rdx
leaq (%rdx,%rdx,2), %rdx
shlq $0x3, %rdx
addq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movl %ecx, %eax
movq %rax, 0x38(%rsp)
xorl %ebp, %ebp
leaq (,%rbp,2), %rax
addq %rbp, %rax
movq 0x10(%rsp), %rcx
cmpl $0x0, 0xc(%rcx,%rax,8)
js 0x1c0483
movq 0x10(%rsp), %rcx
leaq (%rcx,%rax,8), %r15
movl 0x8(%r15), %eax
shrl %eax
cmpl 0x30(%rsp), %eax
je 0x1c0483
movq 0x8(%rsp), %rdi
movq %r15, %rsi
leaq 0xfc(%rsp), %r14
movq %r14, %rdx
callq 0x1be59e
leaq 0x6c(%rsp), %rsi
movq %r14, %rdx
leaq 0x50(%rsp), %rcx
callq 0x1be6f7
testl %eax, %eax
je 0x1c0483
cmpl %r13d, 0x50(%rsp)
jne 0x1c0384
cmpl %r13d, 0x5c(%rsp)
je 0x1c0384
movq 0x10(%rbx), %rax
cmpq %rax, 0x8(%rbx)
jne 0x1c0353
leaq (%rax,%rax), %rcx
testq %rax, %rax
movl $0x2, %eax
cmoveq %rax, %rcx
movq %rcx, 0x10(%rbx)
movq (%rbx), %rdi
leaq (%rcx,%rcx,8), %rax
leaq (%rax,%rax,2), %rsi
addq %rcx, %rsi
callq 0x2370
movq %rax, (%rbx)
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x8(%rbx)
leaq (%rcx,%rcx,8), %rdx
leaq (%rdx,%rdx,2), %rdx
addq %rcx, %rdx
movdqu 0x50(%rsp), %xmm0
movupd 0x5c(%rsp), %xmm1
movupd %xmm1, 0xc(%rax,%rdx)
movdqu %xmm0, (%rax,%rdx)
movq 0x8(%rsp), %rax
movq 0x18(%rax), %rax
movq 0x28(%rax), %rcx
movl 0x8(%r15), %edx
xorq $0x1, %rdx
movq (%rcx,%rdx,8), %rcx
testl %ecx, %ecx
je 0x1c0483
movq %rcx, %rdx
shrq $0x20, %rdx
leaq (%rdx,%rdx,2), %r15
shlq $0x3, %r15
addq 0x8(%rax), %r15
movl %ecx, %r14d
cmpl $0x0, 0xc(%r15)
js 0x1c0476
movq 0x8(%rsp), %rdi
movq %r15, %rsi
leaq 0xe0(%rsp), %r12
movq %r12, %rdx
callq 0x1be59e
leaq 0x50(%rsp), %rsi
movq %r12, %rdx
leaq 0xa4(%rsp), %rcx
callq 0x1be6f7
testl %eax, %eax
je 0x1c0476
cmpl %r13d, 0xa4(%rsp)
jne 0x1c0476
cmpl %r13d, 0xb0(%rsp)
je 0x1c0476
movq 0x10(%rbx), %rax
cmpq %rax, 0x8(%rbx)
jne 0x1c043f
leaq (%rax,%rax), %rcx
testq %rax, %rax
movl $0x2, %eax
cmoveq %rax, %rcx
movq %rcx, 0x10(%rbx)
movq (%rbx), %rdi
leaq (%rcx,%rcx,8), %rax
leaq (%rax,%rax,2), %rsi
addq %rcx, %rsi
callq 0x2370
movq %rax, (%rbx)
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x8(%rbx)
leaq (%rcx,%rcx,8), %rdx
leaq (%rdx,%rdx,2), %rdx
addq %rcx, %rdx
movdqu 0xa4(%rsp), %xmm0
movupd 0xb0(%rsp), %xmm1
movupd %xmm1, 0xc(%rax,%rdx)
movdqu %xmm0, (%rax,%rdx)
addq $0x18, %r15
decq %r14
jne 0x1c03bb
incq %rbp
cmpq 0x38(%rsp), %rbp
jne 0x1c02ab
movq 0x28(%rsp), %rax
incq %rax
cmpq 0x18(%rsp), %rax
jne 0x1c01b6
movq 0x98(%rsp), %r15
movl %r15d, %r14d
leaq (%r14,%r14,8), %rax
leaq (%rax,%rax,2), %rdi
addq %r14, %rdi
movq (%rbx), %rsi
movq 0x8(%rbx), %rax
addq %rsi, %rdi
leaq (%rax,%rax,8), %rcx
leaq (%rcx,%rcx,2), %rcx
addq %rax, %rsi
addq %rcx, %rsi
callq 0x195abc
movq 0x8(%rbx), %r11
cmpq %r14, %r11
jbe 0x1c0919
leal 0x1(%r15), %r14d
cmpq %r14, %r11
movq 0x90(%rsp), %r9
movq 0x88(%rsp), %r10
jb 0x1c08ab
xorl %edx, %edx
movq 0x64d35(%rip), %xmm0    # 0x225240
movapd 0x64d3d(%rip), %xmm1    # 0x225250
movsd 0x64f7d(%rip), %xmm2    # 0x225498
movl %r15d, %eax
movq %r11, 0xc0(%rsp)
cmpq %r14, %r11
je 0x1c0555
movq (%rbx), %rcx
leaq (%r14,%r14,8), %rsi
leaq (%rsi,%rsi,2), %rsi
addq %r14, %rsi
movl 0xc(%rcx,%rsi), %esi
movl %eax, %edi
leaq (%rdi,%rdi,8), %r8
leaq (%r8,%r8,2), %r8
addq %rdi, %r8
cmpl 0xc(%rcx,%r8), %esi
je 0x1c089f
movl %r14d, %esi
cmpq %r9, %rdx
jae 0x1c086e
movq (%rbx), %rdi
movl %eax, %r12d
leaq (%r12,%r12,8), %rcx
leaq (%rcx,%rcx,2), %rcx
addq %r12, %rcx
movq %rdi, 0x40(%rsp)
movl 0xc(%rdi,%rcx), %edi
movq (%r10,%rdx,8), %r8
shrq $0x20, %r8
cmpq %rdi, %r8
jae 0x1c0598
incq %rdx
cmpq %rdx, %r9
jne 0x1c057b
movq %r9, %rdx
jmp 0x1c086e
cmpl %edi, %r8d
jne 0x1c086e
movl %r14d, %edi
subl %eax, %edi
setbe %al
cmpl $0x2, %edi
setb %dil
orb %al, %dil
jne 0x1c089c
movq %rdx, 0xc8(%rsp)
movq %r14, 0xd0(%rsp)
movq 0x40(%rsp), %rax
addq %rcx, %rax
addq $0x18, %rax
movq %rax, 0xd8(%rsp)
movq %r12, %r10
subq %rsi, %r10
xorl %r11d, %r11d
leaq (%r12,%r12,8), %rax
leaq (%rax,%rax,2), %rax
movq %r12, 0x18(%rsp)
addq %r12, %rax
movq 0x40(%rsp), %rcx
cmpl $-0x1, 0xc(%rcx,%rax)
je 0x1c0825
movq 0x40(%rsp), %rcx
leaq (%rcx,%rax), %rdi
movq %rdi, 0x8(%rsp)
addq %rcx, %rax
addq $0x8, %rax
movq %rax, 0x10(%rsp)
movq 0xd8(%rsp), %r12
xorl %r13d, %r13d
movq %r11, 0x38(%rsp)
cmpq %r13, %r11
je 0x1c0815
cmpl $-0x1, -0xc(%r12)
je 0x1c0815
movl (%r12), %eax
movq 0x8(%rsp), %rcx
xorl 0x18(%rcx), %eax
js 0x1c0815
movq 0x8(%rsp), %rax
movl 0x4(%rax), %r9d
movl -0x14(%r12), %r8d
cmpl %r8d, %r9d
movl %r8d, %eax
cmoval %r9d, %eax
movl -0x10(%r12), %edi
movq 0x10(%rsp), %rcx
movl (%rcx), %edx
cmpl %edi, %edx
movl %edi, %ecx
cmovbl %edx, %ecx
cmpl %eax, %ecx
jbe 0x1c0815
movq %r10, %r11
movl %edx, %r10d
movq 0x10(%rsp), %rbp
movl 0x8(%rbp), %r14d
movl -0x8(%r12), %r15d
cmpl %r15d, %r14d
movl %r15d, 0x28(%rsp)
movl %r14d, 0x20(%rsp)
cmoval %r14d, %r15d
movl -0x4(%r12), %r14d
movl 0xc(%rbp), %edx
movl %edi, %ebp
movl %r10d, %edi
movq %r11, %r10
movq 0x38(%rsp), %r11
cmpl %r14d, %edx
movl %r14d, 0x30(%rsp)
cmovbl %edx, %r14d
cmpl %r15d, %r14d
jbe 0x1c0815
movl %eax, %eax
movq %rax, 0x48(%rsp)
movl %ecx, %eax
subq 0x48(%rsp), %rax
movl %r15d, %ecx
movl %r14d, %r15d
subq %rcx, %r15
movq 0x8(%rsp), %rcx
movl 0x8(%rcx), %ecx
subl %r9d, %ecx
cmpq %rcx, %rax
jne 0x1c0712
movq 0x8(%rsp), %r14
movl 0x14(%r14), %r9d
subl 0x10(%r14), %r9d
cmpq %r9, %r15
je 0x1c072e
movl -0x10(%r12), %r9d
subl %r8d, %r9d
cmpq %r9, %rax
jne 0x1c0780
movl -0x4(%r12), %r8d
subl -0x8(%r12), %r8d
cmpq %r8, %r15
jne 0x1c0780
movl -0x14(%r12), %eax
movq 0x10(%rsp), %rcx
cmpl %eax, -0x4(%rcx)
jbe 0x1c0745
movq 0x10(%rsp), %rcx
movl %eax, -0x4(%rcx)
cmpl %ebp, %edi
movl 0x30(%rsp), %ecx
movl 0x28(%rsp), %edi
jae 0x1c0758
movq 0x10(%rsp), %rax
movl %ebp, (%rax)
cmpl %edi, 0x20(%rsp)
jbe 0x1c0766
movq 0x10(%rsp), %rax
movl %edi, 0x8(%rax)
cmpl %ecx, %edx
jae 0x1c0772
movq 0x10(%rsp), %rax
movl %ecx, 0xc(%rax)
movl $0xffffffff, -0xc(%r12) # imm = 0xFFFFFFFF
jmp 0x1c0815
movq %rax, %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]
movl %ecx, %eax
cvtsi2sd %rax, %xmm5
addsd %xmm4, %xmm3
mulsd %xmm2, %xmm5
ucomisd %xmm3, %xmm5
jae 0x1c0815
movl %r9d, %eax
xorps %xmm4, %xmm4
cvtsi2sd %rax, %xmm4
mulsd %xmm2, %xmm4
ucomisd %xmm3, %xmm4
jae 0x1c0815
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 0x8(%rsp), %rcx
movl 0x14(%rcx), %eax
subl 0x10(%rcx), %eax
xorps %xmm5, %xmm5
cvtsi2sd %rax, %xmm5
addsd %xmm4, %xmm3
mulsd %xmm2, %xmm5
ucomisd %xmm3, %xmm5
jae 0x1c0815
movl -0x4(%r12), %eax
subl -0x8(%r12), %eax
xorps %xmm4, %xmm4
cvtsi2sd %rax, %xmm4
mulsd %xmm2, %xmm4
ucomisd %xmm3, %xmm4
jb 0x1c072e
decq %r13
addq $0x1c, %r12
cmpq %r13, %r10
jne 0x1c0630
movq 0x18(%rsp), %r12
incq %r12
decq %r11
cmpq %rsi, %r12
jne 0x1c05e6
movq 0xd0(%rsp), %r14
movl %r14d, %eax
movq 0x98(%rsp), %r15
movq 0x90(%rsp), %r9
movq 0x88(%rsp), %r10
movq 0xc0(%rsp), %r11
movq 0xc8(%rsp), %rdx
jmp 0x1c089f
cmpl %eax, %r14d
jbe 0x1c089c
movq (%rbx), %rcx
movl %eax, %edi
leaq (%rdi,%rdi,8), %rax
leaq (%rax,%rax,2), %rax
addq %rdi, %rax
addq %rcx, %rax
addq $0xc, %rax
subq %rdi, %rsi
movl $0xffffffff, (%rax)     # imm = 0xFFFFFFFF
addq $0x1c, %rax
decq %rsi
jne 0x1c088d
movl %r14d, %eax
incl %r14d
cmpq %r14, %r11
jae 0x1c0526
movl %r15d, %edx
cmpq %rdx, 0x8(%rbx)
jbe 0x1c0910
leal 0x1(%r15), %ecx
movl %r15d, %eax
movq (%rbx), %rsi
leaq (%rdx,%rdx,8), %rdi
leaq (%rdi,%rdi,2), %rdi
addq %rdx, %rdi
cmpl $-0x1, 0xc(%rsi,%rdi)
je 0x1c0904
addq %rsi, %rdi
movl %eax, %edx
leaq (%rdx,%rdx,8), %r8
leaq (%r8,%r8,2), %r8
addq %rdx, %r8
movdqu (%rdi), %xmm0
movupd 0xc(%rdi), %xmm1
movupd %xmm1, 0xc(%rsi,%r8)
movdqu %xmm0, (%rsi,%r8)
movq (%rbx), %rdx
orl $0x3fffffff, 0x18(%rdx,%r8) # imm = 0x3FFFFFFF
incl %eax
movl %ecx, %edx
incl %ecx
cmpq %rdx, 0x8(%rbx)
ja 0x1c08bb
jmp 0x1c0913
movl %r15d, %eax
movl %eax, %eax
movq %rax, 0x8(%rbx)
movl 0x8(%rbx), %eax
subl %r15d, %eax
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq