user: Translate the below assembly code into C programming language:

```asm
<arikkei_dtoa_simple>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %rdi,%r13
  mov    %esi,%r15d
  movsd  %xmm0,0x8(%rsp)
  mov    %edx,%ebp
  mov    %ecx,%r14d
  mov    %r8d,%r12d
  pxor   %xmm0,%xmm0
  movsd  0x8(%rsp),%xmm5
  mov    $0x0,%ebx
  comisd %xmm5,%xmm0
  ja     L83
L127:
  movsd  0x8(%rsp),%xmm0
  mov    $0x0,%eax
  comisd D60(%rip),%xmm0
  jae    L60
L101:
  sub    %eax,%ebp
  cmp    %r14d,%ebp
  cmovb  %r14d,%ebp
  mov    %ebp,%eax
  pxor   %xmm1,%xmm1
  cvtsi2sd %rax,%xmm1
  xorpd  D5(%rip),%xmm1
  movsd  D71(%rip),%xmm0
  call   <pow@plt>
  movapd %xmm0,%xmm6
  mulsd  D102(%rip),%xmm6
  movsd  %xmm6,0x10(%rsp)
  movsd  0x8(%rsp),%xmm7
  addsd  %xmm6,%xmm7
  movsd  %xmm7,0x18(%rsp)
  movsd  %xmm7,0x8(%rsp)
  movsd  D7(%rip),%xmm1
  movapd %xmm7,%xmm0
  andpd  %xmm1,%xmm0
  movsd  D124(%rip),%xmm2
  ucomisd %xmm0,%xmm2
  jbe    L35
  cvttsd2si %xmm7,%rax
  pxor   %xmm0,%xmm0
  cvtsi2sd %rax,%xmm0
  movapd %xmm0,%xmm2
  cmpnlesd %xmm7,%xmm2
  movsd  D60(%rip),%xmm3
  andpd  %xmm3,%xmm2
  subsd  %xmm2,%xmm0
  andnpd %xmm7,%xmm1
  orpd   %xmm1,%xmm0
  movsd  %xmm0,0x8(%rsp)
L35:
  cvttsd2si 0x8(%rsp),%edx
  mov    %r15d,%esi
  sub    %ebx,%esi
  movslq %ebx,%rdi
  add    %r13,%rdi
  call   <arikkei_itoa@plt>
  add    %ebx,%eax
  test   %ebp,%ebp
  je     L2
  movsd  0x10(%rsp),%xmm3
  addsd  %xmm3,%xmm3
  movsd  0x18(%rsp),%xmm0
  subsd  0x8(%rsp),%xmm0
  test   %r12d,%r12d
  jne    L39
  comisd %xmm3,%xmm0
  jbe    L2
L39:
  lea    0x1(%rax),%ecx
  cltq
  movb   $0x2e,0x0(%r13,%rax,1)
  movslq %ecx,%rsi
  add    %r13,%rsi
  lea    (%rcx,%rbp,1),%eax
  movsd  D71(%rip),%xmm4
  movsd  D124(%rip),%xmm6
  movsd  D7(%rip),%xmm5
  movsd  D60(%rip),%xmm7
  jmp    L85
L83:
  movb   $0x2d,(%rdi)
  andpd  D7(%rip),%xmm5
  movsd  %xmm5,0x8(%rsp)
  mov    $0x1,%ebx
  jmp    L127
L60:
  call   <log10@plt>
  movapd %xmm0,%xmm3
  movsd  D7(%rip),%xmm2
  movapd %xmm0,%xmm1
  andpd  %xmm2,%xmm1
  movsd  D124(%rip),%xmm4
  ucomisd %xmm1,%xmm4
  jbe    L72
  cvttsd2si %xmm0,%rax
  pxor   %xmm1,%xmm1
  cvtsi2sd %rax,%xmm1
  movapd %xmm1,%xmm3
  cmpnlesd %xmm0,%xmm3
  movsd  D60(%rip),%xmm4
  andpd  %xmm4,%xmm3
  subsd  %xmm3,%xmm1
  andnpd %xmm0,%xmm2
  movapd %xmm1,%xmm3
  orpd   %xmm2,%xmm3
L72:
  cvttsd2si %xmm3,%eax
  jmp    L101
L99:
  mulsd  %xmm4,%xmm0
  mulsd  %xmm4,%xmm3
  movapd %xmm0,%xmm1
  movapd %xmm0,%xmm2
  andpd  %xmm5,%xmm2
  ucomisd %xmm2,%xmm6
  jbe    L1
  cvttsd2si %xmm0,%rdx
  pxor   %xmm2,%xmm2
  cvtsi2sd %rdx,%xmm2
  movapd %xmm2,%xmm1
  cmpnlesd %xmm0,%xmm1
  andpd  %xmm7,%xmm1
  subsd  %xmm1,%xmm2
  movapd %xmm5,%xmm1
  andnpd %xmm0,%xmm1
  orpd   %xmm2,%xmm1
L1:
  subsd  %xmm1,%xmm0
  add    $0x1,%ecx
  cvttsd2si %xmm1,%edx
  add    $0x30,%edx
  mov    %dl,(%rsi)
  add    $0x1,%rsi
  cmp    %eax,%ecx
  je     L2
L85:
  test   %r12d,%r12d
  jne    L99
  comisd %xmm3,%xmm0
  ja     L99
  mov    %ecx,%eax
L2:
  movslq %eax,%rdx
  movb   $0x0,0x0(%r13,%rdx,1)
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: parse_data
arguments: tag: D60
datatype: f64[2]
name: parse_data
arguments: tag: D5
datatype: f32[4]
name: parse_data
arguments: tag: D71
datatype: f64
name: parse_data
arguments: tag: D102
datatype: f64
name: parse_data
arguments: tag: D7
datatype: qword[2]
name: parse_data
arguments: tag: D124
datatype: f32[2]

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

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

tool: D71: 10

tool: D102: 0.5

tool: {"D7": [0x7fffffffffffffff,0x0000000000000000]}

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

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;
}
```