// File: chhylp123[P]hifiasm/Correct.cpp
// Function: gen_sub_ov_adv_cigar(ul_idx_t const*, overlap_region*, char*, UC_Read*, bit_extz_t*, long, double, double, utg_ct_t*, unsigned long, unsigned long, unsigned long, kv_rtrace_t*, kv_ul_ov_t*)
uint64_t gen_sub_ov_adv_cigar(const ul_idx_t *udb, overlap_region* o, char* qstr, UC_Read *tu, 
bit_extz_t *exz, int64_t ql, double o_rate, double e_rate, utg_ct_t *ct_a, uint64_t ct_n, 
uint64_t sid, uint64_t oid, kv_rtrace_t *trace, kv_ul_ov_t *res)
{
	uint64_t ts, te, i, l, rn = res->n, rev = o->y_pos_strand, s, e, rid, t[2]; 
	ma_utg_t *u = &(udb->ug->u.a[o->y_id]); ul_ov_t z; rtrace_t tz; int64_t k;
    if(!rev){
        ts = o->y_pos_s; te = o->y_pos_e + 1; k = 0;
    } else {
        ts = u->len - (o->y_pos_e+1); te = u->len - o->y_pos_s; 
        k = ((int64_t)o->w_list.n)-1; if(k < 0) k = 0;
    }

    if(!ct_a) {    
        for (i = l = 0; i < u->n; i++) {
            rid = u->a[i]>>33; 
            s = l; e = l + Get_READ_LENGTH(R_INF, rid);///note: [s, e) are pos of t
            l += (uint32_t)u->a[i];
            if(e <= ts) continue; 
            if(s >= te) break;
            t[0] = (rev?(u->len-e):(s)); t[1] = (rev?(u->len-s):(e));
            if(extract_subov_cigar(udb, qstr, tu, exz, t[0], t[1], o, o_rate, &k, ql, e_rate, sid, rid, &tz, &z)) {
                tz.oid = oid; 
                z.ts -= t[0]; z.te -= t[0];
                z.rev = ((o->y_pos_strand == ((u->a[i]>>32)&1))?0:1);
                if(z.rev) {
                    t[0] = z.ts; t[1] = z.te;
                    z.ts = Get_READ_LENGTH(R_INF, rid) - t[1];
                    z.te = Get_READ_LENGTH(R_INF, rid) - t[0];
                }
                ///non-contained read at the unitg
                z.el = 1; 
                ///rid
                z.tn = rid;
                ///i-th read at the unitig
                z.qn = trace->n;
                kv_push(ul_ov_t, *res, z);
                kv_push(rtrace_t, *trace, tz);
            //     fprintf(stderr, "+[M::%s::rid->%lu::rev->%lu] utg_t::[%ld, %ld), ql::%ld\n", 
            // __func__, rid, rev, t[0], t[1], ql);
                // fprintf(stderr, "+[M::%s::%.*s::%c] q::[%u, %u), ql::%ld, t::[%u, %u), tl::%lu, err::%u\n", 
                // __func__, (int)Get_NAME_LENGTH(R_INF, z.tn), Get_NAME(R_INF, z.tn), 
                // "+-"[z.rev], z.qs, z.qe, ql, z.ts, z.te, Get_READ_LENGTH(R_INF, z.tn), z.sec);
            }
        }
    } else {
        for (i = 0; i < ct_n; i++) {
            rid = ct_a[i].x>>1; s = ct_a[i].s; e = ct_a[i].e;
            if(e <= ts) continue; 
            if(s >= te) break;
            t[0] = (rev?(u->len-e):(s)); t[1] = (rev?(u->len-s):(e));
            if(extract_subov_cigar(udb, qstr, tu, exz, t[0], t[1], o, o_rate, &k, ql, e_rate, sid, rid, &tz, &z)) {
                tz.oid = oid;
                z.ts -= t[0]; z.te -= t[0];
                z.rev = ((o->y_pos_strand == (ct_a[i].x&1))?0:1);
                if(z.rev) {
                    t[0] = z.ts; t[1] = z.te;
                    z.ts = Get_READ_LENGTH(R_INF, rid) - t[1];
                    z.te = Get_READ_LENGTH(R_INF, rid) - t[0];
                }
                ///contained read at the unitg
                z.el = 0; 
                ///rid
                z.tn = rid;
                ///i-th read at the unitig
                z.qn = trace->n;
                kv_push(ul_ov_t, *res, z);
                kv_push(rtrace_t, *trace, tz);
            //     fprintf(stderr, "-[M::%s::rid->%lu::rev->%lu] utg_t::[%ld, %ld), ql::%ld\n", 
            // __func__, rid, rev, t[0], t[1], ql);
                // fprintf(stderr, "-[M::%s::%.*s::%c] q::[%u, %u), ql::%ld, t::[%u, %u), tl::%lu, err::%u\n", 
                // __func__, (int)Get_NAME_LENGTH(R_INF, z.tn), Get_NAME(R_INF, z.tn), 
                // "+-"[z.rev], z.qs, z.qe, ql, z.ts, z.te, Get_READ_LENGTH(R_INF, z.tn), z.sec);
            }
        }
    }
    return res->n-rn;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x180, %rsp            # imm = 0x180
movq 0x38(%rbp), %rax
movq 0x30(%rbp), %rax
movq 0x28(%rbp), %rax
movq 0x20(%rbp), %rax
movq 0x18(%rbp), %rax
movq 0x10(%rbp), %rax
movq %rdi, -0x28(%rbp)
movq %rsi, -0x30(%rbp)
movq %rdx, -0x38(%rbp)
movq %rcx, -0x40(%rbp)
movq %r8, -0x48(%rbp)
movq %r9, -0x50(%rbp)
movsd %xmm0, -0x58(%rbp)
movsd %xmm1, -0x60(%rbp)
movq 0x38(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x88(%rbp)
movq -0x30(%rbp), %rax
movl 0x1c(%rax), %eax
movq %rax, -0x90(%rbp)
movq -0x28(%rbp), %rax
movq (%rax), %rax
movq 0x10(%rax), %rax
movq -0x30(%rbp), %rcx
movl 0x10(%rcx), %ecx
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0xc8(%rbp)
cmpq $0x0, -0x90(%rbp)
jne 0x96c4b
movq -0x30(%rbp), %rax
movl 0x14(%rax), %eax
movq %rax, -0x68(%rbp)
movq -0x30(%rbp), %rax
movl 0x18(%rax), %eax
addl $0x1, %eax
movl %eax, %eax
movq %rax, -0x70(%rbp)
movq $0x0, -0x120(%rbp)
jmp 0x96cb0
movq -0xc8(%rbp), %rax
movl (%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movq -0x30(%rbp), %rcx
movl 0x18(%rcx), %ecx
addl $0x1, %ecx
subl %ecx, %eax
movl %eax, %eax
movq %rax, -0x68(%rbp)
movq -0xc8(%rbp), %rax
movl (%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movq -0x30(%rbp), %rcx
subl 0x14(%rcx), %eax
movl %eax, %eax
movq %rax, -0x70(%rbp)
movq -0x30(%rbp), %rax
movq 0x48(%rax), %rax
subq $0x1, %rax
movq %rax, -0x120(%rbp)
cmpq $0x0, -0x120(%rbp)
jge 0x96cae
movq $0x0, -0x120(%rbp)
jmp 0x96cb0
cmpq $0x0, 0x10(%rbp)
jne 0x9710b
movq $0x0, -0x80(%rbp)
movq $0x0, -0x78(%rbp)
movq -0x78(%rbp), %rax
movq -0xc8(%rbp), %rcx
movl 0x10(%rcx), %ecx
cmpq %rcx, %rax
jae 0x97106
movq -0xc8(%rbp), %rax
movq 0x18(%rax), %rax
movq -0x78(%rbp), %rcx
movq (%rax,%rcx,8), %rax
shrq $0x21, %rax
movq %rax, -0xa8(%rbp)
movq -0x80(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0x80(%rbp), %rax
leaq 0x32e5ba(%rip), %rcx    # 0x3c52d0
movq 0x18(%rcx), %rcx
movq -0xa8(%rbp), %rdx
addq (%rcx,%rdx,8), %rax
movq %rax, -0xa0(%rbp)
movq -0xc8(%rbp), %rax
movq 0x18(%rax), %rax
movq -0x78(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movl %eax, %eax
addq -0x80(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0xa0(%rbp), %rax
cmpq -0x68(%rbp), %rax
ja 0x96d5b
jmp 0x970f5
movq -0x98(%rbp), %rax
cmpq -0x70(%rbp), %rax
jb 0x96d6d
jmp 0x97106
cmpq $0x0, -0x90(%rbp)
je 0x96d97
movq -0xc8(%rbp), %rax
movl (%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movl %eax, %eax
subq -0xa0(%rbp), %rax
movq %rax, -0x128(%rbp)
jmp 0x96da5
movq -0x98(%rbp), %rax
movq %rax, -0x128(%rbp)
movq -0x128(%rbp), %rax
movq %rax, -0xc0(%rbp)
cmpq $0x0, -0x90(%rbp)
je 0x96ddd
movq -0xc8(%rbp), %rax
movl (%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movl %eax, %eax
subq -0x98(%rbp), %rax
movq %rax, -0x130(%rbp)
jmp 0x96deb
movq -0xa0(%rbp), %rax
movq %rax, -0x130(%rbp)
movq -0x130(%rbp), %rax
movq %rax, -0xb8(%rbp)
movq -0x28(%rbp), %rdi
movq -0x38(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq -0x48(%rbp), %rcx
movq -0xc0(%rbp), %r8
movq -0xb8(%rbp), %r9
movq -0x30(%rbp), %r12
movsd -0x58(%rbp), %xmm0
movq -0x50(%rbp), %r14
movsd -0x60(%rbp), %xmm1
movq 0x20(%rbp), %rbx
movq -0xa8(%rbp), %r11
leaq -0x120(%rbp), %r15
leaq -0x118(%rbp), %r10
leaq -0xe4(%rbp), %rax
movq %r12, (%rsp)
movq %r15, 0x8(%rsp)
movq %r14, 0x10(%rsp)
movq %rbx, 0x18(%rsp)
movq %r11, 0x20(%rsp)
movq %r10, 0x28(%rsp)
movq %rax, 0x30(%rsp)
callq 0x963b0
cmpq $0x0, %rax
je 0x970f3
movq 0x28(%rbp), %rax
movl %eax, -0xe8(%rbp)
movq -0xc0(%rbp), %rcx
movl -0xd4(%rbp), %eax
subq %rcx, %rax
movl %eax, -0xd4(%rbp)
movq -0xc0(%rbp), %rcx
movl -0xd0(%rbp), %eax
subq %rcx, %rax
movl %eax, -0xd0(%rbp)
movq -0x30(%rbp), %rax
movl 0x1c(%rax), %eax
movl %eax, %edx
movq -0xc8(%rbp), %rax
movq 0x18(%rax), %rax
movq -0x78(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
shrq $0x20, %rsi
andq $0x1, %rsi
movl $0x1, %ecx
xorl %eax, %eax
cmpq %rsi, %rdx
cmovel %eax, %ecx
movl -0xcc(%rbp), %eax
andl $0x1, %ecx
shll $0x1f, %ecx
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
orl %ecx, %eax
movl %eax, -0xcc(%rbp)
movl -0xcc(%rbp), %eax
shrl $0x1f, %eax
cmpl $0x0, %eax
je 0x96f68
movl -0xd4(%rbp), %eax
movq %rax, -0xc0(%rbp)
movl -0xd0(%rbp), %eax
movq %rax, -0xb8(%rbp)
leaq 0x32e3a7(%rip), %rax    # 0x3c52d0
movq 0x18(%rax), %rax
movq -0xa8(%rbp), %rcx
movq (%rax,%rcx,8), %rax
subq -0xb8(%rbp), %rax
movl %eax, -0xd4(%rbp)
leaq 0x32e384(%rip), %rax    # 0x3c52d0
movq 0x18(%rax), %rax
movq -0xa8(%rbp), %rcx
movq (%rax,%rcx,8), %rax
subq -0xc0(%rbp), %rax
movl %eax, -0xd0(%rbp)
movl -0xcc(%rbp), %eax
andl $0xbfffffff, %eax       # imm = 0xBFFFFFFF
orl $0x40000000, %eax       # imm = 0x40000000
movl %eax, -0xcc(%rbp)
movq -0xa8(%rbp), %rax
movl %eax, -0xd8(%rbp)
movq 0x30(%rbp), %rax
movq 0x8(%rax), %rax
movl %eax, -0xe4(%rbp)
movq 0x38(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x38(%rbp), %rcx
cmpq 0x10(%rcx), %rax
jne 0x97006
movq 0x38(%rbp), %rax
cmpq $0x0, 0x10(%rax)
je 0x96fca
movq 0x38(%rbp), %rax
movq 0x10(%rax), %rax
shlq %rax
movq %rax, -0x138(%rbp)
jmp 0x96fd8
movl $0x2, %eax
movq %rax, -0x138(%rbp)
jmp 0x96fd8
movq -0x138(%rbp), %rcx
movq 0x38(%rbp), %rax
movq %rcx, 0x10(%rax)
movq 0x38(%rbp), %rax
movq (%rax), %rdi
movq 0x38(%rbp), %rax
imulq $0x1c, 0x10(%rax), %rsi
callq 0x2360
movq %rax, %rcx
movq 0x38(%rbp), %rax
movq %rcx, (%rax)
movq 0x38(%rbp), %rax
movq (%rax), %rax
movq 0x38(%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 0x97052
movq 0x30(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x30(%rbp), %rcx
cmpq 0x10(%rcx), %rax
jne 0x970bf
movq 0x30(%rbp), %rax
cmpq $0x0, 0x10(%rax)
je 0x97083
movq 0x30(%rbp), %rax
movq 0x10(%rax), %rax
shlq %rax
movq %rax, -0x140(%rbp)
jmp 0x97091
movl $0x2, %eax
movq %rax, -0x140(%rbp)
jmp 0x97091
movq -0x140(%rbp), %rcx
movq 0x30(%rbp), %rax
movq %rcx, 0x10(%rax)
movq 0x30(%rbp), %rax
movq (%rax), %rdi
movq 0x30(%rbp), %rax
imulq $0x34, 0x10(%rax), %rsi
callq 0x2360
movq %rax, %rcx
movq 0x30(%rbp), %rax
movq %rcx, (%rax)
movq 0x30(%rbp), %rax
movq (%rax), %rdi
movq 0x30(%rbp), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, 0x8(%rcx)
imulq $0x34, %rax, %rax
addq %rax, %rdi
leaq -0x118(%rbp), %rsi
movl $0x34, %edx
callq 0x2180
jmp 0x970f3
jmp 0x970f5
movq -0x78(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x78(%rbp)
jmp 0x96ccb
jmp 0x97516
movq $0x0, -0x78(%rbp)
movq -0x78(%rbp), %rax
cmpq 0x18(%rbp), %rax
jae 0x97514
movq 0x10(%rbp), %rax
imulq $0xc, -0x78(%rbp), %rcx
addq %rcx, %rax
movl (%rax), %eax
shrl %eax
movl %eax, %eax
movq %rax, -0xa8(%rbp)
movq 0x10(%rbp), %rax
imulq $0xc, -0x78(%rbp), %rcx
addq %rcx, %rax
movl 0x4(%rax), %eax
movq %rax, -0x98(%rbp)
movq 0x10(%rbp), %rax
imulq $0xc, -0x78(%rbp), %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
movq %rax, -0xa0(%rbp)
movq -0xa0(%rbp), %rax
cmpq -0x68(%rbp), %rax
ja 0x97178
jmp 0x97503
movq -0x98(%rbp), %rax
cmpq -0x70(%rbp), %rax
jb 0x9718a
jmp 0x97514
cmpq $0x0, -0x90(%rbp)
je 0x971b4
movq -0xc8(%rbp), %rax
movl (%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movl %eax, %eax
subq -0xa0(%rbp), %rax
movq %rax, -0x148(%rbp)
jmp 0x971c2
movq -0x98(%rbp), %rax
movq %rax, -0x148(%rbp)
movq -0x148(%rbp), %rax
movq %rax, -0xc0(%rbp)
cmpq $0x0, -0x90(%rbp)
je 0x971fa
movq -0xc8(%rbp), %rax
movl (%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movl %eax, %eax
subq -0x98(%rbp), %rax
movq %rax, -0x150(%rbp)
jmp 0x97208
movq -0xa0(%rbp), %rax
movq %rax, -0x150(%rbp)
movq -0x150(%rbp), %rax
movq %rax, -0xb8(%rbp)
movq -0x28(%rbp), %rdi
movq -0x38(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq -0x48(%rbp), %rcx
movq -0xc0(%rbp), %r8
movq -0xb8(%rbp), %r9
movq -0x30(%rbp), %r12
movsd -0x58(%rbp), %xmm0
movq -0x50(%rbp), %r14
movsd -0x60(%rbp), %xmm1
movq 0x20(%rbp), %rbx
movq -0xa8(%rbp), %r11
leaq -0x120(%rbp), %r15
leaq -0x118(%rbp), %r10
leaq -0xe4(%rbp), %rax
movq %r12, (%rsp)
movq %r15, 0x8(%rsp)
movq %r14, 0x10(%rsp)
movq %rbx, 0x18(%rsp)
movq %r11, 0x20(%rsp)
movq %r10, 0x28(%rsp)
movq %rax, 0x30(%rsp)
callq 0x963b0
cmpq $0x0, %rax
je 0x97501
movq 0x28(%rbp), %rax
movl %eax, -0xe8(%rbp)
movq -0xc0(%rbp), %rcx
movl -0xd4(%rbp), %eax
subq %rcx, %rax
movl %eax, -0xd4(%rbp)
movq -0xc0(%rbp), %rcx
movl -0xd0(%rbp), %eax
subq %rcx, %rax
movl %eax, -0xd0(%rbp)
movq -0x30(%rbp), %rax
movl 0x1c(%rax), %edx
movq 0x10(%rbp), %rax
imulq $0xc, -0x78(%rbp), %rcx
addq %rcx, %rax
movl (%rax), %esi
andl $0x1, %esi
movl $0x1, %ecx
xorl %eax, %eax
cmpl %esi, %edx
cmovel %eax, %ecx
movl -0xcc(%rbp), %eax
andl $0x1, %ecx
shll $0x1f, %ecx
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
orl %ecx, %eax
movl %eax, -0xcc(%rbp)
movl -0xcc(%rbp), %eax
shrl $0x1f, %eax
cmpl $0x0, %eax
je 0x97378
movl -0xd4(%rbp), %eax
movq %rax, -0xc0(%rbp)
movl -0xd0(%rbp), %eax
movq %rax, -0xb8(%rbp)
leaq 0x32df97(%rip), %rax    # 0x3c52d0
movq 0x18(%rax), %rax
movq -0xa8(%rbp), %rcx
movq (%rax,%rcx,8), %rax
subq -0xb8(%rbp), %rax
movl %eax, -0xd4(%rbp)
leaq 0x32df74(%rip), %rax    # 0x3c52d0
movq 0x18(%rax), %rax
movq -0xa8(%rbp), %rcx
movq (%rax,%rcx,8), %rax
subq -0xc0(%rbp), %rax
movl %eax, -0xd0(%rbp)
movl -0xcc(%rbp), %eax
andl $0xbfffffff, %eax       # imm = 0xBFFFFFFF
orl $0x0, %eax
movl %eax, -0xcc(%rbp)
movq -0xa8(%rbp), %rax
movl %eax, -0xd8(%rbp)
movq 0x30(%rbp), %rax
movq 0x8(%rax), %rax
movl %eax, -0xe4(%rbp)
movq 0x38(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x38(%rbp), %rcx
cmpq 0x10(%rcx), %rax
jne 0x97414
movq 0x38(%rbp), %rax
cmpq $0x0, 0x10(%rax)
je 0x973d8
movq 0x38(%rbp), %rax
movq 0x10(%rax), %rax
shlq %rax
movq %rax, -0x158(%rbp)
jmp 0x973e6
movl $0x2, %eax
movq %rax, -0x158(%rbp)
jmp 0x973e6
movq -0x158(%rbp), %rcx
movq 0x38(%rbp), %rax
movq %rcx, 0x10(%rax)
movq 0x38(%rbp), %rax
movq (%rax), %rdi
movq 0x38(%rbp), %rax
imulq $0x1c, 0x10(%rax), %rsi
callq 0x2360
movq %rax, %rcx
movq 0x38(%rbp), %rax
movq %rcx, (%rax)
movq 0x38(%rbp), %rax
movq (%rax), %rax
movq 0x38(%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 0x97460
movq 0x30(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x30(%rbp), %rcx
cmpq 0x10(%rcx), %rax
jne 0x974cd
movq 0x30(%rbp), %rax
cmpq $0x0, 0x10(%rax)
je 0x97491
movq 0x30(%rbp), %rax
movq 0x10(%rax), %rax
shlq %rax
movq %rax, -0x160(%rbp)
jmp 0x9749f
movl $0x2, %eax
movq %rax, -0x160(%rbp)
jmp 0x9749f
movq -0x160(%rbp), %rcx
movq 0x30(%rbp), %rax
movq %rcx, 0x10(%rax)
movq 0x30(%rbp), %rax
movq (%rax), %rdi
movq 0x30(%rbp), %rax
imulq $0x34, 0x10(%rax), %rsi
callq 0x2360
movq %rax, %rcx
movq 0x30(%rbp), %rax
movq %rcx, (%rax)
movq 0x30(%rbp), %rax
movq (%rax), %rdi
movq 0x30(%rbp), %rcx
movq 0x8(%rcx), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, 0x8(%rcx)
imulq $0x34, %rax, %rax
addq %rax, %rdi
leaq -0x118(%rbp), %rsi
movl $0x34, %edx
callq 0x2180
jmp 0x97501
jmp 0x97503
movq -0x78(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x78(%rbp)
jmp 0x97113
jmp 0x97516
movq 0x38(%rbp), %rax
movq 0x8(%rax), %rax
subq -0x88(%rbp), %rax
addq $0x180, %rsp            # imm = 0x180
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nopw %cs:(%rax,%rax)