user: Converte this assembly snippet into its equivalent C code:

```asm
<question_three>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x98,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  mov    %rsp,%rax
  mov    %rax,%rbx
  movl   $0x0,-0x74(%rbp)
  movl   $0x1,-0x70(%rbp)
  lea    D30(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    D35(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0x80(%rbp),%rax
  mov    %rax,%rsi
  lea    D55(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  mov    -0x80(%rbp),%eax
  add    %eax,%eax
  mov    %eax,-0x6c(%rbp)
  mov    -0x80(%rbp),%edx
  movslq %edx,%rax
  sub    $0x1,%rax
  mov    %rax,-0x68(%rbp)
  movslq %edx,%rax
  mov    %rax,-0x90(%rbp)
  movq   $0x0,-0x88(%rbp)
  movslq %edx,%rax
  mov    %rax,-0xa0(%rbp)
  movq   $0x0,-0x98(%rbp)
  movslq %edx,%rax
  lea    0x0(,%rax,4),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%esi
  mov    $0x0,%edx
  div    %rsi
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L84:
  cmp    %rdx,%rsp
  je     L121
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L84
L121:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L161
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L161:
  mov    %rsp,%rax
  add    $0x3,%rax
  shr    $0x2,%rax
  shl    $0x2,%rax
  mov    %rax,-0x60(%rbp)
  mov    -0x80(%rbp),%eax
  movslq %eax,%rdx
  sub    $0x1,%rdx
  mov    %rdx,-0x58(%rbp)
  movslq %eax,%rdx
  mov    %rdx,-0xb0(%rbp)
  movq   $0x0,-0xa8(%rbp)
  movslq %eax,%rdx
  mov    %rdx,-0xc0(%rbp)
  movq   $0x0,-0xb8(%rbp)
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%esi
  mov    $0x0,%edx
  div    %rsi
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L2:
  cmp    %rdx,%rsp
  je     L21
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L2
L21:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L80
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L80:
  mov    %rsp,%rax
  add    $0x3,%rax
  shr    $0x2,%rax
  shl    $0x2,%rax
  mov    %rax,-0x50(%rbp)
  mov    -0x6c(%rbp),%eax
  movslq %eax,%rdx
  sub    $0x1,%rdx
  mov    %rdx,-0x48(%rbp)
  movslq %eax,%rdx
  mov    %rdx,%r14
  mov    $0x0,%r15d
  movslq %eax,%rdx
  mov    %rdx,%r12
  mov    $0x0,%r13d
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%esi
  mov    $0x0,%edx
  div    %rsi
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L25:
  cmp    %rdx,%rsp
  je     L81
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L25
L81:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L65
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L65:
  mov    %rsp,%rax
  add    $0x3,%rax
  shr    $0x2,%rax
  shl    $0x2,%rax
  mov    %rax,-0x40(%rbp)
  mov    -0x80(%rbp),%edx
  mov    -0x60(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <insere_lista_auto@plt>
  mov    -0x80(%rbp),%edx
  mov    -0x50(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <insere_lista_auto@plt>
  movl   $0x0,-0x78(%rbp)
  jmp    L12
L0:
  mov    -0x60(%rbp),%rax
  mov    -0x78(%rbp),%edx
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%ecx
  mov    -0x40(%rbp),%rax
  mov    -0x74(%rbp),%edx
  movslq %edx,%rdx
  mov    %ecx,(%rax,%rdx,4)
  addl   $0x1,-0x74(%rbp)
  mov    -0x50(%rbp),%rax
  mov    -0x78(%rbp),%edx
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%ecx
  mov    -0x40(%rbp),%rax
  mov    -0x74(%rbp),%edx
  movslq %edx,%rdx
  mov    %ecx,(%rax,%rdx,4)
  addl   $0x1,-0x74(%rbp)
  addl   $0x1,-0x78(%rbp)
L12:
  mov    -0x80(%rbp),%eax
  cmp    %eax,-0x78(%rbp)
  jl     L0
  mov    -0x80(%rbp),%edx
  mov    -0x60(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <mostra_lista@plt>
  mov    -0x80(%rbp),%edx
  mov    -0x50(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <mostra_lista@plt>
  mov    -0x6c(%rbp),%edx
  mov    -0x40(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <mostra_lista@plt>
  lea    D4(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0x7c(%rbp),%rax
  mov    %rax,%rsi
  lea    D55(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  movl   $0x0,-0x78(%rbp)
  jmp    L13
L111:
  mov    -0x40(%rbp),%rax
  mov    -0x78(%rbp),%edx
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%edx
  mov    -0x7c(%rbp),%eax
  cmp    %eax,%edx
  jne    L63
  mov    -0x78(%rbp),%eax
  mov    %eax,%esi
  lea    D42(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  movl   $0x1,-0x70(%rbp)
L63:
  addl   $0x1,-0x78(%rbp)
  mov    -0x78(%rbp),%eax
  cmp    -0x6c(%rbp),%eax
  jl     L13
  lea    D1(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
L13:
  mov    -0x78(%rbp),%eax
  cmp    -0x6c(%rbp),%eax
  jl     L111
  cmpl   $0x0,-0x70(%rbp)
  je     L111
  mov    %rbx,%rsp
  nop
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L99
  call   <__stack_chk_fail@plt>
L99:
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D30
type: string
name: extract_symbolic_data
arguments: data_label: D35
type: string
name: extract_symbolic_data
arguments: data_label: D55
type: string
name: extract_symbolic_data
arguments: data_label: D4
type: string
name: extract_symbolic_data
arguments: data_label: D42
type: string
name: extract_symbolic_data
arguments: data_label: D1
type: string

tool: D30: 
------------- Questao 3 -------------

tool: D35: Tamanho dos vetores A e B: 

tool: D55: %d

tool: D4: Valor a procurar no vetor C: 

tool: D42: valor na posicao: %d


tool: D1: valor nao encontrado

assistant: ```c
void question_three() {
  int tam_vetorAB, busca, tam_vetorC, i, j = 0, aux = 1;
  printf("\n------------- Questao 3 -------------\n");
  printf("Tamanho dos vetores A e B: ");
  scanf("%d", &tam_vetorAB);
  tam_vetorC = tam_vetorAB * 2;
  int vetorA[tam_vetorAB], vetorB[tam_vetorAB], vetorC[tam_vetorC];
  insere_lista_auto(vetorA, tam_vetorAB);
  insere_lista_auto(vetorB, tam_vetorAB);
  for (i = 0; i < tam_vetorAB; i++) {
    vetorC[j] = vetorA[i];
    j++;
    vetorC[j] = vetorB[i];
    j++;
  }
  mostra_lista(vetorA, tam_vetorAB);
  mostra_lista(vetorB, tam_vetorAB);
  mostra_lista(vetorC, tam_vetorC);
  printf("Valor a procurar no vetor C: ");
  scanf("%d", &busca);
  i = 0;
  while (i < tam_vetorC || aux == 0) {
    if (busca == vetorC[i]) {
      printf("valor na posicao: %d\n", i);
      aux = 1;
    }
    i++;
    if (i >= tam_vetorC)
      printf("valor nao encontrado\n");
  }
}
```