user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0xb48,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0xb38(%rsp)
  xor    %eax,%eax
  lea    D36(%rip),%rsi
  lea    D0(%rip),%rdi
  call   <fopen@plt>
  mov    %rax,%rbx
  lea    0x270(%rsp),%rdi
  mov    $0x64,%edx
  mov    $0x0,%esi
  call   <memset@plt>
  lea    0x200(%rsp),%rbp
  mov    %rbx,%rdx
  mov    $0x64,%esi
  mov    %rbp,%rdi
  call   <fgets@plt>
  lea    0x360(%rsp),%r14
  mov    %rbx,%rdx
  mov    $0x3e8,%esi
  mov    %r14,%rdi
  call   <fgets@plt>
  lea    D21(%rip),%rsi
  mov    %rbp,%rdi
  call   <strtok@plt>
  mov    %r14,%rdi
  call   <strlen@plt>
  mov    %eax,%r13d
  mov    %rbp,%rdi
  call   <strlen@plt>
  mov    %eax,%r12d
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,%rbp
  mov    %r12d,%edx
  mov    $0x30,%esi
  mov    %rax,%rdi
  call   <memset@plt>
  mov    %rbp,%rsi
  mov    %r14,%rdi
  call   <strcat@plt>
  mov    %rbx,%rdi
  call   <fclose@plt>
  movabs $0x6464646464646464,%rax
  movabs $0x6464646464646464,%rdx
  mov    %rax,0x2e0(%rsp)
  mov    %rdx,0x2e8(%rsp)
  mov    %rax,0x2f0(%rsp)
  mov    %rdx,0x2f8(%rsp)
  movabs $0x6262626262626262,%rax
  movabs $0x6262626262626262,%rdx
  mov    %rax,0x300(%rsp)
  mov    %rdx,0x308(%rsp)
  movabs $0x6565656565656565,%rax
  movabs $0x6161666663636363,%rdx
  mov    %rax,0x310(%rsp)
  mov    %rdx,0x318(%rsp)
  movq   $0x0,0x320(%rsp)
  movq   $0x0,0x328(%rsp)
  movq   $0x0,0x330(%rsp)
  movq   $0x0,0x338(%rsp)
  movq   $0x0,0x340(%rsp)
  movq   $0x0,0x348(%rsp)
  movq   $0x0,0x350(%rsp)
  movq   $0x0,0x358(%rsp)
  mov    %rsp,%rdi
  mov    $0x40,%ecx
  mov    $0x0,%eax
  rep stos %rax,%es:(%rdi)
  movl   $0x1,(%rsp)
  movl   $0x1,0x4(%rsp)
  movl   $0x1,0x8(%rsp)
  movl   $0x1,0xc(%rsp)
  movl   $0x1,0x10(%rsp)
  movl   $0x1,0x14(%rsp)
  movl   $0x1,0x18(%rsp)
  movl   $0x1,0x1c(%rsp)
  movl   $0x1,0x20(%rsp)
  movl   $0x1,0x24(%rsp)
  movl   $0x1,0x28(%rsp)
  movl   $0x1,0x2c(%rsp)
  movl   $0x1,0x30(%rsp)
  movl   $0x1,0x34(%rsp)
  movl   $0x1,0x38(%rsp)
  movl   $0x1,0x3c(%rsp)
  movl   $0x1,0x40(%rsp)
  movl   $0x1,0x44(%rsp)
  movl   $0x1,0x48(%rsp)
  movl   $0x1,0x4c(%rsp)
  movl   $0x1,0x50(%rsp)
  movl   $0x1,0x54(%rsp)
  movl   $0x1,0x58(%rsp)
  movl   $0x1,0x5c(%rsp)
  movl   $0x1,0x60(%rsp)
  movl   $0x1,0x64(%rsp)
  movl   $0x1,0x68(%rsp)
  movl   $0x1,0x6c(%rsp)
  movl   $0x1,0x70(%rsp)
  movl   $0x1,0x74(%rsp)
  movl   $0x1,0x78(%rsp)
  movl   $0x1,0x7c(%rsp)
  movl   $0x2,0x80(%rsp)
  movl   $0x2,0x84(%rsp)
  movl   $0x2,0x88(%rsp)
  movl   $0x2,0x8c(%rsp)
  movl   $0x2,0x90(%rsp)
  movl   $0x2,0x94(%rsp)
  movl   $0x2,0x98(%rsp)
  movl   $0x2,0x9c(%rsp)
  movl   $0x2,0xa0(%rsp)
  movl   $0x2,0xa4(%rsp)
  movl   $0x2,0xa8(%rsp)
  movl   $0x2,0xac(%rsp)
  movl   $0x2,0xb0(%rsp)
  movl   $0x2,0xb4(%rsp)
  movl   $0x2,0xb8(%rsp)
  movl   $0x2,0xbc(%rsp)
  movl   $0x3,0xc0(%rsp)
  movl   $0x3,0xc4(%rsp)
  movl   $0x3,0xc8(%rsp)
  movl   $0x3,0xcc(%rsp)
  movl   $0x3,0xd0(%rsp)
  movl   $0x3,0xd4(%rsp)
  movl   $0x3,0xd8(%rsp)
  movl   $0x3,0xdc(%rsp)
  movl   $0x4,0xe0(%rsp)
  movl   $0x4,0xe4(%rsp)
  movl   $0x4,0xe8(%rsp)
  movl   $0x4,0xec(%rsp)
  movl   $0x5,0xf0(%rsp)
  movl   $0x5,0xf4(%rsp)
  movl   $0x6,0xf8(%rsp)
  movl   $0x6,0xfc(%rsp)
  test   %r13d,%r13d
  jle    L1
  lea    0x750(%rsp),%rbp
  mov    $0x0,%ebx
