user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<main>:
  endbr64
  push   %r12
  lea    D15(%rip),%rdi
  lea    D32(%rip),%r12
  push   %rbp
  push   %rbx
  sub    $0x1b0,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x1a8(%rsp)
  xor    %eax,%eax
  call   <puts@plt>
  lea    0xc(%rsp),%rsi
  mov    %r12,%rdi
  call   <scanf@plt>
  mov    0xc(%rsp),%esi
  lea    D43(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0xc(%rsp),%ecx
  test   %ecx,%ecx
  jle    L1
  lea    0x10(%rsp),%rbp
  xor    %ebx,%ebx
  nopl   0x0(%rax,%rax,1)
L83:
  mov    %rbp,%rsi
  mov    %r12,%rdi
  add    $0x1,%ebx
  add    $0x4,%rbp
  call   <scanf@plt>
  cmp    %ebx,0xc(%rsp)
  jg     L83
L1:
  lea    D36(%rip),%rdi
  call   <puts@plt>
  mov    0xc(%rsp),%edx
  test   %edx,%edx
  jle    L98
  xor    %ebx,%ebx
  lea    0x10(%rsp),%rbp
  lea    D48(%rip),%r12
  nopw   0x0(%rax,%rax,1)
L30:
  mov    0x0(%rbp,%rbx,4),%esi
  mov    %r12,%rdi
  xor    %eax,%eax
  add    $0x1,%rbx
  call   <printf@plt>
  mov    0xc(%rsp),%eax
  cmp    %ebx,%eax
  jg     L30
  cmp    $0x1,%eax
  jle    L98
  sub    $0x1,%eax
  lea    0x14(%rsp),%r8
  nop
L47:
  sub    $0x1,%eax
  mov    %rbp,%rdx
  mov    %rax,%rdi
  lea    (%r8,%rax,4),%rsi
  nopl   (%rax)
L70:
  movq   (%rdx),%xmm0
  pshufd $0xe5,%xmm0,%xmm2
  movd   %xmm0,%ecx
  movd   %xmm2,%eax
  pshufd $0xe1,%xmm0,%xmm1
  cmp    %eax,%ecx
  jl     L81
  movq   %xmm1,(%rdx)
L81:
  add    $0x4,%rdx
  cmp    %rsi,%rdx
  jne    L70
  mov    %edi,%eax
  test   %edi,%edi
  jne    L47
L98:
  lea    D59(%rip),%rdi
  call   <puts@plt>
  mov    0xc(%rsp),%eax
  test   %eax,%eax
  jle    L68
  xor    %ebx,%ebx
  lea    0x10(%rsp),%rbp
  lea    D48(%rip),%r12
  nop
L101:
  mov    0x0(%rbp,%rbx,4),%esi
  mov    %r12,%rdi
  xor    %eax,%eax
  add    $0x1,%rbx
  call   <printf@plt>
  cmp    %ebx,0xc(%rsp)
  jg     L101
L68:
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    0x1a8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L37
  add    $0x1b0,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L37:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: data_tag: D15
type_infered: string
name: retrieve_data
arguments: data_tag: D32
type_infered: string
name: retrieve_data
arguments: data_tag: D43
type_infered: string
name: retrieve_data
arguments: data_tag: D36
type_infered: string
name: retrieve_data
arguments: data_tag: D48
type_infered: string
name: retrieve_data
arguments: data_tag: D59
type_infered: string

tool: D15: Ingresar la longitud de la lista

tool: D32: %d

tool: D43: ingrese %d valores presionando ENTER despues de cada dato:  


tool: D36: Lista ingresada :

tool: D48: %5d

tool: D59: 

Lista ordenada :

assistant: ```c
void main() {
  int a[100], i, j, n, t;
  printf("Ingresar la longitud de la lista\n");
  scanf("%d", &n);
  printf("ingrese %d valores presionando ENTER despues de cada dato:  \n", n);
  for (i = 0; i < n; i++)
    scanf("%d", &a[i]);
  printf("Lista ingresada :\n");
  for (i = 0; i < n; i++)
    printf("%5d", a[i]);
  for (i = 1; i < n; i++)
    for (j = 0; j < n - i; j++)
      if (a[j] >= a[j + 1]) {
        t = a[j];
        a[j] = a[j + 1];
        a[j + 1] = t;
      }
  printf("\n\nLista ordenada :\n");
  for (i = 0; i < n; i++)
    printf("%5d", a[i]);
  printf("\n");
}
```