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

```asm
<print_linear_hist>:
  endbr64
  test   %esi,%esi
  jle    L166
  push   %r15
  lea    -0x1(%rsi),%eax
  mov    %esi,%ecx
  mov    %rdx,%r8
  push   %r14
  push   %r13
  mov    %rdi,%r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  cmp    $0x3,%eax
  jbe    L68
  mov    %esi,%edx
  pxor   %xmm1,%xmm1
  pcmpeqd %xmm4,%xmm4
  mov    %rdi,%rax
  shr    $0x2,%edx
  movdqa D25(%rip),%xmm3
  movdqa %xmm1,%xmm7
  movdqa D40(%rip),%xmm8
  sub    $0x1,%edx
  movdqa D41(%rip),%xmm5
  shl    $0x4,%rdx
  lea    0x10(%rdi,%rdx,1),%rdx
  nopw   0x0(%rax,%rax,1)
L104:
  movdqu (%rax),%xmm2
  movdqa %xmm3,%xmm6
  add    $0x10,%rax
  paddd  %xmm8,%xmm3
  movdqa %xmm2,%xmm0
  pcmpeqd %xmm7,%xmm0
  pand   %xmm0,%xmm4
  pandn  %xmm6,%xmm0
  movdqa %xmm2,%xmm6
  por    %xmm0,%xmm4
  movdqa %xmm1,%xmm0
  psubd  %xmm5,%xmm6
  psubd  %xmm5,%xmm0
  pcmpgtd %xmm6,%xmm0
  pand   %xmm0,%xmm1
  pandn  %xmm2,%xmm0
  por    %xmm0,%xmm1
  cmp    %rax,%rdx
  jne    L104
  movdqa %xmm1,%xmm2
  movdqa %xmm1,%xmm3
  mov    %ecx,%eax
  psrldq $0x8,%xmm2
  psubd  %xmm5,%xmm3
  and    $0xfffffffc,%eax
  movdqa %xmm2,%xmm0
  psubd  %xmm5,%xmm0
  pcmpgtd %xmm3,%xmm0
  pand   %xmm0,%xmm2
  pandn  %xmm1,%xmm0
  por    %xmm2,%xmm0
  movdqa %xmm0,%xmm2
  movdqa %xmm0,%xmm3
  psrldq $0x4,%xmm2
  psubd  %xmm5,%xmm3
  movdqa %xmm2,%xmm1
  psubd  %xmm5,%xmm1
  pcmpgtd %xmm3,%xmm1
  pand   %xmm1,%xmm2
  pandn  %xmm0,%xmm1
  por    %xmm2,%xmm1
  movd   %xmm1,%ebp
  movdqa %xmm4,%xmm1
  psrldq $0x8,%xmm1
  movdqa %xmm1,%xmm0
  pcmpgtd %xmm4,%xmm0
  pand   %xmm0,%xmm1
  pandn  %xmm4,%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,0xc(%rsp)
  test   $0x3,%cl
  je     L22
L41:
  movslq %eax,%rsi
  lea    0x0(,%rsi,4),%rdx
  mov    0x0(%r13,%rsi,4),%esi
  test   %esi,%esi
  jne    L84
  lea    0x1(%rax),%esi
  cmp    %ecx,%esi
  jge    L22
  mov    0x4(%r13,%rdx,1),%eax
  test   %eax,%eax
  jne    L177
L120:
  lea    0x1(%rsi),%eax
  cmp    %ecx,%eax
  jge    L22
  mov    0x8(%r13,%rdx,1),%esi
  test   %esi,%esi
  jne    L80
L49:
  lea    0x1(%rax),%esi
  cmp    %esi,%ecx
  jle    L22
L141:
  mov    0xc(%r13,%rdx,1),%eax
  test   %eax,%eax
  cmove  0xc(%rsp),%esi
  cmp    %eax,%ebp
  cmovb  %eax,%ebp
  mov    %esi,0xc(%rsp)
L22:
  mov    0xc(%rsp),%eax
  test   %eax,%eax
  js     L21
L90:
  mov    %r8,%rsi
  lea    D27(%rip),%rdi
  xor    %eax,%eax
  xor    %ebx,%ebx
  call   <printf@plt>
  lea    D57(%rip),%r15
  lea    D33(%rip),%r14
  nop
L51:
  mov    0x0(%r13,%rbx,4),%r12d
  mov    %ebx,%esi
  mov    %r15,%rdi
  xor    %eax,%eax
  add    $0x1,%rbx
  mov    %r12d,%edx
  call   <printf@plt>
  mov    $0x28,%edx
  mov    %ebp,%esi
  mov    %r12d,%edi
  call   <print_stars@plt>
  mov    %r14,%rdi
  call   <puts@plt>
  cmp    %ebx,0xc(%rsp)
  jge    L51
L21:
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L84:
  cmp    %esi,%ebp
  mov    %eax,0xc(%rsp)
  cmovb  %esi,%ebp
  lea    0x1(%rax),%esi
  cmp    %esi,%ecx
  jle    L90
  mov    0x4(%r13,%rdx,1),%eax
  test   %eax,%eax
  je     L120
L177:
  cmp    %eax,%ebp
  mov    %esi,0xc(%rsp)
  cmovb  %eax,%ebp
  lea    0x1(%rsi),%eax
  cmp    %eax,%ecx
  jle    L90
  mov    0x8(%r13,%rdx,1),%esi
  test   %esi,%esi
  je     L49
L80:
  cmp    %esi,%ebp
  mov    %eax,0xc(%rsp)
  cmovb  %esi,%ebp
  lea    0x1(%rax),%esi
  cmp    %ecx,%esi
  jl     L141
  jmp    L90
  nop
L166:
  ret
L68:
  movl   $0xffffffff,0xc(%rsp)
  xor    %ebp,%ebp
  xor    %eax,%eax
  jmp    L41
```

tool_calls: name: parse_data
arguments: data_tag: D25
type_guessed: byte[16]
name: parse_data
arguments: data_tag: D40
type_guessed: byte[16]
name: parse_data
arguments: data_tag: D41
type_guessed: byte[16]
name: parse_data
arguments: data_tag: D27
type_guessed: string
name: parse_data
arguments: data_tag: D57
type_guessed: string
name: parse_data
arguments: data_tag: D33
type_guessed: string

tool: {"D25": [0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x02,0x00,0x00,0x00,0x03,0x00,0x00,0x00]}

tool: {"D40": [0x04,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x04,0x00,0x00,0x00]}

tool: {"D41": [0x00,0x00,0x00,0x80,0x00,0x00,0x00,0x80,0x00,0x00,0x00,0x80,0x00,0x00,0x00,0x80]}

tool: D27:      %-13s : count     distribution


tool: D57:         %-10d : %-8d |

tool: D33: |

assistant: ```c
void print_linear_hist(unsigned int *vals, int vals_size, const char *val_type) {
  int i, stars_max = 40, idx_max = -1;
  unsigned int val, val_max = 0;
  for (i = 0; i < vals_size; i++) {
    val = vals[i];
    if (val > 0)
      idx_max = i;
    if (val > val_max)
      val_max = val;
  }
  if (idx_max < 0)
    return;
  printf("     %-13s : count     distribution\n", val_type);
  for (i = 0; i <= idx_max; i++) {
    val = vals[i];
    printf("        %-10d : %-8d |", i, val);
    print_stars(val, val_max, stars_max);
    printf("|\n");
  }
}
```