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

```asm
<text2code>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0xe0,%rsp
  mov    %rdi,-0xc8(%rbp)
  mov    %rsi,-0xd0(%rbp)
  mov    %rdx,-0xd8(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0xbc(%rbp)
  jmp    L95
L107:
  mov    -0xbc(%rbp),%eax
  cltq
  movb   $0x0,-0x90(%rbp,%rax,1)
  addl   $0x1,-0xbc(%rbp)
L95:
  cmpl   $0x7f,-0xbc(%rbp)
  jle    L107
  mov    -0xc8(%rbp),%rax
  lea    D65(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <fopen@plt>
  mov    %rax,-0xa8(%rbp)
  mov    -0xd0(%rbp),%rax
  lea    D15(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <fopen@plt>
  mov    %rax,-0xa0(%rbp)
  mov    -0xd8(%rbp),%rax
  mov    %rax,%rdi
  call   <count_lines@plt>
  mov    %eax,-0xb4(%rbp)
  mov    -0xb4(%rbp),%edx
  mov    -0xa0(%rbp),%rax
  lea    D53(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  movl   $0x0,-0xb8(%rbp)
  jmp    L66
L85:
  mov    -0xb8(%rbp),%eax
  cltq
  shl    $0x7,%rax
  mov    %rax,%rdx
  mov    -0xd8(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L41
  mov    -0xb8(%rbp),%eax
  cmp    $0x20,%al
  jne    L111
  mov    -0xb8(%rbp),%eax
  cltq
  shl    $0x7,%rax
  mov    %rax,%rdx
  mov    -0xd8(%rbp),%rax
  add    %rax,%rdx
  mov    -0xa0(%rbp),%rax
  lea    D52(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  jmp    L41
L111:
  mov    -0xb8(%rbp),%eax
  cmp    $0xa,%al
  jne    L110
  mov    -0xb8(%rbp),%eax
  cltq
  shl    $0x7,%rax
  mov    %rax,%rdx
  mov    -0xd8(%rbp),%rax
  add    %rax,%rdx
  mov    -0xa0(%rbp),%rax
  lea    D17(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  jmp    L41
L110:
  mov    -0xb8(%rbp),%eax
  cltq
  shl    $0x7,%rax
  mov    %rax,%rdx
  mov    -0xd8(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0xb8(%rbp),%eax
  movsbl %al,%edx
  mov    -0xa0(%rbp),%rax
  lea    D35(%rip),%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
L41:
  addl   $0x1,-0xb8(%rbp)
L66:
  cmpl   $0x7f,-0xb8(%rbp)
  jle    L85
  jmp    L139
L73:
  mov    -0xa8(%rbp),%rax
  mov    %rax,%rdi
  call   <fgetc@plt>
  mov    %al,-0xbe(%rbp)
  cmpb   $0x0,-0xbe(%rbp)
  js     L126
  movsbl -0xbe(%rbp),%edx
  lea    -0x90(%rbp),%rcx
  mov    -0xd8(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <codetext@plt>
L126:
  lea    -0x90(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  cmp    $0x7,%eax
  jle    L139
  lea    -0x90(%rbp),%rax
  mov    %rax,%rdi
  call   <bin2dec@plt>
  mov    %eax,-0xac(%rbp)
  mov    -0xac(%rbp),%eax
  mov    %al,-0xbd(%rbp)
  movzbl -0xbd(%rbp),%eax
  mov    -0xa0(%rbp),%rdx
  mov    %rdx,%rsi
  mov    %eax,%edi
  call   <fputc@plt>
  lea    -0x90(%rbp),%rax
  mov    %rax,%rdi
  call   <move_code@plt>
L139:
  mov    -0xa8(%rbp),%rax
  mov    %rax,%rdi
  call   <feof@plt>
  test   %eax,%eax
  je     L73
  lea    -0x90(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  cltq
  mov    %rax,-0x98(%rbp)
  cmpq   $0x0,-0x98(%rbp)
  je     L15
  lea    -0x90(%rbp),%rax
  mov    %rax,%rdi
  call   <final_num@plt>
  mov    %eax,-0xb0(%rbp)
  mov    -0xb0(%rbp),%eax
  mov    %al,-0xbf(%rbp)
  movzbl -0xbf(%rbp),%eax
  mov    -0xa0(%rbp),%rdx
  mov    %rdx,%rsi
  mov    %eax,%edi
  call   <fputc@plt>
L15:
  mov    -0xa0(%rbp),%rax
  mov    $0x0,%edx
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <fseek@plt>
  mov    -0xb4(%rbp),%ecx
  mov    -0x98(%rbp),%rdx
  mov    -0xa0(%rbp),%rax
  lea    D48(%rip),%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  mov    -0xa8(%rbp),%rax
  mov    %rax,%rdi
  call   <fclose@plt>
  mov    -0xa0(%rbp),%rax
  mov    %rax,%rdi
  call   <fclose@plt>
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L103
  call   <__stack_chk_fail@plt>
L103:
  leave
  ret
```

tool_calls: name: unpack_data
arguments: data_label: D65
type_guessed: string
name: unpack_data
arguments: data_label: D15
type_guessed: string
name: unpack_data
arguments: data_label: D53
type_guessed: string
name: unpack_data
arguments: data_label: D52
type_guessed: string
name: unpack_data
arguments: data_label: D17
type_guessed: string
name: unpack_data
arguments: data_label: D35
type_guessed: string
name: unpack_data
arguments: data_label: D48
type_guessed: string

tool: D65: r

tool: D15: w

tool: D53: %d

 

tool: D52: ' ' - %s


tool: D17: '\n' - %s


tool: D35: %c - %s


tool: D48: %lu
%d


assistant: ```c
void text2code(const char *input_name, const char *output_name, char code_arr[128][128]) {
  char code[128];
  for (int i = 0; i < 128; i++)
    code[i] = '\0';
  FILE *input;
  input = fopen(input_name, "r");
  FILE *output;
  output = fopen(output_name, "w");
  int lines = count_lines(code_arr);
  fprintf(output, "%d\n\n ", lines);
  for (int i = 0; i < 128; i++)
    if (code_arr[i][0] != '\0') {
      if ((char)i == ' ') {
        fprintf(output, "' ' - %s\n", code_arr[i]);
        continue;
      }
      if ((char)i == '\n') {
        fprintf(output, "'\\n' - %s\n", code_arr[i]);
        continue;
      }
      fprintf(output, "%c - %s\n", (char)i, code_arr[i]);
    }
  char sign;
  while (!feof(input)) {
    sign = fgetc(input);
    if ((int)sign >= 0)
      codetext(code_arr, code, sign);
    if (strlen(code) >= 8) {
      int coded = bin2dec(code);
      unsigned char out_sign = coded;
      fprintf(output, "%c", out_sign);
      move_code(code);
    }
  }
  unsigned long int while_eof = strlen(code);
  if (while_eof > 0) {
    int coded = final_num(code);
    unsigned char out_sign = coded;
    fprintf(output, "%c", out_sign);
  }
  fseek(output, 0, 0);
  fprintf(output, "%lu\n%d\n", while_eof, lines);
  fclose(input);
  fclose(output);
}
```