user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<_p3dReplicatePadding3D_ushort2float>:
  endbr64
  push   %r15
  lea    (%r9,%r9,1),%eax
  push   %r14
  lea    (%rax,%rdx,1),%r10d
  mov    %rsi,%r14
  push   %r13
  mov    %r9d,%r13d
  mov    %r10d,%r15d
  push   %r12
  push   %rbp
  lea    (%rax,%r8,1),%ebp
  push   %rbx
  lea    (%rax,%rcx,1),%ebx
  xor    %eax,%eax
  sub    $0x128,%rsp
  call   <_p3dZeroPadding3D_ushort2float@plt>
  test   %r13d,%r13d
  jle    L131
  mov    %r15d,%r10d
  mov    %r15d,%eax
  mov    %r15d,%r11d
  mov    %r13d,%edx
  imul   %ebx,%r10d
  not    %eax
  lea    -0x1(%rdx),%r12d
  mov    %r15d,%ecx
  mov    %r12d,%r8d
  mov    %r12d,0x38(%rsp)
  lea    -0x1(%r15),%r13d
  sub    %edx,%ecx
  mov    %edx,0xc(%rsp)
  sub    %r10d,%eax
  mov    %r10d,%edi
  mov    %r10d,%r9d
  mov    %ecx,0x10(%rsp)
  mov    %eax,0x108(%rsp)
  imul   %edx,%edi
  lea    0x1(%r11),%eax
  mov    %eax,%esi
  imul   %r12d,%r9d
  mov    %r10d,0xfc(%rsp)
  imul   %edx,%esi
  mov    %eax,0xec(%rsp)
  imul   %eax,%r12d
  mov    %edi,%r15d
  mov    %edi,0x30(%rsp)
  mov    %r9d,0x48(%rsp)
  mov    %esi,0x58(%rsp)
  add    %edi,%esi
  mov    %r9d,%edi
  mov    %esi,0x88(%rsp)
  mov    %r10d,%esi
  mov    %r12d,%eax
  mov    $0x1,%r10d
  sub    %r11d,%r10d
  add    %r9d,%eax
  mov    %esi,%r9d
  mov    %r13d,0xe8(%rsp)
  mov    %r10d,0xf8(%rsp)
  sub    %esi,%r10d
  lea    0x1(%rbx),%esi
  mov    %r10d,0x10c(%rsp)
  mov    %r11d,%r10d
  imul   %edx,%r11d
  mov    %eax,0x84(%rsp)
  mov    %edx,%eax
  mov    %r13d,%edx
  sub    %eax,%edx
  mov    %eax,0x54(%rsp)
  mov    %r11d,%eax
  mov    %r12d,0xa0(%rsp)
  mov    %r8d,%r12d
  imul   %esi,%eax
  mov    %r11d,0x14(%rsp)
  lea    (%rax,%rdx,1),%r13d
  mov    %r13d,0x80(%rsp)
  mov    %r8d,%r13d
  mov    %r10d,%r8d
  imul   %r10d,%r13d
  mov    %ecx,%r10d
  mov    %r13d,%eax
  mov    %r13d,0xa8(%rsp)
  imul   %esi,%eax
  mov    %eax,%r13d
  add    %ecx,%r13d
  mov    0xe8(%rsp),%ecx
  mov    %r13d,0x7c(%rsp)
  sub    %r9d,%ecx
  mov    %ecx,0x104(%rsp)
  mov    %ebx,%ecx
  sub    0x54(%rsp),%ecx
  lea    -0x1(%rcx),%eax
  mov    %eax,%r13d
  mov    0x54(%rsp),%eax
  imul   %r8d,%r13d
  add    %r15d,%eax
  mov    %r13d,0x3c(%rsp)
  mov    %r15d,%r13d
  mov    0x3c(%rsp),%r15d
  add    %eax,%r15d
  mov    %r12d,%eax
  mov    %r15d,0x78(%rsp)
  mov    %ecx,%r15d
  mov    %r8d,%ecx
  imul   %r15d,%r8d
  mov    %ecx,0x70(%rsp)
  add    %r8d,%eax
  mov    %r8d,%r12d
  mov    %r8d,0x50(%rsp)
  mov    %edi,%r8d
  mov    %eax,0xa4(%rsp)
  add    %edi,%eax
  mov    %eax,0x74(%rsp)
  lea    -0x1(%rbx),%eax
  mov    %r9d,%ebx
  mov    %eax,%edi
  imul   %ecx,%edi
  lea    -0x1(%rdi),%ecx
  mov    %ecx,0x110(%rsp)
  mov    %ebp,%ecx
  sub    0x54(%rsp),%ecx
  imul   %ecx,%ebx
  lea    -0x1(%rcx),%eax
  mov    %eax,%ebp
  mov    %r9d,%eax
  imul   %r9d,%ebp
  mov    %ebx,0x40(%rsp)
  add    0xa0(%rsp),%ebx
  mov    %ebx,0x6c(%rsp)
  mov    %eax,%ebx
  mov    %ebp,%r9d
  add    0x58(%rsp),%r9d
  mov    %ebp,0x34(%rsp)
  mov    %r9d,0x8c(%rsp)
  mov    0xec(%rsp),%r9d
  sub    %eax,%r9d
  lea    (%rdx,%r13,1),%eax
  mov    0x3c(%rsp),%r13d
  mov    %eax,%ebp
  mov    %r8d,%eax
  mov    %r9d,0xf0(%rsp)
  mov    %r8d,%r9d
  add    %r13d,%ebp
  add    %r12d,%eax
  mov    %r12d,%r8d
  mov    0x54(%rsp),%r12d
  mov    %ebp,0x94(%rsp)
  mov    %eax,%ebp
  add    $0x1,%edi
  add    %r10d,%ebp
  add    %r12d,%r13d
  mov    %edi,0x100(%rsp)
  lea    (%rdx,%r11,1),%edi
  mov    0xa8(%rsp),%r11d
  add    0x3c(%rsp),%edx
  mov    %ebp,0x90(%rsp)
  mov    0x70(%rsp),%ebp
  mov    %r13d,0xb4(%rsp)
  add    0x34(%rsp),%r13d
  mov    %edi,0x4c(%rsp)
  imul   %ebp,%esi
  add    0x34(%rsp),%edi
  mov    %r13d,0x68(%rsp)
  mov    0xa4(%rsp),%r13d
  mov    %edi,0x60(%rsp)
  mov    %r11d,%edi
  add    %r10d,%edi
  mov    %edx,0xb8(%rsp)
  add    0x34(%rsp),%edx
  add    %r8d,%r10d
  mov    %esi,%eax
  lea    -0x1(%rsi),%esi
  mov    %edi,0xb0(%rsp)
  movslq %r12d,%r8
  mov    %esi,0xf4(%rsp)
  mov    0x40(%rsp),%esi
  add    $0x1,%eax
  mov    %eax,0x114(%rsp)
  add    %esi,%r13d
  mov    %r13d,0x5c(%rsp)
  mov    %edi,%r13d
  mov    %esi,%edi
  add    %esi,%r13d
  mov    %r13d,0x64(%rsp)
  mov    %edx,0x98(%rsp)
  movslq 0xe8(%rsp),%rax
  lea    (%r8,%r8,1),%rdx
  mov    %r10d,0xbc(%rsp)
  add    %esi,%r10d
  mov    %ebp,%esi
  not    %ebp
  mov    %r10d,0x9c(%rsp)
  mov    %rax,%r10
  sub    %rdx,%r10
  mov    %ebp,0x118(%rsp)
  mov    %r10,0xc0(%rsp)
  movslq %esi,%r10
  movslq %ebx,%rsi
  mov    %r10,%rdx
  mov    %r10,%rbp
  mov    %r8,0x28(%rsp)
  shl    $0x2,%r10
  sub    %r8,%rdx
  mov    %r9d,0xac(%rsp)
  shl    $0x2,%rsi
  mov    %rdx,0xc8(%rsp)
  mov    %rax,%rdx
  mov    0x58(%rsp),%eax
  sub    %r8,%rdx
  mov    %r11d,0xdc(%rsp)
  mov    %eax,0x44(%rsp)
  lea    -0x2(%rbp),%eax
  mov    %rdx,0xd0(%rsp)
  mov    %edi,0xd8(%rsp)
  mov    %eax,0x11c(%rsp)
  nopl   (%rax)
