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

```asm
<filesize_str>:
  endbr64
  push   %r12
  push   %rbx
  mov    %rdi,%rbx
  mov    $0xc,%edi
  sub    $0x8,%rsp
  call   <xmalloc@plt>
  mov    %rax,%r12
  mov    %rbx,%rax
  shr    $0x28,%rax
  jne    L59
  pxor   %xmm0,%xmm0
  cvtsi2sd %rbx,%xmm0
  cmp    $0x3fffffff,%rbx
  ja     L14
  cmp    $0xfffff,%rbx
  ja     L5
  cmp    $0x3ff,%rbx
  jbe    L48
  mulsd  D81(%rip),%xmm0
  mov    %r12,%rdi
  mov    $0xc,%esi
  lea    D23(%rip),%rdx
  call   <snprintf@plt>
  add    $0x8,%rsp
  mov    %r12,%rax
  pop    %rbx
  pop    %r12
  ret
  nopl   0x0(%rax,%rax,1)
L14:
  mulsd  D62(%rip),%xmm0
  mov    %r12,%rdi
  mov    $0xc,%esi
  lea    D41(%rip),%rdx
  call   <snprintf@plt>
  add    $0x8,%rsp
  mov    %r12,%rax
  pop    %rbx
  pop    %r12
  ret
  nopw   0x0(%rax,%rax,1)
L59:
  test   %rbx,%rbx
  js     L39
  pxor   %xmm0,%xmm0
  cvtsi2sd %rbx,%xmm0
L18:
  mulsd  D45(%rip),%xmm0
  mov    %r12,%rdi
  mov    $0xc,%esi
  lea    D50(%rip),%rdx
  call   <snprintf@plt>
  add    $0x8,%rsp
  mov    %r12,%rax
  pop    %rbx
  pop    %r12
  ret
  nopl   (%rax)
L48:
  mov    %r12,%rdi
  lea    D51(%rip),%rdx
  mov    $0xc,%esi
  call   <snprintf@plt>
  add    $0x8,%rsp
  mov    %r12,%rax
  pop    %rbx
  pop    %r12
  ret
  nopw   0x0(%rax,%rax,1)
L39:
  mov    %rbx,%rax
  and    $0x1,%ebx
  pxor   %xmm0,%xmm0
  shr    %rax
  or     %rbx,%rax
  cvtsi2sd %rax,%xmm0
  addsd  %xmm0,%xmm0
  jmp    L18
  nopl   0x0(%rax,%rax,1)
L5:
  mulsd  D7(%rip),%xmm0
  mov    %r12,%rdi
  mov    $0xc,%esi
  lea    D64(%rip),%rdx
  call   <snprintf@plt>
  add    $0x8,%rsp
  mov    %r12,%rax
  pop    %rbx
  pop    %r12
  ret
```

tool_calls: name: disassemble_data
arguments: data_label: D81
type_infered: byte[8]
name: disassemble_data
arguments: data_label: D23
type_infered: string
name: disassemble_data
arguments: data_label: D62
type_infered: byte[8]
name: disassemble_data
arguments: data_label: D41
type_infered: string
name: disassemble_data
arguments: data_label: D45
type_infered: byte[8]
name: disassemble_data
arguments: data_label: D50
type_infered: string
name: disassemble_data
arguments: data_label: D51
type_infered: string
name: disassemble_data
arguments: data_label: D7
type_infered: byte[8]
name: disassemble_data
arguments: data_label: D64
type_infered: string

tool: {"D81": [0x00,0x00,0x00,0x00,0x00,0x00,0x50,0x3f]}

tool: D23: %.2f KiB

tool: {"D62": [0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x3e]}

tool: D41: %.2f GiB

tool: {"D45": [0x00,0x00,0x00,0x00,0x00,0x00,0x70,0x3d]}

tool: D50: %.2f TiB

tool: D51: %.1f   B

tool: {"D7": [0x00,0x00,0x00,0x00,0x00,0x00,0xb0,0x3e]}

tool: D64: %.2f MiB

assistant: ```c
char *filesize_str(unsigned long long log_size) {
  char *size = xmalloc(sizeof(char) * 12);
  if (log_size >= 1099511627776LL)
    snprintf(size, 12, "%.2f TiB", (double)(log_size) / 1099511627776LL);
  else if (log_size >= 1073741824)
    snprintf(size, 12, "%.2f GiB", (double)(log_size) / 1073741824);
  else if (log_size >= 1048576)
    snprintf(size, 12, "%.2f MiB", (double)(log_size) / 1048576);
  else if (log_size >= 1024)
    snprintf(size, 12, "%.2f KiB", (double)(log_size) / 1024);
  else
    snprintf(size, 12, "%.1f   B", (double)(log_size));
  return size;
}
```