user: 请从给定的汇编指令推导出C源代码:

```asm
<text2code>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0xa8,%rsp
  mov    %rsi,%rbx
  mov    %rdx,(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x98(%rsp)
  xor    %eax,%eax
  lea    0x10(%rsp),%rax
  lea    0x90(%rsp),%rdx
L154:
  movb   $0x0,(%rax)
  add    $0x1,%rax
  cmp    %rdx,%rax
  jne    L154
  lea    D64(%rip),%rsi
  call   <fopen@plt>
  mov    %rax,%r13
  lea    D28(%rip),%rsi
  mov    %rbx,%rdi
  call   <fopen@plt>
  mov    %rax,%r12
  mov    (%rsp),%rbp
  mov    %rbp,%rdi
  call   <count_lines@plt>
  mov    %eax,0xc(%rsp)
  mov    %eax,%edx
  lea    D47(%rip),%rsi
  mov    %r12,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  mov    $0x0,%ebx
  lea    D29(%rip),%r14
  lea    D46(%rip),%r15
  jmp    L82
L69:
  mov    %rbp,%rdx
  lea    D23(%rip),%rsi
  mov    %r12,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  jmp    L77
L136:
  mov    %rbp,%rdx
  mov    %r15,%rsi
  mov    %r12,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
L77:
  add    $0x1,%ebx
  sub    $0xffffffffffffff80,%rbp
  cmp    $0x80,%ebx
  je     L35
L82:
  mov    %rbp,%rcx
  cmpb   $0x0,0x0(%rbp)
  je     L77
  cmp    $0x20,%bl
  je     L69
  cmp    $0xa,%bl
  je     L136
  movsbl %bl,%edx
  mov    %r14,%rsi
  mov    %r12,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  jmp    L77
L35:
  lea    0x10(%rsp),%rbx
  jmp    L72
L29:
  mov    %rbx,%rdi
  call   <strlen@plt>
  cmp    $0x7,%eax
  jg     L98
L72:
  mov    %r13,%rdi
  call   <feof@plt>
  test   %eax,%eax
  jne    L24
  mov    %r13,%rdi
  call   <fgetc@plt>
  test   %al,%al
  js     L29
  movsbl %al,%edx
  mov    %rbx,%rsi
  mov    (%rsp),%rdi
  call   <codetext@plt>
  jmp    L29
L98:
  mov    %rbx,%rdi
  call   <bin2dec@plt>
  movzbl %al,%edi
  mov    %r12,%rsi
  call   <fputc@plt>
  mov    %rbx,%rdi
  call   <move_code@plt>
  jmp    L72
L24:
  lea    0x10(%rsp),%rdi
  call   <strlen@plt>
  movslq %eax,%rbx
  test   %rbx,%rbx
  jne    L144
L4:
  mov    $0x0,%edx
  mov    $0x0,%esi
  mov    %r12,%rdi
  call   <fseek@plt>
  mov    0xc(%rsp),%ecx
  mov    %rbx,%rdx
  lea    D1(%rip),%rsi
  mov    %r12,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  mov    %r13,%rdi
  call   <fclose@plt>
  mov    %r12,%rdi
  call   <fclose@plt>
  mov    0x98(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L164
  add    $0xa8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L144:
  lea    0x10(%rsp),%rdi
  call   <final_num@plt>
  movzbl %al,%edi
  mov    %r12,%rsi
  call   <fputc@plt>
  jmp    L4
L164:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: tag: D64
datatype: string
name: parse_data
arguments: tag: D28
datatype: string
name: parse_data
arguments: tag: D47
datatype: string
name: parse_data
arguments: tag: D29
datatype: string
name: parse_data
arguments: tag: D46
datatype: string
name: parse_data
arguments: tag: D23
datatype: string
name: parse_data
arguments: tag: D1
datatype: string

tool: D64: r

tool: D28: w

tool: D47: %d

 

tool: D29: %c - %s


tool: D46: '\n' - %s


tool: D23: ' ' - %s


tool: D1: %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);
}
```