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

```asm
<atof>:
  endbr64
  push   %r15
  push   %r14
  xor    %r14d,%r14d
  push   %r13
  push   %r12
  mov    %rdi,%r12
  push   %rbp
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x18,%rsp
  jmp    L36
  nopl   (%rax)
L79:
  add    $0x1,%r14d
L36:
  movsbl (%rbx),%edi
  mov    %rbx,%rbp
  add    $0x1,%rbx
  call   <isspace@plt>
  test   %rax,%rax
  jne    L79
  movzbl 0x0(%rbp),%eax
  cmp    $0x2d,%al
  je     L94
  mov    $0x1,%r13d
  cmp    $0x2b,%al
  je     L155
L55:
  movslq %r14d,%r15
  pxor   %xmm6,%xmm6
  add    %r12,%r15
  movsd  %xmm6,(%rsp)
  mov    %r15,%rbx
  jmp    L128
  cs nopw 0x0(%rax,%rax,1)
L63:
  movsbl (%rbx),%eax
  movsd  D32(%rip),%xmm0
  pxor   %xmm1,%xmm1
  add    $0x1,%rbx
  mulsd  (%rsp),%xmm0
  sub    $0x30,%eax
  cvtsi2sd %eax,%xmm1
  addsd  %xmm0,%xmm1
  movsd  %xmm1,(%rsp)
L128:
  mov    %r14d,%ebp
  movsbl (%rbx),%edi
  sub    %r15d,%ebp
  add    %ebx,%ebp
  call   <isdigit@plt>
  test   %rax,%rax
  jne    L63
  xor    %eax,%eax
  cmpb   $0x2e,(%rbx)
  movsd  D56(%rip),%xmm7
  sete   %al
  add    %eax,%ebp
  movsd  %xmm7,0x8(%rsp)
  movslq %ebp,%r14
  add    %r12,%r14
  mov    %r14,%rbx
  jmp    L12
L38:
  movsbl (%rbx),%eax
  pxor   %xmm1,%xmm1
  add    $0x1,%rbx
  movsd  D32(%rip),%xmm0
  mulsd  (%rsp),%xmm0
  movsd  D32(%rip),%xmm2
  mulsd  0x8(%rsp),%xmm2
  sub    $0x30,%eax
  cvtsi2sd %eax,%xmm1
  addsd  %xmm0,%xmm1
  movsd  %xmm2,0x8(%rsp)
  movsd  %xmm1,(%rsp)
L12:
  mov    %ebp,%r15d
  movsbl (%rbx),%edi
  sub    %r14d,%r15d
  add    %ebx,%r15d
  call   <isdigit@plt>
  test   %rax,%rax
  jne    L38
  movzbl (%rbx),%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %r13d,%xmm0
  mulsd  (%rsp),%xmm0
  and    $0xffffffdf,%eax
  divsd  0x8(%rsp),%xmm0
  cmp    $0x45,%al
  jne    L183
  lea    0x1(%r15),%eax
  cltq
  movzbl (%r12,%rax,1),%edx
  cmp    $0x2d,%dl
  je     L124
  mov    $0x1,%ebp
  cmp    $0x2b,%dl
  je     L13
L26:
  add    %rax,%r12
  xor    %ebx,%ebx
  jmp    L190
  nopl   (%rax)
L34:
  movsbl (%r12),%eax
  lea    (%rbx,%rbx,4),%edx
  add    $0x1,%r12
  lea    -0x30(%rax,%rdx,2),%ebx
L190:
  movsbl (%r12),%edi
  movsd  %xmm0,(%rsp)
  call   <isdigit@plt>
  movsd  (%rsp),%xmm0
  test   %rax,%rax
  jne    L34
  lea    -0x1(%rbx),%eax
  cmp    $0x1,%ebp
  je     L110
  movsd  D32(%rip),%xmm1
  test   %ebx,%ebx
  jle    L183
  nopl   (%rax)
L103:
  divsd  %xmm1,%xmm0
  sub    $0x1,%eax
  jae    L103
L183:
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L94:
  mov    $0xffffffff,%r13d
L155:
  add    $0x1,%r14d
  jmp    L55
  nop
L124:
  mov    $0xffffffff,%ebp
L13:
  lea    0x2(%r15),%eax
  cltq
  jmp    L26
L110:
  test   %ebx,%ebx
  jle    L183
  movsd  D32(%rip),%xmm1
  nopl   0x0(%rax)
L199:
  mulsd  %xmm1,%xmm0
  sub    $0x1,%eax
  jae    L199
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: disassemble_data
arguments: tag: D32
data_type: f64
name: disassemble_data
arguments: tag: D56
data_type: f64

tool: D32: 10

tool: D56: 1

assistant: ```c
double atof(char s[]) {
  double val, power;
  int exp, i, sign;
  for (i = 0; isspace(s[i]); i++)
    ;
  sign = (s[i] == '-') ? -1 : 1;
  if (s[i] == '+' || s[i] == '-')
    i++;
  for (val = 0.0; isdigit(s[i]); i++)
    val = 10.0 * val + (s[i] - '0');
  if (s[i] == '.')
    i++;
  for (power = 1.0; isdigit(s[i]); i++) {
    val = 10.0 * val + (s[i] - '0');
    power *= 10.0;
  }
  val = sign * val / power;
  if (s[i] == 'e' || s[i] == 'E') {
    sign = (s[++i] == '-') ? -1 : 1;
    if (s[i] == '+' || s[i] == '-')
      i++;
    for (exp = 0; isdigit(s[i]); i++)
      exp = 10 * exp + (s[i] - '0');
    if (sign == 1)
      while (exp-- > 0)
        val *= 10;
    else
      while (exp-- > 0)
        val /= 10;
  }
  return val;
}
```