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

```asm
<main>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  sub    $0xf68,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x1f58(%rsp)
  xor    %eax,%eax
  lea    D52(%rip),%rdi
  call   <printf@plt>
  lea    0x8(%rsp),%rsi
  lea    D44(%rip),%rbx
  mov    %rbx,%rdi
  call   <scanf@plt>
  lea    D46(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0xc(%rsp),%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
  lea    D43(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    0xc(%rsp),%eax
  cmp    $0x3e8,%eax
  jg     L22
  lea    0x10(%rsp),%rbx
  mov    %rbx,%r12
  mov    $0x0,%ebp
  lea    D32(%rip),%r13
  test   %eax,%eax
  jle    L35
L109:
  mov    %r12,%rsi
  mov    %r13,%rdi
  call   <scanf@plt>
  add    $0x1,%ebp
  mov    0xc(%rsp),%eax
  add    $0x4,%r12
  cmp    %ebp,%eax
  jg     L109
  test   %eax,%eax
  jle    L35
  mov    0x8(%rsp),%ecx
  lea    -0x1(%rax),%eax
  lea    0x4(%rbx,%rax,4),%rdx
  jmp    L135
L22:
  lea    D78(%rip),%rdi
  call   <puts@plt>
  jmp    L73
L38:
  add    $0x4,%rbx
  cmp    %rdx,%rbx
  je     L35
L135:
  mov    (%rbx),%eax
  test   %eax,%eax
  js     L38
  cmp    %ecx,%eax
  jg     L38
  cltq
  addl   $0x1,0xfb0(%rsp,%rax,4)
  jmp    L38
L35:
  lea    D79(%rip),%rdi
  call   <puts@plt>
  cmpl   $0x0,0x8(%rsp)
  js     L73
  mov    $0x0,%r12d
  lea    D60(%rip),%r13
L77:
  mov    %r12d,%esi
  mov    %r13,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    0xfb0(%rsp,%r12,4),%ebp
  test   %ebp,%ebp
  jle    L64
  mov    $0x0,%ebx
L37:
  mov    $0x2a,%edi
  call   <putchar@plt>
  add    $0x1,%ebx
  cmp    %ebp,%ebx
  jne    L37
L64:
  mov    $0xa,%edi
  call   <putchar@plt>
  add    $0x1,%r12
  cmp    %r12d,0x8(%rsp)
  jge    L77
L73:
  mov    0x1f58(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L137
  mov    $0x0,%eax
  add    $0x1f68,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L137:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: label: D52
data_type: string
name: disassemble_data
arguments: label: D44
data_type: string
name: disassemble_data
arguments: label: D46
data_type: string
name: disassemble_data
arguments: label: D43
data_type: string
name: disassemble_data
arguments: label: D32
data_type: string
name: disassemble_data
arguments: label: D78
data_type: string
name: disassemble_data
arguments: label: D79
data_type: string
name: disassemble_data
arguments: label: D60
data_type: string

tool: D52: Enter range: 

tool: D44: %d

tool: D46: Enter length: 

tool: D43: Enter array: 

tool: D32: %d 

tool: D78: Max length 1000.

tool: D79: Histogram:

tool: D60: %d: 

assistant: ```c
int main() {
  int range, length, count, i;
  printf("Enter range: ");
  scanf("%d", &range);
  printf("Enter length: ");
  scanf("%d", &length);
  printf("Enter array: ");
  if (length > 1000) {
    printf("Max length 1000.\n");
    return 0;
  }
  int numbers[1000];
  for (count = 0; count < length; count++) {
    scanf("%d ", &numbers[count]);
  }
  int counts[1000];
  for (count = 0; count < length; ++count) {
    if (numbers[count] >= 0 && numbers[count] <= range) {
      counts[numbers[count]]++;
    }
  }
  printf("Histogram:\n");
  for (count = 0; count <= range; ++count) {
    printf("%d: ", count);
    for (i = 0; i < counts[count]; ++i) {
      printf("*");
    }
    printf("\n");
  }
  return 0;
}
```