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

```asm
<check_index_source>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    %rdi,%r14
  mov    %rsi,%rbx
  mov    %edx,%ebp
  lea    D119(%rip),%r8
  lea    D251(%rip),%r13
  mov    %r13,%rcx
  mov    $0x19d,%edx
  lea    D31(%rip),%r12
  mov    %r12,%rsi
  mov    $0x1,%edi
  mov    $0x0,%eax
  call   <debug_@plt>
  mov    %r14,%r9
  lea    D160(%rip),%r8
  mov    %r13,%rcx
  mov    $0x1a0,%edx
  mov    %r12,%rsi
  mov    $0x3,%edi
  mov    $0x0,%eax
  call   <debug_@plt>
  mov    %rbx,%r9
  lea    D55(%rip),%r8
  mov    %r13,%rcx
  mov    $0x1a1,%edx
  mov    %r12,%rsi
  mov    $0x3,%edi
  mov    $0x0,%eax
  call   <debug_@plt>
  mov    %ebp,%r9d
  lea    D129(%rip),%r8
  mov    %r13,%rcx
  mov    $0x1a2,%edx
  mov    %r12,%rsi
  mov    $0x3,%edi
  mov    $0x0,%eax
  call   <debug_@plt>
  mov    %rbx,%rdi
  call   <strlen@plt>
  lea    -0x1(%rbp),%edx
  cmp    %rdx,%rax
  je     L8
  mov    $0x0,%ebp
  test   %rax,%rax
  jne    L127
L81:
  lea    D198(%rip),%r8
  lea    D251(%rip),%rcx
  mov    $0x1b6,%edx
  lea    D31(%rip),%rsi
  mov    $0x3,%edi
  mov    $0x0,%eax
  call   <debug_@plt>
  mov    $0x1,%eax
  jmp    L147
L8:
  mov    %ebp,%esi
  lea    D211(%rip),%rdi
  mov    $0x0,%eax
  call   <error_@plt>
  lea    D144(%rip),%rdi
  mov    $0x0,%eax
  call   <error_@plt>
  mov    $0xffffffff,%eax
  jmp    L147
L168:
  add    $0x1,%rbp
  cmp    %rbp,%rax
  je     L81
L127:
  movzbl (%rbx,%rbp,1),%edx
  cmp    $0x20,%dl
  je     L168
  cmp    $0x9,%dl
  je     L168
  lea    D208(%rip),%r8
  lea    D251(%rip),%rcx
  mov    $0x1b0,%edx
  lea    D31(%rip),%rsi
  mov    $0x3,%edi
  mov    $0x0,%eax
  call   <debug_@plt>
  mov    %rbx,%rdi
  call   <strlen@plt>
  cmp    %rbp,%rax
  je     L81
  add    %rbx,%rbp
  movzbl 0x0(%rbp),%r9d
  sub    $0x8,%rsp
  push   %r9
  lea    D24(%rip),%r8
  lea    D251(%rip),%rcx
  mov    $0x1bb,%edx
  lea    D31(%rip),%rsi
  mov    $0x3,%edi
  mov    $0x0,%eax
  call   <debug_@plt>
  movzbl 0x0(%rbp),%edx
  add    $0x10,%rsp
  cmp    $0x23,%dl
  je     L16
  mov    $0x1,%eax
  cmp    $0x2f,%dl
  jne    L147
  mov    %rbx,%r13
  mov    $0x0,%r12d
  lea    D251(%rip),%r14
  lea    D31(%rip),%r15
  jmp    L110
L16:
  lea    D90(%rip),%r8
  lea    D251(%rip),%rcx
  mov    $0x1bf,%edx
  lea    D31(%rip),%rsi
  mov    $0x3,%edi
  mov    $0x0,%eax
  call   <debug_@plt>
  mov    $0x1,%eax
  jmp    L147
L179:
  lea    D26(%rip),%r8
  mov    %r14,%rcx
  mov    $0x1d2,%edx
  mov    %r15,%rsi
  mov    $0x3,%edi
  mov    $0x0,%eax
  call   <debug_@plt>
  mov    (%rsp),%rax
  movb   $0x0,(%rax)
  sub    $0x1,%rbp
  cmp    0x8(%rsp),%rbp
  je     L93
L44:
  mov    %rbp,(%rsp)
  movzbl 0x0(%rbp),%r9d
  lea    D20(%rip),%r8
  mov    %r14,%rcx
  mov    $0x1d0,%edx
  mov    %r15,%rsi
  mov    $0x3,%edi
  mov    $0x0,%eax
  call   <debug_@plt>
  movzbl 0x0(%rbp),%eax
  cmp    $0x20,%al
  je     L179
  cmp    $0x9,%al
  je     L179
L93:
  add    $0x1,%r12
  add    $0x1,%r13
L110:
  mov    %rbx,%rdi
  call   <strlen@plt>
  cmp    %r12,%rax
  jbe    L165
  cmpb   $0x23,0x0(%r13)
  jne    L93
  lea    D124(%rip),%r8
  mov    %r14,%rcx
  mov    $0x1cb,%edx
  mov    %r15,%rsi
  mov    $0x3,%edi
  mov    $0x0,%eax
  call   <debug_@plt>
  movb   $0x0,0x0(%r13)
  lea    -0x1(%r12),%eax
  test   %eax,%eax
  jle    L93
  lea    -0x1(%r13),%rbp
  lea    -0x2(%r13),%rdx
  lea    -0x2(%r12),%eax
  sub    %rax,%rdx
  mov    %rdx,0x8(%rsp)
  jmp    L44
L165:
  lea    D92(%rip),%r8
  lea    D251(%rip),%rcx
  mov    $0x1dc,%edx
  lea    D31(%rip),%rsi
  mov    $0x1,%edi
  mov    $0x0,%eax
  call   <debug_@plt>
  mov    $0x0,%eax
L147:
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: parse_data
arguments: label: D119
datatype: string
name: parse_data
arguments: label: D251
datatype: string
name: parse_data
arguments: label: D31
datatype: string
name: parse_data
arguments: label: D160
datatype: string
name: parse_data
arguments: label: D55
datatype: string
name: parse_data
arguments: label: D129
datatype: string
name: parse_data
arguments: label: D198
datatype: string
name: parse_data
arguments: label: D211
datatype: string
name: parse_data
arguments: label: D144
datatype: string
name: parse_data
arguments: label: D208
datatype: string
name: parse_data
arguments: label: D24
datatype: string
name: parse_data
arguments: label: D90
datatype: string
name: parse_data
arguments: label: D26
datatype: string
name: parse_data
arguments: label: D20
datatype: string
name: parse_data
arguments: label: D124
datatype: string
name: parse_data
arguments: label: D92
datatype: string

tool: D119: <-----------------------[enter]


tool: D251: check_index_source

tool: D31: /scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/tcell2020/autodafe-0.1-osx/refs/heads/master/src/autodafe/file.c

tool: D160: (filename ): "%s"


tool: D55: (temp     ): "%s"


tool: D129: (temp_size): "%d"



tool: D198: empty line, ignore it


tool: D211: size of the file too long. (max : %d)


tool: D144: QUITTING!


tool: D208: space or tab detected, ignore it


tool: D24: the first ascii char of the line is: 0x%02x (%c)


tool: D90: comment detected, ignore the line


tool: D26: remove extra space


tool: D20: temp[j]: 0x%02x


tool: D124: comment detected, replaced by NULL


tool: D92: <-----------------------[quit]


assistant: ```c
int check_index_source(unsigned char *filename, unsigned char *temp, unsigned int temp_size) {
  int i;
  int j;
  debug_(1, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/tcell2020/autodafe-0.1-osx/refs/heads/master/src/autodafe/file.c", 413, __func__, "<-----------------------[enter]\n");
  debug_(3, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/tcell2020/autodafe-0.1-osx/refs/heads/master/src/autodafe/file.c", 416, __func__, "(filename ): \"%s\"\n", filename);
  debug_(3, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/tcell2020/autodafe-0.1-osx/refs/heads/master/src/autodafe/file.c", 417, __func__, "(temp     ): \"%s\"\n", temp);
  debug_(3, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/tcell2020/autodafe-0.1-osx/refs/heads/master/src/autodafe/file.c", 418, __func__, "(temp_size): \"%d\"\n\n", temp_size);
  if (strlen(temp) == temp_size - 1) {
    error_("size of the file too long. (max : %d)\n", temp_size);
    error_("QUITTING!\n");
    return -1;
  }
  for (i = 0; i < strlen(temp); i++)
    if ((temp[i] != 0x20) && (temp[i] != 0x09)) {
      debug_(3, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/tcell2020/autodafe-0.1-osx/refs/heads/master/src/autodafe/file.c", 432, __func__, "space or tab detected, ignore it\n");
      break;
    }
  if (i == strlen(temp)) {
    debug_(3, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/tcell2020/autodafe-0.1-osx/refs/heads/master/src/autodafe/file.c", 438, __func__, "empty line, ignore it\n");
    return 1;
  }
  debug_(3, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/tcell2020/autodafe-0.1-osx/refs/heads/master/src/autodafe/file.c", 443, __func__, "the first ascii char of the line is: 0x%02x (%c)\n", temp[i], temp[i]);
  if (temp[i] == '#') {
    debug_(3, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/tcell2020/autodafe-0.1-osx/refs/heads/master/src/autodafe/file.c", 447, __func__, "comment detected, ignore the line\n");
    return 1;
  }
  if (temp[i] != '/') {
    return 1;
  }
  for (i = 0; i < strlen(temp); i++) {
    if (temp[i] == '#') {
      debug_(3, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/tcell2020/autodafe-0.1-osx/refs/heads/master/src/autodafe/file.c", 459, __func__, "comment detected, replaced by NULL\n");
      temp[i] = '\0';
      for (j = i - 1; j > 0; j--) {
        debug_(3, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/tcell2020/autodafe-0.1-osx/refs/heads/master/src/autodafe/file.c", 464, __func__, "temp[j]: 0x%02x\n", temp[j]);
        if ((temp[j] == 0x20) || (temp[j] == 0x09)) {
          debug_(3, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/tcell2020/autodafe-0.1-osx/refs/heads/master/src/autodafe/file.c", 466, __func__, "remove extra space\n");
          temp[j] = '\0';
        } else
          break;
      }
    }
  }
  debug_(1, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/tcell2020/autodafe-0.1-osx/refs/heads/master/src/autodafe/file.c", 476, __func__, "<-----------------------[quit]\n");
  return 0;
}
```