L191:
  mov    0x38(%rsp),%eax
  mov    0x10(%rsp),%edi
  mov    0xc(%rsp),%r12d
  mov    0x54(%rsp),%r13d
  mov    %eax,0x54(%rsp)
  cmp    %r12d,%edi
  jle    L64
  movslq 0x30(%rsp),%rax
  movslq 0x14(%rsp),%rbx
  movslq 0xac(%rsp),%r11
  movslq 0x34(%rsp),%r9
  movslq 0xd8(%rsp),%r8
  lea    (%rbx,%rax,1),%rdx
  add    0x28(%rsp),%rdx
  mov    %rbx,0x18(%rsp)
  mov    %rax,0x20(%rsp)
  sub    %rax,%r11
  sub    %rax,%r9
  lea    (%r14,%rdx,4),%rbp
  sub    %rax,%r8
  mov    %r13d,%ebx
  mov    %edi,%eax
  nopl   0x0(%rax,%rax,1)
L39:
  mov    %rbp,%rdx
  mov    %r13d,%edi
  cmp    %r15d,%r12d
  jge    L213
  nopl   0x0(%rax,%rax,1)
L194:
  movss  (%rdx),%xmm0
  add    $0x1,%edi
  movss  %xmm0,(%rdx,%r11,4)
  movss  (%rdx,%r9,4),%xmm0
  movss  %xmm0,(%rdx,%r8,4)
  add    %r10,%rdx
  cmp    %r15d,%edi
  jne    L194
