// File: chhylp123[P]hifiasm/Overlaps.cpp
// Function: trans_sec_cut0(kv_u_trans_t*, asg64_v*, unsigned int, double, unsigned long, ma_ug_t*)
uint64_t trans_sec_cut0(kv_u_trans_t *ta, asg64_v *srt, uint32_t id, double sec_rate, uint64_t bd, ma_ug_t *ug) 
{
    u_trans_t *a = NULL, *mz, *cz, t, *ca;
    uint32_t a_n, r_n, c_n, k, l, z, i, m, wm, wl, len, b_n = srt->n;
    uint32_t ovq, os, oe; uint64_t *ss, *hs, *bu, *wu, occ = 0;

    a = u_trans_a(*ta, id); a_n = u_trans_n(*ta, id);
    for (k = r_n = 0; k < a_n; k++) {///RC_0/RC_1 to a[0, r_n)
        if(a[k].del) continue;
        if(k != r_n) {
            t = a[k]; a[k] = a[r_n]; a[r_n] = t;
        }
        r_n++;
    }
    if(r_n <= 1) return occ;
    qsort(a, r_n, sizeof((*a)), cmp_u_trans_weight);
    
    kv_resize(uint64_t, *srt, (b_n+(r_n<<2)));
    for (k = 0; k < r_n; k++) {
        srt->a[srt->n] = a[k].qs;
        srt->a[srt->n] <<= 32;
        srt->a[srt->n] |= k;
        srt->n++;
    }

    ss = srt->a + b_n; hs = ss + r_n; bu = hs + r_n; wu = bu + r_n;
    radix_sort_arch64(ss, ss + r_n);
    for (k = 0; k < r_n; k++) {
        ss[k] = (uint32_t)ss[k]; hs[ss[k]] = k;
    }

    for (k = 0; k < r_n; k++) {
        cz = &(a[k]); len = (cz->qe-cz->qs)*sec_rate; m = wm = 0;
        for (z = l = wl = 0; z < r_n; z++) {
            if(z == hs[k]) {
                assert(ss[z] == k);
                continue;
            }
            if(ss[z] > k) continue;///smaller nw than a[k]
            mz = &(a[ss[z]]);
            if(mz->qs >= cz->qe) break;
            if(mz->del) continue;///has been deleted
            // if((mz->f != RC_0) && (mz->f != RC_1) && (cz->nw > (mz->nw*0.95))) continue;
            os = MAX(cz->qs, mz->qs); oe = MIN(cz->qe, mz->qe);
            ovq = ((oe > os)? (oe - os):0);
            if(!ovq) continue;
            if(is_connect_arc(cz, mz, ug, 0.04) || is_connect_arc(mz, cz, ug, 0.04)) continue;

            if((m > 0) && (((uint32_t)bu[m-1]) >= os)) {
                if(oe > ((uint32_t)bu[m-1])) {
                    l += (oe - ((uint32_t)bu[m-1]));
                    bu[m-1] += (oe - ((uint32_t)bu[m-1]));
                }
            } else {
                l += oe - os;
                bu[m] = os; bu[m] <<= 32; bu[m] |= oe; m++;
            }

            if((wm > 0) && (((uint32_t)wu[wm-1]) >= mz->qs)) {
                if(mz->qe > ((uint32_t)wu[wm-1])) {
                    wl += (mz->qe - ((uint32_t)wu[wm-1]));
                    wu[wm-1] += (mz->qe - ((uint32_t)wu[wm-1]));
                }
            } else {
                wl += mz->qe - mz->qs;
                wu[wm] = mz->qs; wu[wm] <<= 32; wu[wm] |= mz->qe; wm++;
            }

            if((l >= bd) && ((l>=len) || (l>=(wl*sec_rate)))) {
                cz->del = 1; occ++; 
                ca = u_trans_a(*ta, cz->tn); c_n = u_trans_n(*ta, cz->tn);
                for (i = 0; i < c_n; i++) {
                    if(ca[i].tn == cz->qn) ca[i].del = 1;
                }
                break;
            }
        }        
    }

    srt->n = b_n;
    return occ;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x100, %rsp            # imm = 0x100
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
movsd %xmm0, -0x28(%rbp)
movq %rcx, -0x30(%rbp)
movq %r8, -0x38(%rbp)
movq $0x0, -0x40(%rbp)
movq -0x18(%rbp), %rax
movq (%rax), %rax
movl %eax, -0xb8(%rbp)
movq $0x0, -0xf0(%rbp)
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x28(%rcx), %rcx
movl -0x1c(%rbp), %edx
movq (%rcx,%rdx,8), %rcx
shrq $0x20, %rcx
imulq $0x30, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rax
movq 0x28(%rax), %rax
movl -0x1c(%rbp), %ecx
movq (%rax,%rcx,8), %rax
movl %eax, -0x8c(%rbp)
movl $0x0, -0x90(%rbp)
movl $0x0, -0x98(%rbp)
movl -0x98(%rbp), %eax
cmpl -0x8c(%rbp), %eax
jae 0x10314f
movq -0x40(%rbp), %rax
movl -0x98(%rbp), %ecx
imulq $0x30, %rcx, %rcx
addq %rcx, %rax
movb 0x28(%rax), %al
shrb $0x7, %al
cmpb $0x0, %al
je 0x1030b4
jmp 0x10313b
movl -0x98(%rbp), %eax
cmpl -0x90(%rbp), %eax
je 0x10312c
movq -0x40(%rbp), %rsi
movl -0x98(%rbp), %eax
imulq $0x30, %rax, %rax
addq %rax, %rsi
leaq -0x80(%rbp), %rdi
movl $0x30, %edx
callq 0x2180
movq -0x40(%rbp), %rsi
movl -0x90(%rbp), %eax
imulq $0x30, %rax, %rax
addq %rax, %rsi
movq -0x40(%rbp), %rdi
movl -0x98(%rbp), %eax
imulq $0x30, %rax, %rax
addq %rax, %rdi
movl $0x30, %edx
callq 0x2180
movq -0x40(%rbp), %rdi
movl -0x90(%rbp), %eax
imulq $0x30, %rax, %rax
addq %rax, %rdi
leaq -0x80(%rbp), %rsi
movl $0x30, %edx
callq 0x2180
movl -0x90(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x90(%rbp)
movl -0x98(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x98(%rbp)
jmp 0x103082
cmpl $0x1, -0x90(%rbp)
ja 0x103168
movq -0xf0(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x103a30
movq -0x40(%rbp), %rdi
movl -0x90(%rbp), %eax
movl %eax, %esi
movl $0x30, %edx
leaq -0xf90(%rip), %rcx      # 0x1021f0
callq 0x23e0
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movl -0xb8(%rbp), %ecx
movl -0x90(%rbp), %edx
shll $0x2, %edx
addl %edx, %ecx
movl %ecx, %ecx
cmpq %rcx, %rax
jae 0x103281
movl -0xb8(%rbp), %eax
movl -0x90(%rbp), %ecx
shll $0x2, %ecx
addl %ecx, %eax
movl %eax, %eax
movl %eax, %ecx
movq -0x18(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rcx
addq $-0x1, %rcx
movq %rcx, 0x8(%rax)
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rcx
shrq %rcx
movq -0x18(%rbp), %rax
orq 0x8(%rax), %rcx
movq %rcx, 0x8(%rax)
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rcx
shrq $0x2, %rcx
movq -0x18(%rbp), %rax
orq 0x8(%rax), %rcx
movq %rcx, 0x8(%rax)
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rcx
shrq $0x4, %rcx
movq -0x18(%rbp), %rax
orq 0x8(%rax), %rcx
movq %rcx, 0x8(%rax)
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rcx
shrq $0x8, %rcx
movq -0x18(%rbp), %rax
orq 0x8(%rax), %rcx
movq %rcx, 0x8(%rax)
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rcx
shrq $0x10, %rcx
movq -0x18(%rbp), %rax
orq 0x8(%rax), %rcx
movq %rcx, 0x8(%rax)
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x8(%rax)
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rdi
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rsi
shlq $0x3, %rsi
callq 0x2360
movq %rax, %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x10(%rax)
jmp 0x103283
movl $0x0, -0x98(%rbp)
movl -0x98(%rbp), %eax
cmpl -0x90(%rbp), %eax
jae 0x103323
movq -0x40(%rbp), %rax
movl -0x98(%rbp), %ecx
imulq $0x30, %rcx, %rcx
addq %rcx, %rax
movl (%rax), %eax
movl %eax, %edx
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x18(%rbp), %rcx
movq (%rcx), %rcx
movq %rdx, (%rax,%rcx,8)
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x18(%rbp), %rcx
movq (%rcx), %rcx
movq (%rax,%rcx,8), %rdx
shlq $0x20, %rdx
movq %rdx, (%rax,%rcx,8)
movl -0x98(%rbp), %eax
movl %eax, %edx
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x18(%rbp), %rcx
movq (%rcx), %rcx
orq (%rax,%rcx,8), %rdx
movq %rdx, (%rax,%rcx,8)
movq -0x18(%rbp), %rax
movq (%rax), %rcx
addq $0x1, %rcx
movq %rcx, (%rax)
movl -0x98(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x98(%rbp)
jmp 0x10328d
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rax
movl -0xb8(%rbp), %ecx
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, -0xd0(%rbp)
movq -0xd0(%rbp), %rax
movl -0x90(%rbp), %ecx
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, -0xd8(%rbp)
movq -0xd8(%rbp), %rax
movl -0x90(%rbp), %ecx
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, -0xe0(%rbp)
movq -0xe0(%rbp), %rax
movl -0x90(%rbp), %ecx
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, -0xe8(%rbp)
movq -0xd0(%rbp), %rdi
movq -0xd0(%rbp), %rsi
movl -0x90(%rbp), %eax
shlq $0x3, %rax
addq %rax, %rsi
callq 0xc90e0
movl $0x0, -0x98(%rbp)
movl -0x98(%rbp), %eax
cmpl -0x90(%rbp), %eax
jae 0x103423
movq -0xd0(%rbp), %rax
movl -0x98(%rbp), %ecx
movq (%rax,%rcx,8), %rax
movl %eax, %eax
movl %eax, %edx
movq -0xd0(%rbp), %rax
movl -0x98(%rbp), %ecx
movq %rdx, (%rax,%rcx,8)
movl -0x98(%rbp), %eax
movl %eax, %edx
movq -0xd8(%rbp), %rax
movq -0xd0(%rbp), %rcx
movl -0x98(%rbp), %esi
movq (%rcx,%rsi,8), %rcx
movq %rdx, (%rax,%rcx,8)
movl -0x98(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x98(%rbp)
jmp 0x1033ba
movl $0x0, -0x98(%rbp)
movl -0x98(%rbp), %eax
cmpl -0x90(%rbp), %eax
jae 0x103a16
movq -0x40(%rbp), %rax
movl -0x98(%rbp), %ecx
leaq (%rcx,%rcx,2), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rax
movl (%rax), %ecx
movl 0x4(%rax), %eax
subl %ecx, %eax
cvtsi2sd %rax, %xmm0
movsd -0x28(%rbp), %xmm1
mulsd %xmm1, %xmm0
cvttsd2si %xmm0, %rax
movl %eax, -0xb4(%rbp)
movl $0x0, -0xac(%rbp)
movl $0x0, -0xa8(%rbp)
movl $0x0, -0xb0(%rbp)
movl $0x0, -0x9c(%rbp)
movl $0x0, -0xa0(%rbp)
movl -0xa0(%rbp), %eax
cmpl -0x90(%rbp), %eax
jae 0x103a00
movl -0xa0(%rbp), %eax
movq -0xd8(%rbp), %rcx
movl -0x98(%rbp), %edx
cmpq (%rcx,%rdx,8), %rax
jne 0x10351b
movq -0xd0(%rbp), %rax
movl -0xa0(%rbp), %ecx
movq (%rax,%rcx,8), %rax
movl -0x98(%rbp), %ecx
cmpq %rcx, %rax
jne 0x1034f7
jmp 0x103516
leaq 0x28416d(%rip), %rdi    # 0x38766b
leaq 0x2833b8(%rip), %rsi    # 0x3868bd
movl $0x3bda, %edx           # imm = 0x3BDA
leaq 0x284165(%rip), %rcx    # 0x387676
callq 0x2130
jmp 0x1039ec
movq -0xd0(%rbp), %rax
movl -0xa0(%rbp), %ecx
movq (%rax,%rcx,8), %rax
movl -0x98(%rbp), %ecx
cmpq %rcx, %rax
jbe 0x10353c
jmp 0x1039ec
movq -0x40(%rbp), %rax
movq -0xd0(%rbp), %rcx
movl -0xa0(%rbp), %edx
imulq $0x30, (%rcx,%rdx,8), %rcx
addq %rcx, %rax
movq %rax, -0x48(%rbp)
movq -0x48(%rbp), %rax
movl (%rax), %eax
movq -0x50(%rbp), %rcx
cmpl 0x4(%rcx), %eax
jb 0x10356d
jmp 0x103a00
movq -0x48(%rbp), %rax
movb 0x28(%rax), %al
shrb $0x7, %al
cmpb $0x0, %al
je 0x103580
jmp 0x1039ec
movq -0x50(%rbp), %rax
movl (%rax), %eax
movq -0x48(%rbp), %rcx
cmpl (%rcx), %eax
jb 0x10359c
movq -0x50(%rbp), %rax
movl (%rax), %eax
movl %eax, -0xf4(%rbp)
jmp 0x1035a8
movq -0x48(%rbp), %rax
movl (%rax), %eax
movl %eax, -0xf4(%rbp)
movl -0xf4(%rbp), %eax
movl %eax, -0xc0(%rbp)
movq -0x50(%rbp), %rax
movl 0x4(%rax), %eax
movq -0x48(%rbp), %rcx
cmpl 0x4(%rcx), %eax
ja 0x1035d3
movq -0x50(%rbp), %rax
movl 0x4(%rax), %eax
movl %eax, -0xf8(%rbp)
jmp 0x1035e0
movq -0x48(%rbp), %rax
movl 0x4(%rax), %eax
movl %eax, -0xf8(%rbp)
movl -0xf8(%rbp), %eax
movl %eax, -0xc4(%rbp)
movl -0xc4(%rbp), %eax
cmpl -0xc0(%rbp), %eax
jbe 0x10360e
movl -0xc4(%rbp), %eax
subl -0xc0(%rbp), %eax
movl %eax, -0xfc(%rbp)
jmp 0x103618
xorl %eax, %eax
movl %eax, -0xfc(%rbp)
jmp 0x103618
movl -0xfc(%rbp), %eax
movl %eax, -0xbc(%rbp)
cmpl $0x0, -0xbc(%rbp)
jne 0x103632
jmp 0x1039ec
movq -0x50(%rbp), %rdi
movq -0x48(%rbp), %rsi
movq -0x38(%rbp), %rdx
movsd 0x27b9ea(%rip), %xmm0   # 0x37f030
callq 0x102680
cmpl $0x0, %eax
jne 0x10366e
movq -0x48(%rbp), %rdi
movq -0x50(%rbp), %rsi
movq -0x38(%rbp), %rdx
movsd 0x27b9cc(%rip), %xmm0   # 0x37f030
callq 0x102680
cmpl $0x0, %eax
je 0x103673
jmp 0x1039ec
cmpl $0x0, -0xa8(%rbp)
jbe 0x10372a
movq -0xe0(%rbp), %rax
movl -0xa8(%rbp), %ecx
subl $0x1, %ecx
movl %ecx, %ecx
movq (%rax,%rcx,8), %rax
cmpl -0xc0(%rbp), %eax
jb 0x10372a
movl -0xc4(%rbp), %eax
movq -0xe0(%rbp), %rcx
movl -0xa8(%rbp), %edx
subl $0x1, %edx
movl %edx, %edx
movq (%rcx,%rdx,8), %rcx
cmpl %ecx, %eax
jbe 0x103728
movl -0xc4(%rbp), %eax
movq -0xe0(%rbp), %rcx
movl -0xa8(%rbp), %edx
subl $0x1, %edx
movl %edx, %edx
movq (%rcx,%rdx,8), %rcx
subl %ecx, %eax
addl -0x9c(%rbp), %eax
movl %eax, -0x9c(%rbp)
movl -0xc4(%rbp), %eax
movq -0xe0(%rbp), %rcx
movl -0xa8(%rbp), %edx
subl $0x1, %edx
movl %edx, %edx
movq (%rcx,%rdx,8), %rcx
subl %ecx, %eax
movl %eax, %eax
movl %eax, %edx
movq -0xe0(%rbp), %rax
movl -0xa8(%rbp), %ecx
subl $0x1, %ecx
movl %ecx, %ecx
addq (%rax,%rcx,8), %rdx
movq %rdx, (%rax,%rcx,8)
jmp 0x1037a0
movl -0xc4(%rbp), %eax
subl -0xc0(%rbp), %eax
addl -0x9c(%rbp), %eax
movl %eax, -0x9c(%rbp)
movl -0xc0(%rbp), %eax
movl %eax, %edx
movq -0xe0(%rbp), %rax
movl -0xa8(%rbp), %ecx
movq %rdx, (%rax,%rcx,8)
movq -0xe0(%rbp), %rax
movl -0xa8(%rbp), %ecx
movq (%rax,%rcx,8), %rdx
shlq $0x20, %rdx
movq %rdx, (%rax,%rcx,8)
movl -0xc4(%rbp), %eax
movl %eax, %edx
movq -0xe0(%rbp), %rax
movl -0xa8(%rbp), %ecx
orq (%rax,%rcx,8), %rdx
movq %rdx, (%rax,%rcx,8)
movl -0xa8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xa8(%rbp)
cmpl $0x0, -0xac(%rbp)
jbe 0x10385a
movq -0xe8(%rbp), %rax
movl -0xac(%rbp), %ecx
subl $0x1, %ecx
movl %ecx, %ecx
movq (%rax,%rcx,8), %rax
movq -0x48(%rbp), %rcx
cmpl (%rcx), %eax
jb 0x10385a
movq -0x48(%rbp), %rax
movl 0x4(%rax), %eax
movq -0xe8(%rbp), %rcx
movl -0xac(%rbp), %edx
subl $0x1, %edx
movl %edx, %edx
movq (%rcx,%rdx,8), %rcx
cmpl %ecx, %eax
jbe 0x103858
movq -0x48(%rbp), %rax
movl 0x4(%rax), %eax
movq -0xe8(%rbp), %rcx
movl -0xac(%rbp), %edx
subl $0x1, %edx
movl %edx, %edx
movq (%rcx,%rdx,8), %rcx
subl %ecx, %eax
addl -0xb0(%rbp), %eax
movl %eax, -0xb0(%rbp)
movq -0x48(%rbp), %rax
movl 0x4(%rax), %eax
movq -0xe8(%rbp), %rcx
movl -0xac(%rbp), %edx
subl $0x1, %edx
movl %edx, %edx
movq (%rcx,%rdx,8), %rcx
subl %ecx, %eax
movl %eax, %eax
movl %eax, %edx
movq -0xe8(%rbp), %rax
movl -0xac(%rbp), %ecx
subl $0x1, %ecx
movl %ecx, %ecx
addq (%rax,%rcx,8), %rdx
movq %rdx, (%rax,%rcx,8)
jmp 0x1038d2
movq -0x48(%rbp), %rax
movl 0x4(%rax), %eax
movq -0x48(%rbp), %rcx
subl (%rcx), %eax
addl -0xb0(%rbp), %eax
movl %eax, -0xb0(%rbp)
movq -0x48(%rbp), %rax
movl (%rax), %eax
movl %eax, %edx
movq -0xe8(%rbp), %rax
movl -0xac(%rbp), %ecx
movq %rdx, (%rax,%rcx,8)
movq -0xe8(%rbp), %rax
movl -0xac(%rbp), %ecx
movq (%rax,%rcx,8), %rdx
shlq $0x20, %rdx
movq %rdx, (%rax,%rcx,8)
movq -0x48(%rbp), %rax
movl 0x4(%rax), %eax
movl %eax, %edx
movq -0xe8(%rbp), %rax
movl -0xac(%rbp), %ecx
orq (%rax,%rcx,8), %rdx
movq %rdx, (%rax,%rcx,8)
movl -0xac(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xac(%rbp)
movl -0x9c(%rbp), %eax
cmpq -0x30(%rbp), %rax
jb 0x1039ea
movl -0x9c(%rbp), %eax
cmpl -0xb4(%rbp), %eax
jae 0x103915
movl -0x9c(%rbp), %eax
cvtsi2sd %rax, %xmm0
movl -0xb0(%rbp), %eax
cvtsi2sd %rax, %xmm1
mulsd -0x28(%rbp), %xmm1
ucomisd %xmm1, %xmm0
jb 0x1039ea
movq -0x50(%rbp), %rax
movb 0x28(%rax), %cl
andb $0x7f, %cl
orb $-0x80, %cl
movb %cl, 0x28(%rax)
movq -0xf0(%rbp), %rax
addq $0x1, %rax
movq %rax, -0xf0(%rbp)
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x28(%rcx), %rcx
movq -0x50(%rbp), %rdx
movl 0x14(%rdx), %edx
movq (%rcx,%rdx,8), %rcx
shrq $0x20, %rcx
imulq $0x30, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x88(%rbp)
movq -0x10(%rbp), %rax
movq 0x28(%rax), %rax
movq -0x50(%rbp), %rcx
movl 0x14(%rcx), %ecx
movq (%rax,%rcx,8), %rax
movl %eax, -0x94(%rbp)
movl $0x0, -0xa4(%rbp)
movl -0xa4(%rbp), %eax
cmpl -0x94(%rbp), %eax
jae 0x1039e8
movq -0x88(%rbp), %rax
movl -0xa4(%rbp), %ecx
imulq $0x30, %rcx, %rcx
addq %rcx, %rax
movl 0x14(%rax), %eax
movq -0x50(%rbp), %rcx
cmpl 0x8(%rcx), %eax
jne 0x1039d5
movq -0x88(%rbp), %rax
movl -0xa4(%rbp), %ecx
imulq $0x30, %rcx, %rcx
addq %rcx, %rax
movb 0x28(%rax), %cl
andb $0x7f, %cl
orb $-0x80, %cl
movb %cl, 0x28(%rax)
jmp 0x1039d7
movl -0xa4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xa4(%rbp)
jmp 0x103987
jmp 0x103a00
jmp 0x1039ec
movl -0xa0(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xa0(%rbp)
jmp 0x1034ae
jmp 0x103a02
movl -0x98(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x98(%rbp)
jmp 0x10342d
movl -0xb8(%rbp), %eax
movl %eax, %ecx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
movq -0xf0(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x100, %rsp            # imm = 0x100
popq %rbp
retq
nopl (%rax)