user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<vhistogram>:
  endbr64
  push   %r15
  mov    %rdi,%r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    (%rsi),%ebx
  mov    %rsi,0x8(%rsp)
  mov    %edx,0x4(%rsp)
  cmp    $0x1,%edx
  jle    L105
  lea    -0x2(%rdx),%eax
  lea    -0x1(%rdx),%ecx
  cmp    $0x2,%eax
  jbe    L144
  mov    %ecx,%edx
  movd   %ebx,%xmm3
  lea    0x4(%rsi),%rax
  shr    $0x2,%edx
  pshufd $0x0,%xmm3,%xmm2
  sub    $0x1,%edx
  shl    $0x4,%rdx
  lea    0x14(%rsi,%rdx,1),%rdx
  cs nopw 0x0(%rax,%rax,1)
L24:
  movdqu (%rax),%xmm0
  add    $0x10,%rax
  movdqa %xmm0,%xmm1
  pcmpgtd %xmm2,%xmm1
  pand   %xmm1,%xmm0
  pandn  %xmm2,%xmm1
  movdqa %xmm1,%xmm2
  por    %xmm0,%xmm2
  cmp    %rdx,%rax
  jne    L24
  movdqa %xmm2,%xmm1
  mov    %ecx,%edx
  psrldq $0x8,%xmm1
  and    $0xfffffffc,%edx
  movdqa %xmm1,%xmm0
  lea    0x1(%rdx),%eax
  pcmpgtd %xmm2,%xmm0
  pand   %xmm0,%xmm1
  pandn  %xmm2,%xmm0
  por    %xmm1,%xmm0
  movdqa %xmm0,%xmm2
  psrldq $0x4,%xmm2
  movdqa %xmm2,%xmm1
  pcmpgtd %xmm0,%xmm1
  pand   %xmm1,%xmm2
  pandn  %xmm0,%xmm1
  por    %xmm2,%xmm1
  movd   %xmm1,%ebx
  cmp    %ecx,%edx
  je     L105
L128:
  mov    0x8(%rsp),%rdi
  movslq %eax,%rdx
  mov    0x4(%rsp),%esi
  lea    0x0(,%rdx,4),%rcx
  mov    (%rdi,%rdx,4),%edx
  cmp    %edx,%ebx
  cmovl  %edx,%ebx
  lea    0x1(%rax),%edx
  cmp    %edx,%esi
  jle    L105
  mov    0x4(%rdi,%rcx,1),%edx
  cmp    %edx,%ebx
  cmovl  %edx,%ebx
  add    $0x2,%eax
  cmp    %eax,%esi
  jle    L105
  mov    0x8(%rdi,%rcx,1),%eax
  cmp    %eax,%ebx
  cmovl  %eax,%ebx
L105:
  test   %ebx,%ebx
  jle    L67
  mov    0x4(%rsp),%eax
  mov    0x8(%rsp),%rcx
  lea    D20(%rip),%r12
  lea    D14(%rip),%r14
  sub    $0x1,%eax
  lea    0x4(%rcx,%rax,4),%rbp
  xchg   %ax,%ax
L26:
  mov    0x4(%rsp),%edx
  mov    0x8(%rsp),%r13
  test   %edx,%edx
  jle    L55
  nopl   (%rax)
L45:
  mov    %r15,%rcx
  mov    $0x5,%edx
  mov    $0x1,%esi
  cmp    %ebx,0x0(%r13)
  je     L179
  mov    %r12,%rdi
  add    $0x4,%r13
  call   <fwrite@plt>
  mov    %r15,%rsi
  mov    $0x20,%edi
  call   <fputc@plt>
  cmp    %r13,%rbp
  jne    L45
L55:
  mov    %r15,%rsi
  mov    $0xa,%edi
  call   <fputc@plt>
  sub    $0x1,%ebx
  jne    L26
L67:
  mov    0x4(%rsp),%eax
  xor    %ebx,%ebx
  lea    (%rax,%rax,2),%ebp
  add    %ebp,%ebp
  test   %ebp,%ebp
  jle    L114
  cs nopw 0x0(%rax,%rax,1)
L7:
  mov    %r15,%rsi
  mov    $0x3d,%edi
  add    $0x1,%ebx
  call   <fputc@plt>
  cmp    %ebp,%ebx
  jne    L7
L114:
  mov    %r15,%rsi
  mov    $0xa,%edi
  xor    %ebx,%ebx
  call   <fputc@plt>
  mov    0x4(%rsp),%eax
  lea    D26(%rip),%rbp
  test   %eax,%eax
  jle    L16
  nopw   0x0(%rax,%rax,1)
L140:
  mov    %ebx,%ecx
  mov    %ebx,%edx
  mov    %rbp,%rsi
  mov    %r15,%rdi
  xor    %eax,%eax
  add    $0x1,%ebx
  call   <fprintf@plt>
  cmp    %ebx,0x4(%rsp)
  jne    L140
L16:
  mov    %r15,%rsi
  mov    $0xa,%edi
  call   <fputc@plt>
  add    $0x18,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L179:
  mov    %r14,%rdi
  call   <fwrite@plt>
  subl   $0x1,0x0(%r13)
  mov    %r15,%rsi
  mov    $0x20,%edi
  add    $0x4,%r13
  call   <fputc@plt>
  cmp    %rbp,%r13
  jne    L45
  jmp    L55
L144:
  mov    $0x1,%eax
  jmp    L128
```

tool_calls: name: parse_data
arguments: data_tag: D20
type: string
name: parse_data
arguments: data_tag: D14
type: string
name: parse_data
arguments: data_tag: D26
type: string

tool: D20:      

tool: D14:   *  

tool: D26: %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;
}
```