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

```asm
<question_four>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x18(%rbp)
  xor    %eax,%eax
  mov    %rsp,%rax
  mov    %rax,%rbx
  movl   $0x64,-0x30(%rbp)
  mov    -0x30(%rbp),%eax
  movslq %eax,%rdx
  sub    $0x1,%rdx
  mov    %rdx,-0x28(%rbp)
  movslq %eax,%rdx
  mov    %rdx,%r8
  mov    $0x0,%r9d
  movslq %eax,%rdx
  mov    %rdx,%rsi
  mov    $0x0,%edi
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%ecx
  mov    $0x0,%edx
  div    %rcx
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L0:
  cmp    %rdx,%rsp
  je     L86
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L0
L86:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L84
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L84:
  mov    %rsp,%rax
  add    $0x3,%rax
  shr    $0x2,%rax
  shl    $0x2,%rax
  mov    %rax,-0x20(%rbp)
  lea    D49(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    -0x30(%rbp),%edx
  mov    -0x20(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <insere_lista_auto@plt>
  mov    -0x30(%rbp),%edx
  mov    -0x20(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <mostra_lista@plt>
L18:
  lea    D54(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0x34(%rbp),%rax
  mov    %rax,%rsi
  lea    D3(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  mov    -0x34(%rbp),%edx
  mov    -0x20(%rbp),%rax
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%eax
  mov    %eax,%edi
  call   <primo@plt>
  test   %rax,%rax
  je     L14
  mov    -0x34(%rbp),%edx
  mov    -0x20(%rbp),%rax
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%eax
  mov    %eax,%esi
  lea    D62(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x34(%rbp),%edx
  mov    -0x20(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <primoAnterior@plt>
  mov    %eax,-0x2c(%rbp)
  cmpl   $0x0,-0x2c(%rbp)
  js     L95
  mov    -0x2c(%rbp),%eax
  mov    %eax,%esi
  lea    D65(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L53
L95:
  lea    D16(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L53:
  mov    -0x34(%rbp),%ecx
  mov    -0x30(%rbp),%edx
  mov    -0x20(%rbp),%rax
  mov    %ecx,%esi
  mov    %rax,%rdi
  call   <primoPosterior@plt>
  mov    %eax,-0x2c(%rbp)
  cmpl   $0x0,-0x2c(%rbp)
  js     L42
  mov    -0x2c(%rbp),%eax
  mov    %eax,%esi
  lea    D53(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L19
L42:
  lea    D69(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L19
L14:
  lea    D14(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
L19:
  mov    -0x34(%rbp),%edx
  mov    -0x20(%rbp),%rax
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%eax
  mov    %eax,%edi
  call   <primo@plt>
  test   %rax,%rax
  je     L18
  mov    %rbx,%rsp
  nop
  mov    -0x18(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L45
  call   <__stack_chk_fail@plt>
L45:
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: label: D49
type_guessed: string
name: disassemble_data
arguments: label: D54
type_guessed: string
name: disassemble_data
arguments: label: D3
type_guessed: string
name: disassemble_data
arguments: label: D62
type_guessed: string
name: disassemble_data
arguments: label: D65
type_guessed: string
name: disassemble_data
arguments: label: D16
type_guessed: string
name: disassemble_data
arguments: label: D53
type_guessed: string
name: disassemble_data
arguments: label: D69
type_guessed: string
name: disassemble_data
arguments: label: D14
type_guessed: string

tool: D49: 
------------- Questao 4 -------------

tool: D54: Valor a procurar(indice): 

tool: D3: %d

tool: D62: %d e primo


tool: D65: O proximo primo anterior esta na posicao: %d


tool: D16: Nao existe um primo anterior


tool: D53: O proximo primo posterior esta na posicao: %d


tool: D69: Nao existe um primo posterior


tool: D14: O numero nao e primo

assistant: ```c
void question_four() {
  int n, tam_vetor = 100, vetor[tam_vetor], aux;
  printf("\n------------- Questao 4 -------------\n");
  insere_lista_auto(vetor, tam_vetor);
  mostra_lista(vetor, tam_vetor);
  do {
    printf("Valor a procurar(indice): ");
    scanf("%d", &n);
    if (primo(vetor[n])) {
      printf("%d e primo\n", vetor[n]);
      aux = primoAnterior(vetor, n);
      aux >= 0 ? printf("O proximo primo anterior esta na posicao: %d\n", aux) : printf("Nao existe um primo anterior\n");
      aux = primoPosterior(vetor, n, tam_vetor);
      aux >= 0 ? printf("O proximo primo posterior esta na posicao: %d\n", aux) : printf("Nao existe um primo posterior\n");
    } else
      printf("O numero nao e primo\n");
  } while (!primo(vetor[n]));
}
```