user: 请将以下的汇编代码转换成C语言代码:

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %edi,-0x24(%rbp)
  mov    %rsi,-0x30(%rbp)
  cmpl   $0x3,-0x24(%rbp)
  jg     L75
  lea    D56(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    $0x0,%eax
  jmp    L29
L75:
  mov    -0x30(%rbp),%rax
  add    $0x10,%rax
  mov    (%rax),%rax
  mov    %rax,%rdi
  call   <mode_finder@plt>
  mov    %eax,-0x1c(%rbp)
  mov    -0x30(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%rax
  mov    %rax,%rdi
  call   <generate_forest@plt>
  mov    %rax,-0x8(%rbp)
  cmpl   $0x4,-0x1c(%rbp)
  ja     L32
  mov    -0x1c(%rbp),%eax
  lea    0x0(,%rax,4),%rdx
  lea    D13(%rip),%rax
  mov    (%rdx,%rax,1),%eax
  cltq
  lea    D13(%rip),%rdx
  add    %rdx,%rax
  notrack jmp *%rax
  mov    -0x30(%rbp),%rax
  add    $0x18,%rax
  mov    (%rax),%rdx
  mov    -0x8(%rbp),%rsi
  mov    -0x1c(%rbp),%eax
  sub    $0x8,%rsp
  push   $0x0
  mov    $0x0,%r9d
  mov    $0x1,%r8d
  mov    $0x0,%ecx
  mov    %eax,%edi
  call   <search_forest@plt>
  add    $0x10,%rsp
  jmp    L32
  mov    -0x30(%rbp),%rax
  add    $0x18,%rax
  mov    (%rax),%rax
  mov    $0xa,%edx
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <strtol@plt>
  mov    %eax,-0xc(%rbp)
  mov    -0xc(%rbp),%edx
  mov    -0x8(%rbp),%rsi
  mov    -0x1c(%rbp),%eax
  sub    $0x8,%rsp
  push   $0x0
  mov    $0x0,%r9d
  mov    $0x1,%r8d
  mov    %edx,%ecx
  lea    D40(%rip),%rdx
  mov    %eax,%edi
  call   <search_forest@plt>
  add    $0x10,%rsp
  jmp    L32
  mov    -0x30(%rbp),%rax
  add    $0x18,%rax
  mov    (%rax),%rax
  mov    %rax,%rdi
  call   <type_finder@plt>
  mov    %eax,-0x10(%rbp)
  mov    -0x10(%rbp),%edx
  mov    -0x8(%rbp),%rsi
  mov    -0x1c(%rbp),%eax
  sub    $0x8,%rsp
  push   $0x0
  mov    $0x0,%r9d
  mov    %edx,%r8d
  mov    $0x0,%ecx
  lea    D40(%rip),%rdx
  mov    %eax,%edi
  call   <search_forest@plt>
  add    $0x10,%rsp
  jmp    L32
  mov    -0x30(%rbp),%rax
  add    $0x18,%rax
  mov    (%rax),%rdx
  mov    -0x8(%rbp),%rsi
  mov    -0x1c(%rbp),%eax
  sub    $0x8,%rsp
  push   $0x0
  mov    $0x0,%r9d
  mov    $0x1,%r8d
  mov    $0x0,%ecx
  mov    %eax,%edi
  call   <search_forest@plt>
  add    $0x10,%rsp
  jmp    L32
  cmpl   $0x5,-0x24(%rbp)
  je     L35
  lea    D54(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    $0x1,%edi
  call   <exit@plt>
L35:
  mov    -0x30(%rbp),%rax
  add    $0x20,%rax
  mov    (%rax),%rax
  mov    $0xa,%edx
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <strtol@plt>
  mov    %eax,-0x18(%rbp)
  mov    -0x30(%rbp),%rax
  add    $0x18,%rax
  mov    (%rax),%rax
  mov    %rax,%rdi
  call   <operation_finder@plt>
  mov    %eax,-0x14(%rbp)
  mov    -0x18(%rbp),%ecx
  mov    -0x8(%rbp),%rsi
  mov    -0x1c(%rbp),%eax
  sub    $0x8,%rsp
  mov    -0x14(%rbp),%edx
  push   %rdx
  mov    %ecx,%r9d
  mov    $0x1,%r8d
  mov    $0x0,%ecx
  lea    D40(%rip),%rdx
  mov    %eax,%edi
  call   <search_forest@plt>
  add    $0x10,%rsp
  nop
L32:
  mov    $0x0,%eax
L29:
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D56
data_type: string
name: extract_symbolic_data
arguments: data_label: D40
data_type: string
name: extract_symbolic_data
arguments: data_label: D54
data_type: string

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


tool: D40: null

tool: D54: 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;
}
```