user: 请将以下的汇编代码转换成C语言代码:

```asm
<_p3dReplicatePadding3D_ushort2float>:
  endbr64
  push   %r15
  lea    (%r9,%r9,1),%eax
  push   %r14
  push   %r13
  push   %r12
  mov    %r9d,%r12d
  lea    (%rax,%rdx,1),%r9d
  push   %rbp
  mov    %r9d,%r14d
  lea    (%rax,%r8,1),%ebp
  push   %rbx
  lea    (%rax,%rcx,1),%ebx
  xor    %eax,%eax
  sub    $0x148,%rsp
  mov    %r9d,0x110(%rsp)
  mov    %r12d,%r9d
  mov    %rsi,0x10(%rsp)
  call   <_p3dZeroPadding3D_ushort2float@plt>
  test   %r12d,%r12d
  jle    L9
  mov    %r14d,%r9d
  lea    -0x1(%r14),%eax
  mov    %r14d,%r11d
  mov    %r14d,%r8d
  imul   %ebx,%r9d
  mov    %eax,0xf8(%rsp)
  mov    %r14d,%eax
  mov    %ebx,%esi
  not    %eax
  mov    $0x1,%ebx
  sub    %r12d,%r8d
  mov    %r12d,%r10d
  sub    %r11d,%ebx
  mov    %esi,(%rsp)
  add    $0x1,%esi
  sub    %r9d,%eax
  mov    %r9d,%r15d
  mov    %r9d,%edi
  mov    %ebx,0x108(%rsp)
  mov    %eax,0x11c(%rsp)
  imul   %r12d,%r15d
  lea    0x1(%r14),%eax
  mov    %r9d,%r14d
  mov    %eax,%ecx
  mov    %eax,%edx
  sub    %r9d,%ebx
  mov    %r9d,0x10c(%rsp)
  imul   %r12d,%ecx
  mov    %r10d,0x24(%rsp)
  mov    %r15d,%r13d
  mov    %r15d,0x1c(%rsp)
  mov    %eax,0xfc(%rsp)
  mov    %ecx,0x88(%rsp)
  add    %r15d,%ecx
  mov    %ecx,0x7c(%rsp)
  lea    -0x1(%r12),%ecx
  imul   %ecx,%r14d
  mov    %ebx,0x120(%rsp)
  imul   %ecx,%edx
  mov    %r8d,0x18(%rsp)
  mov    %r14d,%r15d
  mov    %edx,0x48(%rsp)
  add    %r14d,%edx
  mov    %r11d,%r14d
  imul   %r12d,%r11d
  mov    0xf8(%rsp),%r12d
  mov    %edx,0x78(%rsp)
  mov    %r15d,0x2c(%rsp)
  mov    %r12d,%r9d
  sub    %r10d,%r9d
  mov    %r11d,0x20(%rsp)
  mov    %r11d,%r10d
  mov    %r11d,%eax
  mov    %r14d,%r11d
  imul   %esi,%eax
  mov    %r9d,%edx
  imul   %ecx,%r11d
  lea    (%rax,%r9,1),%ebx
  mov    %r8d,%r9d
  mov    %r11d,%eax
  mov    %ebx,0x74(%rsp)
  imul   %esi,%eax
  mov    %r11d,0xb0(%rsp)
  mov    %eax,%ebx
  add    %r8d,%ebx
  mov    %r12d,%r8d
  mov    %edi,%r12d
  sub    %edi,%r8d
  mov    %ebx,0x70(%rsp)
  mov    (%rsp),%ebx
  mov    %r8d,0x104(%rsp)
  mov    0x24(%rsp),%r8d
  sub    %r8d,%ebx
  lea    -0x1(%rbx),%eax
  mov    %ebx,%edi
  imul   %r14d,%eax
  mov    %eax,0x3c(%rsp)
  mov    %r13d,%eax
  mov    0x3c(%rsp),%ebx
  add    %r8d,%eax
  mov    %edi,%r8d
  mov    %r14d,%edi
  add    %eax,%ebx
  mov    %r14d,%eax
  imul   %r8d,%eax
  mov    %ebx,0x6c(%rsp)
  mov    %eax,%r14d
  add    %eax,%ecx
  mov    %eax,0xb4(%rsp)
  mov    (%rsp),%eax
  mov    %ecx,0x4c(%rsp)
  add    %r15d,%ecx
  mov    %edi,%r15d
  sub    $0x1,%eax
  mov    %ecx,0x68(%rsp)
  mov    %eax,%ebx
  imul   %edi,%ebx
  lea    -0x1(%rbx),%edi
  mov    %ebx,%ecx
  mov    %edi,0x118(%rsp)
  mov    %ebp,%edi
  sub    0x24(%rsp),%edi
  mov    %r12d,%ebp
  lea    -0x1(%rdi),%eax
  imul   %r12d,%eax
  mov    %eax,0x28(%rsp)
  mov    %eax,%r12d
  add    0x88(%rsp),%r12d
  mov    %ebp,%eax
  mov    %r12d,0x64(%rsp)
  mov    %edi,%r12d
  mov    %ebp,%edi
  mov    0xfc(%rsp),%ebp
  imul   %r12d,%edi
  mov    %edi,0x38(%rsp)
  add    0x48(%rsp),%edi
  sub    %eax,%ebp
  mov    %ebp,0x100(%rsp)
  mov    0x3c(%rsp),%ebp
  mov    %edi,0x60(%rsp)
  mov    %eax,%edi
  lea    (%rdx,%r13,1),%eax
  mov    %r9d,%r13d
  add    %eax,%ebp
  mov    %r14d,%eax
  mov    %ebp,0x5c(%rsp)
  mov    %r14d,%ebp
  mov    0x2c(%rsp),%r14d
  add    %r13d,%ebp
  add    %r14d,%eax
  mov    %ebp,0x9c(%rsp)
  add    %r9d,%eax
  mov    0x3c(%rsp),%r9d
  mov    %eax,0x58(%rsp)
  mov    %esi,%eax
  mov    0x24(%rsp),%esi
  imul   %r15d,%eax
  add    %esi,%r9d
  mov    %r9d,0x90(%rsp)
  add    0x28(%rsp),%r9d
  lea    -0x1(%rax),%ebx
  mov    %r9d,0x54(%rsp)
  mov    0x38(%rsp),%r9d
  mov    %ebx,0x114(%rsp)
  mov    0x4c(%rsp),%ebx
  add    %r9d,%ebp
  add    %r9d,%ebx
  mov    %ebx,0x80(%rsp)
  lea    0x1(%rcx),%ebx
  mov    %r11d,%ecx
  add    %r13d,%r11d
  mov    %ebx,0x12c(%rsp)
  lea    (%rdx,%r10,1),%ebx
  add    0x3c(%rsp),%edx
  movslq %esi,%r13
  mov    %ebx,0x8c(%rsp)
  add    0x28(%rsp),%ebx
  mov    %r11d,0x94(%rsp)
  add    %r9d,%r11d
  mov    %ebx,0x50(%rsp)
  lea    0x1(%rax),%ebx
  mov    %r11d,0x40(%rsp)
  mov    %r15d,%r11d
  not    %r15d
  mov    %edx,0x98(%rsp)
  add    0x28(%rsp),%edx
  mov    %ebx,0x124(%rsp)
  movslq %r11d,%rbx
  mov    %edx,0x84(%rsp)
  mov    %rbx,%r11
  lea    0x0(%r13,%r13,1),%rdx
  mov    %ebp,0x44(%rsp)
  movslq 0xf8(%rsp),%rax
  sub    %r13,%r11
  mov    %r15d,0x128(%rsp)
  mov    %rbx,%r15
  mov    (%rsp),%esi
  mov    %rax,%rbp
  neg    %r15d
  sub    %r13,%rax
  mov    %r13,0x8(%rsp)
  mov    %rax,0xa8(%rsp)
  mov    %r15d,%eax
  sub    %rdx,%rbp
  lea    0x0(,%rbx,4),%r13
  imul   %esi,%eax
  mov    %r14d,0xb8(%rsp)
  mov    %rbx,%r14
  mov    %r11,0xa0(%rsp)
  sub    %rdx,%r14
  mov    %ecx,0xe0(%rsp)
  cltq
  mov    %r9d,0xbc(%rsp)
  shl    $0x2,%rax
  mov    %r13,(%rsp)
  mov    %rax,0x130(%rsp)
  mov    %esi,%eax
  mov    0x10(%rsp),%rsi
  imul   %r10d,%eax
  mov    %rbx,0x138(%rsp)
  mov    %r14,%rbx
  mov    %r8d,%r14d
  cltq
  lea    (%rsi,%rax,4),%rax
  mov    %rax,0xc0(%rsp)
  movslq %edi,%rax
  lea    0x0(,%rax,4),%r15
  nopw   0x0(%rax,%rax,1)
L160:
  mov    0x24(%rsp),%eax
  mov    0x18(%rsp),%r10d
  mov    %eax,%r11d
  sub    $0x1,%eax
  mov    %eax,0x24(%rsp)
  cmp    %r11d,%r10d
  jle    L61
  cmp    %r14d,%r11d
  jge    L86
  movslq 0x1c(%rsp),%rcx
  movslq 0x20(%rsp),%rax
  mov    %r11d,%edi
  mov    0x10(%rsp),%rsi
  movslq 0x28(%rsp),%rdx
  add    %rcx,%rax
  add    0x8(%rsp),%rax
  movslq 0xbc(%rsp),%r9
  lea    (%rsi,%rax,4),%r8
  movslq 0xb8(%rsp),%rsi
  mov    (%rsp),%r13
  sub    %rcx,%rdx
  sub    %rcx,%r9
  sub    %rcx,%rsi
  nopl   (%rax)
L184:
  mov    %r8,%rax
  mov    %r11d,%ecx
  xchg   %ax,%ax
L89:
  movss  (%rax),%xmm0
  add    $0x1,%ecx
  movss  %xmm0,(%rax,%rsi,4)
  movss  (%rax,%rdx,4),%xmm0
  movss  %xmm0,(%rax,%r9,4)
  add    %r13,%rax
  cmp    %r14d,%ecx
  jne    L89
  add    $0x1,%edi
  add    $0x4,%r8
  cmp    %r10d,%edi
  jne    L184
  mov    %r13,(%rsp)
L125:
  cmp    %r12d,%r11d
  jge    L29
  movslq 0x20(%rsp),%rax
  mov    0x24(%rsp),%esi
  mov    %r11d,%edi
  mov    (%rsp),%r13
  mov    0x138(%rsp),%r10
  add    %rax,%rsi
  add    0x8(%rsp),%rax
  mov    %rax,%r8
  mov    0xc0(%rsp),%rax
  lea    0x4(%rax),%r9
  nopl   0x0(%rax,%rax,1)
L154:
  mov    %rsi,%rcx
  lea    (%r9,%rsi,4),%rax
  mov    %r11d,%edx
  sub    %r8,%rcx
  nopl   (%rax)
L97:
  movss  (%rax),%xmm0
  add    $0x1,%edx
  movss  %xmm0,(%rax,%rcx,4)
  movss  (%rax,%rbp,4),%xmm0
  movss  %xmm0,(%rax,%rbx,4)
  add    %r15,%rax
  cmp    %r12d,%edx
  jne    L97
  add    $0x1,%edi
  add    %r10,%rsi
  add    %r10,%r8
  cmp    %r14d,%edi
  jl     L154
  mov    %r13,(%rsp)
L29:
  cmp    %r11d,0x18(%rsp)
  jle    L131
L86:
  cmp    %r12d,%r11d
  jge    L23
  mov    0x8(%rsp),%rdi
  movslq 0x1c(%rsp),%rax
  mov    %r11d,%r10d
  mov    %r14d,0xe4(%rsp)
  movslq 0x20(%rsp),%rsi
  mov    0x10(%rsp),%rcx
  mov    %rbp,0xe8(%rsp)
  mov    %rax,0x30(%rsp)
  add    %rdi,%rax
  movslq 0xe0(%rsp),%r9
  add    %rsi,%rax
  mov    %rsi,0xc8(%rsp)
  add    %rdi,%rsi
  mov    0x18(%rsp),%r14d
  mov    %rsi,%r8
  movslq 0xb4(%rsp),%rsi
  lea    (%rcx,%rax,4),%r13
  movslq 0x3c(%rsp),%rax
  mov    %r9,%rcx
  mov    %rbx,0xf0(%rsp)
  mov    %rsi,0xd8(%rsp)
  add    %rdi,%rcx
  mov    %rsi,%r9
  mov    %rax,0xd0(%rsp)
  add    %rdi,%rax
  add    %rdi,%r9
  mov    %rcx,%rbp
  mov    %rax,%rbx
  nopw   0x0(%rax,%rax,1)
L37:
  mov    %rbp,%rdi
  mov    %rbx,%rsi
  mov    %r9,%rcx
  mov    %r13,%rax
  mov    %r11d,%edx
  sub    %r8,%rdi
  sub    %r8,%rsi
  sub    %r8,%rcx
  nopl   0x0(%rax,%rax,1)
L96:
  movss  (%rax),%xmm0
  add    $0x1,%edx
  movss  %xmm0,(%rax,%rdi,4)
  movss  (%rax,%rsi,4),%xmm0
  movss  %xmm0,(%rax,%rcx,4)
  add    %r15,%rax
  cmp    %r12d,%edx
  jne    L96
  add    $0x1,%r10d
  add    $0x4,%r13
  add    $0x1,%rbp
  add    $0x1,%r8
  add    $0x1,%rbx
  add    $0x1,%r9
  cmp    %r14d,%r10d
  jl     L37
  mov    0xe4(%rsp),%r14d
  mov    0xe8(%rsp),%rbp
  mov    0xf0(%rsp),%rbx
L148:
  movslq 0x28(%rsp),%rdx
  mov    0xc8(%rsp),%rax
  mov    0x8(%rsp),%r8
  mov    0x10(%rsp),%r10
  add    %rdx,%rax
  movslq 0x38(%rsp),%r9
  add    %r8,%rax
  lea    (%r10,%rax,4),%rdi
  movslq 0xb0(%rsp),%rax
  mov    %r9,%r13
  add    %r9,%rax
  add    %r8,%rax
  lea    (%r10,%rax,4),%rsi
  mov    0xd0(%rsp),%rax
  add    %rdx,%rax
  add    %r8,%rax
  lea    (%r10,%rax,4),%rcx
  mov    0xd8(%rsp),%rax
  add    %r9,%rax
  mov    %r11d,%r9d
  add    %r8,%rax
  movslq 0x2c(%rsp),%r8
  lea    (%r10,%rax,4),%rax
  mov    0x30(%rsp),%r10
  sub    %r13,%r8
  mov    (%rsp),%r13
  sub    %rdx,%r10
  mov    0x18(%rsp),%edx
  nopl   (%rax)
L26:
  movss  (%rdi,%r10,4),%xmm0
  add    $0x1,%r9d
  add    $0x4,%rdi
  movss  %xmm0,(%rsi,%r8,4)
  movss  -0x4(%rdi),%xmm0
  add    $0x4,%rsi
  movss  %xmm0,-0x4(%rsi)
  movss  (%rcx,%r10,4),%xmm0
  add    $0x4,%rcx
  movss  %xmm0,(%rax,%r8,4)
  movss  -0x4(%rcx),%xmm0
  add    $0x4,%rax
  movss  %xmm0,-0x4(%rax)
  cmp    %edx,%r9d
  jl     L26
  mov    %r13,(%rsp)
L131:
  cmp    %r14d,%r11d
  jge    L130
  movslq 0x1c(%rsp),%rdx
  movslq 0x38(%rsp),%r13
  mov    %r11d,%ecx
  movslq 0x20(%rsp),%rax
  add    0x8(%rsp),%rax
  mov    %rdx,%r10
  mov    0x10(%rsp),%rdi
  movslq 0x2c(%rsp),%r8
  add    %rdx,%rax
  movslq 0x28(%rsp),%rdx
  mov    %r13,0xc8(%rsp)
  mov    %r13,%rsi
  mov    0xa0(%rsp),%r13
  sub    0x8(%rsp),%r13
  mov    %r8,%r9
  lea    (%rdi,%rax,4),%rax
  add    %r13,%r8
  mov    %rdx,%rdi
  mov    %r13,0x30(%rsp)
  sub    %r10,%r9
  mov    %r10,%r13
  sub    %r10,%rdi
  sub    %r10,%rsi
  sub    %r10,%r8
  mov    0xa8(%rsp),%r10
  sub    0x8(%rsp),%r10
  add    %rdx,%r10
  mov    0x30(%rsp),%rdx
  add    0xc8(%rsp),%rdx
  sub    %r13,%r10
  sub    %r13,%rdx
  mov    (%rsp),%r13
  xchg   %ax,%ax
L32:
  movss  (%rax),%xmm0
  add    $0x1,%ecx
  movss  %xmm0,-0x4(%rax,%r9,4)
  movss  (%rax,%rdi,4),%xmm0
  movss  %xmm0,-0x4(%rax,%rsi,4)
  movss  (%rax,%rbp,4),%xmm0
  movss  %xmm0,(%rax,%r8,4)
  movss  (%rax,%r10,4),%xmm0
  movss  %xmm0,(%rax,%rdx,4)
  add    %r13,%rax
  cmp    %r14d,%ecx
  jne    L32
  mov    %r13,(%rsp)
L130:
  cmp    %r12d,%r11d
  jge    L140
  movslq 0x88(%rsp),%rdx
  movslq 0x1c(%rsp),%rax
  mov    0x10(%rsp),%rsi
  movslq 0x48(%rsp),%r10
  add    %rdx,%rax
  mov    %rdx,%r13
  movslq 0x8c(%rsp),%r9
  movslq 0x94(%rsp),%r8
  movslq 0x90(%rsp),%rdi
  movslq 0x98(%rsp),%rcx
  lea    (%rsi,%rax,4),%rax
  sub    %r13,%r10
  movslq 0x4c(%rsp),%rsi
  movslq 0x9c(%rsp),%rdx
  sub    %r13,%r9
  sub    %r13,%r8
  sub    %r13,%rdi
  sub    %r13,%rcx
  sub    %r13,%rsi
  sub    %r13,%rdx
  mov    (%rsp),%r13
  nopl   0x0(%rax,%rax,1)
L70:
  movss  (%rax),%xmm0
  add    $0x1,%r11d
  movss  %xmm0,(%rax,%r10,4)
  movss  (%rax,%r9,4),%xmm0
  movss  %xmm0,(%rax,%r8,4)
  movss  (%rax,%rdi,4),%xmm0
  movss  %xmm0,(%rax,%rsi,4)
  movss  (%rax,%rcx,4),%xmm0
  movss  %xmm0,(%rax,%rdx,4)
  add    %r15,%rax
  cmp    %r12d,%r11d
  jne    L70
  mov    %r13,(%rsp)
L140:
  mov    0x10(%rsp),%rdi
  movslq 0x7c(%rsp),%rax
  add    $0x1,%r12d
  movss  (%rdi,%rax,4),%xmm0
  mov    %rax,%rsi
  movslq 0x78(%rsp),%rax
  movss  %xmm0,(%rdi,%rax,4)
  mov    %rax,%rcx
  movslq 0x74(%rsp),%rax
  movss  (%rdi,%rax,4),%xmm0
  mov    %rax,%rdx
  movslq 0x70(%rsp),%rax
  movss  %xmm0,(%rdi,%rax,4)
  mov    %rax,%r11
  movslq 0x6c(%rsp),%rax
  movss  (%rdi,%rax,4),%xmm0
  mov    %rax,%r10
  movslq 0x68(%rsp),%rax
  movss  %xmm0,(%rdi,%rax,4)
  mov    %rax,%r8
  movslq 0x64(%rsp),%rax
  movss  (%rdi,%rax,4),%xmm0
  mov    %rax,%r9
  movslq 0x60(%rsp),%rax
  movss  %xmm0,(%rdi,%rax,4)
  mov    %rax,%r13
  movslq 0x5c(%rsp),%rax
  movss  (%rdi,%rax,4),%xmm0
  movslq 0x58(%rsp),%rax
  movss  %xmm0,(%rdi,%rax,4)
  movslq 0x54(%rsp),%rax
  movss  (%rdi,%rax,4),%xmm0
  movslq 0x80(%rsp),%rax
  movss  %xmm0,(%rdi,%rax,4)
  movslq 0x50(%rsp),%rax
  movss  (%rdi,%rax,4),%xmm0
  movslq 0x40(%rsp),%rax
  movss  %xmm0,(%rdi,%rax,4)
  movslq 0x84(%rsp),%rax
  movss  (%rdi,%rax,4),%xmm0
  movslq 0x44(%rsp),%rax
  movss  %xmm0,(%rdi,%rax,4)
  mov    0x11c(%rsp),%edi
  addl   $0x1,0x18(%rsp)
  add    %edi,%esi
  add    %edi,%ecx
  mov    0x120(%rsp),%edi
  mov    %esi,0x7c(%rsp)
  mov    0x114(%rsp),%esi
  add    %edi,%edx
  add    %edi,%r11d
  mov    0x104(%rsp),%edi
  add    %esi,0x54(%rsp)
  add    %esi,0x80(%rsp)
  mov    0x124(%rsp),%esi
  add    %edi,%r10d
  add    %edi,%r8d
  mov    0x118(%rsp),%edi
  mov    %ecx,0x78(%rsp)
  add    %esi,0x84(%rsp)
  add    %edi,%r9d
  add    %edi,%r13d
  mov    %edx,0x74(%rsp)
  mov    0x100(%rsp),%edi
  mov    %r11d,0x70(%rsp)
  add    %edi,0x5c(%rsp)
  add    %edi,0x58(%rsp)
  mov    0x12c(%rsp),%edi
  mov    %r10d,0x6c(%rsp)
  add    %edi,0x50(%rsp)
  add    %edi,0x40(%rsp)
  mov    %r8d,0x68(%rsp)
  mov    %r9d,0x64(%rsp)
  mov    %r13d,0x60(%rsp)
  add    %esi,0x44(%rsp)
  mov    0x10c(%rsp),%eax
  mov    0x128(%rsp),%edi
  mov    0x108(%rsp),%esi
  add    %edi,0x88(%rsp)
  add    %edi,0x48(%rsp)
  mov    0xf8(%rsp),%edi
  add    %esi,0x8c(%rsp)
  add    %esi,0x94(%rsp)
  mov    0xfc(%rsp),%esi
  add    %edi,0x90(%rsp)
  add    %edi,0x4c(%rsp)
  add    %esi,0x98(%rsp)
  add    %esi,0x9c(%rsp)
  mov    0x110(%rsp),%esi
  sub    %eax,0x1c(%rsp)
  sub    %eax,0x2c(%rsp)
  sub    %esi,0x20(%rsp)
  sub    %esi,0xb0(%rsp)
  add    %eax,0x28(%rsp)
  mov    0x130(%rsp),%rdi
  add    %eax,0x38(%rsp)
  add    %esi,0x3c(%rsp)
  add    $0x1,%r14d
  add    $0x2,%rbp
  add    $0x2,%rbx
  sub    %eax,0xb8(%rsp)
  add    %eax,0xbc(%rsp)
  mov    0x24(%rsp),%eax
  add    %esi,0xb4(%rsp)
  addq   $0x1,0xa0(%rsp)
  subq   $0x1,0x8(%rsp)
  addq   $0x1,0xa8(%rsp)
  add    %rdi,0xc0(%rsp)
  sub    %esi,0xe0(%rsp)
  test   %eax,%eax
  jne    L160
L9:
  add    $0x148,%rsp
  mov    $0x2,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L61:
  cmp    %r14d,%r11d
  jl     L125
  jmp    L130
L23:
  movslq 0x20(%rsp),%rax
  mov    %rax,0xc8(%rsp)
  movslq 0x1c(%rsp),%rax
  mov    %rax,0x30(%rsp)
  movslq 0x3c(%rsp),%rax
  mov    %rax,0xd0(%rsp)
  movslq 0xb4(%rsp),%rax
  mov    %rax,0xd8(%rsp)
  jmp    L148
```

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;
}
```