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

```asm
<main>:
  endbr64
  push   %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
  mov    $0x8,%esi
  lea    D10(%rip),%rdi
  call   <printf@plt>
  mov    %rsp,%rbp
  lea    0x20(%rsp),%rbx
  mov    %rbx,%r12
  mov    %rbx,%r14
  mov    %rbp,%r13
  lea    D22(%rip),%r15
L41:
  mov    %r13,%rsi
  mov    %r15,%rdi
  call   <scanf@plt>
  mov    0x0(%r13),%eax
  mov    %eax,(%r14)
  add    $0x4,%r13
  add    $0x4,%r14
  cmp    %r12,%r13
  jne    L41
  lea    0x1c(%rbp),%rsi
  mov    $0x7,%edi
  jmp    L101
L21:
  add    $0x4,%rax
  cmp    %rsi,%rax
  je     L28
L23:
  mov    (%rax),%edx
  mov    0x4(%rax),%ecx
  cmp    %ecx,%edx
  jle    L21
  mov    %ecx,(%rax)
  mov    %edx,0x4(%rax)
  jmp    L21
L28:
  sub    $0x4,%rsi
  sub    $0x1,%edi
  je     L93
L101:
  mov    %rbp,%rax
  test   %edi,%edi
  jg     L23
  jmp    L28
L93:
  lea    D77(%rip),%rdi
  call   <puts@plt>
  lea    0x20(%rbx),%r14
  lea    D28(%rip),%r13
L116:
  mov    (%rbx),%esi
  mov    %r13,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  add    $0x4,%rbx
  cmp    %r14,%rbx
  jne    L116
  lea    D74(%rip),%rdi
  call   <puts@plt>
  mov    %rbp,%rbx
  lea    D28(%rip),%r13
L8:
  mov    (%rbx),%esi
  mov    %r13,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  add    $0x4,%rbx
  cmp    %r12,%rbx
  jne    L8
  lea    D37(%rip),%rdi
  call   <puts@plt>
  lea    0x1c(%rsp),%rbx
  lea    D28(%rip),%r12
L10:
  mov    (%rbx),%esi
  mov    %r12,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %rbx,%rax
  sub    $0x4,%rbx
  cmp    %rbp,%rax
  jne    L10
  mov    0x48(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L70
  mov    $0x0,%eax
  add    $0x58,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L70:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: data_tag: D10
type_infered: string
name: retrieve_data
arguments: data_tag: D22
type_infered: string
name: retrieve_data
arguments: data_tag: D77
type_infered: string
name: retrieve_data
arguments: data_tag: D28
type_infered: string
name: retrieve_data
arguments: data_tag: D74
type_infered: string
name: retrieve_data
arguments: data_tag: D37
type_infered: string

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


tool: D22: %d

tool: D77: 

Vetor Original:

tool: D28: %d 

tool: D74: 

Vetor Ordenado:

tool: D37: 

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;
}
```