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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  mov    %rsi,%r13
  push   %r12
  mov    %edi,%r12d
  push   %rbx
  sub    $0x38,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  call   <get_jt_path@plt>
  mov    %rax,-0x48(%rbp)
  xor    %eax,%eax
  call   <get_java_bin_path@plt>
  mov    %rax,-0x50(%rbp)
  cmp    $0x1,%r12d
  jle    L26
  lea    -0x2(%r12),%eax
  lea    0x8(%r13),%r15
  xor    %ebx,%ebx
  lea    0x10(%r13,%rax,8),%r14
  nopl   0x0(%rax,%rax,1)
L142:
  mov    (%r15),%rdi
  add    $0x8,%r15
  call   <strlen@plt>
  add    %eax,%ebx
  cmp    %r15,%r14
  jne    L142
L150:
  mov    -0x48(%rbp),%rax
  add    %r12d,%ebx
  test   %rax,%rax
  je     L33
  mov    %rax,%rdi
  call   <strlen@plt>
  add    %eax,%ebx
L33:
  mov    -0x50(%rbp),%r15
  test   %r15,%r15
  je     L140
  mov    %r15,%rdi
  call   <strlen@plt>
  lea    0x1e(%rbx,%rax,1),%edi
  mov    %r15,%rbx
  call   <alloca@plt>
  mov    %r15,%rdx
  lea    D109(%rip),%rsi
  mov    %rax,%rdi
  mov    %rax,-0x58(%rbp)
  mov    %rax,%r15
  xor    %eax,%eax
  call   <sprintf@plt>
  mov    %rbx,%rdi
  cltq
  add    %r15,%rax
  mov    %rax,-0x50(%rbp)
  call   <free@plt>
L212:
  mov    -0x48(%rbp),%r15
  test   %r15,%r15
  je     L148
  mov    -0x50(%rbp),%r14
  mov    %r15,%rdx
  lea    D72(%rip),%rsi
  xor    %eax,%eax
  mov    %r14,%rdi
  call   <sprintf@plt>
  mov    %r15,%rdi
  movslq %eax,%rbx
  add    %r14,%rbx
  mov    %rbx,-0x48(%rbp)
  call   <free@plt>
L66:
  mov    $0x1,%r14d
  lea    D8(%rip),%r15
  cmp    $0x1,%r12d
  jg     L225
  jmp    L157
  nopl   (%rax)
L215:
  add    $0x1,%r14d
  add    $0x1,%r14d
  cmp    %r14d,%r12d
  jle    L47
L225:
  movslq %r14d,%rax
  mov    %r15,%rsi
  mov    0x0(%r13,%rax,8),%rbx
  mov    %rbx,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L215
  mov    %rbx,%rdi
  mov    $0x20,%esi
  call   <strchr@plt>
  mov    %rbx,%rdx
  lea    D47(%rip),%rsi
  mov    -0x48(%rbp),%rbx
  test   %rax,%rax
  lea    D25(%rip),%rax
  cmovne %rax,%rsi
  mov    %rbx,%rdi
  xor    %eax,%eax
  add    $0x1,%r14d
  call   <sprintf@plt>
  cltq
  add    %rax,%rbx
  mov    %rbx,-0x48(%rbp)
  cmp    %r14d,%r12d
  jg     L225
L47:
  mov    -0x58(%rbp),%rdi
  call   <system@plt>
  test   %eax,%eax
  je     L40
L101:
  mov    -0x38(%rbp),%rdx
  sub    %fs:0x28,%rdx
  jne    L42
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
L40:
  mov    -0x50(%rbp),%rbx
  lea    D63(%rip),%rdx
  lea    D100(%rip),%rsi
  xor    %eax,%eax
  mov    %rbx,%rdi
  call   <sprintf@plt>
  mov    %rbx,%rax
  mov    $0x1,%ebx
  add    $0x6,%rax
  mov    %rax,-0x50(%rbp)
  jmp    L127
  nop
L60:
  mov    %r14,%rdx
  mov    -0x50(%rbp),%r14
  lea    D100(%rip),%rsi
  xor    %eax,%eax
  mov    %r14,%rdi
  call   <sprintf@plt>
  mov    %ebx,%ecx
  cltq
  add    %rax,%r14
  mov    %r14,-0x50(%rbp)
L30:
  lea    0x1(%rcx),%ebx
  cmp    %ebx,%r12d
  jle    L164
