user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<atof>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  xor    %r12d,%r12d
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x28,%rsp
  jmp    L204
  nopl   (%rax)
L176:
  add    $0x1,%r12d
L204:
  movsbl 0x0(%rbp),%edi
  mov    %rbp,%r13
  add    $0x1,%rbp
  call   <isspace@plt>
  test   %rax,%rax
  jne    L176
  movsbl 0x0(%r13),%edi
  cmp    $0x2d,%dil
  je     L121
  movl   $0x1,0x1c(%rsp)
  movslq %r12d,%r13
  cmp    $0x2b,%dil
  je     L142
L65:
  add    %rbx,%r13
  pxor   %xmm6,%xmm6
  mov    %r13,%r15
  movsd  %xmm6,0x8(%rsp)
  jmp    L60
  nop
L99:
  movsbl -0x1(%r15),%eax
  movsd  D45(%rip),%xmm0
  pxor   %xmm1,%xmm1
  mulsd  0x8(%rsp),%xmm0
  movsbl (%r15),%edi
  sub    $0x30,%eax
  cvtsi2sd %eax,%xmm1
  addsd  %xmm0,%xmm1
  movsd  %xmm1,0x8(%rsp)
L60:
  call   <isdigit@plt>
  mov    %r12d,%ebp
  mov    %r15,%r14
  sub    %r13d,%ebp
  add    %r15d,%ebp
  add    $0x1,%r15
  test   %rax,%rax
  jne    L99
  movsbl (%r14),%edi
  movslq %ebp,%r13
  cmp    $0x2e,%dil
  jne    L164
  add    $0x1,%ebp
  movslq %ebp,%r13
  movsbl (%rbx,%r13,1),%edi
L164:
  movsd  D20(%rip),%xmm7
  add    %rbx,%r13
  mov    %r13,%r15
  movsd  %xmm7,0x10(%rsp)
  jmp    L66
  nopl   0x0(%rax)
L11:
  movsbl -0x1(%r15),%eax
  pxor   %xmm1,%xmm1
  movsbl (%r15),%edi
  movsd  D45(%rip),%xmm0
  mulsd  0x8(%rsp),%xmm0
  sub    $0x30,%eax
  movsd  D45(%rip),%xmm2
  cvtsi2sd %eax,%xmm1
  mulsd  0x10(%rsp),%xmm2
  addsd  %xmm0,%xmm1
  movsd  %xmm2,0x10(%rsp)
  movsd  %xmm1,0x8(%rsp)
L66:
  call   <isdigit@plt>
  mov    %ebp,%r12d
  mov    %r15,%r14
  sub    %r13d,%r12d
  add    %r15d,%r12d
  add    $0x1,%r15
  test   %rax,%rax
  jne    L11
  movsbl (%r14),%edi
  pxor   %xmm0,%xmm0
  cvtsi2sdl 0x1c(%rsp),%xmm0
  mulsd  0x8(%rsp),%xmm0
  mov    %edi,%eax
  divsd  0x10(%rsp),%xmm0
  and    $0xffffffdf,%eax
  cmp    $0x45,%al
  jne    L56
  add    $0x1,%r12d
  movslq %r12d,%rax
  movsbl (%rbx,%rax,1),%edi
L56:
  cmp    $0x2d,%dil
  je     L96
  mov    $0x1,%ebp
  movslq %r12d,%rax
  cmp    $0x2b,%dil
  je     L165
L134:
  add    %rax,%rbx
  xor    %r12d,%r12d
  jmp    L92
L178:
  movsbl -0x1(%rbx),%eax
  lea    (%r12,%r12,4),%edx
  movsbl (%rbx),%edi
  lea    -0x30(%rax,%rdx,2),%r12d
L92:
  movsd  %xmm0,0x8(%rsp)
  add    $0x1,%rbx
  call   <isdigit@plt>
  movsd  0x8(%rsp),%xmm0
  test   %rax,%rax
  jne    L178
  test   %r12d,%r12d
  jle    L201
  movsd  D45(%rip),%xmm1
  jmp    L105
  nopl   0x0(%rax)
L168:
  divsd  %xmm1,%xmm0
  add    $0x1,%eax
  cmp    %eax,%r12d
  je     L201
L105:
  cmp    $0x1,%ebp
  jne    L168
  mulsd  %xmm1,%xmm0
  add    $0x1,%eax
  cmp    %eax,%r12d
  jne    L105
L201:
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L96:
  mov    $0xffffffff,%ebp
L165:
  add    $0x1,%r12d
  movslq %r12d,%rax
  movsbl (%rbx,%rax,1),%edi
  jmp    L134
  nopl   (%rax)
L121:
  movl   $0xffffffff,0x1c(%rsp)
L142:
  add    $0x1,%r12d
  movslq %r12d,%r13
  movsbl (%rbx,%r13,1),%edi
  jmp    L65
```

tool_calls: name: unpack_data
arguments: data_tag: D45
type_infered: f64
name: unpack_data
arguments: data_tag: D20
type_infered: f64

tool: D45: 10

tool: D20: 1

assistant: ```c
double atof(char s[]) {
  double val, power;
  int i, j, sign, scientific;
  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 = val * 10.0 + (s[i] - '0');
  }
  if (s[i] == '.') {
    i++;
  }
  for (power = 1.0; isdigit(s[i]); i++) {
    val = val * 10.0 + (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 (scientific = 0; isdigit(s[i]); i++) {
    scientific = scientific * 10 + (s[i] - '0');
  }
  for (i = 0; i < scientific; i++) {
    if (sign == 1) {
      val *= 10.0;
    } else {
      val /= 10.0;
    }
  }
  return val;
}
```