// File: /workspace/github_cpp_makefile_star2_O3/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, %rbp
movq %rsi, %r12
movq %rdi, (%rsp)
cmpq $0x11, %rcx
setge %r15b
setl %al
cmpq $0x11, %r8
setl %cl
testb %cl, %al
jne 0x32601
movq %r12, %r13
movq %rbp, %r12
movq %r12, %rbp
cmpq %rbx, %r14
jg 0x3256f
cmpq $0x11, %rbx
jge 0x324f4
movq %rbx, %r12
xorl %ebx, %ebx
jmp 0x32540
movq %rbx, %rax
andq $0xf, %rax
je 0x3250c
movabsq $0x7ffffffffffffff0, %rcx # imm = 0x7FFFFFFFFFFFFFF0
andq %rcx, %rbx
jmp 0x3253a
movq %rbx, %rax
shrq %rax
subq %rax, %rbx
leaq 0xf(%rbx), %rdx
testq %rbx, %rbx
cmovnsq %rbx, %rdx
andq $-0x10, %rdx
movq %rbx, %rcx
subq %rdx, %rcx
je 0x3253a
movl $0x10, %edx
subq %rcx, %rdx
addq %rdx, %rbx
subq %rdx, %rax
movq %rbx, %r12
movq %rax, %rbx
movq (%rsp), %rdi
movq %r13, %rsi
movq %rbp, %rdx
movq %r14, %rcx
movq %r12, %r8
callq 0x324a0
addq %rbp, %r12
cmpq $0x11, %rbx
setge %al
orb %r15b, %al
testb $0x1, %al
jne 0x324db
jmp 0x325fb
cmpq $0x11, %r14
jge 0x3257d
movq %r14, %r12
xorl %r14d, %r14d
jmp 0x325c9
movq %r14, %rax
andq $0xf, %rax
je 0x32595
movabsq $0x7ffffffffffffff0, %rcx # imm = 0x7FFFFFFFFFFFFFF0
andq %rcx, %r14
jmp 0x325c3
movq %r14, %rax
shrq %rax
subq %rax, %r14
leaq 0xf(%r14), %rdx
testq %r14, %r14
cmovnsq %r14, %rdx
andq $-0x10, %rdx
movq %r14, %rcx
subq %rdx, %rcx
je 0x325c3
movl $0x10, %edx
subq %rcx, %rdx
addq %rdx, %r14
subq %rdx, %rax
movq %r14, %r12
movq %rax, %r14
movq (%rsp), %rdi
movq %r13, %rsi
movq %rbp, %rdx
movq %r12, %rcx
movq %rbx, %r8
callq 0x324a0
addq %r13, %r12
cmpq $0x11, %r14
setge %r15b
jge 0x324d5
cmpq $0x10, %rbx
jg 0x324d5
jmp 0x32601
movq %r12, %rbp
movq %r13, %r12
testq %r14, %r14
jle 0x32662
movq (%rsp), %rcx
movq 0x10(%rcx), %rax
movq 0x30(%rcx), %rdx
movq %rax, %rcx
imulq %r12, %rcx
leaq (%rdx,%rcx,8), %rcx
leaq (%rcx,%rbp,8), %rcx
imulq %rax, %rbp
leaq (%rdx,%rbp,8), %rdx
leaq (%rdx,%r12,8), %rdx
shlq $0x3, %rax
xorl %esi, %esi
testq %rbx, %rbx
jle 0x32653
movq %rdx, %rdi
xorl %r8d, %r8d
movsd (%rcx,%r8,8), %xmm0
movsd %xmm0, (%rdi)
incq %r8
addq %rax, %rdi
cmpq %r8, %rbx
jne 0x3263e
incq %rsi
addq $0x8, %rdx
addq %rax, %rcx
cmpq %r14, %rsi
jne 0x32633
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq