user: Converte this assembly snippet into its equivalent C code:

```asm
<main>:
  endbr64
  push   %rbp
  lea    D40(%rip),%rdi
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  lea    D45(%rip),%r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x18,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x3c(%rbp)
  call   <printf@plt>
  lea    -0x3c(%rbp),%rsi
  mov    %r14,%rdi
  call   <scanf@plt>
  movslq -0x3c(%rbp),%rax
  mov    %rsp,%rsi
  mov    %rax,%rcx
  lea    0xf(,%rax,4),%rax
  mov    %rax,%rdx
  and    $0xfffffffffffff000,%rax
  sub    %rax,%rsi
  and    $0xfffffffffffffff0,%rdx
  cmp    %rsi,%rsp
  je     L35
L81:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rsi,%rsp
  jne    L81
L35:
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  jne    L91
L15:
  mov    %rsp,%r12
  test   %ecx,%ecx
  jle    L4
  mov    %r12,%r13
  xor    %ebx,%ebx
  lea    D3(%rip),%r15
  nopl   0x0(%rax,%rax,1)
L85:
  mov    %r15,%rdi
  xor    %eax,%eax
  add    $0x1,%ebx
  call   <printf@plt>
  mov    %r13,%rsi
  mov    %r14,%rdi
  add    $0x4,%r13
  call   <scanf@plt>
  cmp    %ebx,-0x3c(%rbp)
  jg     L85
L4:
  lea    D50(%rip),%rdx
  lea    D74(%rip),%rcx
  xor    %eax,%eax
  lea    D4(%rip),%rsi
  lea    D1(%rip),%rdi
  call   <printf@plt>
  mov    -0x3c(%rbp),%edx
  test   %edx,%edx
  jle    L38
  xor    %r13d,%r13d
  lea    D10(%rip),%r14
  nopl   (%rax)
L11:
  mov    (%r12),%edx
  mov    %r13d,%esi
  mov    %r14,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    (%r12),%eax
  test   %eax,%eax
  jle    L25
  mov    $0x1,%ebx
  cs nopw 0x0(%rax,%rax,1)
L6:
  mov    $0x2a,%edi
  add    $0x1,%ebx
  call   <putchar@plt>
  cmp    %ebx,(%r12)
  jge    L6
L25:
  mov    $0xa,%edi
  add    $0x1,%r13d
  add    $0x4,%r12
  call   <putchar@plt>
  cmp    %r13d,-0x3c(%rbp)
  jg     L11
L38:
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L48
  lea    -0x28(%rbp),%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
L91:
  orq    $0x0,-0x8(%rsp,%rdx,1)
  jmp    L15
L48:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: data_label: D40
type_infered: string
name: retrieve_data
arguments: data_label: D45
type_infered: string
name: retrieve_data
arguments: data_label: D3
type_infered: string
name: retrieve_data
arguments: data_label: D50
type_infered: string
name: retrieve_data
arguments: data_label: D74
type_infered: string
name: retrieve_data
arguments: data_label: D4
type_infered: string
name: retrieve_data
arguments: data_label: D1
type_infered: string
name: retrieve_data
arguments: data_label: D10
type_infered: string

tool: D40: Enter the number of graphs: 

tool: D45: %d

tool: D3: Enter the number: 

tool: D50: Numbers

tool: D74: Histograms

tool: D4: Elements

tool: D1: %s  %s  %s 


tool: D10: %d	   %d	   

assistant: ```c
int main() {
  int size = 0;
  int i;
  int j;
  printf("Enter the number of graphs: ");
  scanf("%d", &size);
  int graph[size];
  for (i = 0; i < size; i++) {
    printf("Enter the number: ");
    scanf("%d", &graph[i]);
  }
  printf("%s  %s  %s \n", "Elements", "Numbers", "Histograms");
  for (i = 0; i < size; i++) {
    printf("%d\t   %d\t   ", i, graph[i]);
    for (j = 1; j <= graph[i]; j++) {
      printf("%c", '*');
    }
    printf("\n");
  }
  return 0;
}
```