// File: /workspace/github_cpp_makefile_star2_O1/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, %r12
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r13
cmpq $0x10, %r12
jg 0x33367
cmpq $0x11, %r14
jl 0x3344b
cmpq %r14, %r12
jg 0x333db
cmpq $0x11, %r14
jge 0x33376
xorl %ebp, %ebp
jmp 0x333bc
movq %r14, %rbp
andq $0xf, %rbp
je 0x3338e
movabsq $0x7ffffffffffffff0, %rax # imm = 0x7FFFFFFFFFFFFFF0
andq %rax, %r14
jmp 0x333bc
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 0x333bc
movl $0x10, %ecx
subq %rax, %rcx
addq %rcx, %r14
subq %rcx, %rbp
movq %r13, %rdi
movq %r15, %rsi
movq %rbx, %rdx
movq %r12, %rcx
movq %r14, %r8
callq 0x3333d
addq %r14, %rbx
movq %rbp, %r14
jmp 0x33357
cmpq $0x11, %r12
jge 0x333e5
xorl %ebp, %ebp
jmp 0x3342c
movq %r12, %rbp
andq $0xf, %rbp
je 0x333fd
movabsq $0x7ffffffffffffff0, %rax # imm = 0x7FFFFFFFFFFFFFF0
andq %rax, %r12
jmp 0x3342c
movq %r12, %rbp
shrq %rbp
subq %rbp, %r12
leaq 0xf(%r12), %rcx
testq %r12, %r12
cmovnsq %r12, %rcx
andq $-0x10, %rcx
movq %r12, %rax
subq %rcx, %rax
je 0x3342c
movl $0x10, %ecx
subq %rax, %rcx
addq %rcx, %r12
subq %rcx, %rbp
movq %r13, %rdi
movq %r15, %rsi
movq %rbx, %rdx
movq %r12, %rcx
movq %r14, %r8
callq 0x3333d
addq %r12, %r15
movq %rbp, %r12
jmp 0x33357
testq %r12, %r12
jle 0x334c4
movq 0x10(%r13), %rax
movq 0x30(%r13), %rcx
movq %rax, %rdx
imulq %r15, %rdx
shlq $0x4, %rdx
imulq %rbx, %rax
shlq $0x4, %rbx
addq %rcx, %rbx
addq %rdx, %rbx
shlq $0x4, %rax
shlq $0x4, %r15
addq %rcx, %r15
addq %rax, %r15
xorl %eax, %eax
testq %r14, %r14
jle 0x334bc
movq 0x10(%r13), %rcx
imulq %rax, %rcx
shlq $0x4, %rcx
addq %rbx, %rcx
movq %rax, %rdx
shlq $0x4, %rdx
addq %r15, %rdx
movq %r14, %rsi
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq 0x10(%r13), %rdi
shlq $0x4, %rdi
addq %rdi, %rdx
addq $0x10, %rcx
decq %rsi
jne 0x334a2
incq %rax
cmpq %r12, %rax
jne 0x33481
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq