// File: chhylp123[P]hifiasm/Overlaps.cpp
// Function: update_ctg_trans_cc(kv_u_trans_t*)
void update_ctg_trans_cc(kv_u_trans_t *os)
{
    uint64_t k, m; u_trans_t *z;
    kt_for(asm_opt.thread_num, worker_for_ctg_trans_cc, os, os->idx.n);
    for (k = m = 0; k < os->n; k++) {
        if(!(os->a[k].del)) os->a[m++] = os->a[k];
    }
    os->n = m;
    for (k = 0; k < m; k++) {
        kv_pushp(u_trans_t, *os, &z);
        *z = os->a[k];
        z->qn = os->a[k].tn; z->qs = os->a[k].ts; z->qe = os->a[k].te; 
        z->tn = os->a[k].qn; z->ts = os->a[k].qs; z->te = os->a[k].qe; 
    }
    kt_u_trans_t_idx(os, os->idx.n);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
leaq 0x29cdd5(%rip), %rax    # 0x3c47f8
movl 0x7c(%rax), %edi
movq -0x8(%rbp), %rdx
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rcx
leaq 0x217(%rip), %rsi       # 0x127c50
callq 0x16d710
movq $0x0, -0x18(%rbp)
movq $0x0, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq -0x8(%rbp), %rcx
cmpq (%rcx), %rax
jae 0x127abd
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
imulq $0x30, -0x10(%rbp), %rcx
addq %rcx, %rax
movb 0x28(%rax), %al
shrb $0x7, %al
cmpb $0x0, %al
jne 0x127aad
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rsi
imulq $0x30, -0x10(%rbp), %rax
addq %rax, %rsi
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rdi
movq -0x18(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x18(%rbp)
imulq $0x30, %rax, %rax
addq %rax, %rdi
movl $0x30, %edx
callq 0x2180
jmp 0x127aaf
movq -0x10(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x10(%rbp)
jmp 0x127a4e
movq -0x18(%rbp), %rcx
movq -0x8(%rbp), %rax
movq %rcx, (%rax)
movq $0x0, -0x10(%rbp)
movq -0x10(%rbp), %rax
cmpq -0x18(%rbp), %rax
jae 0x127c32
jmp 0x127ae0
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq -0x8(%rbp), %rcx
cmpq 0x8(%rcx), %rax
jne 0x127b45
movq -0x8(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x127b0d
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
shlq %rax
movq %rax, -0x28(%rbp)
jmp 0x127b18
movl $0x2, %eax
movq %rax, -0x28(%rbp)
jmp 0x127b18
movq -0x28(%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, -0x20(%rbp)
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rsi
imulq $0x30, -0x10(%rbp), %rax
addq %rax, %rsi
movq -0x20(%rbp), %rdi
movl $0x30, %edx
callq 0x2180
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
imulq $0x30, -0x10(%rbp), %rcx
addq %rcx, %rax
movl 0x14(%rax), %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0x8(%rax)
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
imulq $0x30, -0x10(%rbp), %rcx
addq %rcx, %rax
movl 0xc(%rax), %ecx
movq -0x20(%rbp), %rax
movl %ecx, (%rax)
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
imulq $0x30, -0x10(%rbp), %rcx
addq %rcx, %rax
movl 0x10(%rax), %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0x4(%rax)
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
imulq $0x30, -0x10(%rbp), %rcx
addq %rcx, %rax
movl 0x8(%rax), %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0x14(%rax)
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
imulq $0x30, -0x10(%rbp), %rcx
addq %rcx, %rax
movl (%rax), %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0xc(%rax)
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
imulq $0x30, -0x10(%rbp), %rcx
addq %rcx, %rax
movl 0x4(%rax), %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0x10(%rax)
movq -0x10(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x10(%rbp)
jmp 0x127ad0
movq -0x8(%rbp), %rdi
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rax
movl %eax, %esi
callq 0x104540
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax,%rax)