user: What is the c source code of the assembly code below:

```asm
<_p3dReplicatePadding3D_float>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x168,%rsp
  mov    %rsi,%r15
  mov    %r9d,%ebx
  lea    (%r9,%r9,1),%eax
  lea    (%rax,%rdx,1),%r10d
  mov    %r10d,%r14d
  lea    (%rax,%rcx,1),%ebp
  lea    (%rax,%r8,1),%r12d
  mov    $0x0,%eax
  call   <_p3dZeroPadding3D_float@plt>
  test   %ebx,%ebx
  jle    L95
  movslq %ebx,%r13
  mov    %r14d,%edi
  sub    %ebx,%edi
  mov    %edi,0x50(%rsp)
  mov    %r14d,%eax
  neg    %eax
  imul   %ebp,%eax
  mov    %eax,0x104(%rsp)
  movslq %eax,%r8
  mov    %r14d,%edi
  movslq %r14d,%rcx
  mov    %r8,%rax
  sub    %rcx,%rax
  lea    0x4(,%rax,4),%rax
  mov    %rax,0x108(%rsp)
  mov    %r14d,%edx
  imul   %ebx,%edx
  mov    %ebp,%eax
  imul   %edx,%eax
  movslq %eax,%r9
  movslq %edx,%rsi
  mov    %rcx,0xf0(%rsp)
  mov    %rcx,%r11
  mov    %r13,0x38(%rsp)
  sub    %r13,%r11
  lea    (%rsi,%r11,1),%r14
  lea    (%r9,%r14,1),%rax
  lea    (%r15,%rax,4),%rax
  mov    %rax,0x58(%rsp)
  mov    %edx,%eax
  sub    %edi,%eax
  mov    %eax,%ecx
  mov    %ebp,%eax
  imul   %ecx,%eax
  movslq %ecx,%r10
  lea    (%r11,%r10,1),%r13
  movslq %eax,%rcx
  mov    %r13,0x18(%rsp)
  add    %r13,%rcx
  lea    (%r15,%rcx,4),%rcx
  mov    %rcx,0x60(%rsp)
  mov    %eax,0x6c(%rsp)
  mov    0xf0(%rsp),%rcx
  lea    -0x1(%rcx),%r13
  lea    0x0(%r13,%r8,1),%rax
  shl    $0x2,%rax
  mov    %rax,0x110(%rsp)
  lea    -0x1(%rbp),%eax
  sub    %ebx,%eax
  imul   %edi,%eax
  cltq
  mov    %rax,%rcx
  mov    0x38(%rsp),%rax
  add    %r9,%rax
  mov    %rcx,0x10(%rsp)
  add    %rcx,%rax
  lea    (%r15,%rax,4),%rax
  mov    %rax,0x70(%rsp)
  mov    %edi,%eax
  mov    %edi,%ecx
  not    %ecx
  mov    %ecx,0x140(%rsp)
  movslq %ecx,%rdi
  mov    %rdi,0x28(%rsp)
  mov    %eax,%ecx
  imul   %ebp,%eax
  mov    %eax,0xfc(%rsp)
  movslq %eax,%rdi
  mov    0x28(%rsp),%rax
  add    %rdi,%rax
  shl    $0x2,%rax
  mov    %rax,0x118(%rsp)
  lea    -0x1(%r12),%eax
  sub    %ebx,%eax
  mov    %ecx,0x20(%rsp)
  imul   %ecx,%eax
  imul   %ebp,%eax
  cltq
  add    0x38(%rsp),%rsi
  mov    %rsi,0x30(%rsp)
  mov    %rax,0x8(%rsp)
  add    %rax,%rsi
  lea    (%r15,%rsi,4),%rax
  mov    %rax,0x78(%rsp)
  sub    %ebx,%r12d
  mov    %r12d,%ecx
  mov    0x20(%rsp),%eax
  imul   %r12d,%eax
  mov    %eax,%r12d
  imul   %ebp,%r12d
  mov    %r12d,%esi
  movslq %r12d,%r12
  mov    0x38(%rsp),%rax
  lea    -0x1(%rax,%r10,1),%rax
  add    %r12,%rax
  lea    (%r15,%rax,4),%r10
  mov    %r10,0x80(%rsp)
  mov    0xf0(%rsp),%rax
  lea    0x1(%rax),%r10
  lea    (%r10,%r8,1),%rax
  shl    $0x2,%rax
  mov    %rax,0x120(%rsp)
  lea    (%r9,%r11,1),%rax
  add    0x10(%rsp),%rax
  lea    (%r15,%rax,4),%rax
  mov    %rax,0x88(%rsp)
  mov    %esi,0xb0(%rsp)
  lea    0x0(%r13,%rdi,1),%rax
  lea    0x0(,%rax,4),%r13
  mov    %r13,0x128(%rsp)
  mov    0x38(%rsp),%r13
  mov    %r13,%rax
  mov    0x10(%rsp),%rsi
  add    %rsi,%rax
  add    0x8(%rsp),%rax
  lea    (%r15,%rax,4),%rax
  mov    %rax,0x90(%rsp)
  mov    %rdi,%rax
  sub    0xf0(%rsp),%rax
  lea    0x4(,%rax,4),%rax
  mov    %rax,0x130(%rsp)
  mov    0x8(%rsp),%rax
  add    %r14,%rax
  lea    (%r15,%rax,4),%r14
  mov    %r14,0x98(%rsp)
  mov    0x18(%rsp),%r14
  lea    (%r14,%r12,1),%rax
  lea    (%r15,%rax,4),%r14
  mov    %r14,0xa0(%rsp)
  lea    (%r10,%rdi,1),%rax
  lea    0x0(,%rax,4),%r14
  mov    %r14,0x138(%rsp)
  lea    (%r11,%rsi,1),%rax
  add    0x8(%rsp),%rax
  lea    (%r15,%rax,4),%r14
  mov    %r14,0xa8(%rsp)
  mov    %ecx,0x8(%rsp)
  mov    %ebp,%r12d
  sub    %ebx,%r12d
  mov    %r12d,0xb4(%rsp)
  mov    0x20(%rsp),%r11d
  lea    0x1(%r11),%eax
  mov    %eax,0x100(%rsp)
  imul   %ebx,%eax
  mov    %eax,0x54(%rsp)
  mov    $0x1,%eax
  mov    %eax,%r14d
  sub    %r11d,%r14d
  mov    %r14d,0x144(%rsp)
  mov    %edx,0x10(%rsp)
  mov    0x50(%rsp),%r10d
  lea    (%r10,%rdx,1),%r14d
  mov    %r14d,0xc0(%rsp)
  mov    0xfc(%rsp),%eax
  mov    %eax,%r14d
  imul   %ebx,%r14d
  mov    %r14d,0x40(%rsp)
  lea    -0x1(%rbx),%esi
  mov    %eax,%r14d
  imul   %esi,%eax
  mov    %eax,0x44(%rsp)
  lea    -0x1(%rcx),%eax
  imul   %r14d,%eax
  mov    %eax,0x48(%rsp)
  imul   %r14d,%ecx
  mov    %ecx,0x4c(%rsp)
  mov    %r11d,%r14d
  imul   %esi,%r11d
  mov    %r11d,0x24(%rsp)
  lea    -0x1(%r12),%eax
  mov    %eax,%ecx
  imul   %r14d,%ecx
  mov    %ecx,0x18(%rsp)
  imul   %r14d,%r12d
  mov    %r12d,%ecx
  mov    %r12d,0x68(%rsp)
  mov    0x100(%rsp),%eax
  imul   %esi,%eax
  mov    %eax,0xc8(%rsp)
  lea    -0x1(%r10),%eax
  add    %eax,%edx
  mov    %edx,0xcc(%rsp)
  mov    %r10d,%r12d
  mov    %r11d,%edx
  add    %r11d,%r12d
  mov    %r12d,0xd0(%rsp)
  lea    -0x1(%r14),%r12d
  mov    %r12d,0xd8(%rsp)
  mov    0x18(%rsp),%r14d
  lea    (%rbx,%r14,1),%r12d
  mov    %r12d,0xd4(%rsp)
  mov    %esi,%r11d
  add    %ecx,%r11d
  mov    %r11d,0xdc(%rsp)
  mov    %eax,%r11d
  add    %r14d,%r11d
  mov    %r11d,0xe0(%rsp)
  add    %ecx,%r10d
  mov    %r10d,0xe4(%rsp)
  mov    0x28(%rsp),%r10
  lea    (%r8,%r10,1),%rax
  lea    0x0(,%rax,4),%r10
  mov    %r10,0x148(%rsp)
  mov    0xf0(%rsp),%rcx
  lea    0x0(,%rcx,4),%r10
  mov    %r10,0xe8(%rsp)
  lea    0x0(,%rdi,4),%r14
  mov    0x30(%rsp),%rsi
  lea    (%rsi,%r9,1),%rax
  lea    (%r15,%rax,4),%rdi
  mov    %rdi,0x150(%rsp)
  mov    %edx,%edi
  movslq %edx,%rax
  lea    (%rax,%r13,1),%rdx
  imul   %edi,%ebp
  mov    %ebp,%eax
  cltq
  add    %rdx,%rax
  lea    (%r15,%rax,4),%rdi
  mov    %rdi,0x158(%rsp)
  mov    0x54(%rsp),%eax
  mov    %eax,0xc4(%rsp)
  movq   $0x0,0xb8(%rsp)
  mov    0x8(%rsp),%r13d
  jmp    L259
L22:
  movss  (%rax),%xmm0
  movss  %xmm0,(%rax,%r8,4)
  movss  (%rax,%rdi,4),%xmm0
  movss  %xmm0,(%rax,%rsi,4)
  add    $0x1,%edx
  add    %r11,%rax
  cmp    %ecx,%edx
  jne    L22
L61:
  add    $0x1,%r9d
  add    $0x4,%r10
  cmp    %ebp,%r9d
  je     L75
L250:
  mov    %ecx,0x8(%rsp)
  mov    %r10,%rax
  mov    %ebx,%edx
  cmp    %r12d,%ebx
  jl     L22
  jmp    L61
L113:
  mov    0xb4(%rsp),%eax
  mov    %eax,0x8(%rsp)
  cmp    %ebx,%eax
  jg     L37
  jmp    L209
L144:
  lea    -0x1(%r10),%esi
  mov    0x28(%rsp),%eax
  lea    (%rax,%r11,1),%ecx
  movslq %r10d,%r9
  mov    0x30(%rsp),%rax
  add    %r9,%rax
  lea    (%r15,%rax,4),%rax
  mov    %ebx,%edx
  movslq %esi,%rsi
  sub    %r9,%rsi
  movslq %ecx,%rcx
  sub    %r9,%rcx
  movslq %r11d,%rdi
  sub    %r9,%rdi
L10:
  movss  (%rax),%xmm0
  movss  %xmm0,(%rax,%rsi,4)
  movss  (%rax,%rcx,4),%xmm0
  movss  %xmm0,(%rax,%rdi,4)
  add    $0x1,%edx
  add    %r14,%rax
  cmp    %r8d,%edx
  jne    L10
L42:
  add    $0x1,%r12d
  mov    0x20(%rsp),%eax
  add    %eax,%r10d
  add    %eax,%r11d
  cmp    %ebp,%r12d
  jge    L57
L218:
  cmp    %r13d,%ebx
  jl     L144
  jmp    L42
L57:
  mov    0xf8(%rsp),%ebp
  cmp    %ebx,%ebp
  jle    L209
L158:
  mov    %ebx,%r9d
  mov    %r13d,%r8d
  movslq 0x40(%rsp),%r11
  mov    0x68(%rsp),%r12d
  jmp    L98
L190:
  mov    0x24(%rsp),%eax
  lea    (%r9,%rax,1),%edi
  mov    0x18(%rsp),%eax
  lea    (%r9,%rax,1),%esi
  lea    (%r9,%r12,1),%ecx
  mov    0x10(%rsp),%eax
  lea    (%r9,%rax,1),%r10d
  movslq %r10d,%r10
  lea    (%r11,%r10,1),%rax
  lea    (%r15,%rax,4),%rax
  mov    %ebx,%edx
  movslq %edi,%rdi
  sub    %r10,%rdi
  movslq %esi,%rsi
  sub    %r10,%rsi
  movslq %ecx,%rcx
  sub    %r10,%rcx
L129:
  movss  (%rax),%xmm0
  movss  %xmm0,(%rax,%rdi,4)
  movss  (%rax,%rsi,4),%xmm0
  movss  %xmm0,(%rax,%rcx,4)
  add    $0x1,%edx
  add    %r14,%rax
  cmp    %r8d,%edx
  jne    L129
L189:
  add    $0x1,%r9d
  cmp    %ebp,%r9d
  jge    L173
L98:
  cmp    %r13d,%ebx
  jl     L190
  jmp    L189
L173:
  movslq 0x40(%rsp),%rax
  movslq 0x10(%rsp),%rsi
  mov    %rax,%rdx
  lea    (%rax,%rsi,1),%rax
  lea    (%r15,%rax,4),%r8
  movslq 0x44(%rsp),%rax
  movslq 0x24(%rsp),%rcx
  lea    (%rax,%rcx,1),%rdi
  lea    (%r15,%rdi,4),%rdi
  movslq 0x48(%rsp),%r10
  add    %r10,%rsi
  lea    (%r15,%rsi,4),%rsi
  movslq 0x4c(%rsp),%r9
  add    %r9,%rcx
  lea    (%r15,%rcx,4),%rcx
  movslq 0x18(%rsp),%r12
  add    %r12,%rdx
  lea    (%r15,%rdx,4),%rdx
  movslq 0x68(%rsp),%r11
  add    %r11,%rax
  lea    (%r15,%rax,4),%rax
  add    %r12,%r10
  lea    (%r15,%r10,4),%r10
  add    %r11,%r9
  lea    (%r15,%r9,4),%r11
  mov    0x38(%rsp),%r9
L214:
  movss  (%r8,%r9,4),%xmm0
  movss  %xmm0,(%rdi,%r9,4)
  movss  (%rsi,%r9,4),%xmm0
  movss  %xmm0,(%rcx,%r9,4)
  movss  (%rdx,%r9,4),%xmm0
  movss  %xmm0,(%rax,%r9,4)
  movss  (%r10,%r9,4),%xmm0
  movss  %xmm0,(%r11,%r9,4)
  add    $0x1,%r9
  cmp    %r9d,%ebp
  jg     L214
L209:
  mov    0x8(%rsp),%r11d
  cmp    %ebx,%r11d
  jle    L181
  movslq 0x10(%rsp),%rdx
  movslq 0x40(%rsp),%r10
  lea    (%rdx,%r10,1),%rax
  mov    0x38(%rsp),%r9
  add    %r9,%rax
  lea    (%r15,%rax,4),%rsi
  movslq 0x4c(%rsp),%r8
  lea    (%rdx,%r8,1),%rax
  lea    -0x1(%rbx),%ecx
  movslq %ecx,%rcx
  add    %rax,%rcx
  lea    (%r15,%rcx,4),%rcx
  mov    0xf0(%rsp),%rdi
  sub    %r9,%rdi
  add    %rdi,%rdx
  add    %r10,%rdx
  lea    (%r15,%rdx,4),%rdx
  add    %rdi,%rax
  lea    (%r15,%rax,4),%rax
  mov    %ebx,%edi
  movslq 0x44(%rsp),%r9
  sub    %r8,%r9
  movslq 0x48(%rsp),%r8
  sub    %r10,%r8
  mov    0xe8(%rsp),%r10
L67:
  movss  (%rsi),%xmm0
  movss  %xmm0,(%rcx,%r9,4)
  movss  (%rsi,%r8,4),%xmm0
  movss  %xmm0,(%rcx)
  movss  -0x4(%rdx),%xmm0
  movss  %xmm0,(%rax,%r9,4)
  movss  -0x4(%rdx,%r8,4),%xmm0
  movss  %xmm0,(%rax)
  add    $0x1,%edi
  add    %r10,%rsi
  add    %r10,%rcx
  add    %r10,%rdx
  add    %r10,%rax
  cmp    %r11d,%edi
  jne    L67
L181:
  mov    %r13d,%r12d
  cmp    %r13d,%ebx
  jge    L138
  movslq 0xc4(%rsp),%rdx
  movslq 0x40(%rsp),%rax
  mov    %rdx,%rcx
  add    %rdx,%rax
  lea    (%r15,%rax,4),%rax
  mov    %ebx,%edx
  movslq 0xc8(%rsp),%r11
  sub    %rcx,%r11
  movslq 0xcc(%rsp),%r10
  sub    %rcx,%r10
  movslq 0xd0(%rsp),%r9
  sub    %rcx,%r9
  movslq 0xd4(%rsp),%r8
  sub    %rcx,%r8
  movslq 0xdc(%rsp),%rdi
  sub    %rcx,%rdi
  movslq 0xe0(%rsp),%rsi
  mov    %rcx,0x28(%rsp)
  sub    %rcx,%rsi
  movslq 0xe4(%rsp),%rcx
  sub    0x28(%rsp),%rcx
L38:
  movss  (%rax),%xmm0
  movss  %xmm0,(%rax,%r11,4)
  movss  (%rax,%r10,4),%xmm0
  movss  %xmm0,(%rax,%r9,4)
  movss  (%rax,%r8,4),%xmm0
  movss  %xmm0,(%rax,%rdi,4)
  movss  (%rax,%rsi,4),%xmm0
  movss  %xmm0,(%rax,%rcx,4)
  add    $0x1,%edx
  add    %r14,%rax
  cmp    %r12d,%edx
  jne    L38
L138:
  sub    $0x1,%ebx
  mov    0x150(%rsp),%rax
  mov    0xb8(%rsp),%r10
  movss  (%rax,%r10,1),%xmm0
  mov    0x158(%rsp),%rax
  movss  %xmm0,-0x4(%rax,%r10,1)
  mov    0x58(%rsp),%r11
  movss  -0x4(%r11),%xmm0
  mov    0x60(%rsp),%r9
  movss  %xmm0,(%r9)
  mov    0x8(%rsp),%eax
  imul   0x20(%rsp),%eax
  lea    (%rbx,%rax,1),%edx
  mov    0x70(%rsp),%r8
  movss  (%r8),%xmm0
  mov    0x6c(%rsp),%esi
  lea    (%rsi,%rdx,1),%ecx
  movslq %ecx,%rcx
  movss  %xmm0,(%r15,%rcx,4)
  mov    0x78(%rsp),%r12
  movss  (%r12),%xmm0
  mov    0x80(%rsp),%rcx
  movss  %xmm0,(%rcx)
  add    %ebp,%eax
  mov    0x88(%rsp),%rbp
  movss  -0x4(%rbp),%xmm0
  lea    (%rsi,%rax,1),%ecx
  movslq %ecx,%rcx
  movss  %xmm0,(%r15,%rcx,4)
  mov    0x90(%rsp),%rcx
  movss  (%rcx),%xmm0
  mov    0xb0(%rsp),%ecx
  add    %ecx,%edx
  movslq %edx,%rdx
  movss  %xmm0,(%r15,%rdx,4)
  mov    0x98(%rsp),%rdx
  movss  -0x4(%rdx),%xmm0
  mov    0xa0(%rsp),%rdi
  movss  %xmm0,(%rdi)
  mov    0xa8(%rsp),%rdi
  movss  -0x4(%rdi),%xmm0
  add    %ecx,%eax
  cltq
  movss  %xmm0,(%r15,%rax,4)
  subq   $0x1,0x38(%rsp)
  addl   $0x1,0x50(%rsp)
  mov    0x108(%rsp),%rax
  add    %rax,%r11
  mov    %r11,0x58(%rsp)
  add    %rax,%r9
  mov    %r9,0x60(%rsp)
  mov    0x104(%rsp),%r11d
  add    %r11d,%esi
  mov    %esi,0x6c(%rsp)
  mov    0x110(%rsp),%rsi
  add    %rsi,%r8
  mov    %r8,0x70(%rsp)
  mov    0x118(%rsp),%rsi
  add    %rsi,%r12
  mov    %r12,0x78(%rsp)
  add    %rsi,0x80(%rsp)
  mov    0x120(%rsp),%rsi
  add    %rsi,%rbp
  mov    %rbp,0x88(%rsp)
  mov    0xfc(%rsp),%esi
  add    %esi,%ecx
  mov    %ecx,0xb0(%rsp)
  mov    0x128(%rsp),%r11
  add    %r11,0x90(%rsp)
  mov    0x130(%rsp),%rcx
  add    %rcx,%rdx
  mov    %rdx,0x98(%rsp)
  add    %rcx,0xa0(%rsp)
  mov    0x138(%rsp),%rax
  add    %rax,%rdi
  mov    %rdi,0xa8(%rsp)
  add    $0x1,%r13d
  addl   $0x1,0xb4(%rsp)
  mov    0x54(%rsp),%eax
  mov    0x20(%rsp),%edi
  sub    %edi,%eax
  sub    $0x1,%eax
  mov    %eax,0x54(%rsp)
  mov    0x144(%rsp),%eax
  add    %eax,0xc0(%rsp)
  sub    %edi,0x10(%rsp)
  sub    %esi,0x40(%rsp)
  sub    %esi,0x44(%rsp)
  add    %esi,0x48(%rsp)
  add    %esi,0x4c(%rsp)
  sub    %edi,0x24(%rsp)
  add    %edi,0x18(%rsp)
  add    %edi,0x68(%rsp)
  mov    0x140(%rsp),%esi
  add    %esi,0xc4(%rsp)
  add    %esi,0xc8(%rsp)
  add    %eax,0xcc(%rsp)
  add    %eax,0xd0(%rsp)
  mov    0xd8(%rsp),%edi
  add    %edi,0xd4(%rsp)
  add    %edi,0xdc(%rsp)
  mov    0x100(%rsp),%edi
  add    %edi,0xe0(%rsp)
  add    %edi,0xe4(%rsp)
  mov    0x148(%rsp),%rax
  add    %rax,%r10
  mov    %r10,0xb8(%rsp)
  test   %ebx,%ebx
  je     L95
L259:
  mov    0x50(%rsp),%eax
  mov    %eax,%ebp
  cmp    %ebx,%eax
  jle    L113
  movslq 0x40(%rsp),%rax
  movslq 0x10(%rsp),%rdx
  add    %rax,%rdx
  add    0x38(%rsp),%rdx
  lea    (%r15,%rdx,4),%r10
  mov    %ebx,%r9d
  mov    0xb4(%rsp),%r12d
  mov    %r12d,%ecx
  movslq 0x44(%rsp),%r8
  sub    %rax,%r8
  movslq 0x48(%rsp),%rdi
  sub    %rax,%rdi
  movslq 0x4c(%rsp),%rsi
  sub    %rax,%rsi
  mov    0xe8(%rsp),%r11
  jmp    L250
L75:
  cmp    0x8(%rsp),%ebx
  jge    L158
L37:
  mov    0xc0(%rsp),%r11d
  mov    0x54(%rsp),%r10d
  mov    %ebx,%r12d
  mov    %r13d,%r8d
  mov    0xd8(%rsp),%eax
  sub    %ebx,%eax
  sub    0x50(%rsp),%eax
  mov    %eax,0x28(%rsp)
  movslq 0x40(%rsp),%rax
  mov    %rax,0x30(%rsp)
  mov    %ebp,0xf8(%rsp)
  mov    0x8(%rsp),%ebp
  jmp    L218
L95:
  mov    $0x2,%eax
  add    $0x168,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
int _p3dReplicatePadding3D_float(float *in_rev, float *out_rev, const int dimx, const int dimy, const int dimz, const int size) {
  int a_dimx, a_dimy, a_dimz;
  int i, j, k, ct;
  a_dimx = dimx + size * 2;
  a_dimy = dimy + size * 2;
  a_dimz = dimz + size * 2;
  _p3dZeroPadding3D_float(in_rev, out_rev, dimx, dimy, dimz, size);
#pragma omp parallel for private(i, j, k)
  for (ct = size; ct > 0; ct--) {
    for (i = ct; i < (a_dimx - ct); i++) {
      for (j = ct; j < (a_dimy - ct); j++) {
        out_rev[((j) * (a_dimx) + (i) + (ct - 1) * (a_dimx) * (a_dimy))] = out_rev[((j) * (a_dimx) + (i) + (ct) * (a_dimx) * (a_dimy))];
        out_rev[((j) * (a_dimx) + (i) + (a_dimz - ct) * (a_dimx) * (a_dimy))] = out_rev[((j) * (a_dimx) + (i) + (a_dimz - 1 - ct) * (a_dimx) * (a_dimy))];
      }
    }
    for (j = ct; j < (a_dimy - ct); j++) {
      for (k = ct; k < (a_dimz - ct); k++) {
        out_rev[((j) * (a_dimx) + (ct - 1) + (k) * (a_dimx) * (a_dimy))] = out_rev[((j) * (a_dimx) + (ct) + (k) * (a_dimx) * (a_dimy))];
        out_rev[((j) * (a_dimx) + (a_dimx - ct) + (k) * (a_dimx) * (a_dimy))] = out_rev[((j) * (a_dimx) + (a_dimx - 1 - ct) + (k) * (a_dimx) * (a_dimy))];
      }
    }
    for (i = ct; i < (a_dimx - ct); i++) {
      for (k = ct; k < (a_dimz - ct); k++) {
        out_rev[((ct - 1) * (a_dimx) + (i) + (k) * (a_dimx) * (a_dimy))] = out_rev[((ct) * (a_dimx) + (i) + (k) * (a_dimx) * (a_dimy))];
        out_rev[((a_dimy - ct) * (a_dimx) + (i) + (k) * (a_dimx) * (a_dimy))] = out_rev[((a_dimy - 1 - ct) * (a_dimx) + (i) + (k) * (a_dimx) * (a_dimy))];
      }
    }
    for (i = ct; i < (a_dimx - ct); i++) {
      out_rev[((ct - 1) * (a_dimx) + (i) + (ct - 1) * (a_dimx) * (a_dimy))] = out_rev[((ct) * (a_dimx) + (i) + (ct) * (a_dimx) * (a_dimy))];
      out_rev[((ct - 1) * (a_dimx) + (i) + (a_dimz - ct) * (a_dimx) * (a_dimy))] = out_rev[((ct) * (a_dimx) + (i) + (a_dimz - 1 - ct) * (a_dimx) * (a_dimy))];
      out_rev[((a_dimy - ct) * (a_dimx) + (i) + (ct - 1) * (a_dimx) * (a_dimy))] = out_rev[((a_dimy - 1 - ct) * (a_dimx) + (i) + (ct) * (a_dimx) * (a_dimy))];
      out_rev[((a_dimy - ct) * (a_dimx) + (i) + (a_dimz - ct) * (a_dimx) * (a_dimy))] = out_rev[((a_dimy - 1 - ct) * (a_dimx) + (i) + (a_dimz - 1 - ct) * (a_dimx) * (a_dimy))];
    }
    for (j = ct; j < (a_dimy - ct); j++) {
      out_rev[((j) * (a_dimx) + (ct - 1) + (ct - 1) * (a_dimx) * (a_dimy))] = out_rev[((j) * (a_dimx) + (ct) + (ct) * (a_dimx) * (a_dimy))];
      out_rev[((j) * (a_dimx) + (ct - 1) + (a_dimz - ct) * (a_dimx) * (a_dimy))] = out_rev[((j) * (a_dimx) + (ct) + (a_dimz - 1 - ct) * (a_dimx) * (a_dimy))];
      out_rev[((j) * (a_dimx) + (a_dimx - ct) + (ct - 1) * (a_dimx) * (a_dimy))] = out_rev[((j) * (a_dimx) + (a_dimx - 1 - ct) + (ct) * (a_dimx) * (a_dimy))];
      out_rev[((j) * (a_dimx) + (a_dimx - ct) + (a_dimz - ct) * (a_dimx) * (a_dimy))] = out_rev[((j) * (a_dimx) + (a_dimx - 1 - ct) + (a_dimz - 1 - ct) * (a_dimx) * (a_dimy))];
    }
    for (k = ct; k < (a_dimz - ct); k++) {
      out_rev[((ct - 1) * (a_dimx) + (ct - 1) + (k) * (a_dimx) * (a_dimy))] = out_rev[((ct) * (a_dimx) + (ct) + (k) * (a_dimx) * (a_dimy))];
      out_rev[((ct - 1) * (a_dimx) + (a_dimx - ct) + (k) * (a_dimx) * (a_dimy))] = out_rev[((ct) * (a_dimx) + (a_dimx - 1 - ct) + (k) * (a_dimx) * (a_dimy))];
      out_rev[((a_dimy - ct) * (a_dimx) + (ct - 1) + (k) * (a_dimx) * (a_dimy))] = out_rev[((a_dimy - 1 - ct) * (a_dimx) + (ct) + (k) * (a_dimx) * (a_dimy))];
      out_rev[((a_dimy - ct) * (a_dimx) + (a_dimx - ct) + (k) * (a_dimx) * (a_dimy))] = out_rev[((a_dimy - 1 - ct) * (a_dimx) + (a_dimx - 1 - ct) + (k) * (a_dimx) * (a_dimy))];
    }
    out_rev[((ct - 1) * (a_dimx) + (ct - 1) + (ct - 1) * (a_dimx) * (a_dimy))] = out_rev[((ct) * (a_dimx) + (ct) + (ct) * (a_dimx) * (a_dimy))];
    out_rev[((ct - 1) * (a_dimx) + (a_dimx - ct) + (ct - 1) * (a_dimx) * (a_dimy))] = out_rev[((ct) * (a_dimx) + (a_dimx - 1 - ct) + (ct) * (a_dimx) * (a_dimy))];
    out_rev[((a_dimy - ct) * (a_dimx) + (ct - 1) + (ct - 1) * (a_dimx) * (a_dimy))] = out_rev[((a_dimy - 1 - ct) * (a_dimx) + (ct) + (ct) * (a_dimx) * (a_dimy))];
    out_rev[((ct - 1) * (a_dimx) + (ct - 1) + (a_dimz - ct) * (a_dimx) * (a_dimy))] = out_rev[((ct) * (a_dimx) + (ct) + (a_dimz - 1 - ct) * (a_dimx) * (a_dimy))];
    out_rev[((a_dimy - ct) * (a_dimx) + (a_dimx - ct) + (ct - 1) * (a_dimx) * (a_dimy))] = out_rev[((a_dimy - 1 - ct) * (a_dimx) + (a_dimx - 1 - ct) + (ct) * (a_dimx) * (a_dimy))];
    out_rev[((a_dimy - ct) * (a_dimx) + (ct - 1) + (a_dimz - ct) * (a_dimx) * (a_dimy))] = out_rev[((a_dimy - 1 - ct) * (a_dimx) + (ct) + (a_dimz - 1 - ct) * (a_dimx) * (a_dimy))];
    out_rev[((ct - 1) * (a_dimx) + (a_dimx - ct) + (a_dimz - ct) * (a_dimx) * (a_dimy))] = out_rev[((ct) * (a_dimx) + (a_dimx - 1 - ct) + (a_dimz - 1 - ct) * (a_dimx) * (a_dimy))];
    out_rev[((a_dimy - ct) * (a_dimx) + (a_dimx - ct) + (a_dimz - ct) * (a_dimx) * (a_dimy))] = out_rev[((a_dimy - 1 - ct) * (a_dimx) + (a_dimx - 1 - ct) + (a_dimz - 1 - ct) * (a_dimx) * (a_dimy))];
  }
  return 2;
}
```