user: Translate the below assembly code into C programming language:

```asm
<main>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  cmp    $0x3,%edi
  jle    L71
  mov    %edi,%r12d
  mov    %rsi,%rbx
  mov    0x10(%rsi),%rdi
  call   <mode_finder@plt>
  mov    %eax,%ebp
  mov    0x8(%rbx),%rdi
  call   <generate_forest@plt>
  mov    %rax,%r13
  cmp    $0x4,%ebp
  ja     L38
  mov    %ebp,%ebp
  lea    D13(%rip),%rdx
  movslq (%rdx,%rbp,4),%rax
  add    %rdx,%rax
  notrack jmp *%rax
L71:
  lea    D53(%rip),%rdi
  call   <printf@plt>
L38:
  mov    $0x0,%eax
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
  mov    0x18(%rbx),%rdx
  sub    $0x8,%rsp
  push   $0x0
  mov    $0x0,%r9d
  mov    $0x1,%r8d
  mov    $0x0,%ecx
  mov    %r13,%rsi
  mov    $0x0,%edi
  call   <search_forest@plt>
  add    $0x10,%rsp
  jmp    L38
  mov    0x18(%rbx),%rdi
  mov    $0xa,%edx
  mov    $0x0,%esi
  call   <strtol@plt>
  mov    %eax,%ecx
  sub    $0x8,%rsp
  push   $0x0
  mov    $0x0,%r9d
  mov    $0x1,%r8d
  lea    D40(%rip),%rdx
  mov    %r13,%rsi
  mov    $0x1,%edi
  call   <search_forest@plt>
  add    $0x10,%rsp
  jmp    L38
  mov    0x18(%rbx),%rdi
  call   <type_finder@plt>
  mov    %eax,%r8d
  sub    $0x8,%rsp
  push   $0x0
  mov    $0x0,%r9d
  mov    $0x0,%ecx
  lea    D40(%rip),%rdx
  mov    %r13,%rsi
  mov    $0x2,%edi
  call   <search_forest@plt>
  add    $0x10,%rsp
  jmp    L38
  mov    0x18(%rbx),%rdx
  sub    $0x8,%rsp
  push   $0x0
  mov    $0x0,%r9d
  mov    $0x1,%r8d
  mov    $0x0,%ecx
  mov    %r13,%rsi
  mov    $0x3,%edi
  call   <search_forest@plt>
  add    $0x10,%rsp
  jmp    L38
  cmp    $0x5,%r12d
  jne    L66
L48:
  mov    0x20(%rbx),%rdi
  mov    $0xa,%edx
  mov    $0x0,%esi
  call   <strtol@plt>
  mov    %eax,%ebp
  mov    0x18(%rbx),%rdi
  call   <operation_finder@plt>
  sub    $0x8,%rsp
  push   %rax
  mov    %ebp,%r9d
  mov    $0x1,%r8d
  mov    $0x0,%ecx
  lea    D40(%rip),%rdx
  mov    %r13,%rsi
  mov    $0x4,%edi
  call   <search_forest@plt>
  add    $0x10,%rsp
  jmp    L38
L66:
  lea    D34(%rip),%rdi
  call   <printf@plt>
  mov    $0x1,%edi
  call   <exit@plt>
  jmp    L48
```

tool_calls: name: parse_data
arguments: label: D53
type_infered: string
name: parse_data
arguments: label: D40
type_infered: string
name: parse_data
arguments: label: D34
type_infered: string

tool: D53: Usage:
	search_forest DIRECTORY MODE {FILENAME/PERMS/FILETYPE/OPERATION} {SIZE_COMP}


tool: D40: null

tool: D34: Please enter an operation

assistant: ```c
int main(int argc, char **argv) {
  if (argc < 4) {
    printf("Usage:\n\tsearch_forest DIRECTORY MODE {FILENAME/PERMS/FILETYPE/OPERATION} {SIZE_COMP}\n");
    return 0;
  }
  int perms;
  int type;
  int size_comp;
  int operation;
  int mode = mode_finder(argv[2]);
  struct TreeNode *root = generate_forest(argv[1]);
  switch (mode) {
  case 0:
    search_forest(mode, root, argv[3], 0, 1, 0, 0);
    break;
  case 1:
    perms = strtol(argv[3], NULL, 10);
    search_forest(mode, root, "null", perms, 1, 0, 0);
    break;
  case 2:
    type = type_finder(argv[3]);
    search_forest(mode, root, "null", 0, type, 0, 0);
    break;
  case 3:
    search_forest(mode, root, argv[3], 0, 1, 0, 0);
    break;
  case 4:
    if (argc != 5) {
      printf("Please enter an operation");
      exit(1);
    }
    size_comp = strtol(argv[4], NULL, 10);
    operation = operation_finder(argv[3]);
    search_forest(mode, root, "null", 0, 1, size_comp, operation);
    break;
  }
  return 0;
}
```