// File: /workspace/github_cpp_makefile_star2_O1/mouda[P]LTE_random_access-simulate/ap.cpp
// Function: alglib_impl::force_symmetric_rec_off_stat(alglib_impl::x_matrix*, long, long, long, long)
static void force_symmetric_rec_off_stat(x_matrix *a, ae_int_t offset0, ae_int_t offset1, ae_int_t len0, ae_int_t len1)
{
    /* try to split problem into two smaller ones */
    if( len0>x_nb || len1>x_nb )
    {
        ae_int_t n1, n2;
        if( len0>len1 )
        {
            x_split_length(len0, x_nb, &n1, &n2);
            force_symmetric_rec_off_stat(a, offset0,    offset1, n1, len1);
            force_symmetric_rec_off_stat(a, offset0+n1, offset1, n2, len1);
        }
        else
        {
            x_split_length(len1, x_nb, &n1, &n2);
            force_symmetric_rec_off_stat(a, offset0, offset1,    len0, n1);
            force_symmetric_rec_off_stat(a, offset0, offset1+n1, len0, n2);
        }
        return;
    }
    else
    {
        /* base case */
        double *p1, *p2, *prow, *pcol;
        ae_int_t i, j;

        p1 = (double*)(a->ptr)+offset0*a->stride+offset1;
        p2 = (double*)(a->ptr)+offset1*a->stride+offset0;
        for(i=0; i<len0; i++)
        {
            pcol = p2+i;
            prow = p1+i*a->stride;
            for(j=0; j<len1; j++)
            {
                *pcol = *prow;
                pcol += a->stride;
                prow++;
            }
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %rbx
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r13
cmpq $0x10, %r14
jg 0x331ee
cmpq $0x11, %rbx
jl 0x332d1
cmpq %rbx, %r14
jg 0x33262
cmpq $0x11, %rbx
jge 0x331fd
xorl %ebp, %ebp
jmp 0x33243
movq %rbx, %rbp
andq $0xf, %rbp
je 0x33215
movabsq $0x7ffffffffffffff0, %rax # imm = 0x7FFFFFFFFFFFFFF0
andq %rax, %rbx
jmp 0x33243
movq %rbx, %rbp
shrq %rbp
subq %rbp, %rbx
leaq 0xf(%rbx), %rcx
testq %rbx, %rbx
cmovnsq %rbx, %rcx
andq $-0x10, %rcx
movq %rbx, %rax
subq %rcx, %rax
je 0x33243
movl $0x10, %ecx
subq %rax, %rcx
addq %rcx, %rbx
subq %rcx, %rbp
movq %r13, %rdi
movq %r12, %rsi
movq %r15, %rdx
movq %r14, %rcx
movq %rbx, %r8
callq 0x331c4
addq %rbx, %r15
movq %rbp, %rbx
jmp 0x331de
cmpq $0x11, %r14
jge 0x3326c
xorl %ebp, %ebp
jmp 0x332b2
movq %r14, %rbp
andq $0xf, %rbp
je 0x33284
movabsq $0x7ffffffffffffff0, %rax # imm = 0x7FFFFFFFFFFFFFF0
andq %rax, %r14
jmp 0x332b2
movq %r14, %rbp
shrq %rbp
subq %rbp, %r14
leaq 0xf(%r14), %rcx
testq %r14, %r14
cmovnsq %r14, %rcx
andq $-0x10, %rcx
movq %r14, %rax
subq %rcx, %rax
je 0x332b2
movl $0x10, %ecx
subq %rax, %rcx
addq %rcx, %r14
subq %rcx, %rbp
movq %r13, %rdi
movq %r12, %rsi
movq %r15, %rdx
movq %r14, %rcx
movq %rbx, %r8
callq 0x331c4
addq %r14, %r12
movq %rbp, %r14
jmp 0x331de
testq %r14, %r14
jle 0x3332e
movq 0x10(%r13), %rax
movq 0x30(%r13), %rdx
movq %rax, %rcx
imulq %r12, %rcx
leaq (%rdx,%rcx,8), %rcx
leaq (%rcx,%r15,8), %rcx
imulq %rax, %r15
leaq (%rdx,%r15,8), %rdx
leaq (%rdx,%r12,8), %rdx
shlq $0x3, %rax
xorl %esi, %esi
testq %rbx, %rbx
jle 0x3331f
movq %rdx, %rdi
xorl %r8d, %r8d
movsd (%rcx,%r8,8), %xmm0
movsd %xmm0, (%rdi)
incq %r8
addq %rax, %rdi
cmpq %r8, %rbx
jne 0x3330a
incq %rsi
addq $0x8, %rdx
addq %rax, %rcx
cmpq %r14, %rsi
jne 0x332ff
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq