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

```asm
<vhistogram>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    %rsi,-0x20(%rbp)
  mov    %edx,-0x24(%rbp)
  mov    %ecx,-0x28(%rbp)
  mov    %r8d,-0x2c(%rbp)
  movl   $0x0,-0x8(%rbp)
  movl   $0x1,-0xc(%rbp)
  jmp    L72
L125:
  mov    -0x8(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x20(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%eax
  cmp    %eax,%edx
  jge    L111
  mov    -0xc(%rbp),%eax
  mov    %eax,-0x8(%rbp)
L111:
  addl   $0x1,-0xc(%rbp)
L72:
  mov    -0xc(%rbp),%eax
  cmp    -0x24(%rbp),%eax
  jl     L125
  mov    -0x8(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x4(%rbp)
  jmp    L83
L64:
  movl   $0x0,-0xc(%rbp)
  jmp    L62
L74:
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cmp    %eax,-0x4(%rbp)
  jne    L81
  mov    -0x18(%rbp),%rax
  mov    %rax,%rcx
  mov    $0x5,%edx
  mov    $0x1,%esi
  lea    D2(%rip),%rax
  mov    %rax,%rdi
  call   <fwrite@plt>
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  sub    $0x1,%edx
  mov    %edx,(%rax)
  jmp    L88
L81:
  mov    -0x18(%rbp),%rax
  mov    %rax,%rcx
  mov    $0x5,%edx
  mov    $0x1,%esi
  lea    D21(%rip),%rax
  mov    %rax,%rdi
  call   <fwrite@plt>
L88:
  mov    -0x18(%rbp),%rax
  mov    %rax,%rsi
  mov    $0x20,%edi
  call   <fputc@plt>
  addl   $0x1,-0xc(%rbp)
L62:
  mov    -0xc(%rbp),%eax
  cmp    -0x24(%rbp),%eax
  jl     L74
  mov    -0x18(%rbp),%rax
  mov    %rax,%rsi
  mov    $0xa,%edi
  call   <fputc@plt>
  subl   $0x1,-0x4(%rbp)
L83:
  cmpl   $0x0,-0x4(%rbp)
  jg     L64
  movl   $0x0,-0xc(%rbp)
  jmp    L50
L5:
  mov    -0x18(%rbp),%rax
  mov    %rax,%rsi
  mov    $0x3d,%edi
  call   <fputc@plt>
  addl   $0x1,-0xc(%rbp)
L50:
  mov    -0x24(%rbp),%edx
  mov    %edx,%eax
  add    %eax,%eax
  add    %edx,%eax
  add    %eax,%eax
  cmp    %eax,-0xc(%rbp)
  jl     L5
  mov    -0x18(%rbp),%rax
  mov    %rax,%rsi
  mov    $0xa,%edi
  call   <fputc@plt>
  movl   $0x0,-0xc(%rbp)
  jmp    L106
L95:
  mov    -0xc(%rbp),%ecx
  mov    -0xc(%rbp),%edx
  mov    -0x18(%rbp),%rax
  lea    D7(%rip),%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  addl   $0x1,-0xc(%rbp)
L106:
  mov    -0xc(%rbp),%eax
  cmp    -0x24(%rbp),%eax
  jl     L95
  mov    -0x18(%rbp),%rax
  mov    %rax,%rsi
  mov    $0xa,%edi
  call   <fputc@plt>
  mov    $0x0,%eax
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: label: D2
data_type: string
name: disassemble_data
arguments: label: D21
data_type: string
name: disassemble_data
arguments: label: D7
data_type: string

tool: D2:   *  

tool: D21:      

tool: D7: %02d-%02d 

assistant: ```c
int vhistogram(FILE *out, int a[], int size, int start, int end) {
  int i, j = 0;
  for (i = 1; i < size; i++) {
    if (a[j] < a[i]) {
      j = i;
    }
  }
  int cutoff = a[j];
  while (cutoff > 0) {
    for (i = 0; i < size; i++) {
      if (cutoff == a[i]) {
        fprintf(out, "  *  ");
        a[i]--;
      } else {
        fprintf(out, "     ");
      }
      fputc(' ', out);
    }
    fputc('\n', out);
    cutoff--;
  }
  for (i = 0; i < size * 6; i++) {
    fputc('=', out);
  }
  fputc('\n', out);
  for (i = 0; i < size; i++) {
    fprintf(out, "%02d-%02d ", i, i);
  }
  fputc('\n', out);
  return 0;
}
```