L213:
  add    $0x1,%ebx
  add    $0x4,%rbp
  cmp    %eax,%ebx
  jne    L39
  mov    0x20(%rsp),%rax
  cmp    %r15d,0xc(%rsp)
  jge    L60
L183:
  mov    0x38(%rsp),%eax
  sub    0x11c(%rsp),%eax
  mov    %r10,0xe0(%rsp)
  mov    %r13d,%r12d
  add    0x10(%rsp),%eax
  mov    0x4c(%rsp),%ebp
  mov    0x44(%rsp),%ebx
  mov    0x70(%rsp),%r11d
  mov    %eax,0x18(%rsp)
  movslq 0x30(%rsp),%rax
  mov    %rax,0x20(%rsp)
  nopl   0x0(%rax)
L134:
  cmp    %ecx,0xc(%rsp)
  jge    L106
  mov    0x18(%rsp),%eax
  movslq %ebx,%r10
  lea    -0x1(%rbx),%r9d
  movslq %ebp,%r8
  movslq %r9d,%r9
  mov    %r13d,%edx
  sub    %r10,%r8
  lea    (%rax,%rbp,1),%edi
  mov    0x20(%rsp),%rax
  sub    %r10,%r9
  movslq %edi,%rdi
  add    %r10,%rax
  sub    %r10,%rdi
  lea    (%r14,%rax,4),%rax
  nopl   (%rax)
L45:
  movss  (%rax),%xmm0
  add    $0x1,%edx
  movss  %xmm0,(%rax,%r9,4)
  movss  (%rax,%r8,4),%xmm0
  movss  %xmm0,(%rax,%rdi,4)
  add    %rsi,%rax
  cmp    %ecx,%edx
  jne    L45
L106:
  add    $0x1,%r12d
  add    %r11d,%ebx
  add    %r11d,%ebp
  cmp    %r15d,%r12d
  jl     L134
  movslq 0x14(%rsp),%rbx
  mov    0xe0(%rsp),%r10
  movslq 0x30(%rsp),%rax
  mov    0xc(%rsp),%edi
  mov    %rbx,0x18(%rsp)
  cmp    %edi,0x10(%rsp)
  jle    L35
L60:
  mov    %r10,0x20(%rsp)
  mov    0x3c(%rsp),%ebp
  mov    %r13d,%ebx
  mov    %r15d,0xe0(%rsp)
  mov    0x50(%rsp),%r12d
  mov    0xdc(%rsp),%r15d
  nopl   0x0(%rax)
L30:
  cmp    %ecx,0xc(%rsp)
  jge    L48
  mov    0x14(%rsp),%edi
  lea    (%rbx,%r15,1),%r10d
  lea    (%rbx,%rbp,1),%r9d
  lea    (%rbx,%r12,1),%r8d
  movslq %r10d,%r10
  movslq %r9d,%r9
  lea    (%rbx,%rdi,1),%r11d
  movslq %r8d,%r8
  mov    %r13d,%edi
  movslq %r11d,%r11
  lea    (%rax,%r11,1),%rdx
  sub    %r11,%r10
  sub    %r11,%r9
  sub    %r11,%r8
  lea    (%r14,%rdx,4),%rdx
  nopw   0x0(%rax,%rax,1)
