user: 请将以下的汇编代码转换成C语言代码:

```asm
<main>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  sub    $0xf60,%rsp
  lea    D39(%rip),%rdi
  lea    D66(%rip),%rbp
  mov    %fs:0x28,%rax
  mov    %rax,0x1f58(%rsp)
  xor    %eax,%eax
  call   <printf@plt>
  lea    0x8(%rsp),%rsi
  mov    %rbp,%rdi
  call   <scanf@plt>
  lea    D60(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    0xc(%rsp),%rsi
  mov    %rbp,%rdi
  call   <scanf@plt>
  lea    D78(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0xc(%rsp),%eax
  cmp    $0x3e8,%eax
  jg     L9
  test   %eax,%eax
  jle    L14
  lea    0x10(%rsp),%r12
  xor    %ebx,%ebx
  lea    D56(%rip),%r13
  mov    %r12,%rbp
  nop
L128:
  mov    %rbp,%rsi
  mov    %r13,%rdi
  add    $0x1,%ebx
  add    $0x4,%rbp
  call   <scanf@plt>
  mov    0xc(%rsp),%eax
  cmp    %ebx,%eax
  jg     L128
  test   %eax,%eax
  jle    L14
  lea    -0x1(%rax),%edx
  lea    0x4(%r12),%rax
  mov    0x8(%rsp),%esi
  lea    (%rax,%rdx,4),%rcx
  jmp    L125
L106:
  add    $0x4,%rax
L125:
  movslq (%r12),%rdx
  test   %edx,%edx
  js     L112
  cmp    %esi,%edx
  jg     L112
  addl   $0x1,0xfb0(%rsp,%rdx,4)
L112:
  mov    %rax,%r12
  cmp    %rcx,%rax
  jne    L106
L14:
  lea    D31(%rip),%rdi
  call   <puts@plt>
  mov    0x8(%rsp),%eax
  test   %eax,%eax
  js     L60
  xor    %r12d,%r12d
  lea    D58(%rip),%r14
  lea    0xfb0(%rsp),%r13
  cs nopw 0x0(%rax,%rax,1)
L61:
  mov    %r12d,%esi
  mov    %r14,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0x0(%r13,%r12,4),%ebp
  test   %ebp,%ebp
  jle    L29
  xor    %ebx,%ebx
  nopl   0x0(%rax,%rax,1)
L20:
  mov    $0x2a,%edi
  add    $0x1,%ebx
  call   <putchar@plt>
  cmp    %ebp,%ebx
  jne    L20
L29:
  mov    $0xa,%edi
  add    $0x1,%r12
  call   <putchar@plt>
  cmp    %r12d,0x8(%rsp)
  jge    L61
L60:
  mov    0x1f58(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L108
  add    $0x1f60,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L9:
  lea    D22(%rip),%rdi
  call   <puts@plt>
  jmp    L60
L108:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: label: D39
data_type: string
name: parse_data
arguments: label: D66
data_type: string
name: parse_data
arguments: label: D60
data_type: string
name: parse_data
arguments: label: D78
data_type: string
name: parse_data
arguments: label: D56
data_type: string
name: parse_data
arguments: label: D31
data_type: string
name: parse_data
arguments: label: D58
data_type: string
name: parse_data
arguments: label: D22
data_type: string

tool: D39: Enter range: 

tool: D66: %d

tool: D60: Enter length: 

tool: D78: Enter array: 

tool: D56: %d 

tool: D31: Histogram:

tool: D58: %d: 

tool: D22: Max length 1000.

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;
}
```