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

```asm
<streamtod>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x38(%rbp)
  mov    %rsi,-0x40(%rbp)
  mov    %rdx,-0x48(%rbp)
  movl   $0x0,-0x24(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x18(%rbp)
  movsd  D41(%rip),%xmm0
  movsd  %xmm0,-0x10(%rbp)
  movl   $0x0,-0x20(%rbp)
  movl   $0x0,-0x1c(%rbp)
  movsd  D57(%rip),%xmm0
  movsd  %xmm0,-0x8(%rbp)
  mov    -0x38(%rbp),%rax
  cmp    -0x40(%rbp),%rax
  je     L177
  mov    -0x38(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2d,%al
  jne    L108
  movl   $0x1,-0x24(%rbp)
  addq   $0x1,-0x38(%rbp)
  jmp    L177
L108:
  mov    -0x38(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2b,%al
  jne    L177
  addq   $0x1,-0x38(%rbp)
  jmp    L177
L25:
  movsd  -0x18(%rbp),%xmm1
  movsd  D57(%rip),%xmm0
  mulsd  %xmm0,%xmm1
  mov    -0x38(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  sub    $0x30,%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x18(%rbp)
  addq   $0x1,-0x38(%rbp)
L177:
  mov    -0x38(%rbp),%rax
  cmp    -0x40(%rbp),%rax
  je     L212
  mov    -0x38(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2f,%al
  jle    L212
  mov    -0x38(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x39,%al
  jle    L25
L212:
  mov    -0x38(%rbp),%rax
  cmp    -0x40(%rbp),%rax
  je     L238
  mov    -0x38(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2e,%al
  jne    L238
  addq   $0x1,-0x38(%rbp)
  jmp    L236
L150:
  mov    -0x38(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  sub    $0x30,%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mulsd  -0x10(%rbp),%xmm0
  movsd  -0x18(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x18(%rbp)
  movsd  -0x10(%rbp),%xmm1
  movsd  D41(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x10(%rbp)
  addq   $0x1,-0x38(%rbp)
L236:
  mov    -0x38(%rbp),%rax
  cmp    -0x40(%rbp),%rax
  je     L238
  mov    -0x38(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2f,%al
  jle    L238
  mov    -0x38(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x39,%al
  jle    L150
L238:
  cmpl   $0x0,-0x24(%rbp)
  je     L65
  movsd  -0x18(%rbp),%xmm0
  movq   D53(%rip),%xmm1
  xorpd  %xmm1,%xmm0
  movsd  %xmm0,-0x18(%rbp)
L65:
  mov    -0x38(%rbp),%rax
  cmp    -0x40(%rbp),%rax
  je     L86
  mov    -0x38(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x65,%al
  je     L82
  mov    -0x38(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x45,%al
  jne    L86
L82:
  addq   $0x1,-0x38(%rbp)
  mov    -0x38(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2d,%al
  jne    L215
  movl   $0x1,-0x20(%rbp)
  addq   $0x1,-0x38(%rbp)
  jmp    L290
L215:
  mov    -0x38(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2b,%al
  jne    L290
  addq   $0x1,-0x38(%rbp)
  jmp    L290
L184:
  mov    -0x1c(%rbp),%edx
  mov    %edx,%eax
  shl    $0x2,%eax
  add    %edx,%eax
  add    %eax,%eax
  mov    %eax,%edx
  mov    -0x38(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  sub    $0x30,%eax
  add    %edx,%eax
  mov    %eax,-0x1c(%rbp)
  addq   $0x1,-0x38(%rbp)
L290:
  mov    -0x38(%rbp),%rax
  cmp    -0x40(%rbp),%rax
  je     L86
  mov    -0x38(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2f,%al
  jle    L86
  mov    -0x38(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x39,%al
  jle    L184
L86:
  cmpl   $0x0,-0x1c(%rbp)
  je     L241
  jmp    L53
L30:
  movsd  -0x8(%rbp),%xmm1
  movsd  D57(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x8(%rbp)
  subl   $0x1,-0x1c(%rbp)
L53:
  cmpl   $0x1,-0x1c(%rbp)
  jg     L30
  cmpl   $0x0,-0x20(%rbp)
  je     L43
  movsd  -0x18(%rbp),%xmm0
  divsd  -0x8(%rbp),%xmm0
  movsd  %xmm0,-0x18(%rbp)
  jmp    L241
L43:
  movsd  -0x18(%rbp),%xmm0
  mulsd  -0x8(%rbp),%xmm0
  movsd  %xmm0,-0x18(%rbp)
L241:
  mov    -0x48(%rbp),%rax
  movsd  -0x18(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x38(%rbp),%rax
  pop    %rbp
  ret
```

tool_calls: name: disassemble_data
arguments: data_tag: D41
type_guessed: byte[8]
name: disassemble_data
arguments: data_tag: D57
type_guessed: f64
name: disassemble_data
arguments: data_tag: D53
type_guessed: f32[2]

tool: {"D41": [0x00,0x00,0x00,0xa0,0x99,0x99,0xb9,0x3f]}

tool: D57: 10

tool: {"D53": [0.0,-0.0]}

assistant: ```c
const char *streamtod(const char *first, const char *last, double *out) {
  int negative = 0;
  double result = 0;
  double inv_base = 0.1f;
  int exponent_negative = 0;
  int exponent = 0;
  double power_of_ten = 10;
  if (first != last) {
    if (*first == '-') {
      negative = 1;
      ++first;
    } else if (*first == '+') {
      ++first;
    }
  }
  for (; first != last && (*first >= '0' && *first <= '9'); ++first) {
    result = (10 * result) + (*first - '0');
  }
  if (first != last && *first == '.') {
    ++first;
    for (; first != last && (*first >= '0' && *first <= '9'); ++first) {
      result += (*first - '0') * inv_base;
      inv_base *= 0.1f;
    }
  }
  if (negative) {
    result *= -1;
  }
  if (first != last && (*first == 'e' || *first == 'E')) {
    ++first;
    if (*first == '-') {
      exponent_negative = 1;
      ++first;
    } else if (*first == '+') {
      ++first;
    }
    for (; first != last && (*first >= '0' && *first <= '9'); ++first) {
      exponent = 10 * exponent + (*first - '0');
    }
  }
  if (exponent) {
    for (; exponent > 1; exponent--) {
      power_of_ten *= 10;
    }
    if (exponent_negative) {
      result /= power_of_ten;
    } else {
      result *= power_of_ten;
    }
  }
  *out = result;
  return first;
}
```