user: What is the c source code of the assembly code below:

```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     L116
  movq   D121(%rip),%xmm7
  mov    %rdi,%r14
  xor    %r13d,%r13d
  movaps %xmm7,(%rsp)
L31:
  comisd D117(%rip),%xmm2
  movsd  D10(%rip),%xmm5
  jae    L115
L145:
  cmp    %edx,%ebp
  pxor   %xmm1,%xmm1
  movsd  D99(%rip),%xmm3
  movsd  %xmm5,0x18(%rsp)
  cmovb  %edx,%ebp
  movsd  %xmm2,0x10(%rsp)
  movapd %xmm3,%xmm0
  mov    %ebp,%eax
  cvtsi2sd %rax,%xmm1
  xorpd  D86(%rip),%xmm1
  call   <pow@plt>
  movsd  0x10(%rsp),%xmm2
  movsd  (%rsp),%xmm4
  movsd  D48(%rip),%xmm1
  movsd  0x18(%rsp),%xmm5
  mulsd  %xmm0,%xmm1
  addsd  %xmm1,%xmm2
  movapd %xmm2,%xmm0
  movapd %xmm2,%xmm6
  andpd  %xmm4,%xmm2
  ucomisd %xmm2,%xmm5
  jbe    L42
  cvttsd2si %xmm0,%rax
  pxor   %xmm2,%xmm2
  movsd  D117(%rip),%xmm7
  andnpd %xmm0,%xmm4
  cvtsi2sd %rax,%xmm2
  movapd %xmm2,%xmm6
  cmpnlesd %xmm0,%xmm6
  andpd  %xmm7,%xmm6
  subsd  %xmm6,%xmm2
  movapd %xmm2,%xmm6
  orpd   %xmm4,%xmm6
L42:
  cvttsd2si %xmm6,%edx
  mov    %r15d,%esi
  mov    %r14,%rdi
  movsd  %xmm5,0x28(%rsp)
  movsd  %xmm0,0x20(%rsp)
  movsd  %xmm1,0x18(%rsp)
  movsd  %xmm6,0x10(%rsp)
  call   <arikkei_itoa@plt>
  add    %r13d,%eax
  test   %ebp,%ebp
  je     L119
  movsd  0x18(%rsp),%xmm1
  movsd  0x10(%rsp),%xmm6
  test   %r12d,%r12d
  movsd  0x20(%rsp),%xmm0
  mov    D99(%rip),%rdi
  addsd  %xmm1,%xmm1
  movsd  0x28(%rsp),%xmm5
  subsd  %xmm6,%xmm0
  movq   %rdi,%xmm3
  je     L109
  movslq %eax,%rdx
  lea    0x1(%rax),%esi
  movsd  (%rsp),%xmm4
  lea    0x2(%rbx,%rdx,1),%rcx
  movb   $0x2e,(%rbx,%rdx,1)
  movslq %esi,%rax
  lea    -0x1(%rbp),%edx
  add    %rbx,%rax
  add    %rdx,%rcx
  nopl   0x0(%rax)
L16:
  mulsd  %xmm3,%xmm0
  movapd %xmm0,%xmm2
  movapd %xmm0,%xmm1
  andpd  %xmm4,%xmm2
  ucomisd %xmm2,%xmm5
  jbe    L27
  cvttsd2si %xmm0,%rdx
  pxor   %xmm2,%xmm2
  movsd  D117(%rip),%xmm7
  cvtsi2sd %rdx,%xmm2
  movapd %xmm2,%xmm1
  cmpnlesd %xmm0,%xmm1
  andpd  %xmm7,%xmm1
  subsd  %xmm1,%xmm2
  movapd %xmm4,%xmm1
  andnpd %xmm0,%xmm1
  orpd   %xmm2,%xmm1
L27:
  cvttsd2si %xmm1,%edx
  add    $0x1,%rax
  subsd  %xmm1,%xmm0
  add    $0x30,%edx
  mov    %dl,-0x1(%rax)
  cmp    %rcx,%rax
  jne    L16
  lea    (%rsi,%rbp,1),%eax
L119:
  movslq %eax,%rdx
  movb   $0x0,(%rbx,%rdx,1)
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L109:
  comisd %xmm1,%xmm0
  jbe    L119
  lea    0x1(%rax),%esi
  movslq %eax,%rdx
  movsd  (%rsp),%xmm6
  lea    0x1(%rbp,%rax,1),%eax
  movslq %esi,%rcx
  movb   $0x2e,(%rbx,%rdx,1)
  add    %rbx,%rcx
  comisd %xmm1,%xmm0
  jbe    L18
  nopl   (%rax)
L30:
  mulsd  %xmm3,%xmm0
  mulsd  %xmm3,%xmm1
  movapd %xmm0,%xmm4
  movapd %xmm0,%xmm2
  andpd  %xmm6,%xmm4
  ucomisd %xmm4,%xmm5
  jbe    L49
  cvttsd2si %xmm0,%rdx
  pxor   %xmm4,%xmm4
  movsd  D117(%rip),%xmm7
  cvtsi2sd %rdx,%xmm4
  movapd %xmm4,%xmm2
  cmpnlesd %xmm0,%xmm2
  andpd  %xmm7,%xmm2
  subsd  %xmm2,%xmm4
  movapd %xmm6,%xmm2
  andnpd %xmm0,%xmm2
  orpd   %xmm4,%xmm2
L49:
  cvttsd2si %xmm2,%edx
  add    $0x1,%esi
  subsd  %xmm2,%xmm0
  add    $0x1,%rcx
  add    $0x30,%edx
  mov    %dl,-0x1(%rcx)
  cmp    %eax,%esi
  je     L119
  comisd %xmm1,%xmm0
  ja     L30
L18:
  mov    %esi,%eax
  jmp    L119
  nop
L115:
  movapd %xmm2,%xmm0
  mov    %edx,0x18(%rsp)
  movsd  %xmm2,0x10(%rsp)
  call   <log10@plt>
  movsd  (%rsp),%xmm3
  movsd  0x10(%rsp),%xmm2
  movsd  D10(%rip),%xmm5
  movapd %xmm0,%xmm1
  mov    0x18(%rsp),%edx
  andpd  %xmm3,%xmm1
  ucomisd %xmm1,%xmm5
  jbe    L79
  cvttsd2si %xmm0,%rax
  pxor   %xmm1,%xmm1
  movsd  D117(%rip),%xmm7
  andnpd %xmm0,%xmm3
  cvtsi2sd %rax,%xmm1
  movapd %xmm1,%xmm4
  cmpnlesd %xmm0,%xmm4
  andpd  %xmm7,%xmm4
  subsd  %xmm4,%xmm1
  orpd   %xmm3,%xmm1
  movapd %xmm1,%xmm0
L79:
  cvttsd2si %xmm0,%eax
  sub    %eax,%edx
  jmp    L145
  cs nopw 0x0(%rax,%rax,1)
L116:
  movq   D121(%rip),%xmm7
  movb   $0x2d,(%rdi)
  sub    $0x1,%r15d
  lea    0x1(%rdi),%r14
  mov    $0x1,%r13d
  movaps %xmm7,(%rsp)
  andpd  %xmm7,%xmm2
  jmp    L31
```

tool_calls: name: parse_data
arguments: data_tag: D121
data_type: qword
name: parse_data
arguments: data_tag: D117
data_type: f64[2]
name: parse_data
arguments: data_tag: D10
data_type: f32[2]
name: parse_data
arguments: data_tag: D99
data_type: f64
name: parse_data
arguments: data_tag: D86
data_type: f32[4]
name: parse_data
arguments: data_tag: D48
data_type: f64

tool: D121: 9223372036854775807

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

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

tool: D99: 10

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

tool: D48: 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;
}
```