// File: /workspace/github_cpp_makefile_star2_O3/mouda[P]LTE_random_access-simulate/alglibinternal.cpp
// Function: alglib_impl::matrixmatrixmultiply(alglib_impl::ae_matrix*, long, long, long, long, bool, alglib_impl::ae_matrix*, long, long, long, long, bool, double, alglib_impl::ae_matrix*, long, long, long, long, double, alglib_impl::ae_vector*, alglib_impl::ae_state*)
void matrixmatrixmultiply(/* Real    */ ae_matrix* a,
     ae_int_t ai1,
     ae_int_t ai2,
     ae_int_t aj1,
     ae_int_t aj2,
     ae_bool transa,
     /* Real    */ ae_matrix* b,
     ae_int_t bi1,
     ae_int_t bi2,
     ae_int_t bj1,
     ae_int_t bj2,
     ae_bool transb,
     double alpha,
     /* Real    */ ae_matrix* c,
     ae_int_t ci1,
     ae_int_t ci2,
     ae_int_t cj1,
     ae_int_t cj2,
     double beta,
     /* Real    */ ae_vector* work,
     ae_state *_state)
{
    ae_int_t arows;
    ae_int_t acols;
    ae_int_t brows;
    ae_int_t bcols;
    ae_int_t crows;
    ae_int_t ccols;
    ae_int_t i;
    ae_int_t j;
    ae_int_t k;
    ae_int_t l;
    ae_int_t r;
    double v;


    
    /*
     * Setup
     */
    if( !transa )
    {
        arows = ai2-ai1+1;
        acols = aj2-aj1+1;
    }
    else
    {
        arows = aj2-aj1+1;
        acols = ai2-ai1+1;
    }
    if( !transb )
    {
        brows = bi2-bi1+1;
        bcols = bj2-bj1+1;
    }
    else
    {
        brows = bj2-bj1+1;
        bcols = bi2-bi1+1;
    }
    ae_assert(acols==brows, "MatrixMatrixMultiply: incorrect matrix sizes!", _state);
    if( ((arows<=0||acols<=0)||brows<=0)||bcols<=0 )
    {
        return;
    }
    crows = arows;
    ccols = bcols;
    
    /*
     * Test WORK
     */
    i = ae_maxint(arows, acols, _state);
    i = ae_maxint(brows, i, _state);
    i = ae_maxint(i, bcols, _state);
    work->ptr.p_double[1] = 0;
    work->ptr.p_double[i] = 0;
    
    /*
     * Prepare C
     */
    if( ae_fp_eq(beta,0) )
    {
        for(i=ci1; i<=ci2; i++)
        {
            for(j=cj1; j<=cj2; j++)
            {
                c->ptr.pp_double[i][j] = 0;
            }
        }
    }
    else
    {
        for(i=ci1; i<=ci2; i++)
        {
            ae_v_muld(&c->ptr.pp_double[i][cj1], 1, ae_v_len(cj1,cj2), beta);
        }
    }
    
    /*
     * A*B
     */
    if( !transa&&!transb )
    {
        for(l=ai1; l<=ai2; l++)
        {
            for(r=bi1; r<=bi2; r++)
            {
                v = alpha*a->ptr.pp_double[l][aj1+r-bi1];
                k = ci1+l-ai1;
                ae_v_addd(&c->ptr.pp_double[k][cj1], 1, &b->ptr.pp_double[r][bj1], 1, ae_v_len(cj1,cj2), v);
            }
        }
        return;
    }
    
    /*
     * A*B'
     */
    if( !transa&&transb )
    {
        if( arows*acols<brows*bcols )
        {
            for(r=bi1; r<=bi2; r++)
            {
                for(l=ai1; l<=ai2; l++)
                {
                    v = ae_v_dotproduct(&a->ptr.pp_double[l][aj1], 1, &b->ptr.pp_double[r][bj1], 1, ae_v_len(aj1,aj2));
                    c->ptr.pp_double[ci1+l-ai1][cj1+r-bi1] = c->ptr.pp_double[ci1+l-ai1][cj1+r-bi1]+alpha*v;
                }
            }
            return;
        }
        else
        {
            for(l=ai1; l<=ai2; l++)
            {
                for(r=bi1; r<=bi2; r++)
                {
                    v = ae_v_dotproduct(&a->ptr.pp_double[l][aj1], 1, &b->ptr.pp_double[r][bj1], 1, ae_v_len(aj1,aj2));
                    c->ptr.pp_double[ci1+l-ai1][cj1+r-bi1] = c->ptr.pp_double[ci1+l-ai1][cj1+r-bi1]+alpha*v;
                }
            }
            return;
        }
    }
    
    /*
     * A'*B
     */
    if( transa&&!transb )
    {
        for(l=aj1; l<=aj2; l++)
        {
            for(r=bi1; r<=bi2; r++)
            {
                v = alpha*a->ptr.pp_double[ai1+r-bi1][l];
                k = ci1+l-aj1;
                ae_v_addd(&c->ptr.pp_double[k][cj1], 1, &b->ptr.pp_double[r][bj1], 1, ae_v_len(cj1,cj2), v);
            }
        }
        return;
    }
    
    /*
     * A'*B'
     */
    if( transa&&transb )
    {
        if( arows*acols<brows*bcols )
        {
            for(r=bi1; r<=bi2; r++)
            {
                k = cj1+r-bi1;
                for(i=1; i<=crows; i++)
                {
                    work->ptr.p_double[i] = 0.0;
                }
                for(l=ai1; l<=ai2; l++)
                {
                    v = alpha*b->ptr.pp_double[r][bj1+l-ai1];
                    ae_v_addd(&work->ptr.p_double[1], 1, &a->ptr.pp_double[l][aj1], 1, ae_v_len(1,crows), v);
                }
                ae_v_add(&c->ptr.pp_double[ci1][k], c->stride, &work->ptr.p_double[1], 1, ae_v_len(ci1,ci2));
            }
            return;
        }
        else
        {
            for(l=aj1; l<=aj2; l++)
            {
                k = ai2-ai1+1;
                ae_v_move(&work->ptr.p_double[1], 1, &a->ptr.pp_double[ai1][l], a->stride, ae_v_len(1,k));
                for(r=bi1; r<=bi2; r++)
                {
                    v = ae_v_dotproduct(&work->ptr.p_double[1], 1, &b->ptr.pp_double[r][bj1], 1, ae_v_len(1,k));
                    c->ptr.pp_double[ci1+l-aj1][cj1+r-bi1] = c->ptr.pp_double[ci1+l-aj1][cj1+r-bi1]+alpha*v;
                }
            }
            return;
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movsd %xmm1, 0x20(%rsp)
movsd %xmm0, 0x50(%rsp)
movq %r8, %rbx
movq %rsi, 0x30(%rsp)
movq %rdi, 0x40(%rsp)
movq 0xc8(%rsp), %r10
movq 0xc0(%rsp), %rbp
movq 0xb8(%rsp), %r13
movq 0xd0(%rsp), %rax
movq %rbx, 0x58(%rsp)
movq %rcx, 0x8(%rsp)
subq %rcx, %rbx
movq %rdx, 0x48(%rsp)
movq %rdx, %r12
subq %rsi, %r12
movl %r9d, 0x18(%rsp)
testl %r9d, %r9d
movq %rbx, %r14
cmovneq %r12, %r14
movq %r12, %rcx
cmovneq %rbx, %rcx
movq %rcx, 0x68(%rsp)
movq %r10, 0x10(%rsp)
subq %r10, %rax
subq %r13, %rbp
cmpb $0x0, 0xd8(%rsp)
movq %rbp, %r15
cmovneq %rax, %r15
cmoveq %rax, %rbp
xorl %edi, %edi
cmpq %r15, %r14
sete %dil
movq 0x110(%rsp), %rdx
leaq 0x1f22d(%rip), %rsi     # 0x35fb8
callq 0x2510e
orq %r12, %rbx
orq %r15, %rbx
orq %rbp, %rbx
jns 0x16daa
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r12, 0x70(%rsp)
movq 0x108(%rsp), %r12
movq 0xe8(%rsp), %rbx
movq 0x68(%rsp), %rax
leaq 0x1(%rax), %rdi
incq %r14
incq %rbp
incq %r15
movq %rdi, 0x60(%rsp)
movq %r14, 0x28(%rsp)
movq %r14, %rsi
movq 0x110(%rsp), %r14
movq %r14, %rdx
callq 0x25ec6
movq %r15, 0x38(%rsp)
movq %r15, %rdi
movq %rax, %rsi
movq %r14, %rdx
callq 0x25ec6
movq %rax, %rdi
movq %rbp, %rsi
movq %r14, %rdx
callq 0x25ec6
movq 0x28(%r12), %rcx
xorl %edx, %edx
movq %rdx, 0x8(%rcx)
movq 0x28(%r12), %rcx
movq %rdx, (%rcx,%rax,8)
xorpd %xmm1, %xmm1
movsd 0x20(%rsp), %xmm0
callq 0x25b75
testb %al, %al
je 0x16e9e
cmpq 0xf0(%rsp), %rbx
movq 0xf8(%rsp), %rbx
movq 0xe0(%rsp), %r8
movq 0x100(%rsp), %rsi
jg 0x16f2a
leaq 0x1(%rsi), %rax
movq 0xe8(%rsp), %rcx
cmpq %rsi, %rbx
jg 0x16e88
movq %rbx, %rdx
movq 0x38(%r8), %r9
movq (%r9,%rcx,8), %r9
movq $0x0, (%r9,%rdx,8)
incq %rdx
cmpq %rdx, %rax
jne 0x16e70
leaq 0x1(%rcx), %rdx
cmpq 0xf0(%rsp), %rcx
movq %rdx, %rcx
jne 0x16e68
jmp 0x16f2a
cmpq 0xf0(%rsp), %rbx
movq 0xf8(%rsp), %rbx
movq 0xe0(%rsp), %rax
movq 0x100(%rsp), %rsi
jg 0x16f2a
movq 0xf0(%rsp), %rcx
leaq 0x1(%rcx), %r14
leaq (,%rbx,8), %r15
movq 0xe8(%rsp), %r12
movq 0x38(%rax), %rax
movq (%rax,%r12,8), %rbx
addq %r15, %rbx
movq 0xf8(%rsp), %rdi
callq 0x2897c
movl $0x1, %esi
movq %rbx, %rdi
movq %rax, %rdx
movsd 0x20(%rsp), %xmm0
callq 0x28939
movq 0x100(%rsp), %rsi
movq 0xe0(%rsp), %rax
movq 0xf8(%rsp), %rbx
incq %r12
cmpq %r12, %r14
jne 0x16edc
movl 0x18(%rsp), %r9d
movl %r9d, %eax
movb 0xd8(%rsp), %r11b
orb %r11b, %al
movq 0x58(%rsp), %r8
movq 0x28(%rsp), %r10
je 0x1710d
movl %r11d, %eax
xorb $0x1, %al
movl %eax, %ecx
orb %r9b, %cl
movq 0x30(%rsp), %rdx
je 0x1725c
xorb $0x1, %r9b
orb %r9b, %r11b
je 0x173a9
orb %al, %r9b
movq 0x108(%rsp), %r8
movq 0x68(%rsp), %rcx
movq 0x70(%rsp), %r12
movq 0x38(%rsp), %rax
jne 0x16d9b
imulq 0x60(%rsp), %r10
imulq %rbp, %rax
cmpq %rax, %r10
jge 0x17642
cmpq %r13, 0xc0(%rsp)
jl 0x16d9b
subq %r13, %rbx
movq 0x48(%rsp), %rax
leaq 0x1(%rax), %r9
shlq $0x3, %rbx
shlq $0x3, 0x8(%rsp)
movq %rbx, 0x18(%rsp)
movq %r9, 0x38(%rsp)
movq %r13, %rsi
testq %rcx, %rcx
movq 0x60(%rsp), %r12
js 0x16ff4
xorl %eax, %eax
movq 0x28(%r8), %rcx
movq $0x0, 0x8(%rcx,%rax,8)
incq %rax
cmpq %rax, %r12
jne 0x16fdf
movq 0xc8(%rsp), %r14
movq %rdx, %r15
cmpq %rdx, 0x48(%rsp)
movq 0x40(%rsp), %r13
movq %rsi, 0x20(%rsp)
jl 0x1708c
movq 0xb0(%rsp), %rax
movq 0x38(%rax), %rax
movq 0x20(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movsd (%rax,%r14,8), %xmm0
mulsd 0x50(%rsp), %xmm0
movsd %xmm0, 0x28(%rsp)
movq 0x28(%r8), %rbx
addq $0x8, %rbx
movq 0x38(%r13), %rax
movq (%rax,%r15,8), %rbp
addq 0x8(%rsp), %rbp
movl $0x1, %edi
movq %r12, %rsi
callq 0x2897c
movl $0x1, %esi
movl $0x1, %ecx
movq %rbx, %rdi
movq %rbp, %rdx
movq %rax, %r8
movsd 0x28(%rsp), %xmm0
callq 0x28815
movq 0x108(%rsp), %r8
incq %r15
incq %r14
cmpq %r15, 0x38(%rsp)
jne 0x17010
movq 0xe0(%rsp), %rax
movq 0x10(%rax), %r12
movq 0x38(%rax), %rax
movq 0xe8(%rsp), %rdi
movq (%rax,%rdi,8), %rax
movq 0x18(%rsp), %r14
addq %r14, %rax
movq 0x20(%rsp), %r15
leaq (%rax,%r15,8), %rbp
movq 0x28(%r8), %rbx
addq $0x8, %rbx
movq 0xf0(%rsp), %rsi
callq 0x2897c
movl $0x1, %ecx
movq %rbp, %rdi
movq %r12, %rsi
movq %rbx, %rdx
movq %rax, %r8
callq 0x2878f
movq 0x108(%rsp), %r8
leaq 0x1(%r15), %r13
cmpq 0xc0(%rsp), %r15
movq 0x30(%rsp), %rdx
movq 0x68(%rsp), %rcx
jne 0x16fd0
jmp 0x16d9b
movq 0x30(%rsp), %rcx
cmpq %rcx, 0x48(%rsp)
jl 0x16d9b
movq 0xe8(%rsp), %rdx
subq %rcx, %rdx
movq 0xc0(%rsp), %rax
leaq 0x1(%rax), %r8
shlq $0x3, %rdx
movq %rdx, 0x18(%rsp)
leaq (,%rbx,8), %rdx
shlq $0x3, 0x10(%rsp)
movq %r8, 0x28(%rsp)
movq %rdx, 0x38(%rsp)
cmpq %r13, 0xc0(%rsp)
movsd 0x50(%rsp), %xmm0
movq 0x40(%rsp), %rdi
movq 0x10(%rsp), %r9
movq 0x18(%rsp), %r10
movq 0xe0(%rsp), %r11
movq 0xb0(%rsp), %r12
jl 0x1723d
movq 0x8(%rsp), %r15
movq 0xb8(%rsp), %r13
movq %rcx, 0x30(%rsp)
movq %r9, 0x10(%rsp)
movq 0x38(%rdi), %rax
movq (%rax,%rcx,8), %rax
movsd (%rax,%r15,8), %xmm1
mulsd %xmm0, %xmm1
movsd %xmm1, 0x20(%rsp)
movq 0x38(%r11), %rax
addq %r10, %rax
movq (%rax,%rcx,8), %rbx
addq %rdx, %rbx
movq 0x38(%r12), %rax
movq (%rax,%r13,8), %rbp
addq %r9, %rbp
movq 0xf8(%rsp), %rdi
movq %r11, %r14
callq 0x2897c
movl $0x1, %esi
movl $0x1, %ecx
movq %rbx, %rdi
movq %rbp, %rdx
movq %rax, %r8
movsd 0x20(%rsp), %xmm0
callq 0x28815
movq %r14, %r11
movq 0x18(%rsp), %r10
movq 0x10(%rsp), %r9
movq 0x40(%rsp), %rdi
movsd 0x50(%rsp), %xmm0
movq 0x38(%rsp), %rdx
movq 0x28(%rsp), %r8
movq 0x100(%rsp), %rsi
movq 0x30(%rsp), %rcx
incq %r13
incq %r15
cmpq %r13, %r8
jne 0x1719f
leaq 0x1(%rcx), %rax
cmpq 0x48(%rsp), %rcx
movq %rax, %rcx
movq 0xb8(%rsp), %r13
jne 0x17155
jmp 0x16d9b
movq 0x60(%rsp), %rax
imulq %r10, %rax
movq 0x38(%rsp), %rcx
imulq %rbp, %rcx
cmpq %rcx, %rax
jge 0x174fb
cmpq %r13, 0xc0(%rsp)
jl 0x16d9b
subq %r13, %rbx
movq 0x48(%rsp), %rax
leaq 0x1(%rax), %rcx
movq 0x8(%rsp), %rax
leaq (,%rax,8), %r14
shlq $0x3, 0x10(%rsp)
shlq $0x3, %rbx
movq %rbx, 0x18(%rsp)
movq %r14, 0x28(%rsp)
movq %rcx, 0x38(%rsp)
movq 0x58(%rsp), %r12
cmpq %rdx, 0x48(%rsp)
movq 0x8(%rsp), %rdi
movq 0x40(%rsp), %r8
movq 0x10(%rsp), %r9
movq %r13, %rdx
movq 0xb0(%rsp), %r11
jl 0x1738d
movq 0xe8(%rsp), %r13
movq 0x30(%rsp), %r15
movq %rdx, 0x20(%rsp)
movq %r9, 0x10(%rsp)
movq 0x38(%r8), %rax
movq (%rax,%r15,8), %rbx
addq %r14, %rbx
movq 0x38(%r11), %rax
movq (%rax,%rdx,8), %rbp
addq %r9, %rbp
movq %r12, %rsi
movq %r11, %r14
callq 0x2897c
movl $0x1, %esi
movl $0x1, %ecx
movq %rbx, %rdi
movq %rbp, %rdx
movq %rax, %r8
callq 0x28519
movq %r14, %r11
movq 0xe0(%rsp), %rax
movq 0x10(%rsp), %r9
movq 0x40(%rsp), %r8
movq 0x8(%rsp), %rdi
movsd 0x50(%rsp), %xmm1
movq 0x20(%rsp), %rdx
movq 0x28(%rsp), %r14
movq 0x38(%rsp), %rcx
movq 0x18(%rsp), %rbx
movq 0x38(%rax), %rax
movq (%rax,%r13,8), %rax
addq %rbx, %rax
mulsd %xmm1, %xmm0
addsd (%rax,%rdx,8), %xmm0
movsd %xmm0, (%rax,%rdx,8)
incq %r15
incq %r13
cmpq %r15, %rcx
jne 0x172f8
leaq 0x1(%rdx), %r13
cmpq 0xc0(%rsp), %rdx
movq 0x30(%rsp), %rdx
jne 0x172bc
jmp 0x16d9b
cmpq 0x8(%rsp), %r8
jl 0x16d9b
movq 0xe8(%rsp), %rcx
subq 0x8(%rsp), %rcx
movq 0xc0(%rsp), %rax
leaq 0x1(%rax), %rdx
shlq $0x3, %rcx
movq %rcx, 0x18(%rsp)
leaq (,%rbx,8), %rcx
shlq $0x3, 0x10(%rsp)
movq %rdx, 0x28(%rsp)
movq %rcx, 0x38(%rsp)
cmpq %r13, 0xc0(%rsp)
movsd 0x50(%rsp), %xmm0
movq 0x8(%rsp), %rdi
movq 0x40(%rsp), %r8
movq 0x10(%rsp), %r9
movq 0x18(%rsp), %r10
movq 0xe0(%rsp), %r11
movq 0xb0(%rsp), %r12
jl 0x174da
movq 0x30(%rsp), %r15
movq 0xb8(%rsp), %r13
movq %rdi, 0x8(%rsp)
movq %r9, 0x10(%rsp)
movq 0x38(%r8), %rax
movq (%rax,%r15,8), %rax
movsd (%rax,%rdi,8), %xmm1
mulsd %xmm0, %xmm1
movsd %xmm1, 0x20(%rsp)
movq 0x38(%r11), %rax
addq %r10, %rax
movq (%rax,%rdi,8), %rbx
addq %rcx, %rbx
movq 0x38(%r12), %rax
movq (%rax,%r13,8), %rbp
addq %r9, %rbp
movq 0xf8(%rsp), %rdi
movq %r11, %r14
callq 0x2897c
movl $0x1, %esi
movl $0x1, %ecx
movq %rbx, %rdi
movq %rbp, %rdx
movq %rax, %r8
movsd 0x20(%rsp), %xmm0
callq 0x28815
movq %r14, %r11
movq 0x18(%rsp), %r10
movq 0x10(%rsp), %r9
movq 0x40(%rsp), %r8
movsd 0x50(%rsp), %xmm0
movq 0x8(%rsp), %rdi
movq 0x38(%rsp), %rcx
movq 0x28(%rsp), %rdx
movq 0x100(%rsp), %rsi
incq %r13
incq %r15
cmpq %r13, %rdx
jne 0x1743d
leaq 0x1(%rdi), %rax
cmpq 0x58(%rsp), %rdi
movq %rax, 0x8(%rsp)
movq 0xb8(%rsp), %r13
jne 0x173ee
jmp 0x16d9b
cmpq %rdx, 0x48(%rsp)
jl 0x16d9b
movq 0xe8(%rsp), %rcx
subq %rdx, %rcx
movq 0xc0(%rsp), %rax
leaq 0x1(%rax), %rbx
movq 0x8(%rsp), %rax
leaq (,%rax,8), %r8
shlq $0x3, 0x10(%rsp)
shlq $0x3, %rcx
movq %rcx, 0x18(%rsp)
movq %r8, 0x20(%rsp)
movq %rbx, 0x28(%rsp)
movq 0x18(%rsp), %r12
cmpq %r13, 0xc0(%rsp)
movq 0x8(%rsp), %rdi
movq 0x40(%rsp), %rcx
movq 0x10(%rsp), %r9
movq 0xb0(%rsp), %r14
movq 0x58(%rsp), %rsi
jl 0x17623
movq 0xf8(%rsp), %r13
movq 0xb8(%rsp), %r15
movq %rdx, 0x30(%rsp)
movq %r9, 0x10(%rsp)
movq 0x38(%rcx), %rax
movq (%rax,%rdx,8), %rbx
addq %r8, %rbx
movq 0x38(%r14), %rax
movq (%rax,%r15,8), %rbp
addq %r9, %rbp
movq %rsi, %r14
callq 0x2897c
movl $0x1, %esi
movl $0x1, %ecx
movq %rbx, %rdi
movq %rbp, %rdx
movq %rax, %r8
callq 0x28519
movq %r14, %rsi
movq 0xe0(%rsp), %rax
movq 0xb0(%rsp), %r14
movq 0x10(%rsp), %r9
movq 0x40(%rsp), %rcx
movq 0x8(%rsp), %rdi
movsd 0x50(%rsp), %xmm1
movq 0x20(%rsp), %r8
movq 0x28(%rsp), %rbx
movq 0x30(%rsp), %rdx
movq 0x38(%rax), %rax
addq %r12, %rax
movq (%rax,%rdx,8), %rax
mulsd %xmm1, %xmm0
addsd (%rax,%r13,8), %xmm0
movsd %xmm0, (%rax,%r13,8)
incq %r15
incq %r13
cmpq %r15, %rbx
jne 0x1758c
leaq 0x1(%rdx), %rax
cmpq 0x48(%rsp), %rdx
movq %rax, %rdx
movq 0xb8(%rsp), %r13
jne 0x17548
jmp 0x16d9b
movq 0x58(%rsp), %rax
cmpq 0x8(%rsp), %rax
jl 0x16d9b
incq %r12
movq 0xe8(%rsp), %rcx
subq 0x8(%rsp), %rcx
movq 0xc0(%rsp), %rax
incq %rax
movq %rax, 0x20(%rsp)
shlq $0x3, 0x10(%rsp)
shlq $0x3, %rcx
movq %rcx, 0x18(%rsp)
movq 0x28(%r8), %rbx
addq $0x8, %rbx
movq 0x40(%rsp), %rax
movq 0x10(%rax), %r15
movq 0x38(%rax), %rax
movq 0x8(%rsp), %rcx
leaq (,%rcx,8), %rbp
addq (%rax,%rdx,8), %rbp
movl $0x1, %edi
movq %r12, %rsi
callq 0x2897c
movl $0x1, %esi
movq %rbx, %rdi
movq %rbp, %rdx
movq %r15, %rcx
movq %rax, %r8
callq 0x2860a
cmpq %r13, 0xc0(%rsp)
movq 0x10(%rsp), %rcx
movq 0x18(%rsp), %r13
movq 0xb0(%rsp), %rsi
jl 0x1778e
movq 0xf8(%rsp), %r14
movq 0xb8(%rsp), %r15
movq %rcx, 0x10(%rsp)
movq 0x108(%rsp), %rax
movq 0x28(%rax), %rbx
addq $0x8, %rbx
movq 0x38(%rsi), %rax
movq (%rax,%r15,8), %rbp
addq %rcx, %rbp
movl $0x1, %edi
movq %r12, %rsi
callq 0x2897c
movl $0x1, %esi
movl $0x1, %ecx
movq %rbx, %rdi
movq %rbp, %rdx
movq %rax, %r8
callq 0x28519
movq 0xb0(%rsp), %rsi
movq 0xe0(%rsp), %rax
movsd 0x50(%rsp), %xmm1
movq 0x38(%rax), %rax
addq %r13, %rax
movq 0x8(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq 0x10(%rsp), %rcx
mulsd %xmm1, %xmm0
addsd (%rax,%r14,8), %xmm0
movsd %xmm0, (%rax,%r14,8)
movq 0x20(%rsp), %rax
incq %r15
incq %r14
cmpq %r15, %rax
jne 0x176ff
movq 0x8(%rsp), %rcx
leaq 0x1(%rcx), %rax
cmpq 0x58(%rsp), %rcx
movq %rax, 0x8(%rsp)
movq 0x30(%rsp), %rdx
movq 0xb8(%rsp), %r13
movq 0x108(%rsp), %r8
jne 0x17681
jmp 0x16d9b