L2:
  movslq %ebx,%rsi
  add    %r14,%rsi
  lea    0x270(%rsp),%r15
  mov    %r12d,%edx
  mov    %r15,%rdi
  call   <strncpy@plt>
  mov    $0x2,%edx
  mov    $0x0,%esi
  mov    %r15,%rdi
  call   <strtol@plt>
  cltq
  movzbl 0x2e0(%rsp,%rax,1),%edx
  mov    %dl,0x0(%rbp)
  add    (%rsp,%rax,4),%ebx
  add    $0x1,%rbp
  cmp    %ebx,%r13d
  jg     L2
L1:
  lea    0x750(%rsp),%rsi
  lea    D20(%rip),%rdi
  call   <printf@plt>
  mov    0xb38(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L17
  mov    $0x0,%eax
  add    $0xb48,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L17:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D36
datatype: string
name: extract_symbolic_data
arguments: data_label: D0
datatype: string
name: extract_symbolic_data
arguments: data_label: D21
datatype: string
name: extract_symbolic_data
arguments: data_label: D20
datatype: string

tool: D36: r

tool: D0: input.txt

tool: D21: 


tool: D20: %s


assistant: ```c
int main(void) {
  FILE *file = fopen("input.txt", "r");
  int i = 0;
  int outputIndex = 0;
  int codeLength;
  int numVariables;
  char code[1000];
  char variables[100];
  char output[1000];
  char temp[100];
  memset(temp, 0, sizeof(char) * 100);
  fgets(variables, sizeof variables, file);
  fgets(code, sizeof code, file);
  strtok(variables, "\n");
  codeLength = strlen(code);
  numVariables = strlen(variables);
  char *buffer = malloc(sizeof(char) * numVariables);
  memset(buffer, 0x30, sizeof(char) * numVariables);
  strcat(code, buffer);
  fclose(file);
  char LUT[128] = {'d', 'd', 'd', 'd', 'd', 'd', 'd', 'd', 'd', 'd', 'd', 'd', 'd', 'd', 'd', 'd', 'd', 'd', 'd', 'd', 'd', 'd', 'd', 'd', 'd', 'd', 'd', 'd', 'd', 'd', 'd', 'd', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'e', 'e', 'e', 'e', 'e', 'e', 'e', 'e', 'c', 'c', 'c', 'c', 'f', 'f', 'a', 'a'};
  int codeLenLUT[128] = {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 6, 6};
  while (i < codeLength) {
    strncpy(temp, code + i, numVariables);
    int index = (int)strtol(temp, NULL, 2);
    output[outputIndex++] = LUT[index];
    i += codeLenLUT[index];
  }
  printf("%s\n", output);
  return 0;
}
```