user: Converte this assembly snippet into its equivalent C code:

```asm
<_p3dZeroPadding3D_uchar2float>:
  endbr64
  lea    (%r9,%r9,1),%eax
  push   %r15
  mov    %rsi,%r10
  xor    %esi,%esi
  push   %r14
  lea    (%rax,%rdx,1),%r15d
  mov    %ecx,%r14d
  push   %r13
  push   %r12
  mov    %r9d,%r12d
  push   %rbp
  mov    %rdi,%rbp
  mov    %r10,%rdi
  push   %rbx
  mov    %edx,%ebx
  lea    (%rax,%rcx,1),%edx
  mov    %edx,%r13d
  lea    (%rax,%r8,1),%edx
  imul   %r15d,%r13d
  sub    $0xc8,%rsp
  mov    %ecx,0x1c(%rsp)
  imul   %r13d,%edx
  mov    %r15d,0x18(%rsp)
  mov    %r13d,0xbc(%rsp)
  mov    %r8d,0xa8(%rsp)
  movslq %edx,%rdx
  shl    $0x2,%rdx
  call   <memset@plt>
  mov    0xa8(%rsp),%edx
  test   %edx,%edx
  jle    L213
  test   %r14d,%r14d
  jle    L213
  test   %ebx,%ebx
  jle    L213
  mov    %ebx,%edi
  mov    %rax,%r10
  movslq %r15d,%rax
  movslq %r12d,%rdx
  and    $0xfffffff0,%edi
  imul   %r12d,%r15d
  shl    $0x2,%rax
  mov    %r13d,%r11d
  lea    (%rdi,%r12,1),%esi
  lea    0x2(%rdi),%ecx
  mov    %rax,0x8(%rsp)
  xor    %r9d,%r9d
  mov    %esi,0x30(%rsp)
  lea    0x1(%rdi),%esi
  pxor   %xmm5,%xmm5
  pxor   %xmm4,%xmm4
  mov    %esi,0x34(%rsp)
  add    %r12d,%esi
  imul   %ebx,%r14d
  movslq %r15d,%rax
  mov    %ecx,0x38(%rsp)
  add    %r12d,%ecx
  imul   %r12d,%r11d
  add    %rdx,%rax
  mov    %esi,0x3c(%rsp)
  lea    0x3(%rdi),%esi
  mov    %ecx,0x44(%rsp)
  lea    0x4(%rdi),%ecx
  mov    %esi,0x40(%rsp)
  add    %r12d,%esi
  mov    %ecx,0x48(%rsp)
  add    %r12d,%ecx
  mov    %esi,0x4c(%rsp)
  lea    0x5(%rdi),%esi
  mov    %ecx,0x54(%rsp)
  lea    0x6(%rdi),%ecx
  mov    %esi,0x50(%rsp)
  add    %r12d,%esi
  mov    %ecx,0x58(%rsp)
  add    %r12d,%ecx
  mov    %esi,0x5c(%rsp)
  lea    0x7(%rdi),%esi
  mov    %ecx,0x64(%rsp)
  lea    0x8(%rdi),%ecx
  mov    %r14d,0xb8(%rsp)
  movslq %ebx,%r14
  mov    %esi,0x60(%rsp)
  add    %r12d,%esi
  mov    %ecx,0x68(%rsp)
  add    %r12d,%ecx
  mov    %rax,0xb0(%rsp)
  lea    0x0(,%r14,4),%rax
  mov    %esi,0x6c(%rsp)
  lea    0x9(%rdi),%esi
  mov    %ecx,0x78(%rsp)
  lea    0xa(%rdi),%ecx
  mov    %rax,0x10(%rsp)
  mov    %ebx,%eax
  mov    %esi,0x74(%rsp)
  add    %r12d,%esi
  shr    $0x4,%eax
  mov    %ecx,0x7c(%rsp)
  add    %r12d,%ecx
  sub    $0x1,%eax
  mov    %esi,0x80(%rsp)
  lea    0xb(%rdi),%esi
  add    $0x1,%rax
  mov    %ecx,0x88(%rsp)
  lea    0xc(%rdi),%ecx
  shl    $0x4,%rax
  mov    %esi,0x84(%rsp)
  add    %r12d,%esi
  mov    %ecx,0x8c(%rsp)
  add    %r12d,%ecx
  mov    %esi,0x90(%rsp)
  lea    0xd(%rdi),%esi
  mov    %ecx,0x98(%rsp)
  lea    0xe(%rdi),%ecx
  mov    %edi,0x2c(%rsp)
  lea    -0x1(%rbx),%edi
  mov    %esi,0x94(%rsp)
  add    %r12d,%esi
  add    %ecx,%r12d
  mov    %r15d,0xac(%rsp)
  mov    %esi,0xa0(%rsp)
  mov    %ecx,0x9c(%rsp)
  mov    %r12d,0xa4(%rsp)
  movl   $0x0,0x70(%rsp)
  mov    %edi,0x28(%rsp)
  mov    %rax,0x20(%rsp)
  nopl   0x0(%rax)
L11:
  movslq %r11d,%rax
  movslq %r9d,%rcx
  add    0xb0(%rsp),%rax
  xor    %esi,%esi
  mov    0xac(%rsp),%edi
  add    %rbp,%rcx
  xor    %r13d,%r13d
  mov    %ebx,%r15d
  lea    (%r10,%rax,4),%r8
  nopl   0x0(%rax)
L3:
  mov    0x10(%rsp),%rax
  add    %r8,%rax
  cmp    %rax,%rcx
  lea    (%rcx,%r14,1),%rax
  setae  %dl
  cmp    %rax,%r8
  setae  %al
  or     %dl,%al
  je     L189
  mov    0x20(%rsp),%rax
  cmpl   $0xe,0x28(%rsp)
  mov    %rcx,%rdx
  lea    (%rax,%rcx,1),%r12
  mov    %r8,%rax
  jbe    L189
  nopw   0x0(%rax,%rax,1)
L178:
  movdqu (%rdx),%xmm0
  movdqa %xmm4,%xmm3
  add    $0x10,%rdx
  add    $0x40,%rax
  movdqa %xmm0,%xmm1
  punpckhbw %xmm5,%xmm0
  punpcklbw %xmm5,%xmm1
  pcmpgtw %xmm1,%xmm3
  movdqa %xmm1,%xmm2
  punpcklwd %xmm3,%xmm2
  punpckhwd %xmm3,%xmm1
  cvtdq2ps %xmm2,%xmm2
  movups %xmm2,-0x40(%rax)
  movdqa %xmm4,%xmm2
  cvtdq2ps %xmm1,%xmm1
  pcmpgtw %xmm0,%xmm2
  movups %xmm1,-0x30(%rax)
  movdqa %xmm0,%xmm1
  punpcklwd %xmm2,%xmm1
  punpckhwd %xmm2,%xmm0
  cvtdq2ps %xmm1,%xmm1
  cvtdq2ps %xmm0,%xmm0
  movups %xmm1,-0x20(%rax)
  movups %xmm0,-0x10(%rax)
  cmp    %r12,%rdx
  jne    L178
  mov    0x2c(%rsp),%edx
  cmp    %ebx,%edx
  je     L52
  add    %esi,%edx
  mov    0x30(%rsp),%eax
  pxor   %xmm0,%xmm0
  add    %r9d,%edx
  movslq %edx,%rdx
  add    %edi,%eax
  movzbl 0x0(%rbp,%rdx,1),%edx
  add    %r11d,%eax
  cltq
  cvtsi2ss %edx,%xmm0
  mov    0x34(%rsp),%edx
  movss  %xmm0,(%r10,%rax,4)
  cmp    %edx,%ebx
  jle    L52
  add    %esi,%edx
  mov    0x3c(%rsp),%eax
  pxor   %xmm0,%xmm0
  add    %r9d,%edx
  movslq %edx,%rdx
  add    %edi,%eax
  movzbl 0x0(%rbp,%rdx,1),%edx
  add    %r11d,%eax
  cltq
  cvtsi2ss %edx,%xmm0
  mov    0x38(%rsp),%edx
  movss  %xmm0,(%r10,%rax,4)
  cmp    %edx,%ebx
  jle    L52
  add    %esi,%edx
  mov    0x44(%rsp),%eax
  pxor   %xmm0,%xmm0
  add    %r9d,%edx
  movslq %edx,%rdx
  add    %edi,%eax
  movzbl 0x0(%rbp,%rdx,1),%edx
  add    %r11d,%eax
  cltq
  cvtsi2ss %edx,%xmm0
  mov    0x40(%rsp),%edx
  movss  %xmm0,(%r10,%rax,4)
  cmp    %edx,%ebx
  jle    L52
  add    %esi,%edx
  mov    0x4c(%rsp),%eax
  pxor   %xmm0,%xmm0
  add    %r9d,%edx
  movslq %edx,%rdx
  add    %edi,%eax
  movzbl 0x0(%rbp,%rdx,1),%edx
  add    %r11d,%eax
  cltq
  cvtsi2ss %edx,%xmm0
  mov    0x48(%rsp),%edx
  movss  %xmm0,(%r10,%rax,4)
  cmp    %edx,%ebx
  jle    L52
  add    %esi,%edx
  mov    0x54(%rsp),%eax
  pxor   %xmm0,%xmm0
  add    %r9d,%edx
  movslq %edx,%rdx
  add    %edi,%eax
  movzbl 0x0(%rbp,%rdx,1),%edx
  add    %r11d,%eax
  cltq
  cvtsi2ss %edx,%xmm0
  mov    0x50(%rsp),%edx
  movss  %xmm0,(%r10,%rax,4)
  cmp    %edx,%ebx
  jle    L52
  add    %esi,%edx
  mov    0x5c(%rsp),%eax
  pxor   %xmm0,%xmm0
  add    %r9d,%edx
  movslq %edx,%rdx
  add    %edi,%eax
  movzbl 0x0(%rbp,%rdx,1),%edx
  add    %r11d,%eax
  cltq
  cvtsi2ss %edx,%xmm0
  mov    0x58(%rsp),%edx
  movss  %xmm0,(%r10,%rax,4)
  cmp    %edx,%ebx
  jle    L52
  add    %esi,%edx
  mov    0x64(%rsp),%eax
  pxor   %xmm0,%xmm0
  add    %r9d,%edx
  movslq %edx,%rdx
  add    %edi,%eax
  movzbl 0x0(%rbp,%rdx,1),%edx
  add    %r11d,%eax
  cltq
  cvtsi2ss %edx,%xmm0
  mov    0x60(%rsp),%edx
  movss  %xmm0,(%r10,%rax,4)
  cmp    %edx,%ebx
  jle    L52
  add    %esi,%edx
  mov    0x6c(%rsp),%eax
  pxor   %xmm0,%xmm0
  add    %r9d,%edx
  movslq %edx,%rdx
  add    %edi,%eax
  movzbl 0x0(%rbp,%rdx,1),%edx
  add    %r11d,%eax
  cltq
  cvtsi2ss %edx,%xmm0
  mov    0x68(%rsp),%edx
  movss  %xmm0,(%r10,%rax,4)
  cmp    %edx,%ebx
  jle    L52
  add    %esi,%edx
  mov    0x78(%rsp),%eax
  pxor   %xmm0,%xmm0
  add    %r9d,%edx
  movslq %edx,%rdx
  add    %edi,%eax
  movzbl 0x0(%rbp,%rdx,1),%edx
  add    %r11d,%eax
  cltq
  cvtsi2ss %edx,%xmm0
  mov    0x74(%rsp),%edx
  movss  %xmm0,(%r10,%rax,4)
  cmp    %edx,%ebx
  jle    L52
  add    %esi,%edx
  mov    0x80(%rsp),%eax
  pxor   %xmm0,%xmm0
  add    %r9d,%edx
  movslq %edx,%rdx
  add    %edi,%eax
  movzbl 0x0(%rbp,%rdx,1),%edx
  add    %r11d,%eax
  cltq
  cvtsi2ss %edx,%xmm0
  mov    0x7c(%rsp),%edx
  movss  %xmm0,(%r10,%rax,4)
  cmp    %edx,%ebx
  jle    L52
  add    %esi,%edx
  mov    0x88(%rsp),%eax
  pxor   %xmm0,%xmm0
  add    %r9d,%edx
  movslq %edx,%rdx
  add    %edi,%eax
  movzbl 0x0(%rbp,%rdx,1),%edx
  add    %r11d,%eax
  cltq
  cvtsi2ss %edx,%xmm0
  mov    0x84(%rsp),%edx
  movss  %xmm0,(%r10,%rax,4)
  cmp    %edx,%ebx
  jle    L52
  add    %esi,%edx
  mov    0x90(%rsp),%eax
  pxor   %xmm0,%xmm0
  add    %r9d,%edx
  movslq %edx,%rdx
  add    %edi,%eax
  movzbl 0x0(%rbp,%rdx,1),%edx
  add    %r11d,%eax
  cltq
  cvtsi2ss %edx,%xmm0
  mov    0x8c(%rsp),%edx
  movss  %xmm0,(%r10,%rax,4)
  cmp    %edx,%ebx
  jle    L52
  add    %esi,%edx
  mov    0x98(%rsp),%eax
  pxor   %xmm0,%xmm0
  add    %r9d,%edx
  movslq %edx,%rdx
  add    %edi,%eax
  movzbl 0x0(%rbp,%rdx,1),%edx
  add    %r11d,%eax
  cltq
  cvtsi2ss %edx,%xmm0
  mov    0x94(%rsp),%edx
  movss  %xmm0,(%r10,%rax,4)
  cmp    %edx,%ebx
  jle    L52
  add    %esi,%edx
  mov    0xa0(%rsp),%eax
  pxor   %xmm0,%xmm0
  add    %r9d,%edx
  movslq %edx,%rdx
  add    %edi,%eax
  movzbl 0x0(%rbp,%rdx,1),%edx
  add    %r11d,%eax
  cltq
  cvtsi2ss %edx,%xmm0
  mov    0x9c(%rsp),%edx
  movss  %xmm0,(%r10,%rax,4)
  cmp    %edx,%ebx
  jle    L52
  add    %esi,%edx
  mov    0xa4(%rsp),%eax
  pxor   %xmm0,%xmm0
  add    %r9d,%edx
  movslq %edx,%rdx
  add    %edi,%eax
  movzbl 0x0(%rbp,%rdx,1),%edx
  add    %r11d,%eax
  cltq
  cvtsi2ss %edx,%xmm0
  movss  %xmm0,(%r10,%rax,4)
  nopl   (%rax)
L52:
  add    $0x1,%r13d
  add    0x8(%rsp),%r8
  add    %r14,%rcx
  add    %ebx,%esi
  add    0x18(%rsp),%edi
  cmp    %r13d,0x1c(%rsp)
  jne    L3
  addl   $0x1,0x70(%rsp)
  add    0xbc(%rsp),%r11d
  mov    0x70(%rsp),%eax
  add    0xb8(%rsp),%r9d
  cmp    %eax,0xa8(%rsp)
  jne    L11
L213:
  add    $0xc8,%rsp
  mov    $0x2,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L189:
  xor    %eax,%eax
  nopw   0x0(%rax,%rax,1)
L158:
  movzbl (%rcx,%rax,1),%edx
  pxor   %xmm0,%xmm0
  cvtsi2ss %edx,%xmm0
  movss  %xmm0,(%r8,%rax,4)
  add    $0x1,%rax
  cmp    %r15,%rax
  jne    L158
  jmp    L52
```

assistant: ```c
int _p3dZeroPadding3D_uchar2float(unsigned char *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;
  a_dimx = dimx + size * 2;
  a_dimy = dimy + size * 2;
  a_dimz = dimz + size * 2;
  memset(out_rev, 0, a_dimx * a_dimy * a_dimz * sizeof(float));
#pragma omp parallel for private(i, j)
  for (k = 0; k < dimz; k++) {
    for (j = 0; j < dimy; j++) {
      for (i = 0; i < dimx; i++) {
        out_rev[((j + size) * (a_dimx) + (i + size) + (k + size) * (a_dimx) * (a_dimy))] = (float)(in_rev[((j) * (dimx) + (i) + (k) * (dimx) * (dimy))]);
      }
    }
  }
  return 2;
}
```