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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x220,%rsp
  mov    %edi,-0x214(%rbp)
  mov    %rsi,-0x220(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x204(%rbp)
  cmpl   $0x2,-0x214(%rbp)
  jne    L34
  mov    -0x220(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%rax
  mov    %rax,%rdi
  call   <dir_decompress@plt>
L34:
  cmpl   $0x3,-0x214(%rbp)
  jne    L125
  mov    -0x220(%rbp),%rax
  add    $0x10,%rax
  mov    (%rax),%rdx
  lea    -0x200(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
  mov    -0x220(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%rax
  lea    D75(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L51
  movl   $0x1,-0x204(%rbp)
  mov    -0x204(%rbp),%edx
  lea    -0x200(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <dir_compress@plt>
  jmp    L125
L51:
  mov    -0x220(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%rax
  lea    D54(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L94
  movl   $0x2,-0x204(%rbp)
  mov    -0x204(%rbp),%edx
  lea    -0x200(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <dir_compress@plt>
  jmp    L125
L94:
  lea    D84(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
L125:
  cmpl   $0x4,-0x214(%rbp)
  jne    L23
  mov    -0x220(%rbp),%rax
  add    $0x18,%rax
  mov    (%rax),%rdx
  lea    -0x200(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
  mov    -0x220(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%rax
  lea    D75(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L43
  mov    -0x220(%rbp),%rax
  add    $0x10,%rax
  mov    (%rax),%rax
  lea    D54(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L43
  movl   $0x3,-0x204(%rbp)
  mov    -0x204(%rbp),%edx
  lea    -0x200(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <dir_compress@plt>
  jmp    L23
L43:
  mov    -0x220(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%rax
  lea    D54(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L59
  mov    -0x220(%rbp),%rax
  add    $0x10,%rax
  mov    (%rax),%rax
  lea    D75(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L59
  movl   $0x4,-0x204(%rbp)
  mov    -0x204(%rbp),%edx
  lea    -0x200(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <dir_compress@plt>
  jmp    L23
L59:
  lea    D84(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
L23:
  cmpl   $0x1,-0x214(%rbp)
  jle    L81
  cmpl   $0x4,-0x214(%rbp)
  jle    L89
L81:
  lea    D84(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
L89:
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L9
  call   <__stack_chk_fail@plt>
L9:
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: label: D75
type_infered: string
name: retrieve_data
arguments: label: D54
type_infered: string
name: retrieve_data
arguments: label: D84
type_infered: string

tool: D75: -rl

tool: D54: -ke

tool: D84: Invalid Input


assistant: ```c
int main(int argc, char **argv) {
  char dir_path[500];
  int compress_type = 0;
  if (argc == 2)
    dir_decompress(argv[1]);
  if (argc == 3) {
    strcpy(dir_path, argv[2]);
    if (strcmp(argv[1], "-rl") == 0) {
      compress_type = 1;
      dir_compress(dir_path, compress_type);
    } else if (strcmp(argv[1], "-ke") == 0) {
      compress_type = 2;
      dir_compress(dir_path, compress_type);
    } else
      printf("Invalid Input\n");
  }
  if (argc == 4) {
    strcpy(dir_path, argv[3]);
    if ((strcmp(argv[1], "-rl") == 0) && (strcmp(argv[2], "-ke") == 0)) {
      compress_type = 3;
      dir_compress(dir_path, compress_type);
    } else if ((strcmp(argv[1], "-ke") == 0) && (strcmp(argv[2], "-rl") == 0)) {
      compress_type = 4;
      dir_compress(dir_path, compress_type);
    } else
      printf("Invalid Input\n");
  }
  if ((argc < 2) || (argc > 4))
    printf("Invalid Input\n");
  return 0;
}
```