user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<arikkei_dtoa_simple>:
  endbr64
  push   %r15
  movapd %xmm0,%xmm2
  pxor   %xmm0,%xmm0
  mov    %esi,%r15d
  push   %r14
  push   %r13
  push   %r12
  mov    %r8d,%r12d
  push   %rbp
  mov    %ecx,%ebp
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x38,%rsp
  comisd %xmm2,%xmm0
  ja     L22
  movq   D8(%rip),%xmm7
  mov    %rdi,%r14
  xor    %r13d,%r13d
  movaps %xmm7,(%rsp)
L73:
  comisd D3(%rip),%xmm2
  movsd  D37(%rip),%xmm6
  jae    L5
L10:
  cmp    %edx,%ebp
  pxor   %xmm1,%xmm1
  movsd  D17(%rip),%xmm4
  movsd  %xmm6,0x18(%rsp)
  cmovb  %edx,%ebp
  movsd  %xmm2,0x10(%rsp)
  movapd %xmm4,%xmm0
  mov    %ebp,%eax
  cvtsi2sd %rax,%xmm1
  xorpd  D35(%rip),%xmm1
  call   <pow@plt>
  movsd  0x10(%rsp),%xmm2
  movsd  (%rsp),%xmm3
  mulsd  D33(%rip),%xmm0
  movsd  0x18(%rsp),%xmm6
  movapd %xmm2,%xmm1
  addsd  %xmm0,%xmm1
  movapd %xmm1,%xmm2
  movapd %xmm1,%xmm5
  andpd  %xmm3,%xmm2
  ucomisd %xmm2,%xmm6
  jbe    L27
  cvttsd2si %xmm1,%rax
  pxor   %xmm2,%xmm2
  movsd  D3(%rip),%xmm7
  andnpd %xmm1,%xmm3
  cvtsi2sd %rax,%xmm2
  movapd %xmm2,%xmm5
  cmpnlesd %xmm1,%xmm5
  andpd  %xmm7,%xmm5
  subsd  %xmm5,%xmm2
  movapd %xmm2,%xmm5
  orpd   %xmm3,%xmm5
L27:
  cvttsd2si %xmm5,%edx
  mov    %r15d,%esi
  mov    %r14,%rdi
  movsd  %xmm6,0x28(%rsp)
  movsd  %xmm1,0x20(%rsp)
  movsd  %xmm0,0x18(%rsp)
  movsd  %xmm5,0x10(%rsp)
  call   <arikkei_itoa@plt>
  add    %eax,%r13d
  test   %ebp,%ebp
  je     L114
  movsd  0x18(%rsp),%xmm0
  movsd  0x10(%rsp),%xmm5
  test   %r12d,%r12d
  movsd  0x20(%rsp),%xmm1
  mov    D17(%rip),%rax
  addsd  %xmm0,%xmm0
  movsd  0x28(%rsp),%xmm6
  subsd  %xmm5,%xmm1
  movq   %rax,%xmm4
  je     L103
L40:
  movslq %r13d,%rax
  lea    0x1(%r13),%ecx
  movsd  (%rsp),%xmm5
  lea    0x1(%rbp,%r13,1),%r13d
  movb   $0x2e,(%rbx,%rax,1)
  movslq %ecx,%rdx
  add    %rbx,%rdx
  nopl   0x0(%rax)
L59:
  test   %r12d,%r12d
  jne    L17
  comisd %xmm0,%xmm1
  jbe    L126
L17:
  mulsd  %xmm4,%xmm1
  mulsd  %xmm4,%xmm0
  movapd %xmm1,%xmm3
  movapd %xmm1,%xmm2
  andpd  %xmm5,%xmm3
  ucomisd %xmm3,%xmm6
  jbe    L133
  cvttsd2si %xmm1,%rax
  pxor   %xmm3,%xmm3
  movsd  D3(%rip),%xmm7
  cvtsi2sd %rax,%xmm3
  movapd %xmm3,%xmm2
  cmpnlesd %xmm1,%xmm2
  andpd  %xmm7,%xmm2
  subsd  %xmm2,%xmm3
  movapd %xmm5,%xmm2
  andnpd %xmm1,%xmm2
  orpd   %xmm3,%xmm2
