user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<paintv>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x28,%rsp
  mov    %rdi,%r15
  mov    %rdi,-0x48(%rbp)
  mov    %esi,%ebx
  mov    %esi,-0x4c(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  lea    D0(%rip),%rdi
  call   <puts@plt>
  mov    %ebx,%esi
  mov    %r15,%rdi
  call   <getpeak@plt>
  mov    %eax,%esi
  movslq %ebx,%rax
  lea    0xf(,%rax,4),%rax
  mov    %rax,%rcx
  and    $0xfffffffffffffff0,%rcx
  and    $0xfffffffffffff000,%rax
  mov    %rsp,%rdx
  sub    %rax,%rdx
L134:
  cmp    %rdx,%rsp
  je     L195
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L134
L195:
  mov    %rcx,%rax
  and    $0xfff,%eax
  sub    %rax,%rsp
  test   %rax,%rax
  je     L113
  orq    $0x0,-0x8(%rsp,%rax,1)
L113:
  mov    %rsp,%r14
  mov    -0x4c(%rbp),%eax
  test   %eax,%eax
  jle    L193
  mov    %eax,%edi
  mov    $0x0,%ecx
L108:
  mov    -0x48(%rbp),%rax
  mov    (%rax,%rcx,4),%eax
  lea    (%rax,%rax,4),%eax
  shl    $0x2,%eax
  cltd
  idiv   %esi
  mov    %eax,(%r14,%rcx,4)
  add    $0x1,%rcx
  cmp    %rdi,%rcx
  jne    L108
L193:
  mov    $0x14,%r12d
  lea    D37(%rip),%r15
  jmp    L151
L166:
  mov    -0x48(%rbp),%rax
  mov    (%rax,%rbx,4),%esi
  lea    D4(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L13
L130:
  mov    $0x20,%esi
  mov    %r15,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L13:
  add    $0x1,%rbx
  cmp    %r13,%rbx
  je     L122
L194:
  mov    (%r14,%rbx,4),%eax
  cmp    %r12d,%eax
  je     L166
  jle    L130
  mov    $0x2b,%esi
  mov    %r15,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L13
L122:
  mov    $0xa,%edi
  call   <putchar@plt>
  sub    $0x1,%r12d
  cmp    $0xffffffff,%r12d
  je     L31
L151:
  mov    -0x4c(%rbp),%eax
  mov    %eax,%r13d
  mov    $0x0,%ebx
  test   %eax,%eax
  jg     L194
  jmp    L122
L31:
  cmpl   $0x0,-0x4c(%rbp)
  jle    L100
  mov    $0x0,%ebx
  lea    D12(%rip),%r13
L142:
  mov    %r13,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %ebx,%r12d
  add    $0x1,%ebx
  cmp    %ebx,-0x4c(%rbp)
  jne    L142
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    $0x0,%ebx
  lea    D4(%rip),%r15
  lea    D44(%rip),%r14
  jmp    L184
L91:
  mov    %r13d,%ebx
L184:
  cmp    %ebx,%r12d
  mov    %r14,%rdi
  cmovne %r15,%rdi
  lea    0x1(%rbx),%r13d
  mov    %r13d,%esi
  mov    $0x0,%eax
  call   <printf@plt>
  cmp    %ebx,%r12d
  jne    L91
L77:
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L101
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
L100:
  mov    $0xa,%edi
  call   <putchar@plt>
  jmp    L77
L101:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: tag: D0
data_type: string
name: unpack_data
arguments: tag: D37
data_type: string
name: unpack_data
arguments: tag: D4
data_type: string
name: unpack_data
arguments: tag: D12
data_type: string
name: unpack_data
arguments: tag: D44
data_type: string

tool: D0: 
Vertical histogram:


tool: D37: %-5c

tool: D4: %-5d

tool: D12: =====

tool: D44: >=%-5d

assistant: ```c
void paintv(int counts[], int len) {
  printf("\nVertical histogram:\n\n");
  int peak = getpeak(counts, len);
  int i, j, h = 20;
  int bars[len];
  for (i = 0; i < len; i++) {
    bars[i] = counts[i] * h / peak;
  }
  for (i = 0; i <= h; i++) {
    for (j = 0; j < len; j++) {
      if (h - i == bars[j]) {
        printf("%-5d", counts[j]);
      } else if (h - i < bars[j]) {
        printf("%-5c", '+');
      } else {
        printf("%-5c", ' ');
      }
    }
    printf("\n");
  }
  for (i = 0; i < len; i++) {
    printf("=====");
  }
  printf("\n");
  for (i = 0; i < len; i++) {
    char *format = "%-5d";
    if (i == len - 1) {
      format = ">=%-5d";
    }
    printf(format, i + 1);
  }
  printf("\n");
}
```