user: What is the c source code of the assembly code below?

```asm
<main>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  cmp    $0x3,%edi
  jle    L22
  mov    %edi,%r12d
  mov    0x10(%rsi),%rdi
  mov    %rsi,%rbx
  call   <mode_finder@plt>
  mov    0x8(%rbx),%rdi
  mov    %eax,%ebp
  call   <generate_forest@plt>
  mov    %rax,%r13
  cmp    $0x4,%ebp
  ja     L53
  lea    D41(%rip),%rdx
  movslq (%rdx,%rbp,4),%rax
  add    %rdx,%rax
  notrack jmp *%rax
L22:
  lea    D23(%rip),%rdi
  call   <printf@plt>
L53:
  add    $0x8,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
  mov    0x18(%rbx),%rdx
  push   %rdi
  xor    %r9d,%r9d
  mov    $0x1,%r8d
  push   $0x0
  xor    %ecx,%ecx
  mov    %r13,%rsi
  mov    $0x3,%edi
  call   <search_forest@plt>
  pop    %r8
  pop    %r9
  jmp    L53
  cmp    $0x5,%r12d
  je     L4
  lea    D24(%rip),%rdi
  call   <printf@plt>
  mov    $0x1,%edi
  call   <exit@plt>
L4:
  mov    0x20(%rbx),%rdi
  mov    $0xa,%edx
  xor    %esi,%esi
  call   <strtol@plt>
  mov    0x18(%rbx),%rdi
  mov    %eax,%ebp
  call   <operation_finder@plt>
  xor    %ecx,%ecx
  mov    %r13,%rsi
  mov    %ebp,%r9d
  push   %rdx
  mov    $0x1,%r8d
  lea    D11(%rip),%rdx
  mov    $0x4,%edi
  push   %rax
  call   <search_forest@plt>
  pop    %rcx
  pop    %rsi
  jmp    L53
  mov    0x18(%rbx),%rdx
  push   %rax
  xor    %r9d,%r9d
  mov    $0x1,%r8d
  push   $0x0
  xor    %ecx,%ecx
  mov    %r13,%rsi
  xor    %edi,%edi
  call   <search_forest@plt>
  pop    %rax
  pop    %rdx
  jmp    L53
  mov    0x18(%rbx),%rdi
  mov    $0xa,%edx
  xor    %esi,%esi
  call   <strtol@plt>
  push   %rbp
  mov    %r13,%rsi
  xor    %r9d,%r9d
  push   $0x0
  mov    %eax,%ecx
  mov    $0x1,%r8d
  mov    $0x1,%edi
  lea    D11(%rip),%rdx
  call   <search_forest@plt>
  pop    %r12
  pop    %r13
  jmp    L53
  mov    0x18(%rbx),%rdi
  call   <type_finder@plt>
  xor    %r9d,%r9d
  xor    %ecx,%ecx
  mov    %r13,%rsi
  push   %r10
  mov    %eax,%r8d
  mov    $0x2,%edi
  lea    D11(%rip),%rdx
  push   $0x0
  call   <search_forest@plt>
  pop    %r11
  pop    %rbx
  jmp    L53
```

tool_calls: name: parse_data
arguments: label: D23
data_type: string
name: parse_data
arguments: label: D24
data_type: string
name: parse_data
arguments: label: D11
data_type: string

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


tool: D24: Please enter an operation

tool: D11: null

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;
}
```