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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  lea    -0x14000(%rsp),%r11
L119:
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  cmp    %r11,%rsp
  jne    L119
  sub    $0xd80,%rsp
  mov    %edi,-0x14d74(%rbp)
  mov    %rsi,-0x14d80(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movq   $0x0,-0x14d30(%rbp)
  movabs $0x425f6c6c65437325,%rax
  movabs $0x6e5f363530315f4e,%rdx
  mov    %rax,-0x1040(%rbp)
  mov    %rdx,-0x1038(%rbp)
  movabs $0x61705f642565646f,%rax
  movabs $0x6377732e64257472,%rdx
  mov    %rax,-0x1030(%rbp)
  mov    %rdx,-0x1028(%rbp)
  movb   $0x0,-0x1020(%rbp)
  movabs $0x5f74696c70732f2e,%rax
  mov    $0x2f637773,%edx
  mov    %rax,-0x810(%rbp)
  mov    %rdx,-0x808(%rbp)
  lea    -0x800(%rbp),%rdx
  mov    $0x0,%eax
  mov    $0x7e,%ecx
  mov    %rdx,%rdi
  rep stos %rax,%es:(%rdi)
  movabs $0x5f4e425f6c6c6543,%rax
  movabs $0x2e5d305b36353031,%rdx
  mov    %rax,-0x1060(%rbp)
  mov    %rdx,-0x1058(%rbp)
  movabs $0x5d64255b646e6564,%rax
  mov    %rax,-0x1050(%rbp)
  movb   $0x0,-0x1048(%rbp)
  movabs $0x7325732573257325,%rax
  mov    %rax,-0x108e(%rbp)
  movl   $0x73257325,-0x1086(%rbp)
  movw   $0xa,-0x1082(%rbp)
  movabs $0x435753203a206425,%rax
  mov    %rax,-0x1098(%rbp)
  movw   $0x28,-0x1090(%rbp)
  movl   $0x203a2029,-0x109d(%rbp)
  movb   $0x0,-0x1099(%rbp)
  movabs $0x666c2520666c2520,%rax
  movabs $0x666c2520666c2520,%rdx
  mov    %rax,-0x1080(%rbp)
  mov    %rdx,-0x1078(%rbp)
  movw   $0x20,-0x1070(%rbp)
  movl   $0x0,-0x14d54(%rbp)
  movl   $0x0,-0x14d60(%rbp)
  jmp    L86
L25:
  mov    -0x14d60(%rbp),%eax
  cltq
  movl   $0x0,-0x14d20(%rbp,%rax,4)
  mov    -0x14d60(%rbp),%eax
  cltq
  movl   $0x0,-0x14b20(%rbp,%rax,4)
  addl   $0x1,-0x14d60(%rbp)
L86:
  cmpl   $0x7f,-0x14d60(%rbp)
  jle    L25
  lea    -0x1060(%rbp),%r9
  lea    -0x109d(%rbp),%r8
  lea    -0x1060(%rbp),%rcx
  lea    -0x1098(%rbp),%rdx
  lea    -0x108e(%rbp),%rsi
  lea    -0x410(%rbp),%rax
  lea    -0x1060(%rbp),%rdi
  push   %rdi
  lea    -0x1080(%rbp),%rdi
  push   %rdi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  add    $0x10,%rsp
  lea    -0x1060(%rbp),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  cmpl   $0x1,-0x14d74(%rbp)
  jne    L147
  lea    D75(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0xffffffff,%eax
  jmp    L118
L147:
  cmpl   $0x3,-0x14d74(%rbp)
  jne    L2
  mov    -0x14d80(%rbp),%rax
  add    $0x10,%rax
  mov    (%rax),%rax
  lea    -0x810(%rbp),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
L2:
  mov    -0x14d80(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%rax
  lea    D1(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <fopen@plt>
  mov    %rax,-0x14d28(%rbp)
L48:
  mov    -0x14d28(%rbp),%rdx
  lea    -0x1010(%rbp),%rax
  mov    $0x400,%esi
  mov    %rax,%rdi
  call   <fgets@plt>
  test   %rax,%rax
  je     L9
  lea    -0x14d50(%rbp),%r9
  lea    -0x14d70(%rbp),%r8
  lea    -0x14d68(%rbp),%rcx
  lea    -0x14d64(%rbp),%rdx
  lea    -0x410(%rbp),%rsi
  lea    -0x1010(%rbp),%rax
  lea    -0x14d6c(%rbp),%rdi
  push   %rdi
  lea    -0x14d38(%rbp),%rdi
  push   %rdi
  lea    -0x14d40(%rbp),%rdi
  push   %rdi
  lea    -0x14d48(%rbp),%rdi
  push   %rdi
  mov    %rax,%rdi
  call   <sscanf@plt>
  add    $0x20,%rsp
  mov    -0x14d6c(%rbp),%eax
  cmp    $0xffffffff,%eax
  jne    L61
  mov    -0x14d64(%rbp),%eax
  cltq
  mov    -0x14b20(%rbp,%rax,4),%edi
  mov    -0x14d64(%rbp),%ecx
  lea    -0x810(%rbp),%rdx
  lea    -0x1040(%rbp),%rsi
  lea    -0xc10(%rbp),%rax
  mov    %edi,%r8d
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  cmpq   $0x0,-0x14d30(%rbp)
  je     L160
  mov    -0x14d30(%rbp),%rax
  mov    %rax,%rdi
  call   <fclose@plt>
L160:
  lea    -0xc10(%rbp),%rax
  lea    D69(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <fopen@plt>
  mov    %rax,-0x14d30(%rbp)
  mov    -0x14d30(%rbp),%rax
  mov    %rax,%rdi
  call   <printHeader@plt>
  movl   $0x0,-0x14d60(%rbp)
  jmp    L14
L77:
  mov    -0x14d60(%rbp),%eax
  cltq
  movl   $0xffffffff,-0x14920(%rbp,%rax,4)
  addl   $0x1,-0x14d60(%rbp)
L14:
  cmpl   $0x4e1f,-0x14d60(%rbp)
  jle    L77
  movsd  -0x14d38(%rbp),%xmm2
  movsd  -0x14d40(%rbp),%xmm1
  movsd  -0x14d48(%rbp),%xmm0
  mov    -0x14d50(%rbp),%rcx
  mov    -0x14d64(%rbp),%edx
  mov    -0x14d30(%rbp),%rax
  mov    $0xffffffff,%r8d
  movapd %xmm2,%xmm3
  movapd %xmm1,%xmm2
  movapd %xmm0,%xmm1
  movq   %rcx,%xmm0
  mov    %edx,%ecx
  mov    $0x1,%edx
  lea    D4(%rip),%rsi
  mov    %rax,%rdi
  call   <fprintf@plt>
  mov    -0x14d68(%rbp),%eax
  mov    %eax,-0x1491c(%rbp)
  mov    -0x14d68(%rbp),%edx
  mov    -0x14d64(%rbp),%eax
  mov    %eax,%esi
  lea    D73(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x14d64(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x14b20(%rbp,%rdx,4),%edx
  add    $0x1,%edx
  cltq
  mov    %edx,-0x14b20(%rbp,%rax,4)
  movl   $0x1,-0x14d60(%rbp)
  jmp    L80
L61:
  movl   $0x1,-0x14d5c(%rbp)
  movl   $0x0,-0x14d58(%rbp)
  jmp    L143
L40:
  mov    -0x14d5c(%rbp),%eax
  cltq
  mov    -0x14920(%rbp,%rax,4),%edx
  mov    -0x14d6c(%rbp),%eax
  cmp    %eax,%edx
  jne    L176
  movl   $0x1,-0x14d58(%rbp)
  jmp    L13
L176:
  addl   $0x1,-0x14d5c(%rbp)
L143:
  mov    -0x14d5c(%rbp),%eax
  cltq
  mov    -0x14920(%rbp,%rax,4),%eax
  cmp    $0xffffffff,%eax
  jne    L40
L13:
  cmpl   $0x0,-0x14d58(%rbp)
  jne    L208
  mov    -0x14d5c(%rbp),%edx
  mov    -0x14d60(%rbp),%eax
  mov    %eax,%esi
  lea    D83(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L5
L208:
  movsd  -0x14d38(%rbp),%xmm2
  movsd  -0x14d40(%rbp),%xmm1
  movsd  -0x14d48(%rbp),%xmm0
  mov    -0x14d50(%rbp),%rsi
  mov    -0x14d64(%rbp),%ecx
  mov    -0x14d5c(%rbp),%edi
  mov    -0x14d60(%rbp),%edx
  mov    -0x14d30(%rbp),%rax
  mov    %edi,%r8d
  movapd %xmm2,%xmm3
  movapd %xmm1,%xmm2
  movapd %xmm0,%xmm1
  movq   %rsi,%xmm0
  lea    D4(%rip),%rsi
  mov    %rax,%rdi
  call   <fprintf@plt>
  mov    -0x14d70(%rbp),%edx
  mov    -0x14d60(%rbp),%eax
  cltq
  mov    %edx,-0x14920(%rbp,%rax,4)
  addl   $0x1,-0x14d54(%rbp)
  mov    -0x14d64(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x14d20(%rbp,%rdx,4),%edx
  add    $0x1,%edx
  cltq
  mov    %edx,-0x14d20(%rbp,%rax,4)
L80:
  addl   $0x1,-0x14d60(%rbp)
  jmp    L48
L9:
  nop
L5:
  mov    -0x14d30(%rbp),%rax
  mov    %rax,%rdi
  call   <fclose@plt>
  mov    -0x14d28(%rbp),%rax
  mov    %rax,%rdi
  call   <fclose@plt>
  mov    -0x14d54(%rbp),%eax
  mov    %eax,%esi
  lea    D49(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  movl   $0x0,-0x14d60(%rbp)
  jmp    L39
L194:
  mov    -0x14d60(%rbp),%eax
  cltq
  mov    -0x14d20(%rbp,%rax,4),%eax
  test   %eax,%eax
  je     L223
  mov    -0x14d60(%rbp),%eax
  cltq
  mov    -0x14d20(%rbp,%rax,4),%edx
  mov    -0x14d60(%rbp),%eax
  mov    %eax,%esi
  lea    D17(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L223:
  addl   $0x1,-0x14d60(%rbp)
L39:
  cmpl   $0x7f,-0x14d60(%rbp)
  jle    L194
  mov    $0x0,%eax
L118:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L204
  call   <__stack_chk_fail@plt>
L204:
  leave
  ret
```

tool_calls: name: unpack_data
arguments: data_tag: D75
data_type: string
name: unpack_data
arguments: data_tag: D1
data_type: string
name: unpack_data
arguments: data_tag: D69
data_type: string
name: unpack_data
arguments: data_tag: D4
data_type: string
name: unpack_data
arguments: data_tag: D73
data_type: string
name: unpack_data
arguments: data_tag: D83
data_type: string
name: unpack_data
arguments: data_tag: D49
data_type: string
name: unpack_data
arguments: data_tag: D17
data_type: string

tool: D75: USEAGE : 

tool: D1: r

tool: D69: w

tool: D4: %d %d %f %f %f %f %d


tool: D73: node = %d, root = %d


tool: D83: error i=%d j=%d


tool: D49: Total Compartments : %d


tool: D17:  NODE%d : %d comp


assistant: ```c
int main(int argc, char **argv) {
  FILE *fp;
  FILE *output_fp = NULL;
  char buf[1024];
  int table[20000];
  int id, parent, root;
  double x, y, z, diam;
  int i, j, hit;
  int node;
  char filename_template[] = "%sCell_BN_1056_node%d_part%d.swc";
  char filename[1024];
  char dirname[1024] = "./split_swc/";
  char cell_name[] = "Cell_BN_1056[0].dend[%d]";
  char scanf_template[] = "%s%s%s%s%s%s\n";
  char scanf_template1[] = "%d : SWC(";
  char scanf_template2[] = ") : ";
  char scanf_template3[] = " %lf %lf %lf %lf ";
  char scanf_format[1024];
  int comp_counter = 0;
  int comp_counter_node[128];
  int part_node[128];
  for (i = 0; i < 128; i++) {
    comp_counter_node[i] = 0;
    part_node[i] = 0;
  }
  sprintf(scanf_format, scanf_template, scanf_template1, cell_name, scanf_template2, cell_name, scanf_template3, cell_name);
  printf("%s\n", cell_name);
  if (argc == 1) {
    printf("USEAGE : \n");
    return (-1);
  } else if (argc == 3) {
    strcpy(argv[2], dirname);
  }
  fp = fopen(argv[1], "r");
  while (1) {
    if (fgets(buf, 1024, fp) == NULL) {
      break;
    }
    sscanf(buf, scanf_format, &node, &root, &id, &x, &y, &z, &diam, &parent);
    if (parent == -1) {
      sprintf(filename, filename_template, dirname, node, part_node[node]);
      if (output_fp != NULL) {
        fclose(output_fp);
      }
      output_fp = fopen(filename, "w");
      printHeader(output_fp);
      for (i = 0; i < 20000; i++) {
        table[i] = -1;
      }
      fprintf(output_fp, "%d %d %f %f %f %f %d\n", 1, node, x, y, z, diam, -1);
      table[1] = root;
      printf("node = %d, root = %d\n", node, root);
      part_node[node]++;
      i = 1;
    } else {
      j = 1;
      hit = 0;
      while (table[j] != -1) {
        if (table[j] == parent) {
          hit = 1;
          break;
        }
        j++;
      }
      if (hit == 0) {
        printf("error i=%d j=%d\n", i, j);
        break;
      }
      fprintf(output_fp, "%d %d %f %f %f %f %d\n", i, node, x, y, z, diam, j);
      table[i] = id;
      comp_counter++;
      comp_counter_node[node]++;
    }
    i++;
  }
  fclose(output_fp);
  fclose(fp);
  printf("Total Compartments : %d\n", comp_counter);
  for (i = 0; i < 128; i++) {
    if (comp_counter_node[i] != 0) {
      printf(" NODE%d : %d comp\n", i, comp_counter_node[i]);
    }
  }
  return (0);
}
```