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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movq   $0x0,-0x28(%rbp)
  movq   $0x0,-0x20(%rbp)
  movq   $0x0,-0x18(%rbp)
  movq   $0x0,-0x10(%rbp)
  mov    $0x0,%edi
  call   <time@plt>
  mov    %eax,%edi
  call   <srand@plt>
  movl   $0x0,-0x30(%rbp)
  jmp    L0
L3:
  mov    $0x0,%eax
  call   <rand@plt>
  movslq %eax,%rdx
  imul   $0x51eb851f,%rdx,%rdx
  shr    $0x20,%rdx
  sar    $0x5,%edx
  mov    %eax,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%edx
  mov    %edx,-0x2c(%rbp)
  mov    -0x2c(%rbp),%edx
  imul   $0x64,%edx,%edx
  sub    %edx,%eax
  mov    %eax,-0x2c(%rbp)
  mov    -0x2c(%rbp),%edx
  lea    -0x28(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <empilha@plt>
  addl   $0x1,-0x30(%rbp)
L0:
  cmpl   $0x18,-0x30(%rbp)
  jle    L3
  lea    D80(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    -0x28(%rbp),%rax
  mov    %rax,%rdi
  call   <imprimePilha@plt>
  lea    -0x20(%rbp),%rdx
  lea    -0x28(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <insereImparPilhaEsquerdaLSE@plt>
  lea    D4(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    -0x20(%rbp),%rax
  mov    %rax,%rdi
  call   <imprimeLSE@plt>
  lea    -0x10(%rbp),%rdx
  lea    -0x18(%rbp),%rcx
  lea    -0x28(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <insereParPilhaDireitaLDE@plt>
  lea    D51(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <imprimeLDE@plt>
  lea    D53(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    -0x34(%rbp),%rax
  mov    %rax,%rsi
  lea    D23(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  mov    -0x34(%rbp),%edx
  lea    -0x28(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <deletaPilha@plt>
  lea    D36(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    D80(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    -0x28(%rbp),%rax
  mov    %rax,%rdi
  call   <imprimePilha@plt>
  lea    D4(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    -0x20(%rbp),%rax
  mov    %rax,%rdi
  call   <imprimeLSE@plt>
  lea    D51(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <imprimeLDE@plt>
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L20
  call   <__stack_chk_fail@plt>
L20:
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: tag: D80
type_guessed: string
name: disassemble_data
arguments: tag: D4
type_guessed: string
name: disassemble_data
arguments: tag: D51
type_guessed: string
name: disassemble_data
arguments: tag: D53
type_guessed: string
name: disassemble_data
arguments: tag: D23
type_guessed: string
name: disassemble_data
arguments: tag: D36
type_guessed: string

tool: D80: Valores da pilha:
	

tool: D4: Valores da LSE:
	

tool: D51: Valores da LDE:
	

tool: D53: Digite um valor a ser deletado da pilha: 

tool: D23: %i

tool: D36: 

Valores finais das listas:


assistant: ```c
int main() {
  int i;
  struct pilha *topo = NULL;
  struct nodo *LSE = NULL;
  struct nodod *LDEInicio = NULL;
  struct nodod *LDEFim = NULL;
  srand(time(NULL));
  for (i = 0; i < 25; i++) {
    int rnd = rand() % 100;
    empilha(&topo, rnd);
  }
  printf("Valores da pilha:\n\t");
  imprimePilha(&topo);
  insereImparPilhaEsquerdaLSE(&topo, &LSE);
  printf("Valores da LSE:\n\t");
  imprimeLSE(&LSE);
  insereParPilhaDireitaLDE(&topo, &LDEInicio, &LDEFim);
  printf("Valores da LDE:\n\t");
  imprimeLDE(&LDEInicio);
  int valDel;
  printf("Digite um valor a ser deletado da pilha: ");
  scanf("%i", &valDel);
  deletaPilha(&topo, valDel);
  printf("\n\nValores finais das listas:\n");
  printf("Valores da pilha:\n\t");
  imprimePilha(&topo);
  printf("Valores da LSE:\n\t");
  imprimeLSE(&LSE);
  printf("Valores da LDE:\n\t");
  imprimeLDE(&LDEInicio);
}
```