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

```asm
<main>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x20,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  movl   $0x0,0x8(%rsp)
  movl   $0x0,0xc(%rsp)
  movl   $0x0,0x10(%rsp)
  movl   $0x0,0x14(%rsp)
  lea    D11(%rip),%rdi
  call   <printf@plt>
  lea    0x8(%rsp),%rsi
  lea    D53(%rip),%rbp
  mov    %rbp,%rdi
  call   <scanf@plt>
  mov    0x8(%rsp),%edi
  call   <reservaVector@plt>
  mov    %rax,%rbx
  lea    D57(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0xc(%rsp),%rsi
  mov    %rbp,%rdi
  call   <scanf@plt>
  lea    0x14(%rsp),%rcx
  lea    0x10(%rsp),%r8
  mov    0xc(%rsp),%edx
  mov    %rbx,%rsi
  mov    0x8(%rsp),%edi
  call   <rellenaVector@plt>
  mov    0x10(%rsp),%edi
  call   <reservaVector@plt>
  mov    %rax,%rbp
  mov    0x14(%rsp),%edi
  call   <reservaVector@plt>
  mov    %rax,%r12
  mov    0xc(%rsp),%r8d
  mov    %rbp,%rcx
  mov    %rax,%rdx
  mov    %rbx,%rsi
  mov    0x8(%rsp),%edi
  call   <mayorMenorVector@plt>
  lea    D0(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %rbx,%rsi
  mov    0x8(%rsp),%edi
  call   <imprimeVector@plt>
  mov    0xc(%rsp),%esi
  lea    D10(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %rbp,%rsi
  mov    0x10(%rsp),%edi
  call   <imprimeVector@plt>
  mov    0xc(%rsp),%esi
  lea    D29(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %r12,%rsi
  mov    0x14(%rsp),%edi
  call   <imprimeVector@plt>
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    %rbx,%rdi
  call   <free@plt>
  mov    %r12,%rdi
  call   <free@plt>
  mov    %rbp,%rdi
  call   <free@plt>
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L1
  mov    $0x0,%eax
  add    $0x20,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L1:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D11
data_type: string
name: extract_symbolic_data
arguments: data_label: D53
data_type: string
name: extract_symbolic_data
arguments: data_label: D57
data_type: string
name: extract_symbolic_data
arguments: data_label: D0
data_type: string
name: extract_symbolic_data
arguments: data_label: D10
data_type: string
name: extract_symbolic_data
arguments: data_label: D29
data_type: string

tool: D11: 
Introduzca el numero de elemetos del vector: 

tool: D53: %i

tool: D57: 

Introduzca el numero para hallar los mayores/menores: 

tool: D0: 

Los valores del vector original son: 

tool: D10: 
Los valores menores que %i son: 

tool: D29: 
Los valores mayores o iguales que %i son: 

assistant: ```c
int main() {
  int nEle = 0, num = 0;
  int *vector, *menores, *mayores;
  int menor = 0, mayor = 0;
  printf("\nIntroduzca el numero de elemetos del vector: ");
  scanf("%i", &nEle);
  vector = reservaVector(nEle);
  printf("\n\nIntroduzca el numero para hallar los mayores/menores: ");
  scanf("%i", &num);
  rellenaVector(nEle, vector, num, &mayor, &menor);
  menores = reservaVector(menor);
  mayores = reservaVector(mayor);
  mayorMenorVector(nEle, vector, mayores, menores, num);
  printf("\n\nLos valores del vector original son: ");
  imprimeVector(nEle, vector);
  printf("\nLos valores menores que %i son: ", num);
  imprimeVector(menor, menores);
  printf("\nLos valores mayores o iguales que %i son: ", num);
  imprimeVector(mayor, mayores);
  printf("\n");
  free(vector);
  vector = NULL;
  free(mayores);
  mayores = NULL;
  free(menores);
  menores = NULL;
  return 0;
}
```