L71:
  movss  (%rdx),%xmm0
  add    $0x1,%edi
  movss  %xmm0,(%rdx,%r10,4)
  movss  (%rdx,%r9,4),%xmm0
  movss  %xmm0,(%rdx,%r8,4)
  add    %rsi,%rdx
  cmp    %ecx,%edi
  jne    L71
L48:
  add    $0x1,%ebx
  cmp    0x10(%rsp),%ebx
  jl     L30
  mov    0x18(%rsp),%rbx
  movslq 0x48(%rsp),%rdi
  movslq 0x34(%rsp),%r12
  movslq 0x3c(%rsp),%rbp
  lea    (%rbx,%rax,1),%rdx
  mov    0x20(%rsp),%r10
  mov    0xe0(%rsp),%r15d
  lea    (%r14,%rdx,4),%r11
  movslq 0xa8(%rsp),%rdx
  add    %rbp,%rax
  add    %r12,%rbp
  lea    (%r14,%rax,4),%rax
  lea    (%rdx,%rdi,1),%r8
  lea    (%r14,%r8,4),%r9
  lea    (%r12,%rbx,1),%r8
  movslq 0x40(%rsp),%rbx
  lea    (%r14,%rbp,4),%r12
  lea    (%r14,%r8,4),%r8
  mov    %rbx,0x18(%rsp)
  add    %rbx,%rdx
  movslq 0x50(%rsp),%rbx
  lea    (%r14,%rdx,4),%rdx
  add    %rbx,%rdi
  add    0x18(%rsp),%rbx
  mov    %ecx,0x18(%rsp)
  lea    (%r14,%rbx,4),%rbp
  mov    0x10(%rsp),%ecx
  mov    0x28(%rsp),%rbx
  lea    (%r14,%rdi,4),%rdi
  nopl   0x0(%rax,%rax,1)
L9:
  movss  (%r11,%rbx,4),%xmm0
  movss  %xmm0,(%r9,%rbx,4)
  movss  (%r8,%rbx,4),%xmm0
  movss  %xmm0,(%rdx,%rbx,4)
  movss  (%rax,%rbx,4),%xmm0
  movss  %xmm0,(%rdi,%rbx,4)
  movss  (%r12,%rbx,4),%xmm0
  movss  %xmm0,0x0(%rbp,%rbx,4)
  add    $0x1,%rbx
  cmp    %ebx,%ecx
  jg     L9
  mov    0x18(%rsp),%ecx
L35:
  cmp    %r15d,0xc(%rsp)
  jge    L128
  mov    0x28(%rsp),%r8
  movslq 0x14(%rsp),%rax
  movslq 0x30(%rsp),%rdx
  movslq 0x48(%rsp),%rdi
  add    %r8,%rax
  movslq 0x34(%rsp),%r12
  movslq 0x40(%rsp),%r9
  add    %rdx,%rax
  mov    %rdi,%rbx
  mov    %rdx,%rbp
  mov    %r13d,%edx
  lea    (%r14,%rax,4),%rax
  mov    %r9,0x18(%rsp)
  mov    %r12,%r11
  sub    %rbp,%rbx
  mov    %rax,0x20(%rsp)
  mov    0xc8(%rsp),%rax
  sub    %rbp,%r11
  sub    %rbp,%r9
  sub    %r8,%rax
  mov    %rax,%r8
  add    %rax,%rdi
  mov    0xd0(%rsp),%rax
  sub    0x28(%rsp),%rax
  add    %rax,%r12
  add    0x18(%rsp),%r8
  sub    %rbp,%rdi
  mov    0x20(%rsp),%rax
  sub    %rbp,%r12
  sub    %rbp,%r8
  mov    0xc0(%rsp),%rbp
  nopw   0x0(%rax,%rax,1)
