user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<a2f>:
  endbr64
  push   %r15
  push   %r14
  xor    %r14d,%r14d
  push   %r13
  push   %r12
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x18,%rsp
  jmp    L25
  nopl   (%rax)
L171:
  add    $0x1,%r14d
L25:
  movsbl (%rbx),%edi
  mov    %rbx,%r12
  add    $0x1,%rbx
  call   <isspace@plt>
  test   %rax,%rax
  jne    L171
  movzbl (%r12),%eax
  cmp    $0x2d,%al
  je     L9
  mov    $0x1,%r13d
  cmp    $0x2b,%al
  je     L68
L6:
  movslq %r14d,%r15
  pxor   %xmm7,%xmm7
  add    %rbp,%r15
  movsd  %xmm7,(%rsp)
  mov    %r15,%rbx
  jmp    L113
  nopw   0x0(%rax,%rax,1)
L78:
  movsbl (%rbx),%eax
  movsd  D59(%rip),%xmm0
  pxor   %xmm1,%xmm1
  add    $0x1,%rbx
  mulsd  (%rsp),%xmm0
  sub    $0x30,%eax
  cvtsi2sd %eax,%xmm1
  addsd  %xmm0,%xmm1
  movsd  %xmm1,(%rsp)
L113:
  mov    %r14d,%r12d
  movsbl (%rbx),%edi
  sub    %r15d,%r12d
  add    %ebx,%r12d
  call   <isdigit@plt>
  test   %rax,%rax
  jne    L78
  xor    %eax,%eax
  cmpb   $0x2e,(%rbx)
  movsd  D26(%rip),%xmm7
  sete   %al
  add    %eax,%r12d
  movsd  %xmm7,0x8(%rsp)
  movslq %r12d,%r15
  add    %rbp,%r15
  mov    %r15,%rbx
  jmp    L197
  nopw   0x0(%rax,%rax,1)
L208:
  movsbl (%rbx),%eax
  pxor   %xmm1,%xmm1
  add    $0x1,%rbx
  movsd  D59(%rip),%xmm0
  mulsd  (%rsp),%xmm0
  movsd  D59(%rip),%xmm2
  mulsd  0x8(%rsp),%xmm2
  sub    $0x30,%eax
  cvtsi2sd %eax,%xmm1
  addsd  %xmm0,%xmm1
  movsd  %xmm2,0x8(%rsp)
  movsd  %xmm1,(%rsp)
L197:
  mov    %r12d,%r14d
  movsbl (%rbx),%edi
  sub    %r15d,%r14d
  add    %ebx,%r14d
  call   <isdigit@plt>
  test   %rax,%rax
  jne    L208
  movzbl (%rbx),%eax
  mov    %eax,%edx
  and    $0xffffffdf,%edx
  cmp    $0x45,%dl
  jne    L10
  add    $0x1,%r14d
  movslq %r14d,%rax
  movzbl 0x0(%rbp,%rax,1),%eax
L10:
  cmp    $0x2d,%al
  je     L28
  mov    $0x1,%r12d
  cmp    $0x2b,%al
  je     L192
L110:
  movslq %r14d,%r14
  add    %rbp,%r14
  xor    %ebp,%ebp
  jmp    L55
  nopl   0x0(%rax,%rax,1)
L102:
  movsbl (%r14),%eax
  lea    0x0(%rbp,%rbp,4),%edx
  add    $0x1,%r14
  lea    -0x30(%rax,%rdx,2),%ebp
L55:
  movsbl (%r14),%edi
  call   <isdigit@plt>
  test   %rax,%rax
  jne    L102
  cmp    $0x1,%r12d
  je     L24
  movsd  D17(%rip),%xmm0
  test   %ebp,%ebp
  jle    L43
  nopl   0x0(%rax,%rax,1)
L37:
  movsd  (%rsp),%xmm6
  add    $0x1,%eax
  mulsd  %xmm0,%xmm6
  movsd  %xmm6,(%rsp)
  cmp    %eax,%ebp
  jne    L37
L43:
  pxor   %xmm0,%xmm0
  cvtsi2sd %r13d,%xmm0
  mulsd  (%rsp),%xmm0
  divsd  0x8(%rsp),%xmm0
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L28:
  mov    $0xffffffff,%r12d
L192:
  add    $0x1,%r14d
  jmp    L110
  nop
L9:
  mov    $0xffffffff,%r13d
L68:
  add    $0x1,%r14d
  jmp    L6
  nop
L24:
  test   %ebp,%ebp
  jle    L43
  movsd  D59(%rip),%xmm0
  xor    %eax,%eax
  xchg   %ax,%ax
L120:
  movsd  (%rsp),%xmm7
  add    $0x1,%eax
  mulsd  %xmm0,%xmm7
  movsd  %xmm7,(%rsp)
  cmp    %eax,%ebp
  jne    L120
  jmp    L43
```

tool_calls: name: parse_data
arguments: label: D59
data_type: f64
name: parse_data
arguments: label: D26
data_type: f64
name: parse_data
arguments: label: D17
data_type: f64

tool: D59: 10

tool: D26: 1

tool: D17: 0.1

assistant: ```c
double a2f(char s[]) {
  double val, power;
  int i, sign, exp_sign, exp;
  for (i = 0; isspace(s[i]); i++)
    ;
  sign = (s[i] == '-') ? -1 : 1;
  if (s[i] == '+' || s[i] == '-')
    i++;
  for (val = 0.0; isdigit(s[i]); i++)
    val = val * 10 + (s[i] - '0');
  if (s[i] == '.')
    i++;
  for (power = 1.0; isdigit(s[i]); i++) {
    val = val * 10 + (s[i] - '0');
    power *= 10.0;
  }
  if (s[i] == 'e' || s[i] == 'E')
    i++;
  exp_sign = (s[i] == '-') ? -1 : 1;
  if (s[i] == '+' || s[i] == '-')
    i++;
  for (exp = 0; isdigit(s[i]); i++)
    exp = exp * 10 + (s[i] - '0');
  if (exp_sign > 0) {
    for (i = 0; i < exp; i++)
      val *= 10;
  } else {
    for (i = 0; i < exp; i++)
      val *= 0.1;
  }
  return sign * val / power;
}
```