// File: /workspace/github_cpp_makefile_star2_O3/mouda[P]LTE_random_access-simulate/ap.cpp
// Function: alglib_impl::force_hermitian_rec_off_stat(alglib_impl::x_matrix*, long, long, long, long)
static void force_hermitian_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_hermitian_rec_off_stat(a, offset0,    offset1, n1, len1);
            force_hermitian_rec_off_stat(a, offset0+n1, offset1, n2, len1);
        }
        else
        {
            x_split_length(len1, x_nb, &n1, &n2);
            force_hermitian_rec_off_stat(a, offset0, offset1,    len0, n1);
            force_hermitian_rec_off_stat(a, offset0, offset1+n1, len0, n2);
        }
        return;
    }
    else
    {
        /* base case */
        ae_complex *p1, *p2, *prow, *pcol;
        ae_int_t i, j;

        p1 = (ae_complex*)(a->ptr)+offset0*a->stride+offset1;
        p2 = (ae_complex*)(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, %r14
movq %rcx, %r15
movq %rdx, %rbp
movq %rsi, %r12
movq %rdi, %rbx
cmpq $0x11, %rcx
setge %r13b
setl %al
cmpq $0x11, %r8
setl %cl
testb %cl, %al
jne 0x327da
movq %r12, (%rsp)
movq %rbp, %r12
movq %r12, %rbp
cmpq %r14, %r15
jg 0x32741
cmpq $0x11, %r14
jge 0x326c6
movq %r14, %r12
xorl %r14d, %r14d
jmp 0x32712
movq %r14, %rax
andq $0xf, %rax
je 0x326de
movabsq $0x7ffffffffffffff0, %rcx # imm = 0x7FFFFFFFFFFFFFF0
andq %rcx, %r14
jmp 0x3270c
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 0x3270c
movl $0x10, %edx
subq %rcx, %rdx
addq %rdx, %r14
subq %rdx, %rax
movq %r14, %r12
movq %rax, %r14
movq %rbx, %rdi
movq (%rsp), %rsi
movq %rbp, %rdx
movq %r15, %rcx
movq %r12, %r8
callq 0x32671
addq %rbp, %r12
cmpq $0x11, %r14
setge %al
orb %r13b, %al
testb $0x1, %al
jne 0x326ac
jmp 0x327d0
cmpq $0x11, %r15
jge 0x3274f
movq %r15, %r12
xorl %r15d, %r15d
jmp 0x3279b
movq %r15, %rax
andq $0xf, %rax
je 0x32767
movabsq $0x7ffffffffffffff0, %rcx # imm = 0x7FFFFFFFFFFFFFF0
andq %rcx, %r15
jmp 0x32795
movq %r15, %rax
shrq %rax
subq %rax, %r15
leaq 0xf(%r15), %rdx
testq %r15, %r15
cmovnsq %r15, %rdx
andq $-0x10, %rdx
movq %r15, %rcx
subq %rdx, %rcx
je 0x32795
movl $0x10, %edx
subq %rcx, %rdx
addq %rdx, %r15
subq %rdx, %rax
movq %r15, %r12
movq %rax, %r15
movq %rbx, %rdi
movq (%rsp), %r13
movq %r13, %rsi
movq %rbp, %rdx
movq %r12, %rcx
movq %r14, %r8
callq 0x32671
addq %r13, %r12
cmpq $0x11, %r15
setge %r13b
jge 0x326a5
cmpq $0x10, %r14
jg 0x326a5
jmp 0x327da
movq (%rsp), %rax
movq %r12, %rbp
movq %rax, %r12
testq %r15, %r15
jle 0x32858
movq 0x10(%rbx), %rax
movq 0x30(%rbx), %rcx
movq %rax, %rdx
imulq %r12, %rdx
shlq $0x4, %rdx
movq %rax, %rsi
imulq %rbp, %rsi
shlq $0x4, %rbp
addq %rcx, %rbp
addq %rdx, %rbp
shlq $0x4, %rsi
shlq $0x4, %r12
addq %rcx, %r12
addq %rsi, %r12
xorl %ecx, %ecx
testq %r14, %r14
jle 0x32850
imulq %rcx, %rax
shlq $0x4, %rax
addq %rbp, %rax
movq %rcx, %rdx
shlq $0x4, %rdx
addq %r12, %rdx
movq %r14, %rsi
movq %rax, %rdi
movups (%rdi), %xmm0
movups %xmm0, (%rdx)
movq 0x10(%rbx), %rax
movq %rax, %r8
shlq $0x4, %r8
addq %r8, %rdx
addq $0x10, %rdi
decq %rsi
jne 0x32833
incq %rcx
cmpq %r15, %rcx
jne 0x32813
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq