user: 请从给定的汇编指令推导出C源代码:

```asm
<fltrep_stod>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    %rsi,%rbx
  movzbl (%rdi),%r9d
  cmp    $0x2b,%r9b
  je     L98
  cmp    $0x2d,%r9b
  je     L360
  lea    0x1(%rdi),%r10
  movsbl %r9b,%r9d
  movl   $0x0,0xc(%rsp)
  jmp    L315
L98:
  movl   $0x0,0xc(%rsp)
  jmp    L319
L360:
  movl   $0x80000000,0xc(%rsp)
L319:
  lea    0x2(%rdi),%r10
  movsbl 0x1(%rdi),%r9d
L315:
  cmp    $0x30,%r9d
  jne    L192
L52:
  add    $0x1,%r10
  movsbl -0x1(%r10),%r9d
  cmp    $0x30,%r9d
  je     L52
L192:
  mov    $0x0,%r12d
  mov    $0x0,%r13d
  cmp    $0x2e,%r9d
  je     L302
L351:
  add    $0x1,%r10
  mov    $0x0,%ebp
  mov    $0x0,%r11d
  mov    $0x100000,%esi
  mov    $0x0,%edx
  mov    $0x0,%eax
  mov    $0x0,%ecx
  mov    $0x1,%r15d
  jmp    L65
L302:
  lea    0x1(%r10),%rax
  movsbl (%r10),%r9d
  cmp    $0x30,%r9d
  jne    L187
  mov    %rax,%r10
  sub    $0x1,%eax
L313:
  mov    %eax,%r13d
  sub    %r10d,%r13d
  add    $0x1,%r10
  movsbl -0x1(%r10),%r9d
  cmp    $0x30,%r9d
  je     L313
  mov    $0x1,%r12d
  jmp    L351
L187:
  mov    %rax,%r10
  mov    $0x1,%r12d
  mov    $0x0,%r13d
  jmp    L351
L375:
  movsbl -0x1(%r10),%r9d
  mov    %r15d,%r12d
L151:
  add    $0x1,%r10
L65:
  lea    -0x1(%r10),%rdi
  test   %r12d,%r12d
  jne    L19
  cmp    $0x2e,%r9d
  je     L375
L19:
  lea    -0x30(%r9),%r8d
  cmp    $0x9,%r8d
  ja     L215
  movslq %esi,%r8
  imul   $0x66666667,%r8,%r8
  sar    $0x22,%r8
  mov    %esi,%edi
  sar    $0x1f,%edi
  sub    %edi,%r8d
  lea    (%r8,%r8,4),%r14d
  add    %r14d,%r14d
  mov    %esi,%edi
  sub    %r14d,%edi
  shl    $0x18,%edi
  add    %r11d,%edi
  mov    %r8d,%esi
  movslq %edi,%r11
  imul   $0x66666667,%r11,%r11
  sar    $0x22,%r11
  mov    %edi,%r14d
  sar    $0x1f,%r14d
  sub    %r14d,%r11d
  lea    (%r11,%r11,4),%r14d
  add    %r14d,%r14d
  sub    %r14d,%edi
  shl    $0x18,%edi
  add    %ebp,%edi
  movslq %edi,%rbp
  imul   $0x66666667,%rbp,%rbp
  sar    $0x22,%rbp
  sar    $0x1f,%edi
  sub    %edi,%ebp
  sub    $0x30,%r9d
  mov    %ebp,%edi
  imul   %r9d,%edi
  add    %edi,%edx
  mov    %r11d,%edi
  imul   %r9d,%edi
  mov    %edx,%r14d
  shr    $0x18,%r14d
  add    %r14d,%edi
  add    %edi,%eax
  imul   %r9d,%r8d
  mov    %eax,%edi
  shr    $0x18,%edi
  add    %edi,%r8d
  add    %r8d,%ecx
  and    $0xffffff,%edx
  and    $0xffffff,%eax
  cmp    $0x1,%r12d
  adc    $0x0,%r13d
  movsbl -0x1(%r10),%r9d
  jmp    L151
L215:
  mov    %ecx,%esi
  test   %ecx,%ecx
  je     L317
  and    $0xffffffdf,%r9d
  cmp    $0x45,%r9d
  jne    L166
  movzbl (%rdi),%esi
  cmp    $0x2b,%sil
  je     L40
  mov    $0x1,%r10d
  cmp    $0x2d,%sil
  je     L83
  lea    0x1(%rdi),%r8
  movsbl %sil,%esi
  mov    $0x0,%r10d
  jmp    L296
L40:
  mov    $0x0,%r10d
L83:
  lea    0x2(%rdi),%r8
  movsbl 0x1(%rdi),%esi
L296:
  lea    -0x30(%rsi),%r9d
  mov    $0x0,%edi
  cmp    $0x9,%r9d
  ja     L61
L163:
  lea    (%rdi,%rdi,4),%edi
  lea    -0x30(%rsi,%rdi,2),%edi
  add    $0x1,%r8
  movsbl -0x1(%r8),%esi
  lea    -0x30(%rsi),%r9d
  cmp    $0x9,%r9d
  jbe    L163
L61:
  mov    %r13d,%esi
  sub    %edi,%esi
  add    %r13d,%edi
  test   %r10d,%r10d
  cmove  %edi,%esi
  mov    %esi,%r13d
L166:
  test   %r13d,%r13d
  jle    L359
  mov    $0x0,%edi
L415:
  lea    (%rdx,%rdx,4),%edx
  add    %edx,%edx
  lea    (%rax,%rax,4),%esi
  mov    %edx,%eax
  shr    $0x18,%eax
  lea    (%rax,%rsi,2),%eax
  lea    (%rcx,%rcx,4),%esi
  mov    %eax,%ecx
  shr    $0x18,%ecx
  lea    (%rcx,%rsi,2),%ecx
  and    $0xffffff,%edx
  and    $0xffffff,%eax
  test   $0xffe00000,%ecx
  je     L140
L178:
  sar    %edx
  mov    %eax,%esi
  shl    $0x17,%esi
  and    $0x800000,%esi
  or     %esi,%edx
  sar    %eax
  mov    %ecx,%esi
  shl    $0x17,%esi
  and    $0x800000,%esi
  or     %esi,%eax
  sar    %ecx
  add    $0x1,%edi
  test   $0xffe00000,%ecx
  jne    L178
L140:
  sub    $0x1,%r13d
  jne    L415
  jmp    L323
L359:
  mov    $0x0,%edi
  jns    L323
L169:
  movslq %ecx,%rsi
  imul   $0x66666667,%rsi,%rsi
  sar    $0x22,%rsi
  mov    %ecx,%r8d
  sar    $0x1f,%r8d
  sub    %r8d,%esi
  lea    (%rsi,%rsi,4),%r8d
  add    %r8d,%r8d
  sub    %r8d,%ecx
  shl    $0x18,%ecx
  add    %ecx,%eax
  movslq %eax,%rcx
  imul   $0x66666667,%rcx,%rcx
  sar    $0x22,%rcx
  mov    %eax,%r8d
  sar    $0x1f,%r8d
  sub    %r8d,%ecx
  lea    (%rcx,%rcx,4),%r8d
  add    %r8d,%r8d
  sub    %r8d,%eax
  shl    $0x18,%eax
  add    %edx,%eax
  movslq %eax,%rdx
  imul   $0x66666667,%rdx,%rdx
  sar    $0x22,%rdx
  sar    $0x1f,%eax
  sub    %eax,%edx
  mov    %edx,%eax
  shr    $0x18,%eax
  add    %ecx,%eax
  mov    %eax,%ecx
  shr    $0x18,%ecx
  add    %esi,%ecx
  and    $0xffffff,%edx
  and    $0xffffff,%eax
  test   $0xfff00000,%ecx
  jne    L14
L60:
  add    %ecx,%ecx
  mov    %eax,%esi
  sar    $0x17,%esi
  or     %esi,%ecx
  add    %eax,%eax
  mov    %edx,%esi
  sar    $0x17,%esi
  or     %esi,%eax
  and    $0xffffff,%eax
  add    %edx,%edx
  and    $0xffffff,%edx
  sub    $0x1,%edi
  test   $0xfff00000,%ecx
  je     L60
L14:
  add    $0x1,%r13d
  jne    L169
  jmp    L323
L267:
  add    %ecx,%ecx
  mov    %eax,%esi
  sar    $0x17,%esi
  or     %esi,%ecx
  add    %eax,%eax
  mov    %edx,%esi
  sar    $0x17,%esi
  or     %esi,%eax
  and    $0xffffff,%eax
  add    %edx,%edx
  and    $0xffffff,%edx
  sub    $0x1,%edi
L323:
  test   $0xfff00000,%ecx
  je     L267
  test   $0xffe00000,%ecx
  je     L115
L309:
  sar    %edx
  mov    %eax,%esi
  shl    $0x17,%esi
  and    $0x800000,%esi
  or     %esi,%edx
  sar    %eax
  mov    %ecx,%esi
  shl    $0x17,%esi
  and    $0x800000,%esi
  or     %esi,%eax
  sar    %ecx
  add    $0x1,%edi
  test   $0xffe00000,%ecx
  jne    L309
L115:
  mov    %edx,%esi
  and    $0xff00,%esi
  cmp    $0x8000,%esi
  jg     L410
  mov    %edx,%r8d
  and    $0xfe0000,%r8d
  cmp    $0x8000,%esi
  cmove  %r8d,%edx
  add    $0x3ff,%edi
  test   %edi,%edi
  jle    L6
  cmp    $0x7ff,%edi
  jg     L150
L401:
  shl    $0x14,%edi
  and    $0xfffff,%ecx
  or     %ecx,%edi
  mov    %edi,%esi
  or     0xc(%rsp),%esi
  shl    $0x8,%eax
  sar    $0x10,%edx
  mov    %edx,%ecx
  or     %eax,%ecx
L317:
  mov    %esi,(%rbx)
  mov    %ecx,0x4(%rbx)
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L410:
  add    $0x10000,%edx
  mov    %edx,%esi
  shr    $0x18,%esi
  add    %esi,%eax
  mov    %eax,%esi
  shr    $0x18,%esi
  add    %esi,%ecx
  and    $0xff0000,%edx
  and    $0xffffff,%eax
  jmp    L323
L6:
  lea    D19(%rip),%rdi
  mov    $0x0,%eax
  call   <cc_rerr@plt>
  mov    $0x0,%esi
  mov    $0x0,%ecx
  jmp    L317
L150:
  lea    D9(%rip),%rdi
  mov    $0x0,%eax
  call   <cc_err@plt>
  mov    $0x7ff,%edi
  mov    $0x0,%edx
  mov    $0x0,%eax
  mov    $0x0,%ecx
  jmp    L401
```

tool_calls: name: read_data
arguments: data_label: D19
type_guessed: string
name: read_data
arguments: data_label: D9
type_guessed: string

tool: D19: Small floating point value converted to 0.0

tool: D9: Overlarge floating point value found

assistant: ```c
void fltrep_stod(s, p) char *s;
int *p;
{
  int ds, dh, dm, dl, bx;
  int th, tm, tl, x, x1, ch, dot;
  ds = 0;
  switch (ch = *s++) {
  case '-':
    ds = 0x80000000;
  case '+':
    ch = *s++;
  default:
    break;
  }
  dh = dm = dl = bx = 0;
  th = 0x00100000;
  tm = tl = x = x1 = dot = 0;
  while (ch == '0')
    ch = *s++;
  if (ch == '.') {
    dot = 1;
    while ((ch = *s++) == '0')
      x -= 1;
  }
  while (1) {
    if (!dot && ch == '.')
      ch = *s++, dot = 1;
    else if (isdigit(ch)) {
      int carry = ((th % 10) << 24) + tm;
      th = th / 10;
      tm = carry / 10;
      tl = (((carry % 10) << 24) + tl) / 10;
      ch = ((ch) - '0');
      dl += ch * tl;
      dm += ch * tm + ((dl >> 24) & 0xff);
      dh += ch * th + ((dm >> 24) & 0xff);
      dl &= 0x00ffffff;
      dm &= 0x00ffffff;
      if (!dot)
        x += 1;
      ch = *s++;
    } else
      break;
  }
  if (dh == 0) {
    *p++ = 0;
    *p++ = 0;
    return;
  }
  if (ch == 'e' || ch == 'E') {
    int sx = 0;
    switch (ch = *s++) {
    case '-':
      sx = 1;
    case '+':
      ch = *s++;
    default:
      break;
    }
    while (isdigit(ch)) {
      x1 = 10 * x1 + ((ch) - '0');
      ch = *s++;
    }
    if (sx)
      x -= x1;
    else
      x += x1;
  }
  if (x > 0) {
    while (x > 0) {
      dl *= 10;
      dm = 10 * dm + ((dl >> 24) & 0xff);
      dh = 10 * dh + ((dm >> 24) & 0xff);
      dl &= 0x00ffffff;
      dm &= 0x00ffffff;
      while ((dh & 0xffe00000) != 0) {
        dl = (dl >> 1) | ((dm & 1) << 23);
        dm = (dm >> 1) | ((dh & 1) << 23);
        dh = dh >> 1;
        bx += 1;
      }
      x -= 1;
    }
  } else if (x < 0) {
    while (x < 0) {
      int carry = ((dh % 10) << 24) + dm;
      dh /= 10;
      dm = carry / 10;
      dl = (dl + ((carry % 10) << 24)) / 10;
      dm += ((dl >> 24) & 0xff);
      dh += ((dm >> 24) & 0xff);
      dl &= 0x00ffffff;
      dm &= 0x00ffffff;
      while ((dh & 0xfff00000) == 0) {
        dh = (dh << 1) | ((dm >> 23) & 1);
        dm = ((dm << 1) | ((dl >> 23) & 1)) & 0x00ffffff;
        dl = (dl << 1) & 0x00ffffff;
        bx -= 1;
      }
      x += 1;
    }
  }
  for (;;) {
    while ((dh & 0xfff00000) == 0) {
      dh = (dh << 1) | ((dm >> 23) & 1);
      dm = ((dm << 1) | ((dl >> 23) & 1)) & 0x00ffffff;
      dl = (dl << 1) & 0x00ffffff;
      bx -= 1;
    }
    while ((dh & 0xffe00000) != 0) {
      dl = (dl >> 1) | ((dm & 1) << 23);
      dm = (dm >> 1) | ((dh & 1) << 23);
      dh = dh >> 1;
      bx += 1;
    }
    if ((dl & 0xff00) > 0x8000) {
      dl += 0x00010000;
      dm += (dl >> 24) & 0xff;
      dh += (dm >> 24) & 0xff;
      dl &= 0x00ff0000;
      dm &= 0x00ffffff;
      continue;
    } else if ((dl & 0xff00) == 0x8000)
      dl &= 0x00fe0000;
    break;
  }
  bx += 0x3ff;
  if (bx <= 0) {
    cc_rerr("Small floating point value converted to 0.0");
    *p++ = 0;
    *p++ = 0;
    return;
  }
  if (bx > 0x7ff) {
    cc_err("Overlarge floating point value found");
    bx = 0x7ff;
    dh = dm = dl = 0;
  }
  dh = ds | (bx << 20) | (dh & 0x000fffff);
  dm = (dm << 8) | ((dl >> 16) & 0xff);
  *p++ = dh;
  *p++ = dm;
  return;
}
```