// File: 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
movq %rsp, %rbp
subq $0x160, %rsp            # imm = 0x160
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movl %eax, -0x40(%rbp)
movl -0x4(%rbp), %eax
shll %eax
movl %eax, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
movl %eax, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq 0x8(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x18(%rcx), %rcx
movq 0x28(%rcx), %rcx
movl -0x20(%rbp), %edx
movq (%rcx,%rdx,8), %rcx
shrq $0x20, %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x48(%rbp)
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq 0x28(%rax), %rax
movl -0x20(%rbp), %ecx
movq (%rax,%rcx,8), %rax
movl %eax, -0x34(%rbp)
movl $0x0, -0x28(%rbp)
movl -0x28(%rbp), %eax
cmpl -0x34(%rbp), %eax
jae 0x2c6641
movq -0x48(%rbp), %rax
movl -0x28(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0xc(%rax), %eax
shrl $0x1f, %eax
cmpl $0x0, %eax
je 0x2c6184
jmp 0x2c6633
movq -0x48(%rbp), %rax
movl -0x28(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
shrl %eax
movl -0x1c(%rbp), %ecx
shrl %ecx
cmpl %ecx, %eax
jne 0x2c61a5
jmp 0x2c6633
movq -0x48(%rbp), %rax
movl -0x28(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
movl %eax, -0x24(%rbp)
movq -0x10(%rbp), %rdi
movq -0x48(%rbp), %rsi
movl -0x28(%rbp), %eax
imulq $0x18, %rax, %rax
addq %rax, %rsi
leaq -0x74(%rbp), %rdx
callq 0x2c4a30
movl -0x74(%rbp), %eax
cmpl -0x4(%rbp), %eax
jne 0x2c629b
movl -0x68(%rbp), %eax
cmpl -0x4(%rbp), %eax
je 0x2c629b
jmp 0x2c61ee
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x18(%rbp), %rcx
cmpq 0x10(%rcx), %rax
jne 0x2c625b
movq -0x18(%rbp), %rax
cmpq $0x0, 0x10(%rax)
je 0x2c621f
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rax
shlq %rax
movq %rax, -0x120(%rbp)
jmp 0x2c622d
movl $0x2, %eax
movq %rax, -0x120(%rbp)
jmp 0x2c622d
movq -0x120(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x18(%rbp), %rax
movq (%rax), %rdi
movq -0x18(%rbp), %rax
imulq $0x1c, 0x10(%rax), %rsi
callq 0x2360
movq %rax, %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
movq -0x18(%rbp), %rax
movq (%rax), %rax
movq -0x18(%rbp), %rdx
movq 0x8(%rdx), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, 0x8(%rdx)
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movq -0x74(%rbp), %rcx
movq %rcx, (%rax)
movq -0x6c(%rbp), %rcx
movq %rcx, 0x8(%rax)
movq -0x64(%rbp), %rcx
movq %rcx, 0x10(%rax)
movl -0x5c(%rbp), %ecx
movl %ecx, 0x18(%rax)
jmp 0x2c629b
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq 0x8(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x18(%rcx), %rcx
movq 0x28(%rcx), %rcx
movl -0x24(%rbp), %edx
xorl $0x1, %edx
movl %edx, %edx
movq (%rcx,%rdx,8), %rcx
shrq $0x20, %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x50(%rbp)
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq 0x28(%rax), %rax
movl -0x24(%rbp), %ecx
xorl $0x1, %ecx
movl %ecx, %ecx
movq (%rax,%rcx,8), %rax
movl %eax, -0x38(%rbp)
movl $0x0, -0x2c(%rbp)
movl -0x2c(%rbp), %eax
cmpl -0x38(%rbp), %eax
jae 0x2c6631
movq -0x50(%rbp), %rax
movl -0x2c(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0xc(%rax), %eax
shrl $0x1f, %eax
cmpl $0x0, %eax
je 0x2c631a
jmp 0x2c6623
movq -0x50(%rbp), %rax
movl -0x2c(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
shrl %eax
movl -0x1c(%rbp), %ecx
shrl %ecx
cmpl %ecx, %eax
jne 0x2c633b
jmp 0x2c6623
movq -0x10(%rbp), %rdi
movq -0x50(%rbp), %rsi
movl -0x2c(%rbp), %eax
imulq $0x18, %rax, %rax
addq %rax, %rsi
leaq -0x90(%rbp), %rdx
callq 0x2c4a30
movq -0x10(%rbp), %rdi
leaq -0x74(%rbp), %rsi
leaq -0x90(%rbp), %rdx
leaq -0xac(%rbp), %rcx
callq 0x2c4d40
cmpl $0x0, %eax
jne 0x2c637e
jmp 0x2c6623
movl -0xac(%rbp), %eax
cmpl -0x4(%rbp), %eax
jne 0x2c6457
movl -0xa0(%rbp), %eax
cmpl -0x4(%rbp), %eax
je 0x2c6457
jmp 0x2c639e
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x18(%rbp), %rcx
cmpq 0x10(%rcx), %rax
jne 0x2c640b
movq -0x18(%rbp), %rax
cmpq $0x0, 0x10(%rax)
je 0x2c63cf
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rax
shlq %rax
movq %rax, -0x128(%rbp)
jmp 0x2c63dd
movl $0x2, %eax
movq %rax, -0x128(%rbp)
jmp 0x2c63dd
movq -0x128(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x18(%rbp), %rax
movq (%rax), %rdi
movq -0x18(%rbp), %rax
imulq $0x1c, 0x10(%rax), %rsi
callq 0x2360
movq %rax, %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
movq -0x18(%rbp), %rax
movq (%rax), %rax
movq -0x18(%rbp), %rdx
movq 0x8(%rdx), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, 0x8(%rdx)
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movq -0xac(%rbp), %rcx
movq %rcx, (%rax)
movq -0xa4(%rbp), %rcx
movq %rcx, 0x8(%rax)
movq -0x9c(%rbp), %rcx
movq %rcx, 0x10(%rax)
movl -0x94(%rbp), %ecx
movl %ecx, 0x18(%rax)
jmp 0x2c6457
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq 0x8(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x18(%rcx), %rcx
movq 0x28(%rcx), %rcx
movq -0x50(%rbp), %rdx
movl -0x2c(%rbp), %esi
imulq $0x18, %rsi, %rsi
addq %rsi, %rdx
movl 0x8(%rdx), %edx
xorl $0x1, %edx
movl %edx, %edx
movq (%rcx,%rdx,8), %rcx
shrq $0x20, %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x58(%rbp)
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq 0x28(%rax), %rax
movq -0x50(%rbp), %rcx
movl -0x2c(%rbp), %edx
imulq $0x18, %rdx, %rdx
addq %rdx, %rcx
movl 0x8(%rcx), %ecx
xorl $0x1, %ecx
movl %ecx, %ecx
movq (%rax,%rcx,8), %rax
movl %eax, -0x3c(%rbp)
movl $0x0, -0x30(%rbp)
movl -0x30(%rbp), %eax
cmpl -0x3c(%rbp), %eax
jae 0x2c6621
movq -0x58(%rbp), %rax
movl -0x30(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0xc(%rax), %eax
shrl $0x1f, %eax
cmpl $0x0, %eax
je 0x2c64f2
jmp 0x2c6613
movq -0x10(%rbp), %rdi
movq -0x58(%rbp), %rsi
movl -0x30(%rbp), %eax
imulq $0x18, %rax, %rax
addq %rax, %rsi
leaq -0xc8(%rbp), %rdx
callq 0x2c4a30
movq -0x10(%rbp), %rdi
leaq -0xac(%rbp), %rsi
leaq -0xc8(%rbp), %rdx
leaq -0xe4(%rbp), %rcx
callq 0x2c4d40
cmpl $0x0, %eax
jne 0x2c6538
jmp 0x2c6613
movl -0xe4(%rbp), %eax
cmpl -0x4(%rbp), %eax
jne 0x2c6611
movl -0xd8(%rbp), %eax
cmpl -0x4(%rbp), %eax
je 0x2c6611
jmp 0x2c6558
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x18(%rbp), %rcx
cmpq 0x10(%rcx), %rax
jne 0x2c65c5
movq -0x18(%rbp), %rax
cmpq $0x0, 0x10(%rax)
je 0x2c6589
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rax
shlq %rax
movq %rax, -0x130(%rbp)
jmp 0x2c6597
movl $0x2, %eax
movq %rax, -0x130(%rbp)
jmp 0x2c6597
movq -0x130(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x18(%rbp), %rax
movq (%rax), %rdi
movq -0x18(%rbp), %rax
imulq $0x1c, 0x10(%rax), %rsi
callq 0x2360
movq %rax, %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
movq -0x18(%rbp), %rax
movq (%rax), %rax
movq -0x18(%rbp), %rdx
movq 0x8(%rdx), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, 0x8(%rdx)
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movq -0xe4(%rbp), %rcx
movq %rcx, (%rax)
movq -0xdc(%rbp), %rcx
movq %rcx, 0x8(%rax)
movq -0xd4(%rbp), %rcx
movq %rcx, 0x10(%rax)
movl -0xcc(%rbp), %ecx
movl %ecx, 0x18(%rax)
jmp 0x2c6611
jmp 0x2c6613
movl -0x30(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x30(%rbp)
jmp 0x2c64c8
jmp 0x2c6623
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0x2c62f0
jmp 0x2c6633
movl -0x28(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x28(%rbp)
jmp 0x2c615a
movl -0x1c(%rbp), %eax
xorl $0x1, %eax
movl %eax, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
movl %eax, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq 0x8(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x18(%rcx), %rcx
movq 0x28(%rcx), %rcx
movl -0x20(%rbp), %edx
movq (%rcx,%rdx,8), %rcx
shrq $0x20, %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x48(%rbp)
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq 0x28(%rax), %rax
movl -0x20(%rbp), %ecx
movq (%rax,%rcx,8), %rax
movl %eax, -0x34(%rbp)
movl $0x0, -0x28(%rbp)
movl -0x28(%rbp), %eax
cmpl -0x34(%rbp), %eax
jae 0x2c6b82
movq -0x48(%rbp), %rax
movl -0x28(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0xc(%rax), %eax
shrl $0x1f, %eax
cmpl $0x0, %eax
je 0x2c66c5
jmp 0x2c6b74
movq -0x48(%rbp), %rax
movl -0x28(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
shrl %eax
movl -0x1c(%rbp), %ecx
shrl %ecx
cmpl %ecx, %eax
jne 0x2c66e6
jmp 0x2c6b74
movq -0x48(%rbp), %rax
movl -0x28(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
movl %eax, -0x24(%rbp)
movq -0x10(%rbp), %rdi
movq -0x48(%rbp), %rsi
movl -0x28(%rbp), %eax
imulq $0x18, %rax, %rax
addq %rax, %rsi
leaq -0x74(%rbp), %rdx
callq 0x2c4a30
movl -0x74(%rbp), %eax
cmpl -0x4(%rbp), %eax
jne 0x2c67dc
movl -0x68(%rbp), %eax
cmpl -0x4(%rbp), %eax
je 0x2c67dc
jmp 0x2c672f
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x18(%rbp), %rcx
cmpq 0x10(%rcx), %rax
jne 0x2c679c
movq -0x18(%rbp), %rax
cmpq $0x0, 0x10(%rax)
je 0x2c6760
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rax
shlq %rax
movq %rax, -0x138(%rbp)
jmp 0x2c676e
movl $0x2, %eax
movq %rax, -0x138(%rbp)
jmp 0x2c676e
movq -0x138(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x18(%rbp), %rax
movq (%rax), %rdi
movq -0x18(%rbp), %rax
imulq $0x1c, 0x10(%rax), %rsi
callq 0x2360
movq %rax, %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
movq -0x18(%rbp), %rax
movq (%rax), %rax
movq -0x18(%rbp), %rdx
movq 0x8(%rdx), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, 0x8(%rdx)
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movq -0x74(%rbp), %rcx
movq %rcx, (%rax)
movq -0x6c(%rbp), %rcx
movq %rcx, 0x8(%rax)
movq -0x64(%rbp), %rcx
movq %rcx, 0x10(%rax)
movl -0x5c(%rbp), %ecx
movl %ecx, 0x18(%rax)
jmp 0x2c67dc
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq 0x8(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x18(%rcx), %rcx
movq 0x28(%rcx), %rcx
movl -0x24(%rbp), %edx
xorl $0x1, %edx
movl %edx, %edx
movq (%rcx,%rdx,8), %rcx
shrq $0x20, %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x50(%rbp)
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq 0x28(%rax), %rax
movl -0x24(%rbp), %ecx
xorl $0x1, %ecx
movl %ecx, %ecx
movq (%rax,%rcx,8), %rax
movl %eax, -0x38(%rbp)
movl $0x0, -0x2c(%rbp)
movl -0x2c(%rbp), %eax
cmpl -0x38(%rbp), %eax
jae 0x2c6b72
movq -0x50(%rbp), %rax
movl -0x2c(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0xc(%rax), %eax
shrl $0x1f, %eax
cmpl $0x0, %eax
je 0x2c685b
jmp 0x2c6b64
movq -0x50(%rbp), %rax
movl -0x2c(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
shrl %eax
movl -0x1c(%rbp), %ecx
shrl %ecx
cmpl %ecx, %eax
jne 0x2c687c
jmp 0x2c6b64
movq -0x10(%rbp), %rdi
movq -0x50(%rbp), %rsi
movl -0x2c(%rbp), %eax
imulq $0x18, %rax, %rax
addq %rax, %rsi
leaq -0x90(%rbp), %rdx
callq 0x2c4a30
movq -0x10(%rbp), %rdi
leaq -0x74(%rbp), %rsi
leaq -0x90(%rbp), %rdx
leaq -0xac(%rbp), %rcx
callq 0x2c4d40
cmpl $0x0, %eax
jne 0x2c68bf
jmp 0x2c6b64
movl -0xac(%rbp), %eax
cmpl -0x4(%rbp), %eax
jne 0x2c6998
movl -0xa0(%rbp), %eax
cmpl -0x4(%rbp), %eax
je 0x2c6998
jmp 0x2c68df
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x18(%rbp), %rcx
cmpq 0x10(%rcx), %rax
jne 0x2c694c
movq -0x18(%rbp), %rax
cmpq $0x0, 0x10(%rax)
je 0x2c6910
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rax
shlq %rax
movq %rax, -0x140(%rbp)
jmp 0x2c691e
movl $0x2, %eax
movq %rax, -0x140(%rbp)
jmp 0x2c691e
movq -0x140(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x18(%rbp), %rax
movq (%rax), %rdi
movq -0x18(%rbp), %rax
imulq $0x1c, 0x10(%rax), %rsi
callq 0x2360
movq %rax, %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
movq -0x18(%rbp), %rax
movq (%rax), %rax
movq -0x18(%rbp), %rdx
movq 0x8(%rdx), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, 0x8(%rdx)
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movq -0xac(%rbp), %rcx
movq %rcx, (%rax)
movq -0xa4(%rbp), %rcx
movq %rcx, 0x8(%rax)
movq -0x9c(%rbp), %rcx
movq %rcx, 0x10(%rax)
movl -0x94(%rbp), %ecx
movl %ecx, 0x18(%rax)
jmp 0x2c6998
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq 0x8(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x18(%rcx), %rcx
movq 0x28(%rcx), %rcx
movq -0x50(%rbp), %rdx
movl -0x2c(%rbp), %esi
imulq $0x18, %rsi, %rsi
addq %rsi, %rdx
movl 0x8(%rdx), %edx
xorl $0x1, %edx
movl %edx, %edx
movq (%rcx,%rdx,8), %rcx
shrq $0x20, %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x58(%rbp)
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq 0x28(%rax), %rax
movq -0x50(%rbp), %rcx
movl -0x2c(%rbp), %edx
imulq $0x18, %rdx, %rdx
addq %rdx, %rcx
movl 0x8(%rcx), %ecx
xorl $0x1, %ecx
movl %ecx, %ecx
movq (%rax,%rcx,8), %rax
movl %eax, -0x3c(%rbp)
movl $0x0, -0x30(%rbp)
movl -0x30(%rbp), %eax
cmpl -0x3c(%rbp), %eax
jae 0x2c6b62
movq -0x58(%rbp), %rax
movl -0x30(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0xc(%rax), %eax
shrl $0x1f, %eax
cmpl $0x0, %eax
je 0x2c6a33
jmp 0x2c6b54
movq -0x10(%rbp), %rdi
movq -0x58(%rbp), %rsi
movl -0x30(%rbp), %eax
imulq $0x18, %rax, %rax
addq %rax, %rsi
leaq -0xc8(%rbp), %rdx
callq 0x2c4a30
movq -0x10(%rbp), %rdi
leaq -0xac(%rbp), %rsi
leaq -0xc8(%rbp), %rdx
leaq -0xe4(%rbp), %rcx
callq 0x2c4d40
cmpl $0x0, %eax
jne 0x2c6a79
jmp 0x2c6b54
movl -0xe4(%rbp), %eax
cmpl -0x4(%rbp), %eax
jne 0x2c6b52
movl -0xd8(%rbp), %eax
cmpl -0x4(%rbp), %eax
je 0x2c6b52
jmp 0x2c6a99
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x18(%rbp), %rcx
cmpq 0x10(%rcx), %rax
jne 0x2c6b06
movq -0x18(%rbp), %rax
cmpq $0x0, 0x10(%rax)
je 0x2c6aca
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rax
shlq %rax
movq %rax, -0x148(%rbp)
jmp 0x2c6ad8
movl $0x2, %eax
movq %rax, -0x148(%rbp)
jmp 0x2c6ad8
movq -0x148(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x18(%rbp), %rax
movq (%rax), %rdi
movq -0x18(%rbp), %rax
imulq $0x1c, 0x10(%rax), %rsi
callq 0x2360
movq %rax, %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
movq -0x18(%rbp), %rax
movq (%rax), %rax
movq -0x18(%rbp), %rdx
movq 0x8(%rdx), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, 0x8(%rdx)
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movq -0xe4(%rbp), %rcx
movq %rcx, (%rax)
movq -0xdc(%rbp), %rcx
movq %rcx, 0x8(%rax)
movq -0xd4(%rbp), %rcx
movq %rcx, 0x10(%rax)
movl -0xcc(%rbp), %ecx
movl %ecx, 0x18(%rax)
jmp 0x2c6b52
jmp 0x2c6b54
movl -0x30(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x30(%rbp)
jmp 0x2c6a09
jmp 0x2c6b64
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0x2c6831
jmp 0x2c6b74
movl -0x28(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x28(%rbp)
jmp 0x2c669b
movq -0x18(%rbp), %rax
movq (%rax), %rdi
movl -0x40(%rbp), %eax
imulq $0x1c, %rax, %rax
addq %rax, %rdi
movq -0x18(%rbp), %rax
movq (%rax), %rsi
movq -0x18(%rbp), %rax
imulq $0x1c, 0x8(%rax), %rax
addq %rax, %rsi
callq 0x27bdd0
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movl -0x40(%rbp), %ecx
cmpq %rcx, %rax
jbe 0x2c73e2
movl -0x40(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
movl -0x40(%rbp), %eax
movl %eax, -0x28(%rbp)
movl -0x2c(%rbp), %eax
movq -0x18(%rbp), %rcx
cmpq 0x8(%rcx), %rax
ja 0x2c7353
movl -0x2c(%rbp), %eax
movq -0x18(%rbp), %rcx
cmpq 0x8(%rcx), %rax
je 0x2c6c1a
movq -0x18(%rbp), %rax
movq (%rax), %rax
movl -0x2c(%rbp), %ecx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movl 0xc(%rax), %eax
movq -0x18(%rbp), %rcx
movq (%rcx), %rcx
movl -0x28(%rbp), %edx
imulq $0x1c, %rdx, %rdx
addq %rdx, %rcx
cmpl 0xc(%rcx), %eax
je 0x2c7343
movl -0x2c(%rbp), %eax
subl -0x28(%rbp), %eax
movl %eax, %eax
movq %rax, -0x100(%rbp)
movl -0x2c(%rbp), %eax
subl -0x28(%rbp), %eax
cmpl $0x1, %eax
jbe 0x2c733d
movl -0x28(%rbp), %eax
movl %eax, -0x20(%rbp)
movl -0x20(%rbp), %eax
cmpl -0x2c(%rbp), %eax
jae 0x2c730a
movq -0x18(%rbp), %rax
movq (%rax), %rax
movl -0x20(%rbp), %ecx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
cmpl $-0x1, 0xc(%rax)
jne 0x2c6c66
jmp 0x2c72fc
movl -0x28(%rbp), %eax
movl %eax, -0x30(%rbp)
movl -0x30(%rbp), %eax
cmpl -0x2c(%rbp), %eax
jae 0x2c72fa
movl -0x20(%rbp), %eax
cmpl -0x30(%rbp), %eax
jne 0x2c6c85
jmp 0x2c72ec
movq -0x18(%rbp), %rax
movq (%rax), %rax
movl -0x30(%rbp), %ecx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
cmpl $-0x1, 0xc(%rax)
jne 0x2c6ca1
jmp 0x2c72ec
movq -0x18(%rbp), %rax
movq (%rax), %rax
movl -0x20(%rbp), %ecx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movl 0x18(%rax), %eax
shrl $0x1f, %eax
movq -0x18(%rbp), %rcx
movq (%rcx), %rcx
movl -0x30(%rbp), %edx
imulq $0x1c, %rdx, %rdx
addq %rdx, %rcx
movl 0x18(%rcx), %ecx
shrl $0x1f, %ecx
cmpl %ecx, %eax
je 0x2c6cd8
jmp 0x2c72ec
movq -0x18(%rbp), %rax
movq (%rax), %rax
movl -0x20(%rbp), %ecx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movl 0x4(%rax), %eax
movq -0x18(%rbp), %rcx
movq (%rcx), %rcx
movl -0x30(%rbp), %edx
imulq $0x1c, %rdx, %rdx
addq %rdx, %rcx
cmpl 0x4(%rcx), %eax
jb 0x2c6d1e
movq -0x18(%rbp), %rax
movq (%rax), %rax
movl -0x20(%rbp), %ecx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movl 0x4(%rax), %eax
movl %eax, -0x14c(%rbp)
jmp 0x2c6d38
movq -0x18(%rbp), %rax
movq (%rax), %rax
movl -0x30(%rbp), %ecx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movl 0x4(%rax), %eax
movl %eax, -0x14c(%rbp)
movl -0x14c(%rbp), %eax
movl %eax, %eax
movq %rax, -0xf0(%rbp)
movq -0x18(%rbp), %rax
movq (%rax), %rax
movl -0x20(%rbp), %ecx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
movq -0x18(%rbp), %rcx
movq (%rcx), %rcx
movl -0x30(%rbp), %edx
imulq $0x1c, %rdx, %rdx
addq %rdx, %rcx
cmpl 0x8(%rcx), %eax
ja 0x2c6d8d
movq -0x18(%rbp), %rax
movq (%rax), %rax
movl -0x20(%rbp), %ecx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
movl %eax, -0x150(%rbp)
jmp 0x2c6da7
movq -0x18(%rbp), %rax
movq (%rax), %rax
movl -0x30(%rbp), %ecx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
movl %eax, -0x150(%rbp)
movl -0x150(%rbp), %eax
movl %eax, %eax
movq %rax, -0xf8(%rbp)
movq -0xf8(%rbp), %rax
cmpq -0xf0(%rbp), %rax
ja 0x2c6dcb
jmp 0x2c72ec
movq -0xf8(%rbp), %rax
subq -0xf0(%rbp), %rax
movq %rax, -0x108(%rbp)
movq -0x18(%rbp), %rax
movq (%rax), %rax
movl -0x20(%rbp), %ecx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movl 0x10(%rax), %eax
movq -0x18(%rbp), %rcx
movq (%rcx), %rcx
movl -0x30(%rbp), %edx
imulq $0x1c, %rdx, %rdx
addq %rdx, %rcx
cmpl 0x10(%rcx), %eax
jb 0x2c6e26
movq -0x18(%rbp), %rax
movq (%rax), %rax
movl -0x20(%rbp), %ecx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movl 0x10(%rax), %eax
movl %eax, -0x154(%rbp)
jmp 0x2c6e40
movq -0x18(%rbp), %rax
movq (%rax), %rax
movl -0x30(%rbp), %ecx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movl 0x10(%rax), %eax
movl %eax, -0x154(%rbp)
movl -0x154(%rbp), %eax
movl %eax, %eax
movq %rax, -0xf0(%rbp)
movq -0x18(%rbp), %rax
movq (%rax), %rax
movl -0x20(%rbp), %ecx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movl 0x14(%rax), %eax
movq -0x18(%rbp), %rcx
movq (%rcx), %rcx
movl -0x30(%rbp), %edx
imulq $0x1c, %rdx, %rdx
addq %rdx, %rcx
cmpl 0x14(%rcx), %eax
ja 0x2c6e95
movq -0x18(%rbp), %rax
movq (%rax), %rax
movl -0x20(%rbp), %ecx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movl 0x14(%rax), %eax
movl %eax, -0x158(%rbp)
jmp 0x2c6eaf
movq -0x18(%rbp), %rax
movq (%rax), %rax
movl -0x30(%rbp), %ecx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movl 0x14(%rax), %eax
movl %eax, -0x158(%rbp)
movl -0x158(%rbp), %eax
movl %eax, %eax
movq %rax, -0xf8(%rbp)
movq -0xf8(%rbp), %rax
cmpq -0xf0(%rbp), %rax
ja 0x2c6ed3
jmp 0x2c72ec
movq -0xf8(%rbp), %rax
subq -0xf0(%rbp), %rax
movq %rax, -0x110(%rbp)
movq $0x0, -0x118(%rbp)
movq -0x108(%rbp), %rax
movq -0x18(%rbp), %rcx
movq (%rcx), %rcx
movl -0x20(%rbp), %edx
imulq $0x1c, %rdx, %rdx
addq %rdx, %rcx
movl 0x8(%rcx), %ecx
movq -0x18(%rbp), %rdx
movq (%rdx), %rdx
movl -0x20(%rbp), %esi
imulq $0x1c, %rsi, %rsi
addq %rsi, %rdx
subl 0x4(%rdx), %ecx
movl %ecx, %ecx
cmpq %rcx, %rax
jne 0x2c6f5f
movq -0x110(%rbp), %rax
movq -0x18(%rbp), %rcx
movq (%rcx), %rcx
movl -0x20(%rbp), %edx
imulq $0x1c, %rdx, %rdx
addq %rdx, %rcx
movl 0x14(%rcx), %ecx
movq -0x18(%rbp), %rdx
movq (%rdx), %rdx
movl -0x20(%rbp), %esi
imulq $0x1c, %rsi, %rsi
addq %rsi, %rdx
subl 0x10(%rdx), %ecx
movl %ecx, %ecx
cmpq %rcx, %rax
je 0x2c6fcb
movq -0x108(%rbp), %rax
movq -0x18(%rbp), %rcx
movq (%rcx), %rcx
movl -0x30(%rbp), %edx
imulq $0x1c, %rdx, %rdx
addq %rdx, %rcx
movl 0x8(%rcx), %ecx
movq -0x18(%rbp), %rdx
movq (%rdx), %rdx
movl -0x30(%rbp), %esi
imulq $0x1c, %rsi, %rsi
addq %rsi, %rdx
subl 0x4(%rdx), %ecx
movl %ecx, %ecx
cmpq %rcx, %rax
jne 0x2c6fd6
movq -0x110(%rbp), %rax
movq -0x18(%rbp), %rcx
movq (%rcx), %rcx
movl -0x30(%rbp), %edx
imulq $0x1c, %rdx, %rdx
addq %rdx, %rcx
movl 0x14(%rcx), %ecx
movq -0x18(%rbp), %rdx
movq (%rdx), %rdx
movl -0x30(%rbp), %esi
imulq $0x1c, %rsi, %rsi
addq %rsi, %rdx
subl 0x10(%rdx), %ecx
movl %ecx, %ecx
cmpq %rcx, %rax
jne 0x2c6fd6
movq $0x1, -0x118(%rbp)
cmpq $0x0, -0x118(%rbp)
jne 0x2c717a
movaps 0xbb025(%rip), %xmm0    # 0x382010
movq -0x108(%rbp), %xmm1
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movapd 0xbb021(%rip), %xmm0    # 0x382020
subpd %xmm0, %xmm1
movaps %xmm1, %xmm0
unpckhpd %xmm1, %xmm1            # xmm1 = xmm1[1,1]
addsd %xmm0, %xmm1
movq -0x18(%rbp), %rax
movq (%rax), %rax
movl -0x20(%rbp), %ecx
leaq (%rcx,%rcx,8), %rdx
leaq (%rdx,%rdx,2), %rdx
addq %rcx, %rdx
movl 0x4(%rax,%rdx), %ecx
movl 0x8(%rax,%rdx), %eax
subl %ecx, %eax
cvtsi2sd %rax, %xmm0
movsd 0xbb1e6(%rip), %xmm2    # 0x382220
mulsd %xmm2, %xmm0
ucomisd %xmm1, %xmm0
jb 0x2c7049
jmp 0x2c72ec
movaps 0xbafc0(%rip), %xmm0    # 0x382010
movq -0x108(%rbp), %xmm1
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movapd 0xbafbc(%rip), %xmm0    # 0x382020
subpd %xmm0, %xmm1
movaps %xmm1, %xmm0
unpckhpd %xmm1, %xmm1            # xmm1 = xmm1[1,1]
addsd %xmm0, %xmm1
movq -0x18(%rbp), %rax
movq (%rax), %rax
movl -0x30(%rbp), %ecx
leaq (%rcx,%rcx,8), %rdx
leaq (%rdx,%rdx,2), %rdx
addq %rcx, %rdx
movl 0x4(%rax,%rdx), %ecx
movl 0x8(%rax,%rdx), %eax
subl %ecx, %eax
cvtsi2sd %rax, %xmm0
movsd 0xbb181(%rip), %xmm2    # 0x382220
mulsd %xmm2, %xmm0
ucomisd %xmm1, %xmm0
jb 0x2c70ae
jmp 0x2c72ec
movaps 0xbaf5b(%rip), %xmm0    # 0x382010
movq -0x110(%rbp), %xmm1
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movapd 0xbaf57(%rip), %xmm0    # 0x382020
subpd %xmm0, %xmm1
movaps %xmm1, %xmm0
unpckhpd %xmm1, %xmm1            # xmm1 = xmm1[1,1]
addsd %xmm0, %xmm1
movq -0x18(%rbp), %rax
movq (%rax), %rax
movl -0x20(%rbp), %ecx
leaq (%rcx,%rcx,8), %rdx
leaq (%rdx,%rdx,2), %rdx
addq %rcx, %rdx
movl 0x10(%rax,%rdx), %ecx
movl 0x14(%rax,%rdx), %eax
subl %ecx, %eax
cvtsi2sd %rax, %xmm0
movsd 0xbb11c(%rip), %xmm2    # 0x382220
mulsd %xmm2, %xmm0
ucomisd %xmm1, %xmm0
jb 0x2c7113
jmp 0x2c72ec
movaps 0xbaef6(%rip), %xmm0    # 0x382010
movq -0x110(%rbp), %xmm1
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movapd 0xbaef2(%rip), %xmm0    # 0x382020
subpd %xmm0, %xmm1
movaps %xmm1, %xmm0
unpckhpd %xmm1, %xmm1            # xmm1 = xmm1[1,1]
addsd %xmm0, %xmm1
movq -0x18(%rbp), %rax
movq (%rax), %rax
movl -0x30(%rbp), %ecx
leaq (%rcx,%rcx,8), %rdx
leaq (%rdx,%rdx,2), %rdx
addq %rcx, %rdx
movl 0x10(%rax,%rdx), %ecx
movl 0x14(%rax,%rdx), %eax
subl %ecx, %eax
cvtsi2sd %rax, %xmm0
movsd 0xbb0b7(%rip), %xmm2    # 0x382220
mulsd %xmm2, %xmm0
ucomisd %xmm1, %xmm0
jb 0x2c7178
jmp 0x2c72ec
jmp 0x2c717a
movq -0x18(%rbp), %rax
movq (%rax), %rax
movl -0x20(%rbp), %ecx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movl 0x4(%rax), %eax
movq -0x18(%rbp), %rcx
movq (%rcx), %rcx
movl -0x30(%rbp), %edx
imulq $0x1c, %rdx, %rdx
addq %rdx, %rcx
cmpl 0x4(%rcx), %eax
jbe 0x2c71cc
movq -0x18(%rbp), %rax
movq (%rax), %rax
movl -0x30(%rbp), %ecx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movl 0x4(%rax), %ecx
movq -0x18(%rbp), %rax
movq (%rax), %rax
movl -0x20(%rbp), %edx
imulq $0x1c, %rdx, %rdx
addq %rdx, %rax
movl %ecx, 0x4(%rax)
movq -0x18(%rbp), %rax
movq (%rax), %rax
movl -0x20(%rbp), %ecx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
movq -0x18(%rbp), %rcx
movq (%rcx), %rcx
movl -0x30(%rbp), %edx
imulq $0x1c, %rdx, %rdx
addq %rdx, %rcx
cmpl 0x8(%rcx), %eax
jae 0x2c721e
movq -0x18(%rbp), %rax
movq (%rax), %rax
movl -0x30(%rbp), %ecx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movl 0x8(%rax), %ecx
movq -0x18(%rbp), %rax
movq (%rax), %rax
movl -0x20(%rbp), %edx
imulq $0x1c, %rdx, %rdx
addq %rdx, %rax
movl %ecx, 0x8(%rax)
movq -0x18(%rbp), %rax
movq (%rax), %rax
movl -0x20(%rbp), %ecx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movl 0x10(%rax), %eax
movq -0x18(%rbp), %rcx
movq (%rcx), %rcx
movl -0x30(%rbp), %edx
imulq $0x1c, %rdx, %rdx
addq %rdx, %rcx
cmpl 0x10(%rcx), %eax
jbe 0x2c7270
movq -0x18(%rbp), %rax
movq (%rax), %rax
movl -0x30(%rbp), %ecx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movl 0x10(%rax), %ecx
movq -0x18(%rbp), %rax
movq (%rax), %rax
movl -0x20(%rbp), %edx
imulq $0x1c, %rdx, %rdx
addq %rdx, %rax
movl %ecx, 0x10(%rax)
movq -0x18(%rbp), %rax
movq (%rax), %rax
movl -0x20(%rbp), %ecx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movl 0x14(%rax), %eax
movq -0x18(%rbp), %rcx
movq (%rcx), %rcx
movl -0x30(%rbp), %edx
imulq $0x1c, %rdx, %rdx
addq %rdx, %rcx
cmpl 0x14(%rcx), %eax
jae 0x2c72c2
movq -0x18(%rbp), %rax
movq (%rax), %rax
movl -0x30(%rbp), %ecx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movl 0x14(%rax), %ecx
movq -0x18(%rbp), %rax
movq (%rax), %rax
movl -0x20(%rbp), %edx
imulq $0x1c, %rdx, %rdx
addq %rdx, %rax
movl %ecx, 0x14(%rax)
movq -0x18(%rbp), %rax
movq (%rax), %rax
movl -0x30(%rbp), %ecx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
movl $0xffffffff, 0xc(%rax)  # imm = 0xFFFFFFFF
movq -0x100(%rbp), %rax
addq $-0x1, %rax
movq %rax, -0x100(%rbp)
movl -0x30(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x30(%rbp)
jmp 0x2c6c6c
jmp 0x2c72fc
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0x2c6c3e
cmpq $0x1, -0x100(%rbp)
jbe 0x2c733b
movq -0x18(%rbp), %rax
movq (%rax), %rdi
movl -0x28(%rbp), %eax
imulq $0x1c, %rax, %rax
addq %rax, %rdi
movq -0x18(%rbp), %rax
movq (%rax), %rsi
movl -0x2c(%rbp), %eax
imulq $0x1c, %rax, %rax
addq %rax, %rsi
callq 0x27b890
jmp 0x2c733d
movl -0x2c(%rbp), %eax
movl %eax, -0x28(%rbp)
jmp 0x2c7345
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0x2c6bce
movl -0x40(%rbp), %eax
movl %eax, -0x30(%rbp)
movl %eax, -0x2c(%rbp)
movl -0x2c(%rbp), %eax
movq -0x18(%rbp), %rcx
cmpq 0x8(%rcx), %rax
jae 0x2c73d5
movq -0x18(%rbp), %rax
movq (%rax), %rax
movl -0x2c(%rbp), %ecx
imulq $0x1c, %rcx, %rcx
addq %rcx, %rax
cmpl $-0x1, 0xc(%rax)
jne 0x2c7382
jmp 0x2c73ca
movq -0x18(%rbp), %rax
movq (%rax), %rcx
movl -0x2c(%rbp), %eax
imulq $0x1c, %rax, %rax
addq %rax, %rcx
movq -0x18(%rbp), %rax
movq (%rax), %rax
movl -0x30(%rbp), %edx
movl %edx, %esi
addl $0x1, %esi
movl %esi, -0x30(%rbp)
movl %edx, %edx
imulq $0x1c, %rdx, %rdx
addq %rdx, %rax
movq (%rcx), %rdx
movq %rdx, (%rax)
movq 0x8(%rcx), %rdx
movq %rdx, 0x8(%rax)
movq 0x10(%rcx), %rdx
movq %rdx, 0x10(%rax)
movl 0x18(%rcx), %ecx
movl %ecx, 0x18(%rax)
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0x2c735c
movl -0x30(%rbp), %eax
movl %eax, %ecx
movq -0x18(%rbp), %rax
movq %rcx, 0x8(%rax)
addq $0x160, %rsp            # imm = 0x160
popq %rbp
retq
nopl (%rax,%rax)