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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x18,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  lea    D50(%rip),%rdi
  call   <printf@plt>
  lea    -0x3c(%rbp),%rsi
  lea    D25(%rip),%rdi
  call   <scanf@plt>
  mov    -0x3c(%rbp),%edx
  movslq %edx,%rax
  lea    0xf(,%rax,4),%rax
  mov    %rax,%rsi
  and    $0xfffffffffffffff0,%rsi
  and    $0xfffffffffffff000,%rax
  mov    %rsp,%rcx
  sub    %rax,%rcx
L54:
  cmp    %rcx,%rsp
  je     L52
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L54
L52:
  mov    %rsi,%rax
  and    $0xfff,%eax
  sub    %rax,%rsp
  test   %rax,%rax
  je     L21
  orq    $0x0,-0x8(%rsp,%rax,1)
L21:
  mov    %rsp,%r13
  test   %edx,%edx
  jle    L48
  mov    %r13,%r12
  mov    $0x0,%ebx
  lea    D49(%rip),%r15
  lea    D25(%rip),%r14
L33:
  add    $0x1,%ebx
  mov    %ebx,%esi
  mov    %r15,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %r12,%rsi
  mov    %r14,%rdi
  call   <scanf@plt>
  add    $0x4,%r12
  cmp    -0x3c(%rbp),%ebx
  jl     L33
L48:
  lea    D26(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x3c(%rbp),%edx
  test   %edx,%edx
  jle    L43
  mov    $0x0,%ebx
  lea    D16(%rip),%r12
L77:
  mov    0x0(%r13,%rbx,4),%esi
  mov    %r12,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x3c(%rbp),%edx
  add    $0x1,%rbx
  cmp    %ebx,%edx
  jg     L77
L43:
  sub    $0x1,%edx
  mov    $0x0,%esi
  mov    %r13,%rdi
  call   <sort@plt>
  lea    D48(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  cmpl   $0x0,-0x3c(%rbp)
  jle    L66
  mov    $0x0,%ebx
  lea    D16(%rip),%r12
L24:
  mov    0x0(%r13,%rbx,4),%esi
  mov    %r12,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  add    $0x1,%rbx
  cmp    %ebx,-0x3c(%rbp)
  jg     L24
L66:
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L92
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
L92:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: label: D50
data_type: string
name: unpack_data
arguments: label: D25
data_type: string
name: unpack_data
arguments: label: D49
data_type: string
name: unpack_data
arguments: label: D26
data_type: string
name: unpack_data
arguments: label: D16
data_type: string
name: unpack_data
arguments: label: D48
data_type: string

tool: D50: Enter the number of elements: 

tool: D25: %d

tool: D49: Enter element(%d): 

tool: D26: 

The array is: 

tool: D16: %d 

tool: D48: 

The sorted array is: 

assistant: ```c
void main() {
  int element_index, number_of_elements, i = 0;
  printf("Enter the number of elements: ");
  scanf("%d", &number_of_elements);
  int elements[number_of_elements];
  while (i < number_of_elements) {
    printf("Enter element(%d): ", i + 1);
    scanf("%d", &elements[i]);
    i++;
  }
  printf("\n\nThe array is: ");
  for (i = 0; i < number_of_elements; i++) {
    printf("%d ", elements[i]);
  }
  sort(elements, 0, number_of_elements - 1);
  printf("\n\nThe sorted array is: ");
  for (i = 0; i < number_of_elements; i++) {
    printf("%d ", elements[i]);
  }
}
```