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

```asm
<strtod>:
  endbr64
  movzbl (%rdi),%eax
  mov    %rdi,%rdx
  cmp    $0x9,%al
  je     L289
  cmp    $0x20,%al
  jne    L311
  nopw   0x0(%rax,%rax,1)
L289:
  movzbl 0x1(%rdx),%eax
  add    $0x1,%rdx
  cmp    $0x20,%al
  je     L289
  cmp    $0x9,%al
  je     L289
L311:
  cmp    $0x2b,%al
  je     L23
  mov    $0x1,%edi
  cmp    $0x2d,%al
  je     L132
L327:
  movzbl (%rdx),%eax
  movsd  D9(%rip),%xmm1
  pxor   %xmm0,%xmm0
  lea    -0x30(%rax),%ecx
  cmp    $0x9,%cl
  ja     L283
  nopl   0x0(%rax,%rax,1)
L282:
  mulsd  %xmm1,%xmm0
  sub    $0x30,%eax
  pxor   %xmm2,%xmm2
  mov    %rdx,%r8
  movsbl %al,%eax
  add    $0x1,%rdx
  cvtsi2sd %eax,%xmm2
  movzbl (%rdx),%eax
  lea    -0x30(%rax),%ecx
  addsd  %xmm2,%xmm0
  cmp    $0x9,%cl
  jbe    L282
  cmp    $0x2e,%al
  je     L33
L26:
  and    $0xffffffdf,%eax
  cmp    $0x45,%al
  jne    L18
  movzbl 0x1(%rdx),%eax
  cmp    $0x2b,%al
  je     L209
  cmp    $0x2d,%al
  je     L4
  add    $0x1,%rdx
  mov    $0x1,%r9d
L228:
  lea    -0x30(%rax),%r8d
  xor    %ecx,%ecx
  cmp    $0x9,%r8b
  ja     L75
  nopl   0x0(%rax)
L279:
  pxor   %xmm2,%xmm2
  sub    $0x30,%eax
  add    $0x1,%rdx
  cvtsi2sd %ecx,%xmm2
  movsbl %al,%eax
  mulsd  %xmm1,%xmm2
  cvttsd2si %xmm2,%ecx
  add    %eax,%ecx
  movzbl (%rdx),%eax
  lea    -0x30(%rax),%r8d
  cmp    $0x9,%r8b
  jbe    L279
  cmp    $0xffffffff,%r9d
  jne    L5
  test   %ecx,%ecx
  jle    L18
  add    $0x1,%ecx
  mov    $0x1,%eax
  nop
L133:
  divsd  %xmm1,%xmm0
  add    $0x1,%eax
  cmp    %ecx,%eax
  jne    L133
L18:
  test   %rsi,%rsi
  je     L154
  mov    %rdx,(%rsi)
L154:
  pxor   %xmm1,%xmm1
  cvtsi2sd %edi,%xmm1
  mulsd  %xmm1,%xmm0
L129:
  ret
L132:
  add    $0x1,%rdx
  mov    $0xffffffff,%edi
  jmp    L327
  xchg   %ax,%ax
L23:
  add    $0x1,%rdx
  mov    $0x1,%edi
  jmp    L327
  xchg   %ax,%ax
L33:
  movzbl 0x1(%rdx),%eax
  add    $0x2,%r8
  lea    -0x30(%rax),%edx
  cmp    $0x9,%dl
  ja     L126
L285:
  movsd  D1(%rip),%xmm3
  mov    %r8,%rdx
  nop
L160:
  sub    $0x30,%eax
  pxor   %xmm2,%xmm2
  add    $0x1,%rdx
  movsbl %al,%eax
  cvtsi2sd %eax,%xmm2
  movzbl (%rdx),%eax
  lea    -0x30(%rax),%ecx
  mulsd  %xmm3,%xmm2
  divsd  %xmm1,%xmm3
  addsd  %xmm2,%xmm0
  cmp    $0x9,%cl
  jbe    L160
  jmp    L26
L4:
  movzbl 0x2(%rdx),%eax
  mov    $0xffffffff,%r9d
  add    $0x2,%rdx
  jmp    L228
  nopl   0x0(%rax)
L75:
  test   %rsi,%rsi
  je     L129
  mov    %rdx,(%rsi)
  ret
  nopl   (%rax)
L209:
  movzbl 0x2(%rdx),%eax
  mov    $0x1,%r9d
  add    $0x2,%rdx
  jmp    L228
  nopl   0x0(%rax,%rax,1)
L283:
  cmp    $0x2e,%al
  je     L97
L214:
  pxor   %xmm0,%xmm0
  test   %rsi,%rsi
  je     L129
  mov    %rdx,(%rsi)
  ret
L5:
  test   %ecx,%ecx
  jle    L18
  add    $0x1,%ecx
  mov    $0x1,%eax
  nopl   (%rax)
L104:
  mulsd  %xmm1,%xmm0
  add    $0x1,%eax
  cmp    %ecx,%eax
  jne    L104
  jmp    L18
L97:
  movzbl 0x1(%rdx),%eax
  lea    0x1(%rdx),%r8
  lea    -0x30(%rax),%edx
  cmp    $0x9,%dl
  jbe    L285
  mov    %r8,%rdx
  jmp    L214
L126:
  mov    %r8,%rdx
  jmp    L26
```

tool_calls: name: disassemble_data
arguments: data_tag: D9
datatype: f64
name: disassemble_data
arguments: data_tag: D1
datatype: f64

tool: D9: 10

tool: D1: 0.1

assistant: ```c
double strtod(const char *s, const char **sret) {
  double r;
  int e;
  double d;
  int sign;
  int esign, i, flags = 0;
  r = 0.0;
  sign = 1.0;
  e = 0;
  esign = 1;
  while ((*s == ' ') || (*s == '\t')) {
    s++;
  }
  if (*s == '+') {
    s++;
  } else if (*s == '-') {
    sign = -1;
    s++;
  }
  while ((*s >= '0') && (*s <= '9')) {
    flags |= 1;
    r *= 10.0;
    r += *s - '0';
    s++;
  }
  if (*s == '.') {
    d = 0.1;
    s++;
    while ((*s >= '0') && (*s <= '9')) {
      flags |= 2;
      r += d * (*s - '0');
      s++;
      d /= 10.0;
    }
  }
  if (flags == 0) {
    if (sret) {
      *sret = s;
    }
    return 0;
  }
  if ((*s == 'e') || (*s == 'E')) {
    s++;
    if (*s == '+') {
      s++;
    } else if (*s == '-') {
      *s++;
      esign = -1;
    }
    if ((*s < '0') || (*s > '9')) {
      if (sret) {
        *sret = s;
      }
      return r;
    }
    while ((*s >= '0') && (*s <= '9')) {
      e *= 10.0;
      e += *s - '0';
      s++;
    }
  }
  if (esign < 0) {
    for (i = 1; i <= e; i++) {
      r /= 10.0;
    }
  } else {
    for (i = 1; i <= e; i++) {
      r *= 10.0;
    }
  }
  if (sret) {
    *sret = s;
  }
  return (r * sign);
}
```