user: What is the c source code of the assembly code below:

```asm
<paintv>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  mov    %rdi,%r14
  push   %r13
  push   %r12
  movslq %esi,%r12
  push   %rbx
  sub    $0x28,%rsp
  mov    %rdi,-0x48(%rbp)
  lea    D1(%rip),%rdi
  mov    %r12d,-0x4c(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  call   <puts@plt>
  mov    %r12d,%esi
  mov    %r14,%rdi
  call   <getpeak@plt>
  mov    %rsp,%rcx
  mov    %eax,%esi
  lea    0xf(,%r12,4),%rax
  mov    %rax,%rdx
  and    $0xfffffffffffff000,%rax
  sub    %rax,%rcx
  and    $0xfffffffffffffff0,%rdx
  cmp    %rcx,%rsp
  je     L120
L27:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rcx,%rsp
  jne    L27
L120:
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  jne    L13
L160:
  mov    -0x4c(%rbp),%ecx
  mov    %rsp,%r13
  test   %ecx,%ecx
  jle    L91
  xor    %ecx,%ecx
  xchg   %ax,%ax
L153:
  mov    -0x48(%rbp),%rax
  mov    (%rax,%rcx,4),%eax
  lea    (%rax,%rax,4),%eax
  shl    $0x2,%eax
  cltd
  idiv   %esi
  mov    %eax,0x0(%r13,%rcx,4)
  add    $0x1,%rcx
  cmp    %r12,%rcx
  jne    L153
L91:
  mov    $0x14,%ebx
  lea    D29(%rip),%r14
  nopw   0x0(%rax,%rax,1)
L198:
  mov    -0x4c(%rbp),%eax
  xor    %r15d,%r15d
  test   %eax,%eax
  jg     L92
  jmp    L15
  nopl   0x0(%rax)
L123:
  mov    $0x2b,%esi
  mov    %r14,%rdi
  xor    %eax,%eax
  call   <printf@plt>
L118:
  add    $0x1,%r15
  cmp    %r15,%r12
  je     L15
L92:
  cmp    %ebx,0x0(%r13,%r15,4)
  je     L93
  jg     L123
  mov    $0x20,%esi
  mov    %r14,%rdi
  xor    %eax,%eax
  add    $0x1,%r15
  call   <printf@plt>
  cmp    %r15,%r12
  jne    L92
L15:
  mov    $0xa,%edi
  call   <putchar@plt>
  sub    $0x1,%ebx
  jae    L198
  mov    -0x4c(%rbp),%edx
  xor    %r12d,%r12d
  lea    D30(%rip),%r13
  test   %edx,%edx
  jle    L108
  nopl   0x0(%rax)
L35:
  mov    %r13,%rdi
  xor    %eax,%eax
  mov    %r12d,%ebx
  call   <printf@plt>
  lea    0x1(%r12),%r12d
  cmp    %r12d,-0x4c(%rbp)
  jne    L35
  mov    $0xa,%edi
  xor    %r12d,%r12d
  lea    D34(%rip),%r15
  call   <putchar@plt>
  lea    D38(%rip),%r14
  jmp    L182
  nopl   (%rax)
L85:
  mov    %r13d,%r12d
L182:
  cmp    %ebx,%r12d
  mov    %r14,%rdi
  lea    0x1(%r12),%r13d
  cmovne %r15,%rdi
  mov    %r13d,%esi
  xor    %eax,%eax
  call   <printf@plt>
  cmp    %ebx,%r12d
  jne    L85
L69:
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L87
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
  nopl   0x0(%rax)
L93:
  mov    -0x48(%rbp),%rax
  lea    D34(%rip),%rdi
  mov    (%rax,%r15,4),%esi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L118
L13:
  orq    $0x0,-0x8(%rsp,%rdx,1)
  jmp    L160
L108:
  mov    $0xa,%edi
  call   <putchar@plt>
  jmp    L69
L87:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: label: D1
type: string
name: unpack_data
arguments: label: D29
type: string
name: unpack_data
arguments: label: D30
type: string
name: unpack_data
arguments: label: D34
type: string
name: unpack_data
arguments: label: D38
type: string

tool: D1: 
Vertical histogram:


tool: D29: %-5c

tool: D30: =====

tool: D34: %-5d

tool: D38: >=%-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");
}
```