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

```asm
<main>:
  endbr64
  push   %r15
  mov    $0x8,%esi
  lea    D56(%rip),%rdi
  lea    D13(%rip),%r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x58,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x48(%rsp)
  xor    %eax,%eax
  lea    0x20(%rsp),%rbx
  mov    %rsp,%r12
  mov    %rbx,%r13
  mov    %rbx,%r14
  mov    %r12,%rbp
  call   <printf@plt>
  nopl   0x0(%rax,%rax,1)
L98:
  mov    %rbp,%rsi
  mov    %r15,%rdi
  add    $0x4,%rbp
  add    $0x4,%r14
  call   <scanf@plt>
  mov    -0x4(%rbp),%eax
  mov    %eax,-0x4(%r14)
  cmp    %rbx,%rbp
  jne    L98
  mov    $0x7,%eax
  jmp    L108
  nopl   0x0(%rax)
L183:
  movq   0x4(%rsp),%xmm0
  pshufd $0xe5,%xmm0,%xmm3
  movd   %xmm0,%edx
  movd   %xmm3,%ecx
  pshufd $0xe1,%xmm0,%xmm1
  cmp    %edx,%ecx
  jge    L149
  movq   %xmm1,0x4(%rsp)
L149:
  cmp    $0x2,%eax
  je     L44
  movq   0x8(%rsp),%xmm0
  pshufd $0xe5,%xmm0,%xmm4
  movd   %xmm0,%edx
  movd   %xmm4,%ecx
  pshufd $0xe1,%xmm0,%xmm1
  cmp    %edx,%ecx
  jge    L36
  movq   %xmm1,0x8(%rsp)
L36:
  cmp    $0x3,%eax
  je     L44
  movq   0xc(%rsp),%xmm0
  pshufd $0xe5,%xmm0,%xmm5
  movd   %xmm0,%edx
  movd   %xmm5,%ecx
  pshufd $0xe1,%xmm0,%xmm1
  cmp    %edx,%ecx
  jge    L101
  movq   %xmm1,0xc(%rsp)
L101:
  cmp    $0x4,%eax
  je     L44
  movq   0x10(%rsp),%xmm0
  pshufd $0xe5,%xmm0,%xmm6
  movd   %xmm0,%edx
  movd   %xmm6,%ecx
  pshufd $0xe1,%xmm0,%xmm1
  cmp    %edx,%ecx
  jge    L51
  movq   %xmm1,0x10(%rsp)
L51:
  cmp    $0x5,%eax
  je     L44
  movq   0x14(%rsp),%xmm0
  pshufd $0xe5,%xmm0,%xmm7
  movd   %xmm0,%edx
  movd   %xmm7,%ecx
  pshufd $0xe1,%xmm0,%xmm1
  cmp    %edx,%ecx
  jge    L65
  movq   %xmm1,0x14(%rsp)
L65:
  cmp    $0x7,%eax
  jne    L44
  movq   0x18(%rsp),%xmm0
  pshufd $0xe5,%xmm0,%xmm7
  movd   %xmm0,%edx
  movd   %xmm7,%ecx
  pshufd $0xe1,%xmm0,%xmm1
  cmp    %edx,%ecx
  jge    L44
  movq   %xmm1,0x18(%rsp)
L44:
  sub    $0x1,%eax
L108:
  movq   (%rsp),%xmm0
  pshufd $0xe5,%xmm0,%xmm2
  movd   %xmm0,%ecx
  movd   %xmm2,%edx
  pshufd $0xe1,%xmm0,%xmm1
  cmp    %edx,%ecx
  jle    L173
  movq   %xmm1,(%rsp)
L173:
  cmp    $0x1,%eax
  jne    L183
  lea    D26(%rip),%rdi
  lea    0x20(%rbx),%r14
  call   <puts@plt>
  lea    D35(%rip),%rbp
L122:
  mov    (%rbx),%esi
  mov    %rbp,%rdi
  xor    %eax,%eax
  add    $0x4,%rbx
  call   <printf@plt>
  cmp    %r14,%rbx
  jne    L122
  lea    D33(%rip),%rdi
  mov    %r12,%rbx
  call   <puts@plt>
  nopl   0x0(%rax)
L124:
  mov    (%rbx),%esi
  mov    %rbp,%rdi
  xor    %eax,%eax
  add    $0x4,%rbx
  call   <printf@plt>
  cmp    %r13,%rbx
  jne    L124
  lea    D21(%rip),%rdi
  lea    0x1c(%rsp),%rbx
  call   <puts@plt>
  xchg   %ax,%ax
L146:
  mov    (%rbx),%esi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %rbx,%rax
  sub    $0x4,%rbx
  cmp    %r12,%rax
  jne    L146
  mov    0x48(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L123
  add    $0x58,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L123:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_tag: D56
type_infered: string
name: parse_data
arguments: data_tag: D13
type_infered: string
name: parse_data
arguments: data_tag: D26
type_infered: string
name: parse_data
arguments: data_tag: D35
type_infered: string
name: parse_data
arguments: data_tag: D33
type_infered: string
name: parse_data
arguments: data_tag: D21
type_infered: string

tool: D56: Ordenacao de Vetores - Estilo Bubble Sort
Digite %d valores para serem ordenados:


tool: D13: %d

tool: D26: 

Vetor Original:

tool: D35: %d 

tool: D33: 

Vetor Ordenado:

tool: D21: 

Vetor Inverso:

assistant: ```c
int main() {
  int vet[8], clone[8];
  int i, j;
  int menor;
  printf("Ordenacao de Vetores - Estilo Bubble Sort\nDigite %d valores para serem ordenados:\n", 8);
  for (i = 0; i < 8; i++) {
    scanf("%d", &vet[i]);
    clone[i] = vet[i];
  }
  for (j = (8 - 1); j > 0; j--) {
    for (i = 0; i < j; i++) {
      if (vet[i] > vet[i + 1]) {
        menor = vet[i];
        vet[i] = vet[i + 1];
        vet[i + 1] = menor;
      }
    }
  }
  printf("\n\nVetor Original:\n");
  for (i = 0; i < 8; i++) {
    printf("%d ", clone[i]);
  }
  printf("\n\nVetor Ordenado:\n");
  for (i = 0; i < 8; i++) {
    printf("%d ", vet[i]);
  }
  printf("\n\nVetor Inverso:\n");
  for (i = 8 - 1; i >= 0; i--) {
    printf("%d ", vet[i]);
  }
  return 0;
}
```