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

```asm
<strtod>:
  endbr64
  test   %rdi,%rdi
  je     L118
  movzbl (%rdi),%eax
  cmp    $0x2b,%al
  je     L5
  mov    $0x1,%r8d
  cmp    $0x2d,%al
  je     L172
L261:
  lea    -0x30(%rax),%edx
  movsd  D9(%rip),%xmm1
  pxor   %xmm0,%xmm0
  cmp    $0x9,%dl
  ja     L171
  nopw   0x0(%rax,%rax,1)
L106:
  mulsd  %xmm1,%xmm0
  sub    $0x30,%eax
  pxor   %xmm2,%xmm2
  add    $0x1,%rdi
  movsbl %al,%eax
  cvtsi2sd %eax,%xmm2
  movzbl (%rdi),%eax
  lea    -0x30(%rax),%edx
  addsd  %xmm2,%xmm0
  cmp    $0x9,%dl
  jbe    L106
L171:
  cmp    $0x2e,%al
  je     L78
  movzbl (%rdi),%edx
L179:
  and    $0xffffffdf,%edx
  xor    %eax,%eax
  cmp    $0x45,%dl
  jne    L204
L183:
  movzbl 0x1(%rdi),%edx
  cmp    $0x2b,%dl
  je     L214
  cmp    $0x2d,%dl
  je     L85
  pxor   %xmm2,%xmm2
  lea    0x1(%rdi),%rcx
  cvtsi2sd %r8d,%xmm2
L140:
  lea    -0x30(%rdx),%r8d
  xor    %edi,%edi
  cmp    $0x9,%r8b
  ja     L139
  nopl   0x0(%rax)
L0:
  sub    $0x30,%edx
  lea    (%rdi,%rdi,4),%edi
  add    $0x1,%rcx
  movsbl %dl,%edx
  lea    (%rdx,%rdi,2),%edi
  movzbl (%rcx),%edx
  lea    -0x30(%rdx),%r8d
  cmp    $0x9,%r8b
  jbe    L0
  add    %edi,%eax
  test   %eax,%eax
  jle    L139
  movsd  D9(%rip),%xmm1
  nopw   0x0(%rax,%rax,1)
L221:
  mulsd  %xmm1,%xmm0
  sub    $0x1,%eax
  jne    L221
L56:
  test   %rsi,%rsi
  je     L268
  mov    %rcx,(%rsi)
L268:
  mulsd  %xmm2,%xmm0
  ret
  cs nopw 0x0(%rax,%rax,1)
L78:
  movzbl 0x1(%rdi),%edx
  lea    0x1(%rdi),%rcx
  lea    -0x30(%rdx),%eax
  cmp    $0x9,%al
  ja     L251
  movsd  D9(%rip),%xmm1
  xor    %eax,%eax
  nopl   (%rax)
L228:
  sub    $0x30,%edx
  pxor   %xmm2,%xmm2
  add    $0x1,%rcx
  sub    $0x1,%eax
  mulsd  %xmm1,%xmm0
  movsbl %dl,%edx
  cvtsi2sd %edx,%xmm2
  movzbl (%rcx),%edx
  lea    -0x30(%rdx),%edi
  addsd  %xmm2,%xmm0
  cmp    $0x9,%dil
  jbe    L228
  and    $0xffffffdf,%edx
  cmp    $0x45,%dl
  je     L103
  pxor   %xmm2,%xmm2
  cvtsi2sd %r8d,%xmm2
L132:
  movsd  D23(%rip),%xmm1
  cs nopw 0x0(%rax,%rax,1)
L270:
  mulsd  %xmm1,%xmm0
  add    $0x1,%eax
  jne    L270
  jmp    L56
  xchg   %ax,%ax
L5:
  movzbl 0x1(%rdi),%eax
  mov    $0x1,%r8d
  add    $0x1,%rdi
  jmp    L261
  nopl   0x0(%rax,%rax,1)
L172:
  movzbl 0x1(%rdi),%eax
  mov    $0xffffffff,%r8d
  add    $0x1,%rdi
  jmp    L261
  nopl   0x0(%rax,%rax,1)
L85:
  movzbl 0x2(%rdi),%edx
  movsd  D29(%rip),%xmm2
  lea    0x2(%rdi),%rcx
  jmp    L140
  nopl   (%rax)
L204:
  pxor   %xmm2,%xmm2
  mov    %rdi,%rcx
  cvtsi2sd %r8d,%xmm2
  jmp    L56
L139:
  test   %eax,%eax
  jne    L132
  jmp    L56
  cs nopw 0x0(%rax,%rax,1)
L118:
  pxor   %xmm0,%xmm0
  ret
  nopl   (%rax)
L214:
  pxor   %xmm2,%xmm2
  movzbl 0x2(%rdi),%edx
  lea    0x2(%rdi),%rcx
  cvtsi2sd %r8d,%xmm2
  jmp    L140
L251:
  mov    %rcx,%rdi
  jmp    L179
L103:
  mov    %rcx,%rdi
  jmp    L183
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D9
type_guessed: f64
name: extract_symbolic_data
arguments: data_tag: D23
type_guessed: f64
name: extract_symbolic_data
arguments: data_tag: D29
type_guessed: f32[2]

tool: D9: 10

tool: D23: 0.1

tool: {"D29": [0.0,-1.875]}

assistant: ```c
double strtod(const char *nptr, char **endptr) {
  double val = 0.0;
  int d = 0;
  int sign = 1;
  if (!nptr) {
    return 0.0;
  }
  if (*nptr == '+') {
    nptr++;
  } else if (*nptr == '-') {
    nptr++;
    sign = -1;
  }
  while (*nptr >= '0' && *nptr <= '9') {
    val = val * 10.0 + (*nptr - '0');
    nptr++;
  }
  if (*nptr == '.') {
    nptr++;
    while (*nptr >= '0' && *nptr <= '9') {
      val = val * 10.0 + (*nptr - '0');
      nptr++;
      d--;
    }
  }
  if (*nptr == 'E' || *nptr == 'e') {
    int e_sign = 1;
    int e_val = 0;
    nptr++;
    if (*nptr == '+') {
      nptr++;
    } else if (*nptr == '-') {
      nptr++;
      sign = -1;
    }
    while ((*nptr >= '0' && *nptr <= '9')) {
      e_val = e_val * 10 + (*nptr - '0');
      nptr++;
    }
    d += e_val * e_sign;
  }
  while (d > 0) {
    val *= 10.0;
    d--;
  }
  while (d < 0) {
    val *= 0.1;
    d++;
  }
  if (endptr) {
    *endptr = (char *)nptr;
  }
  return sign * val;
}
```