user: 请将以下的汇编代码转换成C语言代码:

```asm
<uireadablebytes>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %edi,-0x24(%rbp)
  mov    $0xa,%edi
  call   <malloc@plt>
  mov    %rax,-0x8(%rbp)
  movq   $0x0,-0x18(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x10(%rbp)
  cmpl   $0x3e8,-0x24(%rbp)
  jbe    L29
  cmpl   $0xf4240,-0x24(%rbp)
  jbe    L52
  cmpl   $0x3b9aca00,-0x24(%rbp)
  jbe    L136
  mov    -0x24(%rbp),%eax
  test   %rax,%rax
  js     L138
  pxor   %xmm0,%xmm0
  cvtsi2sd %rax,%xmm0
  jmp    L4
L138:
  mov    %rax,%rdx
  shr    %rdx
  and    $0x1,%eax
  or     %rax,%rdx
  pxor   %xmm0,%xmm0
  cvtsi2sd %rdx,%xmm0
  addsd  %xmm0,%xmm0
L4:
  movsd  D58(%rip),%xmm1
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x10(%rbp)
  lea    D37(%rip),%rax
  mov    %rax,-0x18(%rbp)
  jmp    L123
L136:
  mov    -0x24(%rbp),%eax
  test   %rax,%rax
  js     L113
  pxor   %xmm0,%xmm0
  cvtsi2sd %rax,%xmm0
  jmp    L87
L113:
  mov    %rax,%rdx
  shr    %rdx
  and    $0x1,%eax
  or     %rax,%rdx
  pxor   %xmm0,%xmm0
  cvtsi2sd %rdx,%xmm0
  addsd  %xmm0,%xmm0
L87:
  movsd  D52(%rip),%xmm1
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x10(%rbp)
  lea    D1(%rip),%rax
  mov    %rax,-0x18(%rbp)
  jmp    L123
L52:
  mov    -0x24(%rbp),%eax
  test   %rax,%rax
  js     L24
  pxor   %xmm0,%xmm0
  cvtsi2sd %rax,%xmm0
  jmp    L10
L24:
  mov    %rax,%rdx
  shr    %rdx
  and    $0x1,%eax
  or     %rax,%rdx
  pxor   %xmm0,%xmm0
  cvtsi2sd %rdx,%xmm0
  addsd  %xmm0,%xmm0
L10:
  movsd  D0(%rip),%xmm1
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x10(%rbp)
  lea    D65(%rip),%rax
  mov    %rax,-0x18(%rbp)
  jmp    L123
L29:
  mov    -0x24(%rbp),%eax
  test   %rax,%rax
  js     L27
  pxor   %xmm0,%xmm0
  cvtsi2sd %rax,%xmm0
  jmp    L131
L27:
  mov    %rax,%rdx
  shr    %rdx
  and    $0x1,%eax
  or     %rax,%rdx
  pxor   %xmm0,%xmm0
  cvtsi2sd %rdx,%xmm0
  addsd  %xmm0,%xmm0
L131:
  movsd  %xmm0,-0x10(%rbp)
  lea    D28(%rip),%rax
  mov    %rax,-0x18(%rbp)
L123:
  mov    -0x18(%rbp),%rcx
  mov    -0x10(%rbp),%rdx
  mov    -0x8(%rbp),%rax
  movq   %rdx,%xmm0
  lea    D26(%rip),%rdx
  mov    $0xa,%esi
  mov    %rax,%rdi
  call   <snprintf@plt>
  mov    -0x8(%rbp),%rax
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: data_tag: D58
datatype: f64
name: disassemble_data
arguments: data_tag: D37
datatype: string
name: disassemble_data
arguments: data_tag: D52
datatype: f64
name: disassemble_data
arguments: data_tag: D1
datatype: string
name: disassemble_data
arguments: data_tag: D0
datatype: f64
name: disassemble_data
arguments: data_tag: D65
datatype: string
name: disassemble_data
arguments: data_tag: D28
datatype: string
name: disassemble_data
arguments: data_tag: D26
datatype: string

tool: D58: 1073741824

tool: D37: GB

tool: D52: 1048576

tool: D1: MB

tool: D0: 1024

tool: D65: KB

tool: D28:   

tool: D26: %3.2f%s

assistant: ```c
char *uireadablebytes(unsigned int bytes) {
  char *result = malloc(10);
  if (result == NULL) {
  }
  char *resultsufix = NULL;
  double resultnumber = 0;
  if (bytes > 1000.0) {
    if (bytes > 1000000.0) {
      if (bytes > 1000000000.0) {
        resultnumber = bytes / 1073741824.0;
        resultsufix = "GB";
      } else {
        resultnumber = bytes / 1048576.0;
        resultsufix = "MB";
      }
    } else {
      resultnumber = bytes / 1024.0;
      resultsufix = "KB";
    }
  } else {
    resultnumber = bytes;
    resultsufix = "  ";
  }
  snprintf(result, 10, "%3.2f%s", resultnumber, resultsufix);
  return result;
}
```