user: 请将以下的汇编代码转换成C语言代码：

```asm
<atof>:
  endbr64
  push   %r14
  mov    %rdi,%r14
  push   %r13
  xor    %r13d,%r13d
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x60,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x58(%rsp)
  xor    %eax,%eax
  cs nopw 0x0(%rax,%rax,1)
L129:
  movsbl (%r14,%r13,1),%ebx
  mov    %r13d,%ebp
  add    $0x1,%r13
  mov    %ebx,%edi
  mov    %ebx,%r12d
  call   <isspace@plt>
  test   %eax,%eax
  jne    L129
  cmp    $0x2d,%bl
  je     L216
  mov    $0x1,%r13d
  cmp    $0x2b,%bl
  je     L167
  lea    -0x30(%rbx),%eax
  cmp    $0x9,%eax
  ja     L163
L28:
  lea    0x1(%rbp),%eax
  movsd  D27(%rip),%xmm0
  pxor   %xmm1,%xmm1
  cltq
  nop
L87:
  mulsd  %xmm0,%xmm1
  sub    $0x30,%ebx
  pxor   %xmm2,%xmm2
  mov    %eax,%ebp
  cvtsi2sd %ebx,%xmm2
  movsbl (%r14,%rax,1),%ebx
  add    $0x1,%rax
  lea    -0x30(%rbx),%edx
  mov    %ebx,%r12d
  addsd  %xmm2,%xmm1
  cmp    $0x9,%edx
  jbe    L87
  cmp    $0x2e,%r12b
  jne    L274
L78:
  lea    0x1(%rbp),%edx
  movslq %edx,%rax
  movsbl (%r14,%rax,1),%eax
  lea    -0x30(%rax),%esi
  mov    %eax,%ecx
  cmp    $0x9,%esi
  ja     L80
  movsd  D38(%rip),%xmm4
  lea    0x2(%rbp),%edx
  movsd  D27(%rip),%xmm0
  movslq %edx,%rdx
  movapd %xmm4,%xmm2
  cs nopw 0x0(%rax,%rax,1)
L137:
  mulsd  %xmm0,%xmm1
  sub    $0x30,%eax
  pxor   %xmm3,%xmm3
  mov    %edx,%ebp
  cvtsi2sd %eax,%xmm3
  movsbl (%r14,%rdx,1),%eax
  mulsd  %xmm0,%xmm2
  add    $0x1,%rdx
  lea    -0x30(%rax),%esi
  mov    %eax,%ecx
  addsd  %xmm3,%xmm1
  cmp    $0x9,%esi
  jbe    L137
L23:
  and    $0xffffffdf,%ecx
  xor    %eax,%eax
  cmp    $0x45,%cl
  sete   %al
  add    %eax,%ebp
  movslq %ebp,%rdx
  movzbl (%r14,%rdx,1),%eax
  cmp    $0x2b,%al
  je     L196
  cmp    $0x2d,%al
  je     L292
  movsbl %al,%esi
  lea    0x1(%r14,%rdx,1),%rcx
  sub    $0x30,%esi
  cmp    $0x9,%esi
  ja     L99
  nopl   0x0(%rax)
L295:
  movsbl (%rcx),%edx
  mov    %eax,%esi
  add    $0x1,%rcx
  mov    %edx,%eax
  sub    $0x30,%edx
  cmp    $0x9,%edx
  jbe    L295
  mov    %sil,0x20(%rsp)
L99:
  xor    %eax,%eax
  lea    0x20(%rsp),%rdi
  movsd  %xmm4,0x18(%rsp)
  movsd  %xmm1,0x10(%rsp)
  movsd  %xmm2,0x8(%rsp)
  call   <strtoi@plt>
  movsd  0x8(%rsp),%xmm2
  movsd  0x10(%rsp),%xmm1
  test   %eax,%eax
  movsd  0x18(%rsp),%xmm4
  jle    L29
  movsd  D27(%rip),%xmm0
  movapd %xmm4,%xmm3
  nopl   0x0(%rax)
L133:
  mulsd  %xmm0,%xmm3
  sub    $0x1,%eax
  jne    L133
L47:
  divsd  %xmm2,%xmm1
  pxor   %xmm0,%xmm0
  cvtsi2sd %r13d,%xmm0
  mulsd  %xmm1,%xmm0
  mulsd  %xmm3,%xmm0
  mov    0x58(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L125
  add    $0x60,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
  nopw   0x0(%rax,%rax,1)
L216:
  mov    $0xffffffff,%r13d
L167:
  add    $0x1,%ebp
  movslq %ebp,%rax
  movsbl (%r14,%rax,1),%ebx
  lea    -0x30(%rbx),%eax
  mov    %ebx,%r12d
  cmp    $0x9,%eax
  jbe    L28
L163:
  pxor   %xmm1,%xmm1
  cmp    $0x2e,%r12b
  je     L78
  xchg   %ax,%ax
L274:
  movsd  D38(%rip),%xmm4
  movslq %ebp,%rax
  movzbl (%r14,%rax,1),%ecx
  movapd %xmm4,%xmm2
  jmp    L23
  nopl   0x0(%rax)
L292:
  lea    0x1(%rbp),%edx
  movslq %edx,%rdx
  add    %r14,%rdx
  movsbl (%rdx),%eax
  mov    %eax,%ecx
  sub    $0x30,%eax
  cmp    $0x9,%eax
  ja     L239
  cs nopw 0x0(%rax,%rax,1)
L58:
  movsbl 0x1(%rdx),%eax
  mov    %ecx,%esi
  add    $0x1,%rdx
  mov    %eax,%ecx
  sub    $0x30,%eax
  cmp    $0x9,%eax
  jbe    L58
  mov    %sil,0x20(%rsp)
L239:
  xor    %eax,%eax
  lea    0x20(%rsp),%rdi
  movsd  %xmm4,0x18(%rsp)
  movsd  %xmm1,0x10(%rsp)
  movsd  %xmm2,0x8(%rsp)
  call   <strtoi@plt>
  movsd  0x18(%rsp),%xmm4
  movsd  D49(%rip),%xmm0
  test   %eax,%eax
  movsd  0x8(%rsp),%xmm2
  movsd  0x10(%rsp),%xmm1
  movapd %xmm4,%xmm3
  jle    L29
  nopl   (%rax)
L172:
  mulsd  %xmm0,%xmm3
  sub    $0x1,%eax
  jne    L172
  jmp    L47
  xchg   %ax,%ax
L196:
  lea    0x1(%rbp),%edx
  movslq %edx,%rdx
  add    %r14,%rdx
  movsbl (%rdx),%eax
  mov    %eax,%ecx
  sub    $0x30,%eax
  cmp    $0x9,%eax
  ja     L169
  cs nopw 0x0(%rax,%rax,1)
L166:
  movsbl 0x1(%rdx),%eax
  mov    %ecx,%esi
  add    $0x1,%rdx
  mov    %eax,%ecx
  sub    $0x30,%eax
  cmp    $0x9,%eax
  jbe    L166
  mov    %sil,0x20(%rsp)
L169:
  xor    %eax,%eax
  lea    0x20(%rsp),%rdi
  movsd  %xmm4,0x18(%rsp)
  movsd  %xmm1,0x10(%rsp)
  movsd  %xmm2,0x8(%rsp)
  call   <strtoi@plt>
  movsd  0x8(%rsp),%xmm2
  movsd  0x10(%rsp),%xmm1
  test   %eax,%eax
  movsd  0x18(%rsp),%xmm4
  jle    L29
  movsd  D27(%rip),%xmm0
  movapd %xmm4,%xmm3
  nopl   0x0(%rax)
L153:
  mulsd  %xmm0,%xmm3
  sub    $0x1,%eax
  jne    L153
  jmp    L47
  xchg   %ax,%ax
L29:
  movapd %xmm4,%xmm3
  jmp    L47
L80:
  movsd  D38(%rip),%xmm4
  mov    %edx,%ebp
  movapd %xmm4,%xmm2
  jmp    L23
L125:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: label: D27
datatype: f64
name: read_data
arguments: label: D38
datatype: f64
name: read_data
arguments: label: D49
datatype: byte[8]

tool: D27: 10

tool: D38: 1

tool: {"D49": [0x9a,0x99,0x99,0x99,0x99,0x99,0xb9,0x3f]}

assistant: ```c
double atof(char s[]) {
  int i, j, sign, factor;
  double value, power, expo;
  char factor_string[50];
  j = 0;
  for (i = 0; isspace(s[i]); i++)
    ;
  sign = (s[i] == '-') ? -1 : 1;
  if (s[i] == '+' || s[i] == '-')
    i++;
  for (value = 0.0; isdigit(s[i]); i++)
    value = 10.0 * value + (s[i] - '0');
  if (s[i] == '.')
    i++;
  for (power = 1.0; isdigit(s[i]); i++) {
    value = 10.0 * value + (s[i] - '0');
    power = 10.0 * power;
  }
  if (s[i] == 'e' || s[i] == 'E')
    i++;
  switch (s[i]) {
  case '-':
    i++;
    for (; isdigit(s[i]); i++) {
      factor_string[j] = s[i];
    }
    factor = strtoi(factor_string);
    for (expo = 1.0; factor > 0; factor--)
      expo = expo * (1 / 10.0);
    break;
  case '+':
    i++;
    for (; isdigit(s[i]); i++) {
      factor_string[j] = s[i];
    }
    factor = strtoi(factor_string);
    for (expo = 1.0; factor > 0; factor--)
      expo = expo * 10.0;
    break;
  default:
    for (; isdigit(s[i]); i++) {
      factor_string[j] = s[i];
    }
    factor = strtoi(factor_string);
    for (expo = 1.0; factor > 0; factor--)
      expo = expo * 10.0;
    break;
  }
  return ((sign) * (value / power) * (expo));
}
```