user: Please show me the C implementation that matches the assembly code listed below:

```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    L14
  lea    -0x2(%r12),%eax
  lea    0x8(%r13),%r15
  xor    %ebx,%ebx
  lea    0x10(%r13,%rax,8),%r14
  nopl   0x0(%rax,%rax,1)
L221:
  mov    (%r15),%rdi
  add    $0x8,%r15
  call   <strlen@plt>
  add    %eax,%ebx
  cmp    %r15,%r14
  jne    L221
L178:
  mov    -0x48(%rbp),%rax
  add    %r12d,%ebx
  test   %rax,%rax
  je     L199
  mov    %rax,%rdi
  call   <strlen@plt>
  add    %eax,%ebx
L199:
  mov    -0x50(%rbp),%r15
  test   %r15,%r15
  je     L48
  mov    %r15,%rdi
  call   <strlen@plt>
  lea    0x1e(%rbx,%rax,1),%edi
  mov    %r15,%rbx
  call   <alloca@plt>
  mov    %r15,%rdx
  lea    D66(%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>
L226:
  mov    -0x48(%rbp),%r15
  test   %r15,%r15
  je     L87
  mov    -0x50(%rbp),%r14
  mov    %r15,%rdx
  lea    D51(%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>
L177:
  mov    $0x1,%r14d
  lea    D38(%rip),%r15
  cmp    $0x1,%r12d
  jg     L64
  jmp    L107
  nopl   (%rax)
L125:
  add    $0x1,%r14d
  add    $0x1,%r14d
  cmp    %r14d,%r12d
  jle    L33
L64:
  movslq %r14d,%rax
  mov    %r15,%rsi
  mov    0x0(%r13,%rax,8),%rbx
  mov    %rbx,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L125
  mov    %rbx,%rdi
  mov    $0x20,%esi
  call   <strchr@plt>
  mov    %rbx,%rdx
  lea    D54(%rip),%rsi
  mov    -0x48(%rbp),%rbx
  test   %rax,%rax
  lea    D94(%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     L64
L33:
  mov    -0x58(%rbp),%rdi
  call   <system@plt>
  test   %eax,%eax
  je     L53
L49:
  mov    -0x38(%rbp),%rdx
  sub    %fs:0x28,%rdx
  jne    L21
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
L53:
  mov    -0x50(%rbp),%rbx
  lea    D119(%rip),%rdx
  lea    D57(%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    L95
  nop
L128:
  mov    %r14,%rdx
  mov    -0x50(%rbp),%r14
  lea    D57(%rip),%rsi
  xor    %eax,%eax
  mov    %r14,%rdi
  call   <sprintf@plt>
  mov    %ebx,%ecx
  cltq
  add    %rax,%r14
  mov    %r14,-0x50(%rbp)
L98:
  lea    0x1(%rcx),%ebx
  cmp    %ebx,%r12d
  jle    L219
L95:
  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     L98
  mov    $0x4,%edx
  lea    D136(%rip),%rsi
  mov    %r14,%rdi
  mov    %ecx,-0x48(%rbp)
  call   <strncmp@plt>
  test   %eax,%eax
  jne    L128
  mov    $0xb,%edx
  lea    D99(%rip),%rsi
  mov    %r14,%rdi
  call   <strncmp@plt>
  mov    -0x48(%rbp),%ecx
  test   %eax,%eax
  je     L98
  mov    $0xe,%edx
  lea    D44(%rip),%rsi
  mov    %r14,%rdi
  call   <strncmp@plt>
  mov    -0x48(%rbp),%ecx
  test   %eax,%eax
  cmovne %ebx,%ecx
  jmp    L98
L107:
  mov    -0x58(%rbp),%rdi
  call   <system@plt>
  test   %eax,%eax
  jne    L49
  mov    -0x50(%rbp),%rdi
  lea    D119(%rip),%rdx
  lea    D57(%rip),%rsi
  xor    %eax,%eax
  call   <sprintf@plt>
L219:
  mov    -0x58(%rbp),%rdi
  call   <system@plt>
  jmp    L49
L87:
  mov    -0x50(%rbp),%rdi
  lea    D115(%rip),%rsi
  mov    $0xd,%ecx
  rep movsb %ds:(%rsi),%es:(%rdi)
  mov    -0x50(%rbp),%rdi
  lea    0xc(%rdi),%rax
  mov    %rax,-0x48(%rbp)
  jmp    L177
L48:
  lea    0x1e(%rbx),%edi
  call   <alloca@plt>
  mov    %rax,-0x50(%rbp)
  mov    %rax,-0x58(%rbp)
  jmp    L226
L14:
  xor    %ebx,%ebx
  jmp    L178
L21:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_tag: D66
type_infered: string
name: parse_data
arguments: data_tag: D51
type_infered: string
name: parse_data
arguments: data_tag: D38
type_infered: string
name: parse_data
arguments: data_tag: D54
type_infered: string
name: parse_data
arguments: data_tag: D94
type_infered: string
name: parse_data
arguments: data_tag: D119
type_infered: string
name: parse_data
arguments: data_tag: D57
type_infered: string
name: parse_data
arguments: data_tag: D136
type_infered: string
name: parse_data
arguments: data_tag: D99
type_infered: string
name: parse_data
arguments: data_tag: D44
type_infered: string
name: parse_data
arguments: data_tag: D115
type_infered: string

tool: D66: %s

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

tool: D38: -JTPATH

tool: D54:  %s

tool: D94:  "%s"

tool: D119: javac

tool: D57: %s 

tool: D136: -jt.

tool: D99: -jt.include

tool: D44: -jt.sourcepath

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