user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<submenu>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    %edx,-0x34(%rbp)
  mov    %ecx,-0x38(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0xc(%rbp)
  lea    D50(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    D61(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    D16(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    D21(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0x18(%rbp),%rax
  mov    %rax,%rsi
  lea    D20(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  mov    -0x18(%rbp),%eax
  cmp    $0x1,%eax
  jne    L62
  movl   $0x0,-0x14(%rbp)
  jmp    L60
L0:
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    -0x14(%rbp),%edx
  lea    0x1(%rdx),%ecx
  mov    %eax,%edx
  mov    %ecx,%esi
  lea    D11(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  movl   $0x0,-0x10(%rbp)
  jmp    L17
L22:
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,%esi
  lea    D59(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  addl   $0x1,-0xc(%rbp)
  addl   $0x1,-0x10(%rbp)
L17:
  mov    -0x14(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cmp    %eax,-0x10(%rbp)
  jl     L22
  lea    D24(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  addl   $0x1,-0x14(%rbp)
L60:
  mov    -0x14(%rbp),%eax
  cmp    -0x34(%rbp),%eax
  jl     L0
L62:
  mov    -0x18(%rbp),%eax
  cmp    $0x2,%eax
  jne    L13
  mov    -0x38(%rbp),%ecx
  mov    -0x34(%rbp),%edx
  mov    -0x30(%rbp),%rsi
  mov    -0x28(%rbp),%rax
  mov    %rax,%rdi
  call   <euleriano@plt>
L13:
  mov    -0x18(%rbp),%eax
  test   %eax,%eax
  jne    L37
  mov    $0x0,%eax
  call   <limpa@plt>
L37:
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L30
  call   <__stack_chk_fail@plt>
L30:
  leave
  ret
```

tool_calls: name: parse_data
arguments: tag: D50
data_type: string
name: parse_data
arguments: tag: D61
data_type: string
name: parse_data
arguments: tag: D16
data_type: string
name: parse_data
arguments: tag: D21
data_type: string
name: parse_data
arguments: tag: D20
data_type: string
name: parse_data
arguments: tag: D11
data_type: string
name: parse_data
arguments: tag: D59
data_type: string
name: parse_data
arguments: tag: D24
data_type: string

tool: D50: Digite 1 para mostrar o grafo


tool: D61: Digite 2 para encontrar um caminho euleriano


tool: D16: Digite 0 para retornar ao menu anterior


tool: D21: ::>

tool: D20: %i

tool: D11: Indice:%i Grau: %i Vizinhos: 

tool: D59: %i 

tool: D24: 


assistant: ```c
void submenu(int *vert, int *adj, int cont, int cont2) {
  int opcao, i, j, k = 0;
  puts("Digite 1 para mostrar o grafo\n");
  puts("Digite 2 para encontrar um caminho euleriano\n");
  puts("Digite 0 para retornar ao menu anterior\n");
  printf("::>");
  scanf("%i", &opcao);
  if (opcao == 1) {
    for (i = 0; i < cont; i++) {
      printf("Indice:%i Grau: %i Vizinhos: ", i + 1, vert[i]);
      for (j = 0; j < vert[i]; j++) {
        printf("%i ", adj[k]);
        k++;
      }
      puts("\n");
    }
  }
  if (opcao == 2) {
    euleriano(vert, adj, cont, cont2);
  }
  if (opcao == 0) {
    limpa();
    return;
  }
}
```