// File: chhylp123[P]hifiasm/Overlaps.cpp
// Function: clean_u_trans_t_idx_filter_mmhap_adv(kv_u_trans_t*, ma_ug_t*, asg_t*, ma_hit_t_alloc*, ug_rid_cov_t*)
void clean_u_trans_t_idx_filter_mmhap_adv(kv_u_trans_t *ta, ma_ug_t *ug, asg_t *read_g, ma_hit_t_alloc* src, ug_rid_cov_t *in)
{
    u_trans_clean_t sl; uint64_t k, i, l, st, occ; ha_mzl_t *tz;
    ha_mzl_v srt_a; kv_u_trans_t *bl; u_trans_t *z;
    memset(&sl, 0, sizeof(sl)); kv_init(srt_a);
    
    kt_u_trans_t_idx(ta, ug->g->n_seq);
    sl.n_thread = asm_opt.thread_num; sl.ug = ug; sl.rg = read_g; sl.ta = ta;
    CALLOC(sl.res, sl.n_thread); 
    sl.ov_cutoff = 3; sl.small_ov_rate = 0.8;
    // dbg_prt_utg_trans(ta, ug, "pre");
    kt_for(sl.n_thread, worker_for_trans_clean_re, &sl, sl.ta->idx.n);

    for (i = srt_a.n = occ = 0; i < sl.n_thread; i++) {
		bl = &(sl.res[i]); 
		if(!(bl->n)) continue;
		for (k = 1, l = 0; k <= bl->n; k++) {
			if(k == bl->n || bl->a[k].qn != bl->a[l].qn) {
				if(k > l) {
					kv_pushp(ha_mzl_t, srt_a, &tz);
					tz->x = bl->a[l].qn; tz->x <<= 32; tz->x |= i;
					tz->rid = l>>32; tz->pos = (uint32_t)l;
					occ += (k - l);
				}
				l = k;
			}
		}
	}
    // fprintf(stderr, "[M::%s::] occ::%lu \n", __func__, occ);
    assert(srt_a.n <= sl.ug->u.n); 
	radix_sort_ha_mzl_t_srt1(srt_a.a, srt_a.a + srt_a.n);
    occ <<= 1; ta->n = 0; kv_resize(u_trans_t, *ta, occ); 
    for (i = 0; i < srt_a.n; i++) {
		tz = &(srt_a.a[i]);
		bl = &(sl.res[(uint32_t)(tz->x)]);
		k = tz->rid; k <<= 32; k += tz->pos;
		assert(bl->a[k].qn == (tz->x>>32));
		for (; (k < bl->n) && (bl->a[k].qn == (tz->x>>32)); k++) {
			if(bl->a[k].qn == bl->a[k].tn) continue;
            if(bl->a[k].qe-bl->a[k].qs <= 0) continue;
            if(bl->a[k].te-bl->a[k].ts <= 0) continue;
			kv_pushp(u_trans_t, *ta, &z); 
            (*z) = bl->a[k]; z->occ = 0; if(z->f == RC_3) z->f = RC_2;
            // if(z->ts >= z->te || z->qs >= z->qe)  {
            //     fprintf(stderr, "+[M::%s]\tutg%.6u%c\t%u\t%u\t%u\t%c\tutg%.6u%c\t%u\t%u\t%u\n", __func__, 
            //                     z->qn+1, "lc"[ug->u.a[z->qn].circ], ug->u.a[z->qn].len, z->qs, z->qe, "+-"[z->rev],
            //                     z->tn+1, "lc"[ug->u.a[z->tn].circ], ug->u.a[z->tn].len, z->ts, z->te);
            // }

            kv_pushp(u_trans_t, *ta, &z); 
            (*z) = bl->a[k]; z->occ = 0; if(z->f == RC_3) z->f = RC_2;
            z->qn = bl->a[k].tn; z->qs = bl->a[k].ts; z->qe = bl->a[k].te;
            z->tn = bl->a[k].qn; z->ts = bl->a[k].qs; z->te = bl->a[k].qe;

            // if(z->ts >= z->te || z->qs >= z->qe)  {
            //     fprintf(stderr, "-[M::%s]\tutg%.6u%c\t%u\t%u\t%u\t%c\tutg%.6u%c\t%u\t%u\t%u\n", __func__, 
            //                     z->qn+1, "lc"[ug->u.a[z->qn].circ], ug->u.a[z->qn].len, z->qs, z->qe, "+-"[z->rev],
            //                     z->tn+1, "lc"[ug->u.a[z->tn].circ], ug->u.a[z->tn].len, z->ts, z->te);
            // }
		}
	}

    for (k = 0; k < sl.n_thread; k++) free(sl.res[k].a); 
    free(sl.res); kv_destroy(srt_a);
    kt_u_trans_t_idx(ta, ug->g->n_seq);
    // dbg_prt_utg_trans(ta, ug, "after");
    trans_sec_cut_filter_mmhap_adv(ta, ug, read_g, src, in);
    kt_for(sl.n_thread, worker_for_trans_sec_simple_cut, &sl, sl.ta->idx.n);

    // CALLOC(sl.srt, sl.n_thread); sl.sec_rate = 0.5;
    // kt_for(sl.n_thread, worker_for_trans_sec_cut, &sl, sl.ta->idx.n);
    // sl.cu = gen_u_trans_cluster(ta);
    // kt_for(sl.n_thread, worker_for_trans_sec_cut, &sl, sl.cu->idx.n);
    // free(sl.cu->idx.a); free(sl.cu->z.a); free(sl.cu);
    // for (k = 0; k < sl.n_thread; k++) free(sl.srt[k].a); free(sl.srt);
    for (k = st = 0; k < ta->n; k++) {
        if(ta->a[k].occ == ((uint32_t)-1)) continue;
        ta->a[st] = ta->a[k]; ta->a[st].del = 0; st++;
    }
    ta->n = st;
    for (st = 0, i = 1; i <= ta->n; ++i) {
        if (i == ta->n || ta->a[i].qn != ta->a[st].qn) {
            ta->idx.a[ta->a[st].qn] = (((uint64_t)st)<<32)|(i-st);
            st = i;
        }
    }

    // dbg_prt_utg_extra_trans(ta, ug, asm_opt.output_file_name);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xf0, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
leaq -0x80(%rbp), %rdi
xorl %esi, %esi
movl $0x58, %edx
callq 0x2100
movl $0x0, -0xbc(%rbp)
movl $0x0, -0xc0(%rbp)
movq $0x0, -0xb8(%rbp)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movl 0x14(%rax), %esi
andl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
callq 0x104540
leaq 0x2ba6d9(%rip), %rax    # 0x3c47f8
movslq 0x7c(%rax), %rax
movq %rax, -0x60(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x78(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x60(%rbp), %rdi
movl $0x30, %esi
callq 0x2140
movq %rax, -0x70(%rbp)
movq $0x3, -0x58(%rbp)
movsd 0x2780cf(%rip), %xmm0   # 0x382230
movsd %xmm0, -0x50(%rbp)
movq -0x60(%rbp), %rax
movl %eax, %edi
movq -0x68(%rbp), %rax
movq 0x18(%rax), %rcx
leaq -0x40cb(%rip), %rsi     # 0x1060b0
leaq -0x80(%rbp), %rdx
callq 0x16d710
movq $0x0, -0xa8(%rbp)
movl $0x0, -0xc0(%rbp)
movq $0x0, -0x90(%rbp)
movq -0x90(%rbp), %rax
cmpq -0x60(%rbp), %rax
jae 0x10a3fc
movq -0x70(%rbp), %rax
imulq $0x30, -0x90(%rbp), %rcx
addq %rcx, %rax
movq %rax, -0xc8(%rbp)
movq -0xc8(%rbp), %rax
cmpq $0x0, (%rax)
jne 0x10a1dd
jmp 0x10a3e5
movq $0x1, -0x88(%rbp)
movq $0x0, -0x98(%rbp)
movq -0x88(%rbp), %rax
movq -0xc8(%rbp), %rcx
cmpq (%rcx), %rax
ja 0x10a3e3
movq -0x88(%rbp), %rax
movq -0xc8(%rbp), %rcx
cmpq (%rcx), %rax
je 0x10a255
movq -0xc8(%rbp), %rax
movq 0x10(%rax), %rax
imulq $0x30, -0x88(%rbp), %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
movq -0xc8(%rbp), %rcx
movq 0x10(%rcx), %rcx
imulq $0x30, -0x98(%rbp), %rdx
addq %rdx, %rcx
cmpl 0x8(%rcx), %eax
je 0x10a3ca
movq -0x88(%rbp), %rax
cmpq -0x98(%rbp), %rax
jbe 0x10a3bc
jmp 0x10a26b
movl -0xc0(%rbp), %eax
cmpl -0xbc(%rbp), %eax
jne 0x10a2c8
cmpl $0x0, -0xbc(%rbp)
je 0x10a292
movl -0xbc(%rbp), %eax
shll %eax
movl %eax, -0xd4(%rbp)
jmp 0x10a29f
movl $0x2, %eax
movl %eax, -0xd4(%rbp)
jmp 0x10a29f
movl -0xd4(%rbp), %eax
movl %eax, -0xbc(%rbp)
movq -0xb8(%rbp), %rdi
movl -0xbc(%rbp), %eax
imulq $0x18, %rax, %rsi
callq 0x2360
movq %rax, -0xb8(%rbp)
movq -0xb8(%rbp), %rax
movl -0xc0(%rbp), %ecx
movl %ecx, %edx
addl $0x1, %edx
movl %edx, -0xc0(%rbp)
movl %ecx, %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0xb0(%rbp)
movq -0xc8(%rbp), %rax
movq 0x10(%rax), %rax
imulq $0x30, -0x98(%rbp), %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
movl %eax, %ecx
movq -0xb0(%rbp), %rax
movq %rcx, (%rax)
movq -0xb0(%rbp), %rax
movq (%rax), %rcx
shlq $0x20, %rcx
movq %rcx, (%rax)
movq -0x90(%rbp), %rcx
movq -0xb0(%rbp), %rax
orq (%rax), %rcx
movq %rcx, (%rax)
movq -0x98(%rbp), %rdx
shrq $0x20, %rdx
movq -0xb0(%rbp), %rax
movq 0x8(%rax), %rcx
andq $0x7fffffff, %rdx       # imm = 0x7FFFFFFF
andq $-0x80000000, %rcx      # imm = 0x80000000
orq %rdx, %rcx
movq %rcx, 0x8(%rax)
movq -0x98(%rbp), %rax
movl %eax, %eax
movl %eax, %edx
movq -0xb0(%rbp), %rax
movq 0x8(%rax), %rcx
movabsq $0xffffffff, %rsi       # imm = 0xFFFFFFFF
andq %rsi, %rdx
shlq $0x20, %rdx
movabsq $0xffffffff, %rsi       # imm = 0xFFFFFFFF
andq %rsi, %rcx
orq %rdx, %rcx
movq %rcx, 0x8(%rax)
movq -0x88(%rbp), %rax
subq -0x98(%rbp), %rax
addq -0xa8(%rbp), %rax
movq %rax, -0xa8(%rbp)
movq -0x88(%rbp), %rax
movq %rax, -0x98(%rbp)
jmp 0x10a3cc
movq -0x88(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x88(%rbp)
jmp 0x10a1f3
jmp 0x10a3e5
movq -0x90(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x90(%rbp)
jmp 0x10a1a4
movl -0xc0(%rbp), %eax
movq -0x80(%rbp), %rcx
cmpq (%rcx), %rax
ja 0x10a40d
jmp 0x10a42c
leaq 0x27d329(%rip), %rdi    # 0x38773d
leaq 0x27c4a2(%rip), %rsi    # 0x3868bd
movl $0x3f2a, %edx           # imm = 0x3F2A
leaq 0x27d666(%rip), %rcx    # 0x387a8d
callq 0x2130
movq -0xb8(%rbp), %rdi
movq -0xb8(%rbp), %rsi
movl -0xc0(%rbp), %eax
imulq $0x18, %rax, %rax
addq %rax, %rsi
callq 0xcaeb0
movq -0xa8(%rbp), %rax
shlq %rax
movq %rax, -0xa8(%rbp)
movq -0x8(%rbp), %rax
movq $0x0, (%rax)
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
cmpq -0xa8(%rbp), %rax
jae 0x10a544
movq -0xa8(%rbp), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rcx
addq $-0x1, %rcx
movq %rcx, 0x8(%rax)
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rcx
shrq %rcx
movq -0x8(%rbp), %rax
orq 0x8(%rax), %rcx
movq %rcx, 0x8(%rax)
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rcx
shrq $0x2, %rcx
movq -0x8(%rbp), %rax
orq 0x8(%rax), %rcx
movq %rcx, 0x8(%rax)
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rcx
shrq $0x4, %rcx
movq -0x8(%rbp), %rax
orq 0x8(%rax), %rcx
movq %rcx, 0x8(%rax)
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rcx
shrq $0x8, %rcx
movq -0x8(%rbp), %rax
orq 0x8(%rax), %rcx
movq %rcx, 0x8(%rax)
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rcx
shrq $0x10, %rcx
movq -0x8(%rbp), %rax
orq 0x8(%rax), %rcx
movq %rcx, 0x8(%rax)
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x8(%rax)
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rdi
movq -0x8(%rbp), %rax
imulq $0x30, 0x8(%rax), %rsi
callq 0x2360
movq %rax, %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x10(%rax)
jmp 0x10a546
movq $0x0, -0x90(%rbp)
movq -0x90(%rbp), %rax
movl -0xc0(%rbp), %ecx
cmpq %rcx, %rax
jae 0x10aa27
movq -0xb8(%rbp), %rax
imulq $0x18, -0x90(%rbp), %rcx
addq %rcx, %rax
movq %rax, -0xb0(%rbp)
movq -0x70(%rbp), %rax
movq -0xb0(%rbp), %rcx
movq (%rcx), %rcx
movl %ecx, %ecx
imulq $0x30, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0xc8(%rbp)
movq -0xb0(%rbp), %rax
movq 0x8(%rax), %rax
andq $0x7fffffff, %rax       # imm = 0x7FFFFFFF
movq %rax, -0x88(%rbp)
movq -0x88(%rbp), %rax
shlq $0x20, %rax
movq %rax, -0x88(%rbp)
movq -0xb0(%rbp), %rax
movq 0x8(%rax), %rax
shrq $0x20, %rax
addq -0x88(%rbp), %rax
movq %rax, -0x88(%rbp)
movq -0xc8(%rbp), %rax
movq 0x10(%rax), %rax
imulq $0x30, -0x88(%rbp), %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
movq -0xb0(%rbp), %rcx
movq (%rcx), %rcx
shrq $0x20, %rcx
cmpq %rcx, %rax
jne 0x10a613
jmp 0x10a632
leaq 0x27d17a(%rip), %rdi    # 0x387794
leaq 0x27c29c(%rip), %rsi    # 0x3868bd
movl $0x3f31, %edx           # imm = 0x3F31
leaq 0x27d460(%rip), %rcx    # 0x387a8d
callq 0x2130
jmp 0x10a634
movq -0x88(%rbp), %rcx
movq -0xc8(%rbp), %rdx
xorl %eax, %eax
cmpq (%rdx), %rcx
movb %al, -0xd5(%rbp)
jae 0x10a682
movq -0xc8(%rbp), %rax
movq 0x10(%rax), %rax
imulq $0x30, -0x88(%rbp), %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
movq -0xb0(%rbp), %rcx
movq (%rcx), %rcx
shrq $0x20, %rcx
cmpq %rcx, %rax
sete %al
movb %al, -0xd5(%rbp)
movb -0xd5(%rbp), %al
testb $0x1, %al
jne 0x10a691
jmp 0x10aa0e
movq -0xc8(%rbp), %rax
movq 0x10(%rax), %rax
imulq $0x30, -0x88(%rbp), %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
movq -0xc8(%rbp), %rcx
movq 0x10(%rcx), %rcx
imulq $0x30, -0x88(%rbp), %rdx
addq %rdx, %rcx
cmpl 0x14(%rcx), %eax
jne 0x10a6ca
jmp 0x10a9f7
movq -0xc8(%rbp), %rax
movq 0x10(%rax), %rax
imulq $0x30, -0x88(%rbp), %rcx
addq %rcx, %rax
movl 0x4(%rax), %eax
movq -0xc8(%rbp), %rcx
movq 0x10(%rcx), %rcx
imulq $0x30, -0x88(%rbp), %rdx
addq %rdx, %rcx
subl (%rcx), %eax
cmpl $0x0, %eax
ja 0x10a705
jmp 0x10a9f7
movq -0xc8(%rbp), %rax
movq 0x10(%rax), %rax
imulq $0x30, -0x88(%rbp), %rcx
addq %rcx, %rax
movl 0x10(%rax), %eax
movq -0xc8(%rbp), %rcx
movq 0x10(%rcx), %rcx
imulq $0x30, -0x88(%rbp), %rdx
addq %rdx, %rcx
subl 0xc(%rcx), %eax
cmpl $0x0, %eax
ja 0x10a741
jmp 0x10a9f7
jmp 0x10a743
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq -0x8(%rbp), %rcx
cmpq 0x8(%rcx), %rax
jne 0x10a7b1
movq -0x8(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x10a773
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
shlq %rax
movq %rax, -0xe0(%rbp)
jmp 0x10a781
movl $0x2, %eax
movq %rax, -0xe0(%rbp)
jmp 0x10a781
movq -0xe0(%rbp), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rdi
movq -0x8(%rbp), %rax
imulq $0x30, 0x8(%rax), %rsi
callq 0x2360
movq %rax, %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x8(%rbp), %rdx
movq (%rdx), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, (%rdx)
imulq $0x30, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0xd0(%rbp)
movq -0xc8(%rbp), %rax
movq 0x10(%rax), %rsi
imulq $0x30, -0x88(%rbp), %rax
addq %rax, %rsi
movq -0xd0(%rbp), %rdi
movl $0x30, %edx
callq 0x2180
movq -0xd0(%rbp), %rax
movl $0x0, 0x18(%rax)
movq -0xd0(%rbp), %rax
movb 0x28(%rax), %al
andb $0x3f, %al
movzbl %al, %eax
cmpl $0x3, %eax
jne 0x10a834
movq -0xd0(%rbp), %rax
movb 0x28(%rax), %cl
andb $-0x40, %cl
orb $0x2, %cl
movb %cl, 0x28(%rax)
jmp 0x10a836
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq -0x8(%rbp), %rcx
cmpq 0x8(%rcx), %rax
jne 0x10a8a4
movq -0x8(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x10a866
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
shlq %rax
movq %rax, -0xe8(%rbp)
jmp 0x10a874
movl $0x2, %eax
movq %rax, -0xe8(%rbp)
jmp 0x10a874
movq -0xe8(%rbp), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rdi
movq -0x8(%rbp), %rax
imulq $0x30, 0x8(%rax), %rsi
callq 0x2360
movq %rax, %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x8(%rbp), %rdx
movq (%rdx), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, (%rdx)
imulq $0x30, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0xd0(%rbp)
movq -0xc8(%rbp), %rax
movq 0x10(%rax), %rsi
imulq $0x30, -0x88(%rbp), %rax
addq %rax, %rsi
movq -0xd0(%rbp), %rdi
movl $0x30, %edx
callq 0x2180
movq -0xd0(%rbp), %rax
movl $0x0, 0x18(%rax)
movq -0xd0(%rbp), %rax
movb 0x28(%rax), %al
andb $0x3f, %al
movzbl %al, %eax
cmpl $0x3, %eax
jne 0x10a927
movq -0xd0(%rbp), %rax
movb 0x28(%rax), %cl
andb $-0x40, %cl
orb $0x2, %cl
movb %cl, 0x28(%rax)
movq -0xc8(%rbp), %rax
movq 0x10(%rax), %rax
imulq $0x30, -0x88(%rbp), %rcx
addq %rcx, %rax
movl 0x14(%rax), %ecx
movq -0xd0(%rbp), %rax
movl %ecx, 0x8(%rax)
movq -0xc8(%rbp), %rax
movq 0x10(%rax), %rax
imulq $0x30, -0x88(%rbp), %rcx
addq %rcx, %rax
movl 0xc(%rax), %ecx
movq -0xd0(%rbp), %rax
movl %ecx, (%rax)
movq -0xc8(%rbp), %rax
movq 0x10(%rax), %rax
imulq $0x30, -0x88(%rbp), %rcx
addq %rcx, %rax
movl 0x10(%rax), %ecx
movq -0xd0(%rbp), %rax
movl %ecx, 0x4(%rax)
movq -0xc8(%rbp), %rax
movq 0x10(%rax), %rax
imulq $0x30, -0x88(%rbp), %rcx
addq %rcx, %rax
movl 0x8(%rax), %ecx
movq -0xd0(%rbp), %rax
movl %ecx, 0x14(%rax)
movq -0xc8(%rbp), %rax
movq 0x10(%rax), %rax
imulq $0x30, -0x88(%rbp), %rcx
addq %rcx, %rax
movl (%rax), %ecx
movq -0xd0(%rbp), %rax
movl %ecx, 0xc(%rax)
movq -0xc8(%rbp), %rax
movq 0x10(%rax), %rax
imulq $0x30, -0x88(%rbp), %rcx
addq %rcx, %rax
movl 0x4(%rax), %ecx
movq -0xd0(%rbp), %rax
movl %ecx, 0x10(%rax)
movq -0x88(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x88(%rbp)
jmp 0x10a634
jmp 0x10aa10
movq -0x90(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x90(%rbp)
jmp 0x10a551
movq $0x0, -0x88(%rbp)
movq -0x88(%rbp), %rax
cmpq -0x60(%rbp), %rax
jae 0x10aa6b
movq -0x70(%rbp), %rax
imulq $0x30, -0x88(%rbp), %rcx
addq %rcx, %rax
movq 0x10(%rax), %rdi
callq 0x2210
movq -0x88(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x88(%rbp)
jmp 0x10aa32
movq -0x70(%rbp), %rdi
callq 0x2210
movq -0xb8(%rbp), %rdi
callq 0x2210
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movl 0x14(%rax), %esi
andl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
callq 0x104540
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
movq -0x20(%rbp), %rcx
movq -0x28(%rbp), %r8
callq 0x109e90
movq -0x60(%rbp), %rax
movl %eax, %edi
movq -0x68(%rbp), %rax
movq 0x18(%rax), %rcx
leaq 0x1b8(%rip), %rsi       # 0x10ac80
leaq -0x80(%rbp), %rdx
callq 0x16d710
movq $0x0, -0xa0(%rbp)
movq $0x0, -0x88(%rbp)
movq -0x88(%rbp), %rax
movq -0x8(%rbp), %rcx
cmpq (%rcx), %rax
jae 0x10ab8e
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
imulq $0x30, -0x88(%rbp), %rcx
addq %rcx, %rax
cmpl $-0x1, 0x18(%rax)
jne 0x10ab16
jmp 0x10ab77
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rsi
imulq $0x30, -0x88(%rbp), %rax
addq %rax, %rsi
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rdi
imulq $0x30, -0xa0(%rbp), %rax
addq %rax, %rdi
movl $0x30, %edx
callq 0x2180
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
imulq $0x30, -0xa0(%rbp), %rcx
addq %rcx, %rax
movb 0x28(%rax), %cl
andb $0x7f, %cl
orb $0x0, %cl
movb %cl, 0x28(%rax)
movq -0xa0(%rbp), %rax
addq $0x1, %rax
movq %rax, -0xa0(%rbp)
movq -0x88(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x88(%rbp)
jmp 0x10aae7
movq -0xa0(%rbp), %rcx
movq -0x8(%rbp), %rax
movq %rcx, (%rax)
movq $0x0, -0xa0(%rbp)
movq $0x1, -0x90(%rbp)
movq -0x90(%rbp), %rax
movq -0x8(%rbp), %rcx
cmpq (%rcx), %rax
ja 0x10ac69
movq -0x90(%rbp), %rax
movq -0x8(%rbp), %rcx
cmpq (%rcx), %rax
je 0x10ac04
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
imulq $0x30, -0x90(%rbp), %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
movq -0x8(%rbp), %rcx
movq 0x10(%rcx), %rcx
imulq $0x30, -0xa0(%rbp), %rdx
addq %rdx, %rcx
cmpl 0x8(%rcx), %eax
je 0x10ac50
movq -0xa0(%rbp), %rdx
shlq $0x20, %rdx
movq -0x90(%rbp), %rax
subq -0xa0(%rbp), %rax
orq %rax, %rdx
movq -0x8(%rbp), %rax
movq 0x28(%rax), %rax
movq -0x8(%rbp), %rcx
movq 0x10(%rcx), %rcx
imulq $0x30, -0xa0(%rbp), %rsi
addq %rsi, %rcx
movl 0x8(%rcx), %ecx
movq %rdx, (%rax,%rcx,8)
movq -0x90(%rbp), %rax
movq %rax, -0xa0(%rbp)
jmp 0x10ac52
movq -0x90(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x90(%rbp)
jmp 0x10abb2
addq $0xf0, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)