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

```asm
<main>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  mov    %edi,%ebp
  lea    D13(%rip),%rdi
  push   %rbx
  mov    %rsi,%rbx
  sub    $0x8,%rsp
  call   <puts@plt>
  cmp    $0x4,%ebp
  je     L58
  cmp    $0x3,%ebp
  je     L4
L44:
  mov    (%rbx),%rdi
  xor    %r12d,%r12d
  xor    %ebp,%ebp
  call   <usage@plt>
  mov    %r12,%rdx
  mov    %rbp,%rsi
  xor    %eax,%eax
  lea    D70(%rip),%rdi
  call   <printf@plt>
L3:
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <vernash@plt>
  mov    %r12,%rsi
  mov    %rax,%rdi
  mov    %rax,%r13
  call   <unVernash@plt>
  mov    %rbp,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L2
L76:
  lea    D20(%rip),%rdi
  call   <puts@plt>
L21:
  add    $0x8,%rsp
  mov    $0x1,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L2:
  mov    %r13,%rsi
  lea    D49(%rip),%rdi
  call   <printf@plt>
  jmp    L21
L4:
  mov    0x8(%rbx),%rdi
  call   <strlen@plt>
  mov    %eax,%edi
  call   <malloc@plt>
  mov    0x10(%rbx),%rdi
  mov    %rax,%rbp
  call   <strlen@plt>
  mov    %eax,%edi
  call   <malloc@plt>
  mov    0x8(%rbx),%rsi
  mov    %rbp,%rdi
  mov    %rax,%r12
  call   <strcpy@plt>
  mov    0x10(%rbx),%rsi
  mov    %r12,%rdi
  call   <strcpy@plt>
  mov    %r12,%rdx
  mov    %rbp,%rsi
  xor    %eax,%eax
  lea    D70(%rip),%rdi
  call   <printf@plt>
  jmp    L3
L58:
  mov    0x8(%rbx),%rdi
  lea    D51(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L12
  mov    0x8(%rbx),%rdi
  lea    D85(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L44
  mov    0x10(%rbx),%rdi
  call   <strlen@plt>
  mov    %eax,%edi
  call   <malloc@plt>
  mov    0x18(%rbx),%rdi
  mov    %rax,%r13
  call   <strlen@plt>
  mov    %eax,%edi
  call   <malloc@plt>
  mov    0x10(%rbx),%rsi
  mov    %r13,%rdi
  mov    %rax,%rbp
  call   <strcpy@plt>
  mov    0x18(%rbx),%rsi
  mov    %rbp,%rdi
  call   <strcpy@plt>
  mov    %rbp,%rdx
  mov    %r13,%rsi
  xor    %eax,%eax
  lea    D70(%rip),%rdi
  call   <printf@plt>
  mov    %rbp,%rsi
  mov    %r13,%rdi
  call   <unVernash@plt>
  mov    %rbp,%rsi
  mov    %rax,%rdi
  mov    %rax,%r12
  call   <vernash@plt>
  mov    %r13,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L76
  mov    %r12,%rsi
  lea    D21(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L21
L12:
  mov    0x18(%rbx),%rdi
  call   <atoi@plt>
  mov    0x10(%rbx),%rdi
  mov    %eax,%esi
  call   <hashum@plt>
  mov    0x10(%rbx),%rdx
  mov    0x18(%rbx),%rsi
  lea    D89(%rip),%rdi
  mov    %rax,%rcx
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L21
```

tool_calls: name: retrieve_data
arguments: data_tag: D13
data_type: string
name: retrieve_data
arguments: data_tag: D70
data_type: string
name: retrieve_data
arguments: data_tag: D20
data_type: string
name: retrieve_data
arguments: data_tag: D49
data_type: string
name: retrieve_data
arguments: data_tag: D51
data_type: string
name: retrieve_data
arguments: data_tag: D85
data_type: string
name: retrieve_data
arguments: data_tag: D21
data_type: string
name: retrieve_data
arguments: data_tag: D89
data_type: string

tool: D13: 


tool: D70: Text:           ---%s---
Password:       ---%s---


tool: D20: 
 (ERROR) :@# 


tool: D49: 
Encrypted-Text: ---%s---



tool: D51: -g

tool: D85: -d

tool: D21: 
Decrypted-Text: ---%s---



tool: D89: Hash(%s) for ---%s---:
---%s---



assistant: ```c
int main(int argc, char *argv[]) {
  char *encryptedText;
  int decrypt = 0;
  char *text, *key;
  printf("\n\n");
  if (argc == 4) {
    if (strcmp(argv[1], "-g") == 0) {
      printf("Hash(%s) for ---%s---:\n---%s---\n\n", argv[3], argv[2], hashum(argv[2], atoi(argv[3])));
      return 1;
    } else if (strcmp(argv[1], "-d") == 0) {
      decrypt = 1;
      text = (char *)malloc(strlen(argv[2]));
      key = (char *)malloc(strlen(argv[3]));
      strcpy(text, argv[2]);
      strcpy(key, argv[3]);
    } else
      usage(argv[0]);
  } else if (argc != 3)
    usage(argv[0]);
  else {
    text = (char *)malloc(strlen(argv[1]));
    key = (char *)malloc(strlen(argv[2]));
    strcpy(text, argv[1]);
    strcpy(key, argv[2]);
  }
  printf("Text:           ---%s---\nPassword:       ---%s---\n", text, key);
  if (decrypt) {
    encryptedText = unVernash(text, key);
    if (strcmp(vernash(encryptedText, key), text) == 0)
      printf("\nDecrypted-Text: ---%s---\n\n", encryptedText);
    else
      printf("\n (ERROR) :@# \n\n");
  } else {
    encryptedText = vernash(text, key);
    if (strcmp(unVernash(encryptedText, key), text) == 0)
      printf("\nEncrypted-Text: ---%s---\n\n", encryptedText);
    else
      printf("\n (ERROR) :@# \n\n");
  }
  return 1;
}
```