// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/tovlp.cpp
// Function: chain_trans_d(utg_trans_t*, unsigned int*, unsigned int, unsigned int, unsigned long*, unsigned int*, unsigned int, unsigned int, unsigned long*, ma_ug_t*, unsigned int, double, char const*)
void chain_trans_d(utg_trans_t *o, 
uint32_t *pri_a, uint32_t pri_n, uint32_t pri_beg, uint64_t *i_pri_len, 
uint32_t *aux_a, uint32_t aux_n, uint32_t aux_beg, uint64_t *i_aux_len,
ma_ug_t *ug, uint32_t flag, double score, const char* cmd)
{
    uint32_t i, len, bn;
    uint64_t pri_len, aux_len;
    kvec_asg_arc_t_offset* u_buffer = &(o->u_buffer);
    kvec_t_i32_warp* tailIndex = &(o->tailIndex);
    asg_arc_t_offset *tt = NULL;
    ca_buf_t *tx = NULL;

    if(i_pri_len) pri_len = (*i_pri_len);
    else pri_len = get_utg_chain_length(ug, pri_a, pri_n);
    
    if(i_aux_len) aux_len = (*i_aux_len);
    else aux_len = get_utg_chain_length(ug, aux_a, aux_n);
        
    tt = NULL; o->c_buf.n = 0; o->k_t_b.n = 0;
    if(tailIndex->a.n > 0) tt = &(u_buffer->a.a[tailIndex->a.a[0]]);
    if(!tt || (pri_beg < (tt->Off>>32) && aux_beg < ((uint32_t)tt->Off)))
    {
        kv_pushp(ca_buf_t, o->c_buf, &tx);
        tx->c_x_p = pri_beg; 
        tx->c_y_p = aux_beg;

        for (i = 0; i < tailIndex->a.n; i++)
        {
            tt = &(u_buffer->a.a[tailIndex->a.a[i]]);
            kv_pushp(ca_buf_t, o->c_buf, &tx);

            tx->c_x_p = tt->Off>>32;
            tx->c_y_p = (uint32_t)tt->Off;
        }
    }
    else if(tailIndex->a.n == 1)//1 ele in chain
    {
        kv_pushp(ca_buf_t, o->c_buf, &tx);
        tx->c_x_p = pri_beg; tx->c_y_p = aux_beg;
    }
    else if(tailIndex->a.n > 0)
    {
        uint32_t cx, cy, ax, ay, found = 0;
        for (i = 0; i < tailIndex->a.n; i++)
        {
            cx = cy = ax = ay = (uint32_t)-1;

            cx = u_buffer->a.a[tailIndex->a.a[i]].Off>>32;
            cy = (uint32_t)u_buffer->a.a[tailIndex->a.a[i]].Off;
            if((i + 1) < tailIndex->a.n)
            {
                ax = u_buffer->a.a[tailIndex->a.a[i+1]].Off>>32;
                ay = (uint32_t)u_buffer->a.a[tailIndex->a.a[i+1]].Off;
            }

            kv_pushp(ca_buf_t, o->c_buf, &tx);
            tx->c_x_p = cx; tx->c_y_p = cy;

            if(found) continue;
            if(pri_beg > cx && pri_beg < ax && aux_beg > cy && aux_beg < ay)
            {
                kv_pushp(ca_buf_t, o->c_buf, &tx);
                tx->c_x_p = pri_beg; tx->c_y_p = aux_beg;
                found = 1;
            } 
        }
    }

    
    // fprintf(stderr, "\ncmd-%s\n", cmd);
    // fprintf(stderr, "pri_beg=%u, pri_len=%lu\n", pri_beg, pri_len);
    // fprintf(stderr, "aux_beg=%u, aux_len=%lu\n", aux_beg, aux_len);

    // print_buf_t(ug, pri, "pri");
    // print_buf_t(ug, aux, "aux");


    tx = &(o->c_buf.a[o->c_buf.n-1]);
    len = MIN(pri_len - tx->c_x_p, aux_len - tx->c_y_p);
    if(len > 0)///insert boundary
    {
        kv_pushp(ca_buf_t, o->c_buf, &tx);
        tx->c_x_p = o->c_buf.a[o->c_buf.n-2].c_x_p + len;
        tx->c_y_p = o->c_buf.a[o->c_buf.n-2].c_y_p + len;     
    }

    tx = &(o->c_buf.a[0]);///insert boundary
    if(tx->c_x_p != 0 && tx->c_y_p != 0)///already at boundary
    {
        len = MIN(tx->c_x_p, tx->c_y_p);///offset
        kv_pushp(ca_buf_t, o->c_buf, &tx);
        for (i = 0; (i + 1)< o->c_buf.n; i++)
        {
            o->c_buf.a[o->c_buf.n - i - 1] = o->c_buf.a[o->c_buf.n - i - 2];
        }
        o->c_buf.a[0].c_x_p = o->c_buf.a[1].c_x_p - len;
        o->c_buf.a[0].c_y_p = o->c_buf.a[1].c_y_p - len;
    }

    ///chain is [s, e)
    if(o->c_buf.a[0].c_x_p != 0 && o->c_buf.a[0].c_y_p != 0) fprintf(stderr, "ERROR1\n");
    if(o->c_buf.a[o->c_buf.n-1].c_x_p!= pri_len && 
                                            o->c_buf.a[o->c_buf.n-1].c_y_p!= aux_len)
    {
        fprintf(stderr, "ERROR2\n");
    }

    utg_trans_hit_idx iter;
    utg_thit_t hit, *kh = NULL;
    ////////prx
    reset_utg_trans_hit_idx(&iter, pri_a, pri_n, ug, o, o->c_buf.a[0].c_x_p, o->c_buf.a[o->c_buf.n-1].c_x_p);    
    while(get_utg_trans_hit(&iter, &hit))//get [qs, qe), [qus, que)
    {
        refine_utg_thit_t(&hit, &(o->c_buf)); ///get [ts, te)
        kv_push(utg_thit_t, o->k_t_b, hit);
    }
    bn = o->k_t_b.n;
    
    ////////aux
    reset_utg_trans_hit_idx(&iter, aux_a, aux_n, ug, o, o->c_buf.a[0].c_y_p, o->c_buf.a[o->c_buf.n-1].c_y_p);    
    while(get_utg_trans_hit(&iter, &hit))
    {
        extract_sub_overlaps_utg_thit(hit.qs, hit.qe, hit.qus, hit.que, hit.qn, &(o->k_t_b), bn);
    }

    if(o->k_t_b.n - bn == 0) fprintf(stderr, "ERROR7\n");
    
    // fprintf(stderr, "\n******o->k_t_b.n: %u, bn: %u\n", (uint32_t)o->k_t_b.n, bn);
    // for (i = 0; i < pri_n; i++)
    // {
    //     fprintf(stderr, "p-utg%.6ul\n", (pri_a[i]>>1) + 1);
    // }
    // for (i = 0; i < aux_n; i++)
    // {
    //     fprintf(stderr, "a-utg%.6ul\n", (aux_a[i]>>1) + 1);
    // }

    u_trans_t *kt = NULL;
    double x_score, y_score;
    for (i = bn; i < o->k_t_b.n; i++)
    {
        kh = &(o->k_t_b.a[i]);
        if(kh->que <= kh->qus) continue;
        if(kh->tue <= kh->tus) continue;
        kv_pushp(u_trans_t, o->k_trans, &kt);
        kt->f = flag; kt->rev = ((kh->qn ^ kh->tn) & 1); kt->del = 0; 
        kt->qn = kh->qn>>1; kt->qs = kh->qus; kt->qe = kh->que; ///kt->qo = kh->qn&1;
        kt->tn = kh->tn>>1; kt->ts = kh->tus; kt->te = kh->tue; ///kt->to = kh->tn&1;
        if(score < 0)
        {
            kt->nw = (MIN((kt->qe - kt->qs), (kt->te - kt->ts)))*CHAIN_MATCH;
        } 
        else
        {
            x_score = ((double)(kt->qe-kt->qs)/(double)(o->c_buf.a[o->c_buf.n-1].c_x_p-o->c_buf.a[0].c_x_p))*score;
            y_score = ((double)(kt->te-kt->ts)/(double)(o->c_buf.a[o->c_buf.n-1].c_y_p-o->c_buf.a[0].c_y_p))*score;
            kt->nw = MIN(x_score, y_score);
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movapd %xmm0, 0x70(%rsp)
movq %r9, %r15
movq %rdi, %rbx
movq 0x108(%rsp), %r12
movq 0x100(%rsp), %r14
testq %r8, %r8
movq %rsi, 0x38(%rsp)
movl %ecx, 0xc(%rsp)
movl %edx, 0x2c(%rsp)
je 0x15069f
movl %ecx, %r9d
movq (%r8), %rax
jmp 0x1506ac
movq %r12, %rdi
callq 0x14fef1
movl 0xc(%rsp), %r9d
movq %rax, 0x20(%rsp)
movl 0xf0(%rsp), %edx
testq %r14, %r14
movq %r15, 0x40(%rsp)
je 0x1506c7
movq (%r14), %r15
jmp 0x1506da
movq %r12, %rdi
movq %r15, %rsi
callq 0x14fef1
movl 0xc(%rsp), %r9d
movq %rax, %r15
andq $0x0, 0x98(%rbx)
movl 0xf8(%rsp), %r10d
andq $0x0, 0x80(%rbx)
leaq 0x98(%rbx), %r12
movq 0x40(%rbx), %rax
testq %rax, %rax
je 0x150736
movq 0x30(%rbx), %rcx
testq %rcx, %rcx
je 0x150736
movq 0x50(%rbx), %rdx
movslq (%rdx), %rdx
imulq $0x28, %rdx, %rdx
movq 0x18(%rcx,%rdx), %rcx
movq %rcx, %rdx
shrq $0x20, %rdx
cmpl %r9d, %edx
setbe %dl
cmpl %r10d, %ecx
setbe %cl
orb %dl, %cl
jne 0x150c9c
cmpq $0x0, 0xa0(%rbx)
je 0x15074e
movq %r15, %rbp
movq 0xa8(%rbx), %rax
xorl %edx, %edx
jmp 0x150786
movq %r15, %rbp
movq $0x2, 0xa0(%rbx)
movq 0xa8(%rbx), %rdi
pushq $0x38
popq %rsi
callq 0x2370
movl 0xf8(%rsp), %r10d
movl 0xc(%rsp), %r9d
movq %rax, 0xa8(%rbx)
movq 0x98(%rbx), %rdx
leaq 0x1(%rdx), %rcx
movq %rcx, 0x98(%rbx)
imulq $0x1c, %rdx, %rdx
movl %r9d, 0x10(%rax,%rdx)
movl %r10d, 0x14(%rax,%rdx)
xorl %r14d, %r14d
movl %r14d, %r14d
cmpq %r14, 0x40(%rbx)
jbe 0x150815
movq 0x30(%rbx), %r15
movq 0x50(%rbx), %rdx
movslq (%rdx,%r14,4), %r13
cmpq 0xa0(%rbx), %rcx
jne 0x1507ef
leaq (%rcx,%rcx), %rdx
testq %rcx, %rcx
pushq $0x2
popq %rcx
cmoveq %rcx, %rdx
movq %rdx, 0xa0(%rbx)
imulq $0x1c, %rdx, %rsi
movq %rax, %rdi
callq 0x2370
movq %rax, 0xa8(%rbx)
movq 0x98(%rbx), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, (%r12)
imulq $0x28, %r13, %rsi
movq 0x18(%r15,%rsi), %rsi
rorq $0x20, %rsi
imulq $0x1c, %rcx, %rcx
movq %rsi, 0x10(%rax,%rcx)
incl %r14d
movq %rdx, %rcx
jmp 0x1507a2
movq %rbp, %r15
imulq $0x1c, %rcx, %rsi
movl -0xc(%rax,%rsi), %edx
movl -0x8(%rax,%rsi), %esi
movq 0x20(%rsp), %rdi
subq %rdx, %rdi
movq %r15, %r14
subq %rsi, %r14
cmpq %r14, %rdi
cmovbq %rdi, %r14
testl %r14d, %r14d
je 0x15089a
cmpq 0xa0(%rbx), %rcx
jne 0x15087e
leaq (%rcx,%rcx), %rdx
testq %rcx, %rcx
pushq $0x2
popq %rcx
cmoveq %rcx, %rdx
movq %rdx, 0xa0(%rbx)
imulq $0x1c, %rdx, %rsi
movq %rax, %rdi
callq 0x2370
movq %rax, 0xa8(%rbx)
movq 0x98(%rbx), %rcx
imulq $0x1c, %rcx, %rdx
movl -0xc(%rax,%rdx), %edx
imulq $0x1c, %rcx, %rsi
incq %rcx
movq %rcx, (%r12)
addl %r14d, %edx
movl %edx, 0x10(%rax,%rsi)
addl -0x8(%rax,%rsi), %r14d
movl %r14d, 0x14(%rax,%rsi)
movl 0x10(%rax), %edx
testl %edx, %edx
je 0x15094a
movl 0x14(%rax), %ebp
testl %ebp, %ebp
je 0x150940
cmpl %ebp, %edx
cmovbl %edx, %ebp
cmpq 0xa0(%rbx), %rcx
jne 0x1508ed
leaq (%rcx,%rcx), %rdx
testq %rcx, %rcx
pushq $0x2
popq %rcx
cmoveq %rcx, %rdx
movq %rdx, 0xa0(%rbx)
imulq $0x1c, %rdx, %rsi
movq %rax, %rdi
callq 0x2370
movq %rax, 0xa8(%rbx)
movq 0x98(%rbx), %rcx
incq %rcx
movq %rcx, (%r12)
xorl %esi, %esi
leal 0x1(%rsi), %edx
movq 0xa8(%rbx), %rax
cmpq %rdx, %rcx
jbe 0x15092e
movl %esi, %esi
subq %rsi, %rcx
imulq $0x1c, %rcx, %rcx
movupd -0x38(%rax,%rcx), %xmm0
movupd -0x2c(%rax,%rcx), %xmm1
movupd %xmm1, -0x10(%rax,%rcx)
movupd %xmm0, -0x1c(%rax,%rcx)
movq (%r12), %rcx
movl %edx, %esi
jmp 0x1508f6
movl 0x2c(%rax), %edx
movl 0x30(%rax), %esi
subl %ebp, %esi
subl %ebp, %edx
movl %edx, 0x10(%rax)
movl %esi, 0x14(%rax)
je 0x15094a
cmpl $0x0, 0x14(%rax)
jne 0x150ed0
imulq $0x1c, %rcx, %rdx
movl -0xc(%rax,%rdx), %ecx
cmpq %rcx, 0x20(%rsp)
je 0x150968
addq %rax, %rdx
movl -0x8(%rdx), %edx
cmpq %rdx, %r15
jne 0x150e9c
movl 0x110(%rsp), %ebp
leaq 0x80(%rbx), %r14
movl 0x10(%rax), %eax
leaq 0x88(%rsp), %r15
movq 0x38(%rsp), %rdx
movq %rdx, 0x10(%r15)
movl 0x2c(%rsp), %edx
movl %edx, 0x18(%r15)
movq 0x108(%rsp), %rdx
movq %rdx, 0x20(%r15)
movq %rbx, 0x28(%r15)
movl %eax, 0x8(%r15)
movl %ecx, 0xc(%r15)
andq $0x0, (%r15)
leaq 0x48(%rsp), %r13
movq %r15, %rdi
movq %r13, %rsi
callq 0x1504b1
testl %eax, %eax
je 0x150a48
movq %r13, %rdi
movq %r12, %rsi
callq 0x14ffb3
movq 0x80(%rbx), %rcx
movq 0x90(%rbx), %rax
cmpq 0x88(%rbx), %rcx
jne 0x150a17
leaq (%rcx,%rcx), %rdx
testq %rcx, %rcx
pushq $0x2
popq %rcx
cmoveq %rcx, %rdx
movq %rdx, 0x88(%rbx)
imulq $0x28, %rdx, %rsi
movq %rax, %rdi
callq 0x2370
movq %rax, 0x90(%rbx)
movq 0x80(%rbx), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, (%r14)
imulq $0x28, %rcx, %rcx
movq 0x68(%rsp), %rdx
movq %rdx, 0x20(%rax,%rcx)
movupd 0x48(%rsp), %xmm0
movupd 0x58(%rsp), %xmm1
movupd %xmm1, 0x10(%rax,%rcx)
movupd %xmm0, (%rax,%rcx)
jmp 0x1509b3
movq 0x80(%rbx), %r13
movq 0xa8(%rbx), %rax
movl %r13d, %ecx
movq %rcx, 0x10(%rsp)
movl 0x14(%rax), %ecx
imulq $0x1c, 0x98(%rbx), %rdx
movl -0x8(%rax,%rdx), %eax
leaq 0x88(%rsp), %r15
movq 0x40(%rsp), %rdx
movq %rdx, 0x10(%r15)
movl 0xf0(%rsp), %edx
movl %edx, 0x18(%r15)
movq 0x108(%rsp), %rdx
movq %rdx, 0x20(%r15)
movq %rbx, 0x28(%r15)
movl %ecx, 0x8(%r15)
movl %eax, 0xc(%r15)
andq $0x0, (%r15)
leaq 0x48(%rsp), %r12
movq %r15, %rdi
movq %r12, %rsi
callq 0x1504b1
testl %eax, %eax
je 0x150adc
movl 0x48(%rsp), %edi
movl 0x4c(%rsp), %esi
movl 0x54(%rsp), %edx
movl 0x58(%rsp), %ecx
movl 0x50(%rsp), %r8d
movl %r13d, (%rsp)
movq %r14, %r9
callq 0x150240
jmp 0x150aaa
movq 0x10(%rsp), %rax
cmpq %rax, (%r14)
je 0x150e2b
andb $0x3f, %bpl
movapd 0x70(%rsp), %xmm0
unpcklpd %xmm0, %xmm0            # xmm0 = xmm0[0,0]
movapd %xmm0, 0x10(%rsp)
xorpd %xmm3, %xmm3
movl %r13d, %r13d
cmpq %r13, (%r14)
jbe 0x150c8a
movq 0x90(%rbx), %r15
imulq $0x28, %r13, %rax
movl 0x10(%r15,%rax), %ecx
cmpl 0xc(%r15,%rax), %ecx
jbe 0x150c82
addq %rax, %r15
movl 0x24(%r15), %eax
cmpl 0x20(%r15), %eax
jbe 0x150c82
movq 0xb0(%rbx), %rcx
movq 0xc0(%rbx), %rax
cmpq 0xb8(%rbx), %rcx
jne 0x150b84
leaq (%rcx,%rcx), %rdx
testq %rcx, %rcx
pushq $0x2
popq %rcx
cmoveq %rcx, %rdx
movq %rdx, 0xb8(%rbx)
imulq $0x30, %rdx, %rsi
movq %rax, %rdi
callq 0x2370
xorpd %xmm3, %xmm3
movq %rax, 0xc0(%rbx)
movq 0xb0(%rbx), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0xb0(%rbx)
imulq $0x30, %rcx, %rcx
movb 0x28(%rax,%rcx), %dl
andb $-0x40, %dl
orb %bpl, %dl
movb %dl, 0x28(%rax,%rcx)
movl 0x1c(%r15), %edx
xorl 0x8(%r15), %edx
shlb $0x6, %dl
andb $0x40, %dl
orb %bpl, %dl
movb %dl, 0x28(%rax,%rcx)
movl 0x8(%r15), %edx
shrl %edx
movl %edx, 0x8(%rax,%rcx)
movl 0xc(%r15), %esi
movl %esi, (%rax,%rcx)
movl 0x10(%r15), %edx
movl %edx, 0x4(%rax,%rcx)
movl 0x1c(%r15), %edi
shrl %edi
subl %esi, %edx
ucomisd 0x70(%rsp), %xmm3
movl %edi, 0x14(%rax,%rcx)
movl 0x20(%r15), %edi
movl %edi, 0xc(%rax,%rcx)
movl 0x24(%r15), %esi
movl %esi, 0x10(%rax,%rcx)
jbe 0x150c01
subl %edi, %esi
cmpl %esi, %edx
cmovbl %edx, %esi
cvtsi2sd %rsi, %xmm0
jmp 0x150c7a
movq 0xa8(%rbx), %r8
imulq $0x1c, 0x98(%rbx), %r9
subl %edi, %esi
movd %esi, %xmm0
movd %edx, %xmm1
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
pxor %xmm4, %xmm4
punpckldq %xmm4, %xmm1    # xmm1 = xmm1[0],xmm4[0],xmm1[1],xmm4[1]
movdqa 0x96fa2(%rip), %xmm5    # 0x1e7bd0
por %xmm5, %xmm1
subpd %xmm5, %xmm1
movq -0xc(%r8,%r9), %xmm0
movq 0x10(%r8), %xmm2
psubd %xmm2, %xmm0
punpckldq %xmm4, %xmm0    # xmm0 = xmm0[0],xmm4[0],xmm0[1],xmm4[1]
por %xmm5, %xmm0
subpd %xmm5, %xmm0
divpd %xmm0, %xmm1
mulpd 0x10(%rsp), %xmm1
movapd %xmm1, %xmm2
unpckhpd %xmm1, %xmm2            # xmm2 = xmm2[1],xmm1[1]
movapd %xmm1, %xmm0
cmplesd %xmm2, %xmm0
andpd %xmm0, %xmm1
andnpd %xmm2, %xmm0
orpd %xmm1, %xmm0
addq %rcx, %rax
movsd %xmm0, 0x20(%rax)
incl %r13d
jmp 0x150b02
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpq $0x1, %rax
jne 0x150cbe
cmpq $0x0, 0xa0(%rbx)
je 0x150e4c
movq 0xa8(%rbx), %rax
xorl %edx, %edx
jmp 0x150e81
movq %r15, 0x30(%rsp)
xorl %ecx, %ecx
pushq $0x1
popq %rdx
movl %edx, %r15d
xorl %r14d, %r14d
leal -0x1(%r15), %edx
cmpq %rdx, %rax
jbe 0x150e1a
movq 0x30(%rbx), %rsi
movq 0x50(%rbx), %rdi
movq %r15, 0x10(%rsp)
movl %r15d, %r8d
pushq $-0x1
popq %r11
movl %r11d, %r13d
movl %r11d, %r15d
cmpq %r8, %rax
jbe 0x150d0e
movslq (%rdi,%r8,4), %rax
imulq $0x28, %rax, %rax
movq 0x18(%rsi,%rax), %r15
movq %r15, %r13
shrq $0x20, %r13
movslq (%rdi,%rdx,4), %rax
imulq $0x28, %rax, %rax
movq 0x18(%rsi,%rax), %rbp
movq 0xa8(%rbx), %rax
cmpq 0xa0(%rbx), %rcx
jne 0x150d67
leaq (%rcx,%rcx), %rdx
testq %rcx, %rcx
pushq $0x2
popq %rcx
cmoveq %rcx, %rdx
movq %rdx, 0xa0(%rbx)
imulq $0x1c, %rdx, %rsi
movq %rax, %rdi
callq 0x2370
movl 0xf8(%rsp), %r10d
movl 0xc(%rsp), %r9d
movq %rax, 0xa8(%rbx)
movq 0x98(%rbx), %rcx
movq %rbp, %rdx
shrq $0x20, %rdx
imulq $0x1c, %rcx, %rsi
incq %rcx
movq %rcx, (%r12)
movl %edx, 0x10(%rax,%rsi)
movl %ebp, 0x14(%rax,%rsi)
testl %r14d, %r14d
je 0x150d9b
pushq $0x1
popq %r14
movq 0x10(%rsp), %r15
movq 0x40(%rbx), %rax
incl %r15d
jmp 0x150cce
xorl %r14d, %r14d
cmpl %r9d, %edx
jae 0x150d8a
cmpl %r9d, %r13d
jbe 0x150d8a
cmpl %r10d, %ebp
jae 0x150d8a
cmpl %r10d, %r15d
jbe 0x150d8a
cmpq 0xa0(%rbx), %rcx
movq 0x10(%rsp), %r15
jne 0x150dfc
leaq (%rcx,%rcx), %rdx
testq %rcx, %rcx
pushq $0x2
popq %rcx
cmoveq %rcx, %rdx
movq %rdx, 0xa0(%rbx)
imulq $0x1c, %rdx, %rsi
movq %rax, %rdi
callq 0x2370
movl 0xf8(%rsp), %r10d
movl 0xc(%rsp), %r9d
movq %rax, 0xa8(%rbx)
movq 0x98(%rbx), %rcx
imulq $0x1c, %rcx, %rdx
incq %rcx
movq %rcx, (%r12)
movl %r9d, 0x10(%rax,%rdx)
movl %r10d, 0x14(%rax,%rdx)
pushq $0x1
popq %r14
jmp 0x150d8f
movq 0xa8(%rbx), %rax
movq 0x30(%rsp), %r15
jmp 0x150818
movq 0x1021ae(%rip), %rax    # 0x252fe0
movq (%rax), %rcx
leaq 0xa09fa(%rip), %rdi     # 0x1f1836
pushq $0x7
popq %rsi
pushq $0x1
popq %rdx
callq 0x2410
jmp 0x150aea
movq $0x2, 0xa0(%rbx)
movq 0xa8(%rbx), %rdi
pushq $0x38
popq %rsi
callq 0x2370
movl 0xf8(%rsp), %r10d
movl 0xc(%rsp), %r9d
movq %rax, 0xa8(%rbx)
movq 0x98(%rbx), %rdx
leaq 0x1(%rdx), %rcx
movq %rcx, (%r12)
imulq $0x1c, %rdx, %rdx
movl %r9d, 0x10(%rax,%rdx)
movl %r10d, 0x14(%rax,%rdx)
jmp 0x150818
movq 0x10213d(%rip), %rax    # 0x252fe0
movq (%rax), %rcx
leaq 0x97887(%rip), %rdi     # 0x1e8734
pushq $0x7
popq %rsi
pushq $0x1
popq %rdx
callq 0x2410
movq 0xa8(%rbx), %rax
imulq $0x1c, 0x98(%rbx), %rcx
movl -0xc(%rax,%rcx), %ecx
jmp 0x150968
movq 0x102109(%rip), %rax    # 0x252fe0
movq (%rax), %rcx
leaq 0x9784b(%rip), %rdi     # 0x1e872c
pushq $0x7
popq %rsi
pushq $0x1
popq %rdx
callq 0x2410
movq 0x98(%rbx), %rcx
movq 0xa8(%rbx), %rax
jmp 0x15094a