// File: chhylp123[P]hifiasm/hic.cpp
// Function: bp_solve(ug_opt_t*, kv_u_trans_t*, ma_ug_t*, asg_t*, bubble_type*, double)
void bp_solve(ug_opt_t *opt, kv_u_trans_t *ref, ma_ug_t *ug, asg_t *sg, bubble_type *bub, double cis_rate)
{
    uint64_t k, i, v, nvx, n[3], nv; u_trans_t *z;
    kv_u_trans_t in; memset(&in, 0, sizeof(in));
    ma_utg_t *u = NULL; asg_arc_t *av; double w;
    ps_t *s = init_ps_t(11, ug->g->n_seq);

    for (i = 0; i < ug->g->n_seq; i++) {
        s->s[i] = 0;
        if((ug->g->seq[i].del) || (IF_HOM(i, (*bub)))) {
            continue;
        }

        u = &ug->u.a[i];
        if(u->m == 0 || u->n == 0) continue;
        for (k = n[0] = n[1] = n[2] = 0; k < u->n; k++) {
            if(R_INF.trio_flag[u->a[k]>>33] == FATHER) n[1]++;
            else if(R_INF.trio_flag[u->a[k]>>33] == MOTHER) n[2]++;
            else n[0]++;
        }
        if(n[1] >= n[2] && n[1] >= n[0]) s->s[i] = 1;
        else if(n[2] >= n[1] && n[2] >= n[0]) s->s[i] = -1;
    }

    kv_resize(u_trans_t, in, ref->n);
    for (k = in.n = 0; k < ref->n; k++) {
        if((IF_HOM(ref->a[k].qn, (*bub))) || (IF_HOM(ref->a[k].tn, (*bub))) || ref->a[k].del) {
            continue;
        }
        kv_push(u_trans_t, in, ref->a[k]);
    }

    if(cis_rate > 0) {
        nvx = ug->g->n_seq<<1;
        for (v = 0; v < nvx; v++) {
            if((ug->g->seq[v>>1].del) || (IF_HOM((v>>1), (*bub)))) continue;
            av = asg_arc_a(ug->g, v); nv = asg_arc_n(ug->g, v);
            for (i = 0; i < nv; i++) {
                if((av[i].del) || (av[i].v>>1) == (v>>1) || 
                                            (ug->g->seq[av[i].v>>1].del) || (IF_HOM((av[i].v>>1), (*bub)))) {
                    continue;
                }
                w = ((double)av[i].ol)*cis_rate;
                if(w <= 0) continue;
                kv_pushp(u_trans_t, in, &z); 
                memset(z, 0, sizeof((*z)));
                z->f = RC_3; z->nw =-w; z->rev = (v^av[i].v)&1;
                z->qn = v>>1; z->tn = av[i].v>>1;
    
                z->qs = 0; z->qe = sg->seq[z->qn].len;
                if(av[i].ol < sg->seq[z->qn].len) {
                    if(v&1) {
                        z->qe = z->qs + av[i].ol;
                    } else {
                        z->qs = z->qe - av[i].ol;
                    }
                }

                z->ts = 0; z->te = sg->seq[z->tn].len;
                if(av[i].ol < sg->seq[z->tn].len) {
                    if(av[i].v&1) {
                        z->ts = z->te - av[i].ol;
                    } else {
                        z->te = z->ts + av[i].ol;
                    }
                }
            }

        }
    }
    // fprintf(stderr, "[M::%s::] ==> nup::%lu\n", __func__, nup);
    clean_u_trans_t_idx_adv(&in, ug, sg);

    mc_solve(NULL, NULL, &in, ug, sg, 0.8, NULL, 0, s->s, 1, bub, ref, 0, 0);
    label_unitigs_sm(s->s, NULL, ug);
    destory_ps_t(&s); kv_destroy(in); kv_destroy(in.idx);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x120, %rsp            # imm = 0x120
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movsd %xmm0, -0x30(%rbp)
leaq -0xb0(%rbp), %rdi
xorl %esi, %esi
movl $0x30, %edx
callq 0x2100
movq $0x0, -0xb8(%rbp)
movq -0x18(%rbp), %rax
movq 0x18(%rax), %rax
movl 0x14(%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movl %eax, %eax
movl %eax, %esi
movl $0xb, %edi
callq 0x204880
movq %rax, -0xd0(%rbp)
movq $0x0, -0x40(%rbp)
movq -0x40(%rbp), %rax
movq -0x18(%rbp), %rcx
movq 0x18(%rcx), %rcx
movl 0x14(%rcx), %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
movl %ecx, %ecx
cmpq %rcx, %rax
jae 0x20a2e6
movq -0xd0(%rbp), %rax
movq (%rax), %rax
movq -0x40(%rbp), %rcx
movb $0x0, (%rax,%rcx)
movq -0x18(%rbp), %rax
movq 0x18(%rax), %rax
movq 0x20(%rax), %rax
movq -0x40(%rbp), %rcx
movl (%rax,%rcx,8), %eax
shrl $0x1f, %eax
cmpl $0x0, %eax
jne 0x20a17e
movq -0x28(%rbp), %rax
movq (%rax), %rax
movq -0x40(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movq -0x28(%rbp), %rcx
movq 0x80(%rcx), %rcx
addq $0x1, %rcx
cmpq %rcx, %rax
jbe 0x20a183
jmp 0x20a2d5
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rax
imulq $0x28, -0x40(%rbp), %rcx
addq %rcx, %rax
movq %rax, -0xb8(%rbp)
movq -0xb8(%rbp), %rax
cmpl $0x0, 0xc(%rax)
je 0x20a1b4
movq -0xb8(%rbp), %rax
cmpl $0x0, 0x10(%rax)
jne 0x20a1b9
jmp 0x20a2d5
movq $0x0, -0x60(%rbp)
movq $0x0, -0x68(%rbp)
movq $0x0, -0x70(%rbp)
movq $0x0, -0x38(%rbp)
movq -0x38(%rbp), %rax
movq -0xb8(%rbp), %rcx
movl 0x10(%rcx), %ecx
cmpq %rcx, %rax
jae 0x20a283
leaq 0x1bb0d9(%rip), %rax    # 0x3c52d0
movq 0x28(%rax), %rax
movq -0xb8(%rbp), %rcx
movq 0x18(%rcx), %rcx
movq -0x38(%rbp), %rdx
movq (%rcx,%rdx,8), %rcx
shrq $0x21, %rcx
movzbl (%rax,%rcx), %eax
cmpl $0x1, %eax
jne 0x20a229
movq -0x68(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x68(%rbp)
jmp 0x20a270
leaq 0x1bb0a0(%rip), %rax    # 0x3c52d0
movq 0x28(%rax), %rax
movq -0xb8(%rbp), %rcx
movq 0x18(%rcx), %rcx
movq -0x38(%rbp), %rdx
movq (%rcx,%rdx,8), %rcx
shrq $0x21, %rcx
movzbl (%rax,%rcx), %eax
cmpl $0x2, %eax
jne 0x20a262
movq -0x60(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x60(%rbp)
jmp 0x20a26e
movq -0x70(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x70(%rbp)
jmp 0x20a270
jmp 0x20a272
movq -0x38(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x38(%rbp)
jmp 0x20a1d9
movq -0x68(%rbp), %rax
cmpq -0x60(%rbp), %rax
jb 0x20a2ab
movq -0x68(%rbp), %rax
cmpq -0x70(%rbp), %rax
jb 0x20a2ab
movq -0xd0(%rbp), %rax
movq (%rax), %rax
movq -0x40(%rbp), %rcx
movb $0x1, (%rax,%rcx)
jmp 0x20a2d3
movq -0x60(%rbp), %rax
cmpq -0x68(%rbp), %rax
jb 0x20a2d1
movq -0x60(%rbp), %rax
cmpq -0x70(%rbp), %rax
jb 0x20a2d1
movq -0xd0(%rbp), %rax
movq (%rax), %rax
movq -0x40(%rbp), %rcx
movb $-0x1, (%rax,%rcx)
jmp 0x20a2d3
jmp 0x20a2d5
movq -0x40(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x40(%rbp)
jmp 0x20a10f
jmp 0x20a2e8
movq -0xa8(%rbp), %rax
movq -0x10(%rbp), %rcx
cmpq (%rcx), %rax
jae 0x20a3c5
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rax, -0xa8(%rbp)
movq -0xa8(%rbp), %rax
addq $-0x1, %rax
movq %rax, -0xa8(%rbp)
movq -0xa8(%rbp), %rax
shrq %rax
orq -0xa8(%rbp), %rax
movq %rax, -0xa8(%rbp)
movq -0xa8(%rbp), %rax
shrq $0x2, %rax
orq -0xa8(%rbp), %rax
movq %rax, -0xa8(%rbp)
movq -0xa8(%rbp), %rax
shrq $0x4, %rax
orq -0xa8(%rbp), %rax
movq %rax, -0xa8(%rbp)
movq -0xa8(%rbp), %rax
shrq $0x8, %rax
orq -0xa8(%rbp), %rax
movq %rax, -0xa8(%rbp)
movq -0xa8(%rbp), %rax
shrq $0x10, %rax
orq -0xa8(%rbp), %rax
movq %rax, -0xa8(%rbp)
movq -0xa8(%rbp), %rax
addq $0x1, %rax
movq %rax, -0xa8(%rbp)
movq -0xa0(%rbp), %rdi
imulq $0x30, -0xa8(%rbp), %rsi
callq 0x2360
movq %rax, -0xa0(%rbp)
jmp 0x20a3c7
movq $0x0, -0xb0(%rbp)
movq $0x0, -0x38(%rbp)
movq -0x38(%rbp), %rax
movq -0x10(%rbp), %rcx
cmpq (%rcx), %rax
jae 0x20a522
movq -0x28(%rbp), %rax
movq (%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x10(%rcx), %rcx
imulq $0x30, -0x38(%rbp), %rdx
addq %rdx, %rcx
movl 0x8(%rcx), %ecx
movl (%rax,%rcx,4), %eax
movq -0x28(%rbp), %rcx
movq 0x80(%rcx), %rcx
addq $0x1, %rcx
cmpq %rcx, %rax
ja 0x20a467
movq -0x28(%rbp), %rax
movq (%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x10(%rcx), %rcx
imulq $0x30, -0x38(%rbp), %rdx
addq %rdx, %rcx
movl 0x14(%rcx), %ecx
movl (%rax,%rcx,4), %eax
movq -0x28(%rbp), %rcx
movq 0x80(%rcx), %rcx
addq $0x1, %rcx
cmpq %rcx, %rax
ja 0x20a467
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
imulq $0x30, -0x38(%rbp), %rcx
addq %rcx, %rax
movb 0x28(%rax), %al
shrb $0x7, %al
cmpb $0x0, %al
je 0x20a46c
jmp 0x20a511
jmp 0x20a46e
movq -0xb0(%rbp), %rax
cmpq -0xa8(%rbp), %rax
jne 0x20a4d2
cmpq $0x0, -0xa8(%rbp)
je 0x20a49b
movq -0xa8(%rbp), %rax
shlq %rax
movq %rax, -0xd8(%rbp)
jmp 0x20a4a9
movl $0x2, %eax
movq %rax, -0xd8(%rbp)
jmp 0x20a4a9
movq -0xd8(%rbp), %rax
movq %rax, -0xa8(%rbp)
movq -0xa0(%rbp), %rdi
imulq $0x30, -0xa8(%rbp), %rsi
callq 0x2360
movq %rax, -0xa0(%rbp)
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rsi
imulq $0x30, -0x38(%rbp), %rax
addq %rax, %rsi
movq -0xa0(%rbp), %rdi
movq -0xb0(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0xb0(%rbp)
imulq $0x30, %rax, %rax
addq %rax, %rdi
movl $0x30, %edx
callq 0x2180
jmp 0x20a511
movq -0x38(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x38(%rbp)
jmp 0x20a3da
movsd -0x30(%rbp), %xmm0
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jbe 0x20a9cc
movq -0x18(%rbp), %rax
movq 0x18(%rax), %rax
movl 0x14(%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
shll %eax
cltq
movq %rax, -0x50(%rbp)
movq $0x0, -0x48(%rbp)
movq -0x48(%rbp), %rax
cmpq -0x50(%rbp), %rax
jae 0x20a9ca
movq -0x18(%rbp), %rax
movq 0x18(%rax), %rax
movq 0x20(%rax), %rax
movq -0x48(%rbp), %rcx
shrq %rcx
movl (%rax,%rcx,8), %eax
shrl $0x1f, %eax
cmpl $0x0, %eax
jne 0x20a5a5
movq -0x28(%rbp), %rax
movq (%rax), %rax
movq -0x48(%rbp), %rcx
shrq %rcx
movl (%rax,%rcx,4), %eax
movq -0x28(%rbp), %rcx
movq 0x80(%rcx), %rcx
addq $0x1, %rcx
cmpq %rcx, %rax
jbe 0x20a5aa
jmp 0x20a9b9
movq -0x18(%rbp), %rax
movq 0x18(%rax), %rax
movq 0x8(%rax), %rax
movq -0x18(%rbp), %rcx
movq 0x18(%rcx), %rcx
movq 0x28(%rcx), %rcx
movq -0x48(%rbp), %rdx
movq (%rcx,%rdx,8), %rcx
shrq $0x20, %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0xc0(%rbp)
movq -0x18(%rbp), %rax
movq 0x18(%rax), %rax
movq 0x28(%rax), %rax
movq -0x48(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movl %eax, %eax
movq %rax, -0x78(%rbp)
movq $0x0, -0x40(%rbp)
movq -0x40(%rbp), %rax
cmpq -0x78(%rbp), %rax
jae 0x20a9b7
movq -0xc0(%rbp), %rax
imulq $0x18, -0x40(%rbp), %rcx
addq %rcx, %rax
movl 0xc(%rax), %eax
shrl $0x1f, %eax
cmpl $0x0, %eax
jne 0x20a6ad
movq -0xc0(%rbp), %rax
imulq $0x18, -0x40(%rbp), %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
shrl %eax
movl %eax, %eax
movq -0x48(%rbp), %rcx
shrq %rcx
cmpq %rcx, %rax
je 0x20a6ad
movq -0x18(%rbp), %rax
movq 0x18(%rax), %rax
movq 0x20(%rax), %rax
movq -0xc0(%rbp), %rcx
imulq $0x18, -0x40(%rbp), %rdx
addq %rdx, %rcx
movl 0x8(%rcx), %ecx
shrl %ecx
movl %ecx, %ecx
movl (%rax,%rcx,8), %eax
shrl $0x1f, %eax
cmpl $0x0, %eax
jne 0x20a6ad
movq -0x28(%rbp), %rax
movq (%rax), %rax
movq -0xc0(%rbp), %rcx
imulq $0x18, -0x40(%rbp), %rdx
addq %rdx, %rcx
movl 0x8(%rcx), %ecx
shrl %ecx
movl %ecx, %ecx
movl (%rax,%rcx,4), %eax
movq -0x28(%rbp), %rcx
movq 0x80(%rcx), %rcx
addq $0x1, %rcx
cmpq %rcx, %rax
jbe 0x20a6b2
jmp 0x20a9a6
movq -0xc0(%rbp), %rax
movq -0x40(%rbp), %rcx
leaq (%rcx,%rcx,2), %rcx
movl 0xc(%rax,%rcx,8), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
cvtsi2sd %eax, %xmm0
mulsd -0x30(%rbp), %xmm0
movsd %xmm0, -0xc8(%rbp)
xorps %xmm0, %xmm0
ucomisd -0xc8(%rbp), %xmm0
jb 0x20a6ed
jmp 0x20a9a6
jmp 0x20a6ef
movq -0xb0(%rbp), %rax
cmpq -0xa8(%rbp), %rax
jne 0x20a753
cmpq $0x0, -0xa8(%rbp)
je 0x20a71c
movq -0xa8(%rbp), %rax
shlq %rax
movq %rax, -0xe0(%rbp)
jmp 0x20a72a
movl $0x2, %eax
movq %rax, -0xe0(%rbp)
jmp 0x20a72a
movq -0xe0(%rbp), %rax
movq %rax, -0xa8(%rbp)
movq -0xa0(%rbp), %rdi
imulq $0x30, -0xa8(%rbp), %rsi
callq 0x2360
movq %rax, -0xa0(%rbp)
movq -0xa0(%rbp), %rax
movq -0xb0(%rbp), %rcx
movq %rcx, %rdx
addq $0x1, %rdx
movq %rdx, -0xb0(%rbp)
imulq $0x30, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x80(%rbp)
movq -0x80(%rbp), %rdi
xorl %esi, %esi
movl $0x30, %edx
callq 0x2100
movq -0x80(%rbp), %rax
movb 0x28(%rax), %cl
andb $-0x40, %cl
orb $0x3, %cl
movb %cl, 0x28(%rax)
movsd -0xc8(%rbp), %xmm0
movq %xmm0, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm0
movq -0x80(%rbp), %rax
movsd %xmm0, 0x20(%rax)
movq -0x48(%rbp), %rax
movq -0xc0(%rbp), %rcx
imulq $0x18, -0x40(%rbp), %rdx
addq %rdx, %rcx
movl 0x8(%rcx), %ecx
xorq %rcx, %rax
andq $0x1, %rax
movb %al, %dl
movq -0x80(%rbp), %rax
movb 0x28(%rax), %cl
andb $0x1, %dl
shlb $0x6, %dl
andb $-0x41, %cl
orb %dl, %cl
movb %cl, 0x28(%rax)
movq -0x48(%rbp), %rax
shrq %rax
movl %eax, %ecx
movq -0x80(%rbp), %rax
movl %ecx, 0x8(%rax)
movq -0xc0(%rbp), %rax
imulq $0x18, -0x40(%rbp), %rcx
addq %rcx, %rax
movl 0x8(%rax), %ecx
shrl %ecx
movq -0x80(%rbp), %rax
movl %ecx, 0x14(%rax)
movq -0x80(%rbp), %rax
movl $0x0, (%rax)
movq -0x20(%rbp), %rax
movq 0x20(%rax), %rax
movq -0x80(%rbp), %rcx
movl 0x8(%rcx), %ecx
movl (%rax,%rcx,8), %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
movq -0x80(%rbp), %rax
movl %ecx, 0x4(%rax)
movq -0xc0(%rbp), %rax
imulq $0x18, -0x40(%rbp), %rcx
addq %rcx, %rax
movl 0xc(%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movq -0x20(%rbp), %rcx
movq 0x20(%rcx), %rcx
movq -0x80(%rbp), %rdx
movl 0x8(%rdx), %edx
movl (%rcx,%rdx,8), %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
cmpl %ecx, %eax
jge 0x20a8db
movq -0x48(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x20a8b3
movq -0x80(%rbp), %rax
movl (%rax), %ecx
movq -0xc0(%rbp), %rax
imulq $0x18, -0x40(%rbp), %rdx
addq %rdx, %rax
movl 0xc(%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
addl %eax, %ecx
movq -0x80(%rbp), %rax
movl %ecx, 0x4(%rax)
jmp 0x20a8d9
movq -0x80(%rbp), %rax
movl 0x4(%rax), %ecx
movq -0xc0(%rbp), %rax
imulq $0x18, -0x40(%rbp), %rdx
addq %rdx, %rax
movl 0xc(%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
subl %eax, %ecx
movq -0x80(%rbp), %rax
movl %ecx, (%rax)
jmp 0x20a8db
movq -0x80(%rbp), %rax
movl $0x0, 0xc(%rax)
movq -0x20(%rbp), %rax
movq 0x20(%rax), %rax
movq -0x80(%rbp), %rcx
movl 0x14(%rcx), %ecx
movl (%rax,%rcx,8), %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
movq -0x80(%rbp), %rax
movl %ecx, 0x10(%rax)
movq -0xc0(%rbp), %rax
imulq $0x18, -0x40(%rbp), %rcx
addq %rcx, %rax
movl 0xc(%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movq -0x20(%rbp), %rcx
movq 0x20(%rcx), %rcx
movq -0x80(%rbp), %rdx
movl 0x14(%rdx), %edx
movl (%rcx,%rdx,8), %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
cmpl %ecx, %eax
jge 0x20a9a4
movq -0xc0(%rbp), %rax
imulq $0x18, -0x40(%rbp), %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x20a97b
movq -0x80(%rbp), %rax
movl 0x10(%rax), %ecx
movq -0xc0(%rbp), %rax
imulq $0x18, -0x40(%rbp), %rdx
addq %rdx, %rax
movl 0xc(%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
subl %eax, %ecx
movq -0x80(%rbp), %rax
movl %ecx, 0xc(%rax)
jmp 0x20a9a2
movq -0x80(%rbp), %rax
movl 0xc(%rax), %ecx
movq -0xc0(%rbp), %rax
imulq $0x18, -0x40(%rbp), %rdx
addq %rdx, %rax
movl 0xc(%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
addl %eax, %ecx
movq -0x80(%rbp), %rax
movl %ecx, 0x10(%rax)
jmp 0x20a9a4
jmp 0x20a9a6
movq -0x40(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x40(%rbp)
jmp 0x20a5fe
jmp 0x20a9b9
movq -0x48(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x48(%rbp)
jmp 0x20a554
jmp 0x20a9cc
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
leaq -0xb0(%rbp), %rdi
callq 0x103c60
movq -0x18(%rbp), %rcx
movq -0x20(%rbp), %r8
movq -0xd0(%rbp), %rax
movq (%rax), %r11
movq -0x28(%rbp), %r10
movq -0x10(%rbp), %rax
xorl %edx, %edx
movl %edx, %r9d
leaq -0xb0(%rbp), %rdx
movsd 0x177822(%rip), %xmm0   # 0x382230
xorl %esi, %esi
movq %r9, %rdi
movq %r9, %rsi
movl $0x0, (%rsp)
movq %r11, 0x8(%rsp)
movl $0x1, 0x10(%rsp)
movq %r10, 0x18(%rsp)
movq %rax, 0x20(%rsp)
movl $0x0, 0x28(%rsp)
movl $0x0, 0x30(%rsp)
callq 0x227770
movq -0xd0(%rbp), %rax
movq (%rax), %rdi
movq -0x18(%rbp), %rdx
xorl %eax, %eax
movl %eax, %esi
callq 0x1ff3d0
leaq -0xd0(%rbp), %rdi
callq 0x2048f0
movq -0xa0(%rbp), %rdi
callq 0x2210
movq -0x88(%rbp), %rdi
callq 0x2210
addq $0x120, %rsp            # imm = 0x120
popq %rbp
retq
nopl (%rax)