user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<bioD5_3d>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %rdi,%rbx
  mov    %rsi,0x10(%rsp)
  mov    %rdx,0x18(%rsp)
  mov    %rcx,0x20(%rsp)
  mov    %r8,%r14
  mov    %r9,0x28(%rsp)
  mov    0x88(%rsp),%ebp
  mov    0x90(%rsp),%r12d
  mov    0x98(%rsp),%r13d
  mov    0xa0(%rsp),%r15d
  cmp    $0x1,%ebp
  setg   %al
  movzbl %al,%eax
  cmp    $0x1,%r12d
  setg   %dl
  movzbl %dl,%edx
  add    %edx,%eax
  cmp    $0x1,%r13d
  setg   %dl
  movzbl %dl,%edx
  add    %edx,%eax
  test   %r15d,%r15d
  jne    L16
  movss  D4(%rip),%xmm4
  movss  %xmm4,0xc(%rsp)
  movss  D86(%rip),%xmm6
  movss  %xmm6,0x8(%rsp)
L56:
  movss  D86(%rip),%xmm1
  movss  %xmm1,0x4(%rsp)
  cmp    $0x2,%eax
  je     L60
  movss  D52(%rip),%xmm2
  movss  %xmm2,0x4(%rsp)
  cmp    $0x1,%eax
  jne    L60
  movss  D4(%rip),%xmm3
  movss  %xmm3,0x4(%rsp)
L60:
  cmp    $0x1,%ebp
  jle    L58
  movss  0x4(%rsp),%xmm3
  movaps %xmm3,%xmm2
  addss  %xmm3,%xmm2
  movss  %xmm2,0x4(%rsp)
L58:
  cmp    $0x1,%r12d
  jle    L18
  movss  0x4(%rsp),%xmm5
  movaps %xmm5,%xmm4
  addss  %xmm5,%xmm4
  movss  %xmm4,0x4(%rsp)
L18:
  cmp    $0x1,%r13d
  jle    L1
  movss  0x4(%rsp),%xmm7
  movaps %xmm7,%xmm6
  addss  %xmm7,%xmm6
  movss  %xmm6,0x4(%rsp)
L1:
  movss  D52(%rip),%xmm0
  test   %eax,%eax
  jne    L11
  movss  D86(%rip),%xmm0
  movss  %xmm0,0x4(%rsp)
  movss  %xmm0,0xc(%rsp)
  movss  %xmm0,0x8(%rsp)
L11:
  cvtss2sd %xmm0,%xmm0
  mov    $0x1,%r8d
  mov    %r13d,%ecx
  mov    %r12d,%edx
  mov    %ebp,%esi
  mov    %rbx,%rdi
  mov    $0x1,%eax
  call   <bio_3d_premult@plt>
  pxor   %xmm0,%xmm0
  cvtss2sd 0x8(%rsp),%xmm0
  mov    $0x0,%r8d
  mov    %r13d,%ecx
  mov    %r12d,%edx
  mov    %ebp,%esi
  mov    %rbx,%rdi
  mov    $0x1,%eax
  call   <bio_3d_premult@plt>
  test   %r15d,%r15d
  je     L89
  pxor   %xmm0,%xmm0
  cvtss2sd 0xc(%rsp),%xmm0
  push   %r13
  push   %r12
  push   %rbp
  push   0x98(%rsp)
  push   0x98(%rsp)
  push   0x98(%rsp)
  pxor   %xmm1,%xmm1
  cvtss2sd 0x34(%rsp),%xmm1
  mov    0x58(%rsp),%r9
  mov    %r14,%r8
  mov    0x50(%rsp),%rcx
  mov    0x48(%rsp),%rdx
  mov    0x40(%rsp),%rsi
  mov    %rbx,%rdi
  mov    $0x2,%eax
  call   <bioD1__3d@plt>
  add    $0x30,%rsp
L6:
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L16:
  movss  D31(%rip),%xmm4
  movss  %xmm4,0xc(%rsp)
  movss  D38(%rip),%xmm6
  movss  %xmm6,0x8(%rsp)
  jmp    L56
L89:
  pxor   %xmm0,%xmm0
  cvtss2sd 0xc(%rsp),%xmm0
  pxor   %xmm1,%xmm1
  cvtss2sd 0x4(%rsp),%xmm1
  mov    %r13d,%r8d
  mov    %r12d,%ecx
  mov    %ebp,%edx
  mov    0x80(%rsp),%rsi
  mov    %rbx,%rdi
  mov    $0x2,%eax
  call   <bioD1_3dskip@plt>
  jmp    L6
```

tool_calls: name: retrieve_data
arguments: data_tag: D4
datatype: byte[4]
name: retrieve_data
arguments: data_tag: D86
datatype: f32
name: retrieve_data
arguments: data_tag: D52
datatype: byte[4]
name: retrieve_data
arguments: data_tag: D31
datatype: byte[4]
name: retrieve_data
arguments: data_tag: D38
datatype: byte[4]

tool: {"D4": [0x00,0x00,0x00,0xc0]}

tool: D86: 1

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

tool: {"D31": [0x00,0x00,0x80,0x40]}

tool: {"D38": [0x00,0x00,0x00,0xbe]}

assistant: ```c
void bioD5_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.50;
  float x1 = 0.25;
  float X0, X1, X2;
  int pairity;
  float Norm;
  int dim;
  dim = (xlength > 1) + (ylength > 1) + (zlength > 1);
  if (0 || ifnotAllskip) {
    X0 = x0;
    X1 = x0 * x1;
    X2 = 1.0 / x1;
  } else {
    X0 = x0;
    X1 = 1.0;
    X2 = 1.0 / x0;
  }
  if (dim == 3)
    Norm = x0;
  if (dim == 2)
    Norm = 1.0;
  if (dim == 1)
    Norm = 1.0 / x0;
  if (xlength > 1)
    Norm /= (0.5);
  if (ylength > 1)
    Norm /= (0.5);
  if (zlength > 1)
    Norm /= (0.5);
  if (dim == 0) {
    Norm = 1.0;
    X0 = 1.0;
    X1 = 1.0;
    X2 = 1.0;
  }
  pairity = 1;
  bio_3d_premult(invector, xlength, ylength, zlength, X0, pairity);
  pairity = 0;
  bio_3d_premult(invector, xlength, ylength, zlength, X1, pairity);
  if (ifnotAllskip)
    bioD1__3d(invector, HHH, HHL, HLH, HLL, LHH, LHL, LLH, LLL, xlength, ylength, zlength, X2, Norm);
  else {
    bioD1_3dskip(invector, LLL, xlength, ylength, zlength, X2, Norm);
  }
}
```