user: Demonstrate the C code that generates the assembly output below:

```asm
<main>:
  endbr64
  push   %r15
  mov    $0x8,%esi
  lea    D24(%rip),%rdi
  lea    D52(%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),%r12
  mov    %rsp,%rbx
  mov    %r12,%rbp
  mov    %r12,%r14
  mov    %rbx,%r13
  call   <printf@plt>
  nopl   0x0(%rax,%rax,1)
L17:
  mov    %r13,%rsi
  mov    %r15,%rdi
  add    $0x4,%r13
  add    $0x4,%r14
  call   <scanf@plt>
  mov    -0x4(%r13),%eax
  mov    %eax,-0x4(%r14)
  cmp    %r12,%r13
  jne    L17
  mov    $0x7,%edi
  nopl   (%rax)
L23:
  mov    %rbx,%rax
  xor    %edx,%edx
  nopl   (%rax)
L75:
  mov    (%rax),%ecx
  mov    0x4(%rax),%esi
  add    $0x1,%edx
  cmp    %esi,%ecx
  jle    L11
  mov    %esi,(%rax)
  mov    %ecx,0x4(%rax)
L11:
  add    $0x4,%rax
  cmp    %edi,%edx
  jl     L75
  sub    $0x1,%edi
  jne    L23
  lea    D21(%rip),%rdi
  lea    0x20(%r12),%r14
  call   <puts@plt>
  lea    D33(%rip),%r13
  cs nopw 0x0(%rax,%rax,1)
L55:
  mov    (%r12),%esi
  mov    %r13,%rdi
  xor    %eax,%eax
  add    $0x4,%r12
  call   <printf@plt>
  cmp    %r12,%r14
  jne    L55
  lea    D12(%rip),%rdi
  mov    %rbx,%r12
  call   <puts@plt>
  cs nopw 0x0(%rax,%rax,1)
L6:
  mov    (%r12),%esi
  mov    %r13,%rdi
  xor    %eax,%eax
  add    $0x4,%r12
  call   <printf@plt>
  cmp    %rbp,%r12
  jne    L6
  lea    D36(%rip),%rdi
  lea    0x1c(%rsp),%rbp
  call   <puts@plt>
  nopl   0x0(%rax,%rax,1)
L58:
  mov    0x0(%rbp),%esi
  mov    %r13,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %rbp,%rax
  sub    $0x4,%rbp
  cmp    %rbx,%rax
  jne    L58
  mov    0x48(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L4
  add    $0x58,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L4:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: data_label: D24
type: string
name: retrieve_data
arguments: data_label: D52
type: string
name: retrieve_data
arguments: data_label: D21
type: string
name: retrieve_data
arguments: data_label: D33
type: string
name: retrieve_data
arguments: data_label: D12
type: string
name: retrieve_data
arguments: data_label: D36
type: string

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


tool: D52: %d

tool: D21: 

Vetor Original:

tool: D33: %d 

tool: D12: 

Vetor Ordenado:

tool: D36: 

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