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

```asm
<libc_dtos>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x70,%rsp
  movsd  %xmm0,-0x68(%rbp)
  mov    $0x20,%edi
  call   <malloc@plt>
  mov    %rax,-0x28(%rbp)
  mov    -0x28(%rbp),%rax
  movb   $0x0,(%rax)
  mov    -0x28(%rbp),%rax
  mov    %rax,-0x20(%rbp)
  movq   $0x0,-0x18(%rbp)
  movq   $0x0,-0x58(%rbp)
  movq   $0x0,-0x50(%rbp)
  movq   $0x0,-0x48(%rbp)
  movq   $0x0,-0x10(%rbp)
  movq   $0x0,-0x8(%rbp)
  movq   $0x0,-0x40(%rbp)
  movq   $0x0,-0x38(%rbp)
  movq   $0x0,-0x30(%rbp)
  pxor   %xmm0,%xmm0
  comisd -0x68(%rbp),%xmm0
  jbe    L5
  mov    -0x58(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x58(%rbp)
  mov    %rax,%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movb   $0x2d,(%rax)
  movsd  -0x68(%rbp),%xmm0
  movq   D5(%rip),%xmm1
  xorpd  %xmm1,%xmm0
  movsd  %xmm0,-0x68(%rbp)
  movq   $0x1,-0x30(%rbp)
L5:
  movsd  -0x68(%rbp),%xmm0
  cvttsd2si %xmm0,%rax
  mov    %rax,-0x48(%rbp)
  mov    -0x48(%rbp),%rax
  mov    %rax,-0x10(%rbp)
  cmpq   $0x0,-0x48(%rbp)
  jne    L80
  mov    -0x58(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x58(%rbp)
  mov    %rax,%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movb   $0x30,(%rax)
L80:
  mov    -0x58(%rbp),%rax
  mov    %rax,-0x50(%rbp)
  jmp    L79
L48:
  mov    -0x48(%rbp),%rcx
  movabs $0x6666666666666667,%rdx
  mov    %rcx,%rax
  imul   %rdx
  mov    %rdx,%rax
  sar    $0x2,%rax
  mov    %rcx,%rsi
  sar    $0x3f,%rsi
  sub    %rsi,%rax
  mov    %rax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  add    %rax,%rax
  sub    %rax,%rcx
  mov    %rcx,%rdx
  mov    %rdx,-0x8(%rbp)
  mov    -0x48(%rbp),%rcx
  movabs $0x6666666666666667,%rdx
  mov    %rcx,%rax
  imul   %rdx
  mov    %rdx,%rax
  sar    $0x2,%rax
  sar    $0x3f,%rcx
  mov    %rcx,%rdx
  sub    %rdx,%rax
  mov    %rax,-0x48(%rbp)
  mov    -0x8(%rbp),%rax
  lea    0x30(%rax),%ecx
  mov    -0x50(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x50(%rbp)
  mov    %rax,%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  mov    %ecx,%edx
  mov    %dl,(%rax)
L79:
  cmpq   $0x0,-0x48(%rbp)
  jg     L48
  mov    -0x50(%rbp),%rax
  lea    -0x1(%rax),%rdx
  mov    %rdx,-0x50(%rbp)
  mov    %rax,-0x18(%rbp)
  jmp    L34
L12:
  mov    -0x50(%rbp),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%edx
  mov    -0x58(%rbp),%rcx
  mov    -0x20(%rbp),%rax
  add    %rcx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %edx,%esi
  mov    %eax,%edi
  call   <swap@plt>
  addq   $0x1,-0x58(%rbp)
  subq   $0x1,-0x50(%rbp)
L34:
  mov    -0x50(%rbp),%rax
  cmp    -0x58(%rbp),%rax
  jg     L12
  mov    -0x18(%rbp),%rax
  mov    %rax,-0x58(%rbp)
  pxor   %xmm1,%xmm1
  cvtsi2sdq -0x10(%rbp),%xmm1
  movsd  -0x68(%rbp),%xmm0
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x68(%rbp)
  mov    -0x58(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x58(%rbp)
  mov    %rax,%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movb   $0x2e,(%rax)
  mov    $0x13,%eax
  sub    -0x58(%rbp),%rax
  mov    %rax,%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x38(%rbp)
  cmpq   $0x6,-0x38(%rbp)
  jg     L78
  movq   $0x7,-0x38(%rbp)
L78:
  movq   $0x0,-0x40(%rbp)
  jmp    L6
L1:
  movsd  -0x68(%rbp),%xmm1
  movsd  D4(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x68(%rbp)
  movsd  -0x68(%rbp),%xmm0
  cvttsd2si %xmm0,%rcx
  movabs $0x6666666666666667,%rdx
  mov    %rcx,%rax
  imul   %rdx
  mov    %rdx,%rax
  sar    $0x2,%rax
  mov    %rcx,%rdx
  sar    $0x3f,%rdx
  sub    %rdx,%rax
  mov    %rax,-0x8(%rbp)
  mov    -0x8(%rbp),%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  add    %rax,%rax
  sub    %rax,%rcx
  mov    %rcx,%rdx
  mov    %rdx,-0x8(%rbp)
  mov    -0x8(%rbp),%rax
  lea    0x30(%rax),%ecx
  mov    -0x58(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x58(%rbp)
  mov    %rax,%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  mov    %ecx,%edx
  mov    %dl,(%rax)
  addq   $0x1,-0x40(%rbp)
L6:
  mov    -0x40(%rbp),%rax
  cmp    -0x38(%rbp),%rax
  jl     L1
  mov    -0x58(%rbp),%rax
  lea    -0x1(%rax),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
  mov    -0x20(%rbp),%rax
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: label: D5
type_guessed: byte[8]
name: disassemble_data
arguments: label: D4
type_guessed: byte[8]

tool: {"D5": [0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80]}

tool: {"D4": [0x00,0x00,0x00,0x00,0x00,0x00,0x24,0x40]}

assistant: ```c
char *libc_dtos(double n) {
  char *buff = malloc(32);
  *buff = +0;
  char *a1 = buff;
  long long i = 0, j = 0, k = 0;
  long long x = 0, y = 0, t = 0, z = 0, u = 0, p = 0;
  if (n < 0) {
    a1[j++] = '-';
    n = -n;
    p = 1;
  }
  y = x = n;
  if (x == 0) {
    a1[j++] = '0';
  }
  k = j;
  while (x > 0) {
    t = x % 10;
    x /= 10;
    a1[k++] = t + '0';
  }
  i = k--;
  while (k > j) {
    swap(a1[j], a1[k]);
    j++;
    k--;
  }
  j = i;
  n = n - y;
  a1[j++] = '.';
  u = (19 - j) + p;
  if (u < 7) {
    u = 7;
  }
  z = 0;
  while (z < u) {
    n = n * 10;
    t = (long long)n % 10;
    a1[j++] = t + '0';
    z++;
  }
  a1[j - 1] = '\0';
  return a1;
}
```