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

```asm
<main>:
  endbr64
  push   %rbp
  lea    D19(%rip),%rdi
  mov    %rsp,%rbp
  push   %r14
  lea    D37(%rip),%r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x10,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x28(%rbp)
  xor    %eax,%eax
  call   <printf@plt>
  lea    -0x30(%rbp),%rsi
  mov    %r14,%rdi
  call   <scanf@plt>
  lea    D21(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    -0x2c(%rbp),%rsi
  mov    %r14,%rdi
  call   <scanf@plt>
  movslq -0x2c(%rbp),%rax
  mov    %rsp,%rcx
  lea    0xf(,%rax,4),%rax
  mov    %rax,%rdx
  and    $0xfffffffffffff000,%rax
  sub    %rax,%rcx
  and    $0xfffffffffffffff0,%rdx
  cmp    %rcx,%rsp
  je     L64
L34:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rcx,%rsp
  jne    L34
L64:
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  jne    L139
L74:
  xor    %eax,%eax
  lea    D40(%rip),%rdi
  mov    %rsp,%r13
  xor    %ebx,%ebx
  call   <printf@plt>
  cmpl   $0x0,-0x2c(%rbp)
  mov    %r13,%r12
  jle    L87
  nopw   0x0(%rax,%rax,1)
L132:
  mov    %r12,%rsi
  mov    %r14,%rdi
  add    $0x1,%ebx
  add    $0x4,%r12
  call   <scanf@plt>
  cmp    %ebx,-0x2c(%rbp)
  jg     L132
L87:
  lea    D46(%rip),%rdi
  xor    %r12d,%r12d
  lea    D53(%rip),%r14
  call   <puts@plt>
  mov    -0x30(%rbp),%eax
  test   %eax,%eax
  js     L45
  nopl   0x0(%rax)
L55:
  mov    %r12d,%esi
  mov    %r14,%rdi
  xor    %eax,%eax
  xor    %ebx,%ebx
  call   <printf@plt>
  mov    -0x2c(%rbp),%eax
  test   %eax,%eax
  jle    L108
  cs nopw 0x0(%rax,%rax,1)
L20:
  cmp    %r12d,0x0(%r13,%rbx,4)
  je     L18
  add    $0x1,%rbx
  cmp    %ebx,%eax
  jg     L20
L108:
  mov    $0xa,%edi
  add    $0x1,%r12d
  call   <putchar@plt>
  cmp    %r12d,-0x30(%rbp)
  jge    L55
L45:
  mov    -0x28(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L118
  lea    -0x20(%rbp),%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %rbp
  ret
  nopl   0x0(%rax)
L18:
  mov    $0x2a,%edi
  add    $0x1,%rbx
  call   <putchar@plt>
  mov    -0x2c(%rbp),%eax
  cmp    %ebx,%eax
  jg     L20
  jmp    L108
L139:
  orq    $0x0,-0x8(%rsp,%rdx,1)
  jmp    L74
L118:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: label: D19
datatype: string
name: unpack_data
arguments: label: D37
datatype: string
name: unpack_data
arguments: label: D21
datatype: string
name: unpack_data
arguments: label: D40
datatype: string
name: unpack_data
arguments: label: D46
datatype: string
name: unpack_data
arguments: label: D53
datatype: string

tool: D19: Enter range: 

tool: D37: %d

tool: D21: Enter length: 

tool: D40: Enter array: 

tool: D46: Histogram: 

tool: D53: %d: 

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