L133:
  cvttsd2si %xmm2,%eax
  add    $0x1,%ecx
  subsd  %xmm2,%xmm1
  add    $0x1,%rdx
  add    $0x30,%eax
  mov    %al,-0x1(%rdx)
  cmp    %ecx,%r13d
  jne    L59
L114:
  movslq %r13d,%rax
  movb   $0x0,(%rbx,%rax,1)
  add    $0x38,%rsp
  mov    %r13d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L103:
  comisd %xmm0,%xmm1
  jbe    L114
  jmp    L40
  nopl   0x0(%rax,%rax,1)
L5:
  movapd %xmm2,%xmm0
  mov    %edx,0x18(%rsp)
  movsd  %xmm2,0x10(%rsp)
  call   <log10@plt>
  movsd  (%rsp),%xmm3
  movsd  0x10(%rsp),%xmm2
  movsd  D37(%rip),%xmm6
  movapd %xmm0,%xmm1
  mov    0x18(%rsp),%edx
  andpd  %xmm3,%xmm1
  ucomisd %xmm1,%xmm6
  jbe    L29
  cvttsd2si %xmm0,%rax
  pxor   %xmm1,%xmm1
  movsd  D3(%rip),%xmm7
  andnpd %xmm0,%xmm3
  cvtsi2sd %rax,%xmm1
  movapd %xmm1,%xmm4
  cmpnlesd %xmm0,%xmm4
  andpd  %xmm7,%xmm4
  subsd  %xmm4,%xmm1
  movapd %xmm1,%xmm0
  orpd   %xmm3,%xmm0
L29:
  cvttsd2si %xmm0,%eax
  sub    %eax,%edx
  jmp    L10
  cs nopw 0x0(%rax,%rax,1)
L22:
  movq   D8(%rip),%xmm7
  movb   $0x2d,(%rdi)
  sub    $0x1,%r15d
  lea    0x1(%rdi),%r14
  mov    $0x1,%r13d
  movaps %xmm7,(%rsp)
  andpd  %xmm7,%xmm2
  jmp    L73
  cs nopw 0x0(%rax,%rax,1)
L126:
  mov    %ecx,%r13d
  jmp    L114
```

tool_calls: name: parse_data
arguments: tag: D8
datatype: qword
name: parse_data
arguments: tag: D3
datatype: f64[2]
name: parse_data
arguments: tag: D37
datatype: f32[2]
name: parse_data
arguments: tag: D17
datatype: f64
name: parse_data
arguments: tag: D35
datatype: f32[4]
name: parse_data
arguments: tag: D33
datatype: f64

tool: D8: 9223372036854775807

tool: {"D3": [1.0,4503599627370496.0]}

tool: {"D37": [0.0,176.0]}

tool: D17: 10

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

tool: D33: 0.5

assistant: ```c
unsigned int arikkei_dtoa_simple(unsigned char *buf, unsigned int len, double val, unsigned int tprec, unsigned int fprec, unsigned int padf) {
  double dival, fval, epsilon;
  int idigits, ival, ilen, i;
  i = 0;
  if (val < 0.0) {
    buf[i++] = '-';
    val = fabs(val);
  }
  if (val >= 1.0) {
    idigits = (int)floor(log10(val));
  } else {
    idigits = 0;
  }
  if ((tprec - idigits) > fprec)
    fprec = tprec - idigits;
  epsilon = 0.5 * pow(10.0, -(double)fprec);
  val += epsilon;
  epsilon *= 2;
  dival = floor(val);
  ival = (int)dival;
  fval = val - dival;
  ilen = arikkei_itoa(buf + i, len - i, ival);
  i += ilen;
  tprec -= ilen;
  if ((fprec > 0) && (padf || (fval > epsilon))) {
    buf[i++] = '.';
    while ((fprec > 0) && (padf || (fval > epsilon))) {
      fval *= 10.0;
      epsilon *= 10.0;
      dival = floor(fval);
      fval -= dival;
      buf[i++] = '0' + (unsigned char)dival;
      fprec -= 1;
    }
  }
  buf[i] = 0;
  return i;
}
```