L127:
  movslq %ebx,%rax
  mov    %r15,%rsi
  mov    0x0(%r13,%rax,8),%r14
  mov    %r14,%rdi
  call   <strcmp@plt>
  lea    0x1(%rbx),%ecx
  test   %rax,%rax
  je     L30
  mov    $0x4,%edx
  lea    D34(%rip),%rsi
  mov    %r14,%rdi
  mov    %ecx,-0x48(%rbp)
  call   <strncmp@plt>
  test   %eax,%eax
  jne    L60
  mov    $0xb,%edx
  lea    D133(%rip),%rsi
  mov    %r14,%rdi
  call   <strncmp@plt>
  mov    -0x48(%rbp),%ecx
  test   %eax,%eax
  je     L30
  mov    $0xe,%edx
  lea    D130(%rip),%rsi
  mov    %r14,%rdi
  call   <strncmp@plt>
  mov    -0x48(%rbp),%ecx
  test   %eax,%eax
  cmovne %ebx,%ecx
  jmp    L30
L157:
  mov    -0x58(%rbp),%rdi
  call   <system@plt>
  test   %eax,%eax
  jne    L101
  mov    -0x50(%rbp),%rdi
  lea    D63(%rip),%rdx
  lea    D100(%rip),%rsi
  xor    %eax,%eax
  call   <sprintf@plt>
L164:
  mov    -0x58(%rbp),%rdi
  call   <system@plt>
  jmp    L101
L148:
  mov    -0x50(%rbp),%rdi
  lea    D98(%rip),%rsi
  mov    $0xd,%ecx
  rep movsb %ds:(%rsi),%es:(%rdi)
  mov    -0x50(%rbp),%rdi
  lea    0xc(%rdi),%rax
  mov    %rax,-0x48(%rbp)
  jmp    L66
L140:
  lea    0x1e(%rbx),%edi
  call   <alloca@plt>
  mov    %rax,-0x50(%rbp)
  mov    %rax,-0x58(%rbp)
  jmp    L212
L26:
  xor    %ebx,%ebx
  jmp    L150
L42:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D109
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D72
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D8
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D47
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D25
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D63
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D100
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D34
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D133
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D130
type_guessed: string
name: extract_symbolic_data
arguments: data_label: D98
type_guessed: string

tool: D109: %s

tool: D72: java -cp %s jt.Proc

tool: D8: -JTPATH

tool: D47:  %s

tool: D25:  "%s"

tool: D63: javac

tool: D100: %s 

tool: D34: -jt.

tool: D133: -jt.include

tool: D130: -jt.sourcepath

tool: D98: java jt.Proc

assistant: ```c
int main(int argc, char **argv) {
  int i, len = 0, err;
  char *cmd_line, *pp, *pa, *jt_path, *java_bin_path;
  jt_path = get_jt_path(argc, argv);
  java_bin_path = get_java_bin_path();
  for (i = 1; i < argc; i++) {
    len += strlen(argv[i]);
  }
  len += argc;
  if (jt_path) {
    len += strlen(jt_path);
  }
  if (java_bin_path) {
    len += strlen(java_bin_path);
  }
  len += 30;
  cmd_line = (char *)alloca(len);
  if (java_bin_path) {
    pp = cmd_line + sprintf(cmd_line, "%s", java_bin_path);
    free(java_bin_path);
  } else {
    pp = cmd_line;
  }
  if (jt_path) {
    pa = pp + sprintf(pp, "java -cp %s jt.Proc", jt_path);
    free(jt_path);
  } else {
    pa = pp + sprintf(pp, "java jt.Proc");
  }
  for (i = 1; i < argc; i++) {
    char *arg = argv[i];
    if (0 == strcmp(arg, "-JTPATH"))
      i++;
    else
      pa += sprintf(pa, (strchr(arg, ' ') ? " \"%s\"" : " %s"), arg);
  };
  if (0 != (err = system(cmd_line))) {
    ;
    return err;
  }
  pa = pp + sprintf(pp, "%s ", "javac");
  for (i = 1; i < argc; i++) {
    char *arg = argv[i];
    if (0 == strcmp(arg, "-JTPATH")) {
      i++;
    } else if (arg == strstr(arg, "-jt.")) {
      if (arg == strstr(arg, "-jt.include") || arg == strstr(arg, "-jt.sourcepath"))
        i++;
    } else {
      pa += sprintf(pa, "%s ", arg);
    }
  };
  if (0 != (err = system(cmd_line))) {
    ;
    return err;
  }
  return 0;
}
```