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

```asm
<fprop_compute>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    %rsi,-0x20(%rbp)
  mov    %rdx,-0x28(%rbp)
  mov    %rcx,-0x30(%rbp)
  mov    %r8d,-0x34(%rbp)
  mov    -0x28(%rbp),%rax
  mov    -0x18(%rbp),%rdx
  mov    %rdx,(%rax)
  movl   $0x0,-0x10(%rbp)
  jmp    L37
L51:
  movl   $0x0,-0xc(%rbp)
  jmp    L14
L19:
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0x4(%rbp)
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0xc(%rbp),%eax
  cltq
  shl    $0x3,%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x30(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%eax
  cltq
  shl    $0x2,%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  movss  %xmm0,-0x4(%rbp)
  movl   $0x0,-0x8(%rbp)
  jmp    L21
L46:
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x8(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rdx,%rax
  movss  (%rax),%xmm1
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0xc(%rbp),%eax
  cltq
  shl    $0x3,%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x8(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  mulss  %xmm1,%xmm0
  movss  -0x4(%rbp),%xmm1
  addss  %xmm1,%xmm0
  movss  %xmm0,-0x4(%rbp)
  addl   $0x1,-0x8(%rbp)
L21:
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cmp    %eax,-0x8(%rbp)
  jl     L46
  movss  -0x4(%rbp),%xmm0
  movss  D9(%rip),%xmm1
  xorps  %xmm1,%xmm0
  movd   %xmm0,%eax
  movd   %eax,%xmm0
  call   <expf@plt>
  lea    0x1(%rax),%esi
  mov    $0x1,%eax
  cltd
  idiv   %esi
  mov    %eax,%ecx
  mov    -0x10(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0xc(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rdx,%rax
  pxor   %xmm0,%xmm0
  cvtsi2ss %ecx,%xmm0
  movss  %xmm0,(%rax)
  addl   $0x1,-0xc(%rbp)
L14:
  mov    -0x10(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cmp    %eax,-0xc(%rbp)
  jl     L19
  addl   $0x1,-0x10(%rbp)
L37:
  mov    -0x10(%rbp),%eax
  cmp    -0x34(%rbp),%eax
  jl     L51
  mov    -0x34(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  leave
  ret
```

tool_calls: name: unpack_data
arguments: data_tag: D9
type: byte[4]

tool: {"D9": [0x00,0x00,0x00,0x80]}

assistant: ```c
float *fprop_compute(float *vector, float ***weights, float **res, int *layers, int layers_count) {
  res[0] = vector;
  int l, n, w;
  for (l = 0; l < layers_count; l++) {
#pragma omp parallel for private(n, w)
    for (n = 0; n < layers[l + 1]; n++) {
      float sum = 0;
      sum = weights[l][n][layers[l]];
      for (w = 0; w < layers[l]; w++) {
        sum += res[l][w] * weights[l][n][w];
      }
      res[l + 1][n] = 1 / (1 + expf(-sum));
    }
  }
  return res[layers_count];
}
```