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    L106
  nopl   (%rax)
L125:
  add    $0x1,%r14d
L106:
  movsbl (%rbx),%edi
  mov    %rbx,%rbp
  add    $0x1,%rbx
  call   <isspace@plt>
  test   %rax,%rax
  jne    L125
  movzbl 0x0(%rbp),%eax
  cmp    $0x2b,%al
  je     L115
  mov    $0xffffffff,%r13d
  cmp    $0x2d,%al
  je     L12
L67:
  movslq %r14d,%r15
  pxor   %xmm6,%xmm6
  add    %r12,%r15
  movsd  %xmm6,(%rsp)
  mov    %r15,%rbx
  jmp    L179
  cs nopw 0x0(%rax,%rax,1)
L188:
  movsbl (%rbx),%eax
  movsd  D30(%rip),%xmm0
  pxor   %xmm1,%xmm1
  add    $0x1,%rbx
  mulsd  (%rsp),%xmm0
  sub    $0x30,%eax
  cvtsi2sd %eax,%xmm1
  addsd  %xmm0,%xmm1
  movsd  %xmm1,(%rsp)
L179:
  mov    %r14d,%ebp
  movsbl (%rbx),%edi
  sub    %r15d,%ebp
  add    %ebx,%ebp
  call   <isdigit@plt>
  test   %rax,%rax
  jne    L188
  xor    %eax,%eax
  cmpb   $0x2e,(%rbx)
  movsd  D28(%rip),%xmm7
  sete   %al
  add    %eax,%ebp
  movsd  %xmm7,0x8(%rsp)
  movslq %ebp,%r14
  add    %r12,%r14
  mov    %r14,%rbx
  jmp    L150
L112:
  movsbl (%rbx),%eax
  pxor   %xmm1,%xmm1
  add    $0x1,%rbx
  movsd  D30(%rip),%xmm0
  mulsd  (%rsp),%xmm0
  movsd  D30(%rip),%xmm2
  mulsd  0x8(%rsp),%xmm2
  sub    $0x30,%eax
  cvtsi2sd %eax,%xmm1
  addsd  %xmm0,%xmm1
  movsd  %xmm2,0x8(%rsp)
  movsd  %xmm1,(%rsp)
L150:
  mov    %ebp,%r15d
  movsbl (%rbx),%edi
  sub    %r14d,%r15d
  add    %ebx,%r15d
  call   <isdigit@plt>
  test   %rax,%rax
  jne    L112
  movzbl (%rbx),%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %r13d,%xmm0
  mulsd  (%rsp),%xmm0
  and    $0xffffffdf,%eax
  divsd  0x8(%rsp),%xmm0
  cmp    $0x45,%al
  jne    L35
  lea    0x1(%r15),%eax
  cltq
  movzbl (%r12,%rax,1),%edx
  cmp    $0x2b,%dl
  je     L27
  mov    $0xffffffff,%ebp
  cmp    $0x2d,%dl
  je     L117
L76:
  add    %rax,%r12
  xor    %ebx,%ebx
  jmp    L158
  nopl   (%rax)
L10:
  movsbl (%r12),%eax
  lea    (%rbx,%rbx,4),%edx
  add    $0x1,%r12
  lea    -0x30(%rax,%rdx,2),%ebx
L158:
  movsbl (%r12),%edi
  movsd  %xmm0,(%rsp)
  call   <isdigit@plt>
  movsd  (%rsp),%xmm0
  test   %rax,%rax
  jne    L10
  lea    -0x1(%rbx),%eax
  cmp    $0x1,%ebp
  je     L40
  movsd  D30(%rip),%xmm1
  test   %ebx,%ebx
  jle    L35
  nopl   (%rax)
L156:
  divsd  %xmm1,%xmm0
  sub    $0x1,%eax
  jae    L156
L35:
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L115:
  mov    $0x1,%r13d
L12:
  add    $0x1,%r14d
  jmp    L67
  nop
L27:
  mov    $0x1,%ebp
L117:
  lea    0x2(%r15),%eax
  cltq
  jmp    L76
L40:
  test   %ebx,%ebx
  jle    L35
  movsd  D30(%rip),%xmm1
  nopl   0x0(%rax)
L60:
  mulsd  %xmm1,%xmm0
  sub    $0x1,%eax
  jae    L60
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: read_data
arguments: data_label: D30
type_infered: f64
name: read_data
arguments: data_label: D28
type_infered: f64

tool: D30: 10

tool: D28: 1

assistant: ```c
double atof(char s[]) {
  double val, power;
  int i, sign, exp;
  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') {
    i++;
    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;
}
```