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

```asm
<single_decay>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  movss  %xmm0,0x28(%rsp)
  movss  %xmm1,0x14(%rsp)
  movss  %xmm2,0x18(%rsp)
  movss  D55(%rip),%xmm0
  divss  %xmm1,%xmm0
  cvttss2si %xmm0,%eax
  pxor   %xmm0,%xmm0
  cvtsi2ss %eax,%xmm0
  divss  %xmm2,%xmm0
  cvttss2si %xmm0,%r15d
  mov    %r15d,0x2c(%rsp)
  lea    0x0(,%r15,4),%ebx
  mov    %ebx,%edi
  call   <malloc@plt>
  mov    %rax,%r14
  mov    %ebx,%edi
  call   <malloc@plt>
  mov    %rax,%rbp
  lea    D8(%rip),%rsi
  lea    D44(%rip),%rdi
  call   <fopen@plt>
  mov    %rax,0x20(%rsp)
  movss  0x28(%rsp),%xmm1
  pxor   %xmm0,%xmm0
  lea    D46(%rip),%rsi
  mov    %rax,%rdi
  call   <fprintf@plt>
  movss  0x28(%rsp),%xmm7
  movss  %xmm7,(%r14)
  movl   $0x0,0x0(%rbp)
  mov    %ebx,%edi
  call   <malloc@plt>
  mov    %rax,%r13
  mov    %ebx,%edi
  call   <malloc@plt>
  mov    %rax,%r12
  movl   $0x0,0x1c(%rsp)
  mov    %r15d,%r15d
L5:
  movss  0x28(%rsp),%xmm5
  movss  %xmm5,0x0(%r13)
  movl   $0x0,(%r12)
  cmpl   $0x1,0x2c(%rsp)
  jle    L30
  movss  %xmm5,0x10(%rsp)
  mov    $0x1,%ebx
  pxor   %xmm6,%xmm6
  movss  %xmm6,0xc(%rsp)
L1:
  movss  0xc(%rsp),%xmm3
  movss  0x18(%rsp),%xmm2
  addss  %xmm2,%xmm3
  movss  %xmm3,0xc(%rsp)
  movss  0x14(%rsp),%xmm1
  movss  0x10(%rsp),%xmm0
  call   <delta_n_step@plt>
  addss  0x10(%rsp),%xmm0
  movss  %xmm0,0x10(%rsp)
  movss  %xmm0,0x0(%r13,%rbx,4)
  movss  0xc(%rsp),%xmm3
  movss  %xmm3,(%r12,%rbx,4)
  add    $0x1,%rbx
  cmp    %r15,%rbx
  jne    L1
  mov    $0x1,%eax
L49:
  movss  (%r14,%rax,4),%xmm0
  addss  0x0(%r13,%rax,4),%xmm0
  movss  %xmm0,(%r14,%rax,4)
  movss  0x0(%rbp,%rax,4),%xmm0
  addss  (%r12,%rax,4),%xmm0
  movss  %xmm0,0x0(%rbp,%rax,4)
  add    $0x1,%rax
  cmp    %r15,%rax
  jne    L49
L30:
  addl   $0x1,0x1c(%rsp)
  mov    0x1c(%rsp),%eax
  cmp    $0x5,%eax
  jne    L5
  mov    0x2c(%rsp),%eax
  cmp    $0x1,%eax
  jle    L37
  lea    0x4(%r14),%rbx
  add    $0x4,%rbp
  lea    -0x2(%rax),%eax
  lea    0x8(%r14,%rax,4),%r13
  lea    D46(%rip),%r12
L19:
  movss  (%rbx),%xmm0
  divss  D55(%rip),%xmm0
  movss  %xmm0,(%rbx)
  movss  0x0(%rbp),%xmm0
  divss  D55(%rip),%xmm0
  movss  %xmm0,0x0(%rbp)
  movss  (%rbx),%xmm1
  mov    %r12,%rsi
  mov    0x20(%rsp),%rdi
  call   <fprintf@plt>
  add    $0x4,%rbx
  add    $0x4,%rbp
  cmp    %r13,%rbx
  jne    L19
L37:
  mov    0x20(%rsp),%rdi
  call   <fclose@plt>
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: disassemble_data
arguments: data_tag: D55
data_type: f32
name: disassemble_data
arguments: data_tag: D8
data_type: string
name: disassemble_data
arguments: data_tag: D44
data_type: string
name: disassemble_data
arguments: data_tag: D46
data_type: string

tool: D55: 5

tool: D8: w+

tool: D44: data_rand_average.txt

tool: D46: %f %f


assistant: ```c
void single_decay(float N0, float lambda, float dt) {
  float t_total = 5.0 / lambda;
  int n_points = (int)t_total / dt;
  int i;
  int j;
  int k;
  float M = 5.0;
  float t = 0.0;
  float n = N0;
  float *array_n = malloc(n_points * sizeof(float));
  float *array_t = malloc(n_points * sizeof(float));
  FILE *out = fopen("data_rand_average.txt", "w+");
  fprintf(out, "%f %f\n", t, n);
  array_n[0] = n;
  array_t[0] = t;
  float *array_n_temp = malloc(n_points * sizeof(float));
  float *array_t_temp = malloc(n_points * sizeof(float));
  for (j = 0; j < M; j++) {
    array_n_temp[0] = N0;
    array_t_temp[0] = 0.0;
    n = N0;
    t = 0.0;
    for (i = 1; i < (n_points); i++) {
      t += dt;
      float delta_n = delta_n_step(n, lambda, dt);
      n += delta_n;
      array_n_temp[i] = n;
      array_t_temp[i] = t;
    }
    for (i = 1; i < (n_points); i++) {
      array_n[i] = array_n[i] + array_n_temp[i];
      array_t[i] = array_t[i] + array_t_temp[i];
    }
  }
  for (k = 1; k < (n_points); k++) {
    array_n[k] = array_n[k] / M;
    array_t[k] = array_t[k] / M;
    fprintf(out, "%f %f\n", array_t[k], array_n[k]);
  }
  fclose(out);
}
```