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

```asm
<io_get_size>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  add    $0xffffffffffffff80,%rsp
  mov    %rdi,-0x68(%rbp)
  mov    %esi,-0x6c(%rbp)
  mov    %rdx,-0x78(%rbp)
  mov    %ecx,-0x70(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movq   $0x0,-0x50(%rbp)
  movq   $0x0,-0x48(%rbp)
  movq   $0x0,-0x40(%rbp)
  movq   $0x0,-0x38(%rbp)
  movq   $0x0,-0x30(%rbp)
  movq   $0x0,-0x28(%rbp)
  movq   $0x0,-0x20(%rbp)
  movq   $0x0,-0x18(%rbp)
  movl   $0x1,-0x58(%rbp)
  movl   $0x20,-0x54(%rbp)
  cmpq   $0x40000000,-0x68(%rbp)
  jbe    L66
  movl   $0x40000000,-0x58(%rbp)
  movl   $0x47,-0x54(%rbp)
  jmp    L43
L66:
  cmpq   $0x100000,-0x68(%rbp)
  jbe    L82
  movl   $0x100000,-0x58(%rbp)
  movl   $0x4d,-0x54(%rbp)
  jmp    L43
L82:
  cmpq   $0x400,-0x68(%rbp)
  jbe    L64
  movl   $0x400,-0x58(%rbp)
  movl   $0x6b,-0x54(%rbp)
  jmp    L43
L64:
  movl   $0x1,-0x58(%rbp)
L43:
  cmpl   $0x0,-0x6c(%rbp)
  jg     L119
  pxor   %xmm1,%xmm1
  cvtsi2sdl -0x54(%rbp),%xmm1
  movq   %xmm1,%rcx
  mov    -0x58(%rbp),%eax
  movslq %eax,%rsi
  mov    -0x68(%rbp),%rax
  mov    $0x0,%edx
  div    %rsi
  mov    %eax,%edx
  lea    -0x50(%rbp),%rax
  movq   %rcx,%xmm0
  mov    %edx,%ecx
  lea    D17(%rip),%rdx
  mov    $0x40,%esi
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <snprintf@plt>
  jmp    L20
L119:
  mov    -0x58(%rbp),%eax
  movslq %eax,%rsi
  mov    -0x68(%rbp),%rax
  mov    $0x0,%edx
  div    %rsi
  test   %rax,%rax
  js     L70
  pxor   %xmm2,%xmm2
  cvtsi2sd %rax,%xmm2
  movq   %xmm2,%rax
  jmp    L10
L70:
  mov    %rax,%rdx
  shr    %rdx
  and    $0x1,%eax
  or     %rax,%rdx
  pxor   %xmm0,%xmm0
  cvtsi2sd %rdx,%xmm0
  addsd  %xmm0,%xmm0
  movq   %xmm0,%rax
L10:
  mov    -0x54(%rbp),%ecx
  mov    -0x6c(%rbp),%edx
  lea    -0x50(%rbp),%rdi
  mov    %ecx,%r8d
  movq   %rax,%xmm0
  mov    %edx,%ecx
  lea    D0(%rip),%rax
  mov    %rax,%rdx
  mov    $0x40,%esi
  mov    $0x1,%eax
  call   <snprintf@plt>
L20:
  lea    -0x50(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0x5c(%rbp)
  mov    -0x5c(%rbp),%eax
  cmp    -0x70(%rbp),%eax
  jle    L17
  mov    -0x70(%rbp),%eax
  mov    %eax,-0x5c(%rbp)
L17:
  mov    -0x70(%rbp),%edx
  mov    -0x78(%rbp),%rax
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <memset@plt>
  mov    -0x5c(%rbp),%edx
  lea    -0x50(%rbp),%rcx
  mov    -0x78(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncpy@plt>
  mov    -0x5c(%rbp),%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L99
  call   <__stack_chk_fail@plt>
L99:
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: data_tag: D17
data_type: string
name: retrieve_data
arguments: data_tag: D0
data_type: string

tool: D17: %lld %cB

tool: D0: %.*f %cB

assistant: ```c
int io_get_size(unsigned long long size, int prec, char *sizestr, int maxlen) {
  char res[64] = {0};
  int len, div = 1, unit = ' ';
  if (size > (1 << 30)) {
    div = (1 << 30);
    unit = 'G';
  } else if (size > (1 << 20)) {
    div = (1 << 20);
    unit = 'M';
  } else if (size > (1 << 10)) {
    div = (1 << 10);
    unit = 'k';
  } else
    div = 1;
  if (prec <= 0)
    snprintf(res, sizeof(res), "%lld %cB", (unsigned long long)size / div, unit);
  else
    snprintf(res, sizeof(res), "%.*f %cB", prec, (double)((unsigned long long)size / div), unit);
  len = strlen(res);
  if (len > maxlen)
    len = maxlen;
  memset(sizestr, 0, maxlen);
  strncpy(sizestr, res, len);
  return len;
}
```