L167:
  movss  (%rax),%xmm0
  add    $0x1,%edx
  movss  %xmm0,-0x4(%rax,%rbx,4)
  movss  (%rax,%r11,4),%xmm0
  movss  %xmm0,-0x4(%rax,%r9,4)
  movss  (%rax,%rbp,4),%xmm0
  movss  %xmm0,(%rax,%rdi,4)
  movss  (%rax,%r12,4),%xmm0
  movss  %xmm0,(%rax,%r8,4)
  add    %r10,%rax
  cmp    %r15d,%edx
  jne    L167
L128:
  cmp    %ecx,0xc(%rsp)
  jge    L170
  movslq 0x58(%rsp),%r12
  movslq 0x30(%rsp),%rax
  movslq 0xa0(%rsp),%rbp
  movslq 0x4c(%rsp),%rbx
  movslq 0xb0(%rsp),%r11
  movslq 0xb4(%rsp),%r9
  add    %r12,%rax
  movslq 0xa4(%rsp),%r8
  lea    (%r14,%rax,4),%rax
  sub    %r12,%rbp
  sub    %r12,%rbx
  movslq 0xb8(%rsp),%rdi
  movslq 0xbc(%rsp),%rdx
  sub    %r12,%r11
  sub    %r12,%r9
  sub    %r12,%r8
  sub    %r12,%rdi
  sub    %r12,%rdx
  nopl   (%rax)
L32:
  movss  (%rax),%xmm0
  add    $0x1,%r13d
  movss  %xmm0,(%rax,%rbp,4)
  movss  (%rax,%rbx,4),%xmm0
  movss  %xmm0,(%rax,%r11,4)
  movss  (%rax,%r9,4),%xmm0
  movss  %xmm0,(%rax,%r8,4)
  movss  (%rax,%rdi,4),%xmm0
  movss  %xmm0,(%rax,%rdx,4)
  add    %rsi,%rax
  cmp    %ecx,%r13d
  jne    L32
