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

```asm
<bioD3_3d>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x50,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    %rdx,-0x38(%rbp)
  mov    %rcx,-0x40(%rbp)
  mov    %r8,-0x48(%rbp)
  mov    %r9,-0x50(%rbp)
  movss  D56(%rip),%xmm0
  movss  %xmm0,-0xc(%rbp)
  movss  -0xc(%rbp),%xmm0
  movss  %xmm0,-0x18(%rbp)
  movss  -0xc(%rbp),%xmm0
  movss  %xmm0,-0x14(%rbp)
  cmpl   $0x1,0x28(%rbp)
  setg   %al
  movzbl %al,%edx
  cmpl   $0x1,0x30(%rbp)
  setg   %al
  movzbl %al,%eax
  add    %eax,%edx
  cmpl   $0x1,0x38(%rbp)
  setg   %al
  movzbl %al,%eax
  add    %edx,%eax
  mov    %eax,-0x8(%rbp)
  cmpl   $0x3,-0x8(%rbp)
  jne    L47
  movss  -0xc(%rbp),%xmm0
  movss  %xmm0,-0x10(%rbp)
L47:
  cmpl   $0x2,-0x8(%rbp)
  jne    L35
  movss  D50(%rip),%xmm0
  movss  %xmm0,-0x10(%rbp)
L35:
  cmpl   $0x1,-0x8(%rbp)
  jne    L52
  movss  D50(%rip),%xmm0
  divss  -0xc(%rbp),%xmm0
  movss  %xmm0,-0x10(%rbp)
L52:
  cmpl   $0x1,0x28(%rbp)
  cmpl   $0x1,0x30(%rbp)
  cmpl   $0x1,0x38(%rbp)
  cmpl   $0x0,-0x8(%rbp)
  jne    L5
  movss  D50(%rip),%xmm0
  movss  %xmm0,-0x10(%rbp)
  movss  D50(%rip),%xmm0
  movss  %xmm0,-0x18(%rbp)
  movss  D50(%rip),%xmm0
  movss  %xmm0,-0x14(%rbp)
L5:
  movl   $0x1,-0x4(%rbp)
  pxor   %xmm2,%xmm2
  cvtss2sd -0x18(%rbp),%xmm2
  movq   %xmm2,%rdi
  mov    -0x4(%rbp),%r8d
  mov    0x38(%rbp),%ecx
  mov    0x30(%rbp),%edx
  mov    0x28(%rbp),%esi
  mov    -0x28(%rbp),%rax
  movq   %rdi,%xmm0
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <bio_3d_premult@plt>
  cmpl   $0x0,0x40(%rbp)
  je     L9
  pxor   %xmm0,%xmm0
  cvtss2sd -0x10(%rbp),%xmm0
  pxor   %xmm3,%xmm3
  cvtss2sd -0x14(%rbp),%xmm3
  movq   %xmm3,%rdi
  mov    -0x50(%rbp),%r9
  mov    -0x48(%rbp),%r10
  mov    -0x40(%rbp),%rcx
  mov    -0x38(%rbp),%rdx
  mov    -0x30(%rbp),%rsi
  mov    -0x28(%rbp),%rax
  mov    0x38(%rbp),%r8d
  push   %r8
  mov    0x30(%rbp),%r8d
  push   %r8
  mov    0x28(%rbp),%r8d
  push   %r8
  push   0x20(%rbp)
  push   0x18(%rbp)
  push   0x10(%rbp)
  movapd %xmm0,%xmm1
  movq   %rdi,%xmm0
  mov    %r10,%r8
  mov    %rax,%rdi
  mov    $0x2,%eax
  call   <bioD1__3d@plt>
  add    $0x30,%rsp
  jmp    L54
L9:
  pxor   %xmm0,%xmm0
  cvtss2sd -0x10(%rbp),%xmm0
  pxor   %xmm4,%xmm4
  cvtss2sd -0x14(%rbp),%xmm4
  movq   %xmm4,%rdi
  mov    0x38(%rbp),%r8d
  mov    0x30(%rbp),%ecx
  mov    0x28(%rbp),%edx
  mov    0x20(%rbp),%rsi
  mov    -0x28(%rbp),%rax
  movapd %xmm0,%xmm1
  movq   %rdi,%xmm0
  mov    %rax,%rdi
  mov    $0x2,%eax
  call   <bioD1_3dskip@plt>
L54:
  nop
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: tag: D56
datatype: byte[4]
name: retrieve_data
arguments: tag: D50
datatype: f32

tool: {"D56": [0x00,0x00,0x00,0xbf]}

tool: D50: 1

assistant: ```c
void bioD3_3d(invector, HHH, HHL, HLH, HLL, LHH, LHL, LLH, LLL, xlength, ylength, zlength, ifnotAllskip) float *invector;
float *HLL, *HLH, *HHL, *HHH;
float *LLL, *LLH, *LHL, *LHH;
int xlength, ylength, zlength;
int ifnotAllskip;
{
  float x0 = -0.5;
  float X0 = x0;
  float X1 = x0;
  int pairity;
  float Norm;
  int dim;
  dim = (xlength > 1) + (ylength > 1) + (zlength > 1);
  ;
  if (dim == 3)
    Norm = x0;
  if (dim == 2)
    Norm = 1.0;
  if (dim == 1)
    Norm = 1.0 / x0;
  if (xlength > 1)
    Norm /= (1.0);
  if (ylength > 1)
    Norm /= (1.0);
  if (zlength > 1)
    Norm /= (1.0);
  if (dim == 0) {
    Norm = 1.0;
    X0 = 1.0, X1 = 1.0;
  }
  pairity = 1;
  bio_3d_premult(invector, xlength, ylength, zlength, X0, pairity);
  if (ifnotAllskip)
    bioD1__3d(invector, HHH, HHL, HLH, HLL, LHH, LHL, LLH, LLL, xlength, ylength, zlength, X1, Norm);
  else
    bioD1_3dskip(invector, LLL, xlength, ylength, zlength, X1, Norm);
}
```