// File: chhylp123[P]hifiasm/rcut.cpp
// Function: gen_ref_bub(mc_clus_t*, kv_u_trans_t*)
asg64_v* gen_ref_bub(mc_clus_t *bc, kv_u_trans_t *ref)
{
	if(!ref) return NULL;
	asg64_v *aux; CALLOC(aux, 1); aux->n = aux->m = bc->n; double w, mmw;
	MALLOC(aux->a, bc->n); memset(aux->a, -1, sizeof((*(aux->a)))*bc->n);
	uint32_t k, l, i, *ba, bn, m, on, bid; ma_utg_t *u = NULL; uint64_t p, mm, st, j;
	u_trans_t *o = NULL; asg64_v buf; kv_init(buf); 

	for (i = bid = 0; i < bc->bub->b_ug->u.n; i++) {///set nodes within bubbles
        u = &(bc->bub->b_ug->u.a[i]);
        for (k = 0; k < u->n; k++, bid++) {
            get_bubbles(bc->bub, u->a[k]>>33, NULL, NULL, &ba, &bn, NULL);
            for (m = 0; m < bn; m++) aux->a[ba[m]>>1] = bid;
        }
    }
	// bin = bid;

	for (i = 0; i < bc->bub->ug->g->n_seq; i++) {
		if(aux->a[i] != ((uint64_t)-1)) continue;
		o = u_trans_a(*ref, i); on = u_trans_n(*ref, i);
		if(!on) continue;
		buf.n = 0; kv_resize(uint64_t, buf, on);
		for (k = 0; k < on; k++) {
			p = aux->a[o[k].tn]; p<<= 32; p += k;
			kv_push(uint64_t, buf, p);
		}

		radix_sort_mc64(buf.a, buf.a + buf.n); 
		mm = (uint32_t)-1; mmw = -1;
		for (l = 0, k = 1; k <= buf.n; k++) {
			if((k == buf.n) || ((buf.a[l]>>32) == ((uint32_t)-1)) || ((buf.a[l]>>32) != (buf.a[k]>>32))) {
				for (m = l, w = 0; m < k; m++) w += fabs(o[((uint32_t)buf.a[m])].nw);
				if(mmw < w) {
					mmw = w; mm = buf.a[l]>>32;
				}
				l = k;
			}
		}
		if(mm != ((uint32_t)-1)) aux->a[i] = mm;
	}


	///final cluster
	for (i = 0; i < bc->bub->ug->g->n_seq; i++) {
		if(aux->a[i] != ((uint64_t)-1)) continue;
		buf.n = 0; kv_push(uint64_t, buf, i);
        while (buf.n > 0) {
            k = buf.a[--buf.n];
			if(aux->a[k] != ((uint64_t)-1)) continue;
            aux->a[k] = bid;///group id
            o = u_trans_a(*ref, k); on = u_trans_n(*ref, k);
            for (st = 0, j = 1; j <= on; ++j) {
                if(j == on || o[j].tn != o[st].tn) {
					if(aux->a[o[st].tn] == ((uint64_t)-1)) {
						kv_push(uint64_t, buf, o[st].tn);
					}
                    st = j;
                }
            }
        }
		bid++;
	}

	assert(aux->n == bc->bub->ug->g->n_seq);

	for (i = 0; i < bc->bub->b_ug->u.n; i++) {///no need nodes in bubbles
        u = &(bc->bub->b_ug->u.a[i]);
        for (k = 0; k < u->n; k++) {
            get_bubbles(bc->bub, u->a[k]>>33, NULL, NULL, &ba, &bn, NULL);
            for (m = 0; m < bn; m++) aux->a[ba[m]>>1] = (uint64_t)-1;
        }
    }
	for (i = aux->n = 0; i < bc->bub->ug->g->n_seq; i++) {
		if(aux->a[i] == ((uint64_t)-1)) continue;
		aux->a[i] <<= 32; aux->a[i] |= i;//bub_id|node_id
		aux->a[aux->n++] = aux->a[i];
	}
	radix_sort_mc64(aux->a, aux->a + aux->n);
	kv_destroy(buf);
	return aux;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xc0, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
jne 0x225ba7
movq $0x0, -0x8(%rbp)
jmp 0x2265e0
movl $0x1, %edi
movl $0x18, %esi
callq 0x2140
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rax
movl 0x54(%rax), %eax
movl %eax, %ecx
movq -0x20(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x20(%rbp), %rax
movq %rcx, (%rax)
movq -0x10(%rbp), %rax
movl 0x54(%rax), %eax
movl %eax, %edi
shlq $0x3, %rdi
callq 0x2270
movq %rax, %rcx
movq -0x20(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rdi
movq -0x10(%rbp), %rax
movl 0x54(%rax), %eax
movl %eax, %edx
shlq $0x3, %rdx
movl $0xff, %esi
callq 0x2100
movq $0x0, -0x60(%rbp)
movq $0x0, -0x88(%rbp)
movq $0x0, -0x98(%rbp)
movq $0x0, -0xa0(%rbp)
movq $0x0, -0x90(%rbp)
movl $0x0, -0x58(%rbp)
movl $0x0, -0x3c(%rbp)
movl -0x3c(%rbp), %eax
movq -0x10(%rbp), %rcx
movq 0x30(%rcx), %rcx
movq 0xc0(%rcx), %rcx
cmpq (%rcx), %rax
jae 0x225d3c
movq -0x10(%rbp), %rax
movq 0x30(%rax), %rax
movq 0xc0(%rax), %rax
movq 0x10(%rax), %rax
movl -0x3c(%rbp), %ecx
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x60(%rbp)
movl $0x0, -0x34(%rbp)
movl -0x34(%rbp), %eax
movq -0x60(%rbp), %rcx
cmpl 0x10(%rcx), %eax
jae 0x225d2c
movq -0x10(%rbp), %rax
movq 0x30(%rax), %rdi
movq -0x60(%rbp), %rax
movq 0x18(%rax), %rax
movl -0x34(%rbp), %ecx
movq (%rax,%rcx,8), %rsi
shrq $0x21, %rsi
xorl %eax, %eax
movl %eax, %ecx
leaq -0x48(%rbp), %r8
leaq -0x4c(%rbp), %r9
movq %rcx, %rdx
movq $0x0, (%rsp)
callq 0x1c4b20
movl $0x0, -0x50(%rbp)
movl -0x50(%rbp), %eax
cmpl -0x4c(%rbp), %eax
jae 0x225d13
movl -0x58(%rbp), %eax
movl %eax, %edx
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x48(%rbp), %rcx
movl -0x50(%rbp), %esi
movl (%rcx,%rsi,4), %ecx
shrl %ecx
movl %ecx, %ecx
movq %rdx, (%rax,%rcx,8)
movl -0x50(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x50(%rbp)
jmp 0x225ce1
jmp 0x225d15
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
movl -0x58(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x58(%rbp)
jmp 0x225c93
jmp 0x225d2e
movl -0x3c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3c(%rbp)
jmp 0x225c50
movl $0x0, -0x3c(%rbp)
movl -0x3c(%rbp), %eax
movq -0x10(%rbp), %rcx
movq 0x30(%rcx), %rcx
movq 0x10(%rcx), %rcx
movq 0x18(%rcx), %rcx
movl 0x14(%rcx), %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
cmpl %ecx, %eax
jae 0x22610c
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rax
movl -0x3c(%rbp), %ecx
cmpq $-0x1, (%rax,%rcx,8)
je 0x225d7e
jmp 0x2260fe
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x18(%rbp), %rcx
movq 0x28(%rcx), %rcx
movl -0x3c(%rbp), %edx
movq (%rcx,%rdx,8), %rcx
shrq $0x20, %rcx
imulq $0x30, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x88(%rbp)
movq -0x18(%rbp), %rax
movq 0x28(%rax), %rax
movl -0x3c(%rbp), %ecx
movq (%rax,%rcx,8), %rax
movl %eax, -0x54(%rbp)
cmpl $0x0, -0x54(%rbp)
jne 0x225dc4
jmp 0x2260fe
movq $0x0, -0xa0(%rbp)
movq -0x98(%rbp), %rax
movl -0x54(%rbp), %ecx
cmpq %rcx, %rax
jae 0x225eaa
movl -0x54(%rbp), %eax
movq %rax, -0x98(%rbp)
movq -0x98(%rbp), %rax
addq $-0x1, %rax
movq %rax, -0x98(%rbp)
movq -0x98(%rbp), %rax
shrq %rax
orq -0x98(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0x98(%rbp), %rax
shrq $0x2, %rax
orq -0x98(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0x98(%rbp), %rax
shrq $0x4, %rax
orq -0x98(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0x98(%rbp), %rax
shrq $0x8, %rax
orq -0x98(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0x98(%rbp), %rax
shrq $0x10, %rax
orq -0x98(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0x98(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x98(%rbp)
movq -0x90(%rbp), %rdi
movq -0x98(%rbp), %rsi
shlq $0x3, %rsi
callq 0x2360
movq %rax, -0x90(%rbp)
jmp 0x225eac
movl $0x0, -0x34(%rbp)
movl -0x34(%rbp), %eax
cmpl -0x54(%rbp), %eax
jae 0x225f95
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x88(%rbp), %rcx
movl -0x34(%rbp), %edx
imulq $0x30, %rdx, %rdx
addq %rdx, %rcx
movl 0x14(%rcx), %ecx
movq (%rax,%rcx,8), %rax
movq %rax, -0x68(%rbp)
movq -0x68(%rbp), %rax
shlq $0x20, %rax
movq %rax, -0x68(%rbp)
movl -0x34(%rbp), %eax
addq -0x68(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0xa0(%rbp), %rax
cmpq -0x98(%rbp), %rax
jne 0x225f61
cmpq $0x0, -0x98(%rbp)
je 0x225f27
movq -0x98(%rbp), %rax
shlq %rax
movq %rax, -0xa8(%rbp)
jmp 0x225f35
movl $0x2, %eax
movq %rax, -0xa8(%rbp)
jmp 0x225f35
movq -0xa8(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0x90(%rbp), %rdi
movq -0x98(%rbp), %rsi
shlq $0x3, %rsi
callq 0x2360
movq %rax, -0x90(%rbp)
movq -0x68(%rbp), %rdx
movq -0x90(%rbp), %rax
movq -0xa0(%rbp), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, -0xa0(%rbp)
movq %rdx, (%rax,%rcx,8)
jmp 0x225f87
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0x225eb3
movq -0x90(%rbp), %rdi
movq -0x90(%rbp), %rsi
movq -0xa0(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rsi
callq 0x216280
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movq %rax, -0x70(%rbp)
movsd 0x15c2b1(%rip), %xmm0   # 0x382278
movsd %xmm0, -0x30(%rbp)
movl $0x0, -0x38(%rbp)
movl $0x1, -0x34(%rbp)
movl -0x34(%rbp), %eax
cmpq -0xa0(%rbp), %rax
ja 0x2260de
movl -0x34(%rbp), %eax
cmpq -0xa0(%rbp), %rax
je 0x22603f
movq -0x90(%rbp), %rax
movl -0x38(%rbp), %ecx
movq (%rax,%rcx,8), %rax
shrq $0x20, %rax
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
cmpq %rcx, %rax
je 0x22603f
movq -0x90(%rbp), %rax
movl -0x38(%rbp), %ecx
movq (%rax,%rcx,8), %rax
shrq $0x20, %rax
movq -0x90(%rbp), %rcx
movl -0x34(%rbp), %edx
movq (%rcx,%rdx,8), %rcx
shrq $0x20, %rcx
cmpq %rcx, %rax
je 0x2260ce
movl -0x38(%rbp), %eax
movl %eax, -0x50(%rbp)
xorps %xmm0, %xmm0
movsd %xmm0, -0x28(%rbp)
movl -0x50(%rbp), %eax
cmpl -0x34(%rbp), %eax
jae 0x226098
movq -0x88(%rbp), %rax
movq -0x90(%rbp), %rcx
movl -0x50(%rbp), %edx
movq (%rcx,%rdx,8), %rcx
movl %ecx, %ecx
imulq $0x30, %rcx, %rcx
addq %rcx, %rax
movsd 0x20(%rax), %xmm0
movaps 0x167871(%rip), %xmm1   # 0x38d8f0
pand %xmm1, %xmm0
addsd -0x28(%rbp), %xmm0
movsd %xmm0, -0x28(%rbp)
movl -0x50(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x50(%rbp)
jmp 0x22604d
movsd -0x30(%rbp), %xmm1
movsd -0x28(%rbp), %xmm0
ucomisd %xmm1, %xmm0
jbe 0x2260c8
movsd -0x28(%rbp), %xmm0
movsd %xmm0, -0x30(%rbp)
movq -0x90(%rbp), %rax
movl -0x38(%rbp), %ecx
movq (%rax,%rcx,8), %rax
shrq $0x20, %rax
movq %rax, -0x70(%rbp)
movl -0x34(%rbp), %eax
movl %eax, -0x38(%rbp)
jmp 0x2260d0
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0x225fda
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpq %rax, -0x70(%rbp)
je 0x2260fc
movq -0x70(%rbp), %rdx
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rax
movl -0x3c(%rbp), %ecx
movq %rdx, (%rax,%rcx,8)
jmp 0x2260fe
movl -0x3c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3c(%rbp)
jmp 0x225d43
movl $0x0, -0x3c(%rbp)
movl -0x3c(%rbp), %eax
movq -0x10(%rbp), %rcx
movq 0x30(%rcx), %rcx
movq 0x10(%rcx), %rcx
movq 0x18(%rcx), %rcx
movl 0x14(%rcx), %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
cmpl %ecx, %eax
jae 0x2263cd
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rax
movl -0x3c(%rbp), %ecx
cmpq $-0x1, (%rax,%rcx,8)
je 0x22614e
jmp 0x2263bf
movq $0x0, -0xa0(%rbp)
movq -0xa0(%rbp), %rax
cmpq -0x98(%rbp), %rax
jne 0x2261c0
cmpq $0x0, -0x98(%rbp)
je 0x226186
movq -0x98(%rbp), %rax
shlq %rax
movq %rax, -0xb0(%rbp)
jmp 0x226194
movl $0x2, %eax
movq %rax, -0xb0(%rbp)
jmp 0x226194
movq -0xb0(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0x90(%rbp), %rdi
movq -0x98(%rbp), %rsi
shlq $0x3, %rsi
callq 0x2360
movq %rax, -0x90(%rbp)
movl -0x3c(%rbp), %eax
movl %eax, %edx
movq -0x90(%rbp), %rax
movq -0xa0(%rbp), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, -0xa0(%rbp)
movq %rdx, (%rax,%rcx,8)
jmp 0x2261e7
cmpq $0x0, -0xa0(%rbp)
jbe 0x2263b6
movq -0x90(%rbp), %rax
movq -0xa0(%rbp), %rcx
movq %rcx, %rdx
addq $-0x1, %rdx
movq %rdx, -0xa0(%rbp)
movq -0x8(%rax,%rcx,8), %rax
movl %eax, -0x34(%rbp)
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rax
movl -0x34(%rbp), %ecx
cmpq $-0x1, (%rax,%rcx,8)
je 0x22622d
jmp 0x2261e7
movl -0x58(%rbp), %eax
movl %eax, %edx
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rax
movl -0x34(%rbp), %ecx
movq %rdx, (%rax,%rcx,8)
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x18(%rbp), %rcx
movq 0x28(%rcx), %rcx
movl -0x34(%rbp), %edx
movq (%rcx,%rdx,8), %rcx
shrq $0x20, %rcx
imulq $0x30, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x88(%rbp)
movq -0x18(%rbp), %rax
movq 0x28(%rax), %rax
movl -0x34(%rbp), %ecx
movq (%rax,%rcx,8), %rax
movl %eax, -0x54(%rbp)
movq $0x0, -0x78(%rbp)
movq $0x1, -0x80(%rbp)
movq -0x80(%rbp), %rax
movl -0x54(%rbp), %ecx
cmpq %rcx, %rax
ja 0x2263b1
movq -0x80(%rbp), %rax
movl -0x54(%rbp), %ecx
cmpq %rcx, %rax
je 0x2262d2
movq -0x88(%rbp), %rax
imulq $0x30, -0x80(%rbp), %rcx
addq %rcx, %rax
movl 0x14(%rax), %eax
movq -0x88(%rbp), %rcx
imulq $0x30, -0x78(%rbp), %rdx
addq %rdx, %rcx
cmpl 0x14(%rcx), %eax
je 0x22639e
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x88(%rbp), %rcx
imulq $0x30, -0x78(%rbp), %rdx
addq %rdx, %rcx
movl 0x14(%rcx), %ecx
cmpq $-0x1, (%rax,%rcx,8)
jne 0x226396
jmp 0x2262f9
movq -0xa0(%rbp), %rax
cmpq -0x98(%rbp), %rax
jne 0x226360
cmpq $0x0, -0x98(%rbp)
je 0x226326
movq -0x98(%rbp), %rax
shlq %rax
movq %rax, -0xb8(%rbp)
jmp 0x226334
movl $0x2, %eax
movq %rax, -0xb8(%rbp)
jmp 0x226334
movq -0xb8(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0x90(%rbp), %rdi
movq -0x98(%rbp), %rsi
shlq $0x3, %rsi
callq 0x2360
movq %rax, -0x90(%rbp)
movq -0x88(%rbp), %rax
imulq $0x30, -0x78(%rbp), %rcx
addq %rcx, %rax
movl 0x14(%rax), %eax
movl %eax, %edx
movq -0x90(%rbp), %rax
movq -0xa0(%rbp), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, -0xa0(%rbp)
movq %rdx, (%rax,%rcx,8)
jmp 0x226396
movq -0x80(%rbp), %rax
movq %rax, -0x78(%rbp)
jmp 0x2263a0
movq -0x80(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x80(%rbp)
jmp 0x22628c
jmp 0x2261e7
movl -0x58(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x58(%rbp)
movl -0x3c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3c(%rbp)
jmp 0x226113
movq -0x20(%rbp), %rax
movq (%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x30(%rcx), %rcx
movq 0x10(%rcx), %rcx
movq 0x18(%rcx), %rcx
movl 0x14(%rcx), %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
movl %ecx, %ecx
cmpq %rcx, %rax
jne 0x2263f6
jmp 0x226415
leaq 0x167b28(%rip), %rdi    # 0x38df25
leaq 0x1678a4(%rip), %rsi    # 0x38dca8
movl $0xd6a, %edx            # imm = 0xD6A
leaq 0x167b35(%rip), %rcx    # 0x38df45
callq 0x2130
movl $0x0, -0x3c(%rbp)
movl -0x3c(%rbp), %eax
movq -0x10(%rbp), %rcx
movq 0x30(%rcx), %rcx
movq 0xc0(%rcx), %rcx
cmpq (%rcx), %rax
jae 0x2264fa
movq -0x10(%rbp), %rax
movq 0x30(%rax), %rax
movq 0xc0(%rax), %rax
movq 0x10(%rax), %rax
movl -0x3c(%rbp), %ecx
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x60(%rbp)
movl $0x0, -0x34(%rbp)
movl -0x34(%rbp), %eax
movq -0x60(%rbp), %rcx
cmpl 0x10(%rcx), %eax
jae 0x2264ea
movq -0x10(%rbp), %rax
movq 0x30(%rax), %rdi
movq -0x60(%rbp), %rax
movq 0x18(%rax), %rax
movl -0x34(%rbp), %ecx
movq (%rax,%rcx,8), %rsi
shrq $0x21, %rsi
xorl %eax, %eax
movl %eax, %ecx
leaq -0x48(%rbp), %r8
leaq -0x4c(%rbp), %r9
movq %rcx, %rdx
movq $0x0, (%rsp)
callq 0x1c4b20
movl $0x0, -0x50(%rbp)
movl -0x50(%rbp), %eax
cmpl -0x4c(%rbp), %eax
jae 0x2264da
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x48(%rbp), %rcx
movl -0x50(%rbp), %edx
movl (%rcx,%rdx,4), %ecx
shrl %ecx
movl %ecx, %ecx
movq $-0x1, (%rax,%rcx,8)
movl -0x50(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x50(%rbp)
jmp 0x2264a9
jmp 0x2264dc
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0x22645f
jmp 0x2264ec
movl -0x3c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3c(%rbp)
jmp 0x22641c
movq -0x20(%rbp), %rax
movq $0x0, (%rax)
movl $0x0, -0x3c(%rbp)
movl -0x3c(%rbp), %eax
movq -0x10(%rbp), %rcx
movq 0x30(%rcx), %rcx
movq 0x10(%rcx), %rcx
movq 0x18(%rcx), %rcx
movl 0x14(%rcx), %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
cmpl %ecx, %eax
jae 0x2265a9
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rax
movl -0x3c(%rbp), %ecx
cmpq $-0x1, (%rax,%rcx,8)
jne 0x226540
jmp 0x22659b
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rax
movl -0x3c(%rbp), %ecx
movq (%rax,%rcx,8), %rdx
shlq $0x20, %rdx
movq %rdx, (%rax,%rcx,8)
movl -0x3c(%rbp), %eax
movl %eax, %edx
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rax
movl -0x3c(%rbp), %ecx
orq (%rax,%rcx,8), %rdx
movq %rdx, (%rax,%rcx,8)
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rax
movl -0x3c(%rbp), %ecx
movq (%rax,%rcx,8), %rdx
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x20(%rbp), %rsi
movq (%rsi), %rcx
movq %rcx, %rdi
addq $0x1, %rdi
movq %rdi, (%rsi)
movq %rdx, (%rax,%rcx,8)
movl -0x3c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3c(%rbp)
jmp 0x22650c
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rdi
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rsi
movq -0x20(%rbp), %rax
movq (%rax), %rax
shlq $0x3, %rax
addq %rax, %rsi
callq 0x216280
movq -0x90(%rbp), %rdi
callq 0x2210
movq -0x20(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0xc0, %rsp
popq %rbp
retq
nopl (%rax)