L170:
  movslq 0x88(%rsp),%rax
  add    $0x1,%ecx
  movss  (%r14,%rax,4),%xmm0
  mov    %rax,%rbx
  movslq 0x84(%rsp),%rax
  movss  %xmm0,(%r14,%rax,4)
  mov    %rax,%rdi
  movslq 0x80(%rsp),%rax
  movss  (%r14,%rax,4),%xmm0
  mov    %rax,%rdx
  movslq 0x7c(%rsp),%rax
  movss  %xmm0,(%r14,%rax,4)
  mov    %rax,%r11
  movslq 0x78(%rsp),%rax
  movss  (%r14,%rax,4),%xmm0
  mov    %rax,%r9
  movslq 0x74(%rsp),%rax
  movss  %xmm0,(%r14,%rax,4)
  mov    %rax,%r8
  movslq 0x8c(%rsp),%rax
  movss  (%r14,%rax,4),%xmm0
  mov    %rax,%rbp
  movslq 0x6c(%rsp),%rax
  movss  %xmm0,(%r14,%rax,4)
  mov    %rax,%r13
  movslq 0x94(%rsp),%rax
  movss  (%r14,%rax,4),%xmm0
  mov    %rax,%r12
  movslq 0x90(%rsp),%rax
  movss  %xmm0,(%r14,%rax,4)
  movslq 0x68(%rsp),%rax
  movss  (%r14,%rax,4),%xmm0
  movslq 0x5c(%rsp),%rax
  movss  %xmm0,(%r14,%rax,4)
  movslq 0x60(%rsp),%rax
  movss  (%r14,%rax,4),%xmm0
  movslq 0x64(%rsp),%rax
  movss  %xmm0,(%r14,%rax,4)
  movslq 0x98(%rsp),%rax
  movss  (%r14,%rax,4),%xmm0
  movslq 0x9c(%rsp),%rax
  movss  %xmm0,(%r14,%rax,4)
  subl   $0x1,0xc(%rsp)
  mov    0x108(%rsp),%eax
  addl   $0x1,0x10(%rsp)
  add    %eax,%ebx
  add    %eax,%edi
  mov    %ebx,0x88(%rsp)
  mov    0x10c(%rsp),%ebx
  mov    %edi,0x84(%rsp)
  add    %ebx,%edx
  add    %ebx,%r11d
  mov    0x104(%rsp),%ebx
  mov    %edx,0x80(%rsp)
  add    %ebx,%r9d
  add    %ebx,%r8d
  mov    0x110(%rsp),%ebx
  mov    %r11d,0x7c(%rsp)
  mov    %r9d,0x78(%rsp)
  add    %ebx,%ebp
  add    %ebx,%r13d
  mov    0xf0(%rsp),%ebx
  mov    %r8d,0x74(%rsp)
  add    %ebx,0x90(%rsp)
  add    %ebx,%r12d
  mov    %ebp,0x8c(%rsp)
  mov    0xf4(%rsp),%ebx
  mov    %r13d,0x6c(%rsp)
  add    %ebx,0x68(%rsp)
  add    %ebx,0x5c(%rsp)
  mov    0x100(%rsp),%ebx
  mov    %r12d,0x94(%rsp)
  add    %ebx,0x60(%rsp)
  add    %ebx,0x64(%rsp)
  mov    0x114(%rsp),%ebx
  add    %ebx,0x98(%rsp)
  add    %ebx,0x9c(%rsp)
  mov    0xfc(%rsp),%eax
  mov    0x118(%rsp),%ebx
  sub    %eax,0x30(%rsp)
  add    %ebx,0x58(%rsp)
  add    %ebx,0xa0(%rsp)
  mov    0xf8(%rsp),%ebx
  addq   $0x2,0xc0(%rsp)
  add    %ebx,0x4c(%rsp)
  add    %ebx,0xb0(%rsp)
  mov    0xe8(%rsp),%ebx
  addq   $0x1,0xc8(%rsp)
  add    %ebx,0xb4(%rsp)
  add    %ebx,0xa4(%rsp)
  mov    0xec(%rsp),%ebx
  subq   $0x1,0x28(%rsp)
  add    %ebx,0xb8(%rsp)
  add    %ebx,0xbc(%rsp)
  mov    %eax,%ebx
  addq   $0x1,0xd0(%rsp)
  mov    0x70(%rsp),%edi
  add    $0x1,%r15d
  sub    %eax,0x48(%rsp)
  add    %eax,0x34(%rsp)
  add    %eax,0x40(%rsp)
  mov    0x44(%rsp),%eax
  sub    %edi,0x14(%rsp)
  sub    %edi,%eax
  sub    %edi,0xa8(%rsp)
  sub    $0x1,%eax
  add    %edi,0x3c(%rsp)
  mov    %eax,0x44(%rsp)
  mov    0x38(%rsp),%eax
  add    %edi,0x50(%rsp)
  sub    %ebx,0xac(%rsp)
  add    %ebx,0xd8(%rsp)
  sub    %edi,0xdc(%rsp)
  test   %eax,%eax
  je     L131
  sub    $0x1,%eax
  mov    %eax,0x38(%rsp)
  jmp    L191
L131:
  add    $0x128,%rsp
  mov    $0x2,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L64:
  cmp    %r15d,0xc(%rsp)
  jl     L183
  jmp    L128
```

assistant: ```c
int _p3dReplicatePadding3D_ushort2float(unsigned short *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_ushort2float(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))] = (float)out_rev[((j) * (a_dimx) + (i) + (ct) * (a_dimx) * (a_dimy))];
        out_rev[((j) * (a_dimx) + (i) + (a_dimz - ct) * (a_dimx) * (a_dimy))] = (float)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))] = (float)out_rev[((j) * (a_dimx) + (ct) + (k) * (a_dimx) * (a_dimy))];
        out_rev[((j) * (a_dimx) + (a_dimx - ct) + (k) * (a_dimx) * (a_dimy))] = (float)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))] = (float)out_rev[((ct) * (a_dimx) + (i) + (k) * (a_dimx) * (a_dimy))];
        out_rev[((a_dimy - ct) * (a_dimx) + (i) + (k) * (a_dimx) * (a_dimy))] = (float)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))] = (float)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))] = (float)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))] = (float)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))] = (float)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))] = (float)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))] = (float)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))] = (float)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))] = (float)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))] = (float)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))] = (float)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))] = (float)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))] = (float)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))] = (float)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))] = (float)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))] = (float)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))] = (float)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))] = (float)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))] = (float)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))] = (float)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))] = (float)out_rev[((a_dimy - 1 - ct) * (a_dimx) + (a_dimx - 1 - ct) + (a_dimz - 1 - ct) * (a_dimx) * (a_dimy))];
  }
  return 2;
}
```