user: What would the C source look like for the assembly code provided here:

```asm
<atof>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  add    $0xffffffffffffff80,%rsp
  mov    %rdi,-0x78(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x60(%rbp)
  movl   $0x0,-0x68(%rbp)
  jmp    L79
L276:
  addl   $0x1,-0x68(%rbp)
L79:
  mov    -0x68(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isspace@plt>
  test   %eax,%eax
  jne    L276
  mov    -0x68(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x2d,%al
  jne    L24
  mov    $0xffffffff,%eax
  jmp    L43
L24:
  mov    $0x1,%eax
L43:
  mov    %eax,-0x5c(%rbp)
  mov    -0x68(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x2b,%al
  je     L148
  mov    -0x68(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x2d,%al
  jne    L1
L148:
  addl   $0x1,-0x68(%rbp)
L1:
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x58(%rbp)
  jmp    L129
L66:
  movsd  -0x58(%rbp),%xmm1
  movsd  D75(%rip),%xmm0
  mulsd  %xmm0,%xmm1
  mov    -0x68(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  sub    $0x30,%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x58(%rbp)
  addl   $0x1,-0x68(%rbp)
L129:
  mov    -0x68(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  sub    $0x30,%eax
  cmp    $0x9,%eax
  jbe    L66
  mov    -0x68(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x2e,%al
  jne    L185
  addl   $0x1,-0x68(%rbp)
L185:
  movsd  D63(%rip),%xmm0
  movsd  %xmm0,-0x50(%rbp)
  jmp    L254
L136:
  movsd  -0x58(%rbp),%xmm1
  movsd  D75(%rip),%xmm0
  mulsd  %xmm0,%xmm1
  mov    -0x68(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  sub    $0x30,%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x58(%rbp)
  movsd  -0x50(%rbp),%xmm1
  movsd  D75(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x50(%rbp)
  addl   $0x1,-0x68(%rbp)
L254:
  mov    -0x68(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  sub    $0x30,%eax
  cmp    $0x9,%eax
  jbe    L136
  mov    -0x68(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x65,%al
  je     L11
  mov    -0x68(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x45,%al
  jne    L147
L11:
  addl   $0x1,-0x68(%rbp)
L147:
  mov    -0x68(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  cmp    $0x2b,%eax
  je     L94
  cmp    $0x2d,%eax
  jne    L142
  addl   $0x1,-0x68(%rbp)
  jmp    L55
L156:
  mov    -0x68(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%edx
  mov    -0x60(%rbp),%eax
  cltq
  mov    %dl,-0x40(%rbp,%rax,1)
  addl   $0x1,-0x68(%rbp)
L55:
  mov    -0x68(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  sub    $0x30,%eax
  cmp    $0x9,%eax
  jbe    L156
  lea    -0x40(%rbp),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <strtoi@plt>
  mov    %eax,-0x64(%rbp)
  movsd  D63(%rip),%xmm0
  movsd  %xmm0,-0x48(%rbp)
  jmp    L280
L253:
  movsd  -0x48(%rbp),%xmm1
  movsd  D4(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x48(%rbp)
  subl   $0x1,-0x64(%rbp)
L280:
  cmpl   $0x0,-0x64(%rbp)
  jg     L253
  jmp    L14
L94:
  addl   $0x1,-0x68(%rbp)
  jmp    L287
L95:
  mov    -0x68(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%edx
  mov    -0x60(%rbp),%eax
  cltq
  mov    %dl,-0x40(%rbp,%rax,1)
  addl   $0x1,-0x68(%rbp)
L287:
  mov    -0x68(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  sub    $0x30,%eax
  cmp    $0x9,%eax
  jbe    L95
  lea    -0x40(%rbp),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <strtoi@plt>
  mov    %eax,-0x64(%rbp)
  movsd  D63(%rip),%xmm0
  movsd  %xmm0,-0x48(%rbp)
  jmp    L49
L53:
  movsd  -0x48(%rbp),%xmm1
  movsd  D75(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x48(%rbp)
  subl   $0x1,-0x64(%rbp)
L49:
  cmpl   $0x0,-0x64(%rbp)
  jg     L53
  jmp    L14
L108:
  mov    -0x68(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%edx
  mov    -0x60(%rbp),%eax
  cltq
  mov    %dl,-0x40(%rbp,%rax,1)
  addl   $0x1,-0x68(%rbp)
L142:
  mov    -0x68(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x78(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  sub    $0x30,%eax
  cmp    $0x9,%eax
  jbe    L108
  lea    -0x40(%rbp),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <strtoi@plt>
  mov    %eax,-0x64(%rbp)
  movsd  D63(%rip),%xmm0
  movsd  %xmm0,-0x48(%rbp)
  jmp    L164
L133:
  movsd  -0x48(%rbp),%xmm1
  movsd  D75(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x48(%rbp)
  subl   $0x1,-0x64(%rbp)
L164:
  cmpl   $0x0,-0x64(%rbp)
  jg     L133
  nop
L14:
  pxor   %xmm1,%xmm1
  cvtsi2sdl -0x5c(%rbp),%xmm1
  movsd  -0x58(%rbp),%xmm0
  divsd  -0x50(%rbp),%xmm0
  mulsd  %xmm1,%xmm0
  mulsd  -0x48(%rbp),%xmm0
  movq   %xmm0,%rax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L226
  call   <__stack_chk_fail@plt>
L226:
  movq   %rax,%xmm0
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: data_tag: D75
data_type: f64
name: retrieve_data
arguments: data_tag: D63
data_type: f64
name: retrieve_data
arguments: data_tag: D4
data_type: byte[8]

tool: D75: 10

tool: D63: 1

tool: {"D4": [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));
}
```