user: 请将以下的汇编代码转换成C语言代码:

```asm
<check_index_source>:
  endbr64
  push   %r15
  lea    D74(%rip),%r8
  xor    %eax,%eax
  push   %r14
  mov    %rdi,%r14
  mov    $0x1,%edi
  push   %r13
  mov    %edx,%r13d
  mov    $0x19d,%edx
  push   %r12
  lea    D130(%rip),%r12
  push   %rbp
  lea    D56(%rip),%rbp
  mov    %r12,%rcx
  push   %rbx
  mov    %rsi,%rbx
  mov    %rbp,%rsi
  sub    $0x18,%rsp
  call   <debug_@plt>
  mov    %r14,%r9
  mov    %r12,%rcx
  mov    $0x1a0,%edx
  lea    D43(%rip),%r8
  mov    %rbp,%rsi
  mov    $0x3,%edi
  xor    %eax,%eax
  call   <debug_@plt>
  mov    %rbx,%r9
  mov    %r12,%rcx
  mov    $0x1a1,%edx
  lea    D84(%rip),%r8
  mov    %rbp,%rsi
  mov    $0x3,%edi
  xor    %eax,%eax
  call   <debug_@plt>
  mov    $0x1a2,%edx
  mov    %r13d,%r9d
  mov    %r12,%rcx
  lea    D82(%rip),%r8
  mov    %rbp,%rsi
  mov    $0x3,%edi
  xor    %eax,%eax
  call   <debug_@plt>
  mov    %rbx,%rdi
  call   <strlen@plt>
  lea    -0x1(%r13),%edx
  cmp    %rdx,%rax
  je     L151
  xor    %r13d,%r13d
  test   %rax,%rax
  jne    L92
  jmp    L15
  nopl   0x0(%rax)
L169:
  add    $0x1,%r13
  cmp    %r13,%rax
  je     L15
L92:
  movzbl (%rbx,%r13,1),%edx
  cmp    $0x20,%dl
  je     L169
  cmp    $0x9,%dl
  je     L169
  mov    $0x3,%edi
  xor    %eax,%eax
  mov    %r12,%rcx
  mov    $0x1b0,%edx
  lea    D116(%rip),%r8
  mov    %rbp,%rsi
  call   <debug_@plt>
  mov    %rbx,%rdi
  call   <strlen@plt>
  cmp    %rax,%r13
  je     L15
  add    %rbx,%r13
  sub    $0x8,%rsp
  mov    %r12,%rcx
  mov    $0x1bb,%edx
  movzbl 0x0(%r13),%r9d
  mov    %rbp,%rsi
  mov    $0x3,%edi
  xor    %eax,%eax
  lea    D66(%rip),%r8
  push   %r9
  call   <debug_@plt>
  movzbl 0x0(%r13),%edx
  pop    %rax
  pop    %rcx
  cmp    $0x23,%dl
  je     L132
  mov    $0x1,%eax
  cmp    $0x2f,%dl
  jne    L161
  mov    %rbx,%rdi
  mov    %rbx,%r14
  xor    %r13d,%r13d
  call   <strlen@plt>
  jmp    L14
  nopl   0x0(%rax)
L136:
  cmpb   $0x23,(%r14)
  je     L157
L167:
  add    $0x1,%r13
  add    $0x1,%r14
L14:
  cmp    %r13,%rax
  ja     L136
  lea    D103(%rip),%r8
  mov    %r12,%rcx
  mov    %rbp,%rsi
  xor    %eax,%eax
  mov    $0x1dc,%edx
  mov    $0x1,%edi
  call   <debug_@plt>
  xor    %eax,%eax
L161:
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L157:
  lea    D21(%rip),%r8
  mov    %r12,%rcx
  mov    %rbp,%rsi
  xor    %eax,%eax
  mov    $0x1cb,%edx
  mov    $0x3,%edi
  call   <debug_@plt>
  lea    -0x1(%r13),%eax
  movb   $0x0,(%r14)
  test   %eax,%eax
  jle    L129
  lea    -0x2(%r14),%rdx
  lea    -0x2(%r13),%eax
  sub    %rax,%rdx
  lea    -0x1(%r14),%r15
  mov    %rdx,0x8(%rsp)
  jmp    L2
L99:
  lea    D80(%rip),%r8
  mov    %r12,%rcx
  mov    %rbp,%rsi
  xor    %eax,%eax
  mov    $0x1d2,%edx
  mov    $0x3,%edi
  sub    $0x1,%r15
  call   <debug_@plt>
  movb   $0x0,0x1(%r15)
  cmp    0x8(%rsp),%r15
  je     L129
L2:
  movzbl (%r15),%r9d
  lea    D129(%rip),%r8
  mov    %r12,%rcx
  xor    %eax,%eax
  mov    $0x1d0,%edx
  mov    %rbp,%rsi
  mov    $0x3,%edi
  call   <debug_@plt>
  movzbl (%r15),%eax
  cmp    $0x20,%al
  je     L99
  cmp    $0x9,%al
  je     L99
L129:
  mov    %rbx,%rdi
  call   <strlen@plt>
  jmp    L167
  nopl   0x0(%rax)
L15:
  lea    D20(%rip),%r8
  mov    %r12,%rcx
  mov    $0x1b6,%edx
L27:
  mov    %rbp,%rsi
  mov    $0x3,%edi
  xor    %eax,%eax
  call   <debug_@plt>
  add    $0x18,%rsp
  mov    $0x1,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L151:
  mov    %r13d,%esi
  lea    D111(%rip),%rdi
  xor    %eax,%eax
  call   <error_@plt>
  lea    D60(%rip),%rdi
  xor    %eax,%eax
  call   <error_@plt>
  add    $0x18,%rsp
  mov    $0xffffffff,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L132:
  lea    D29(%rip),%r8
  mov    %r12,%rcx
  mov    $0x1bf,%edx
  jmp    L27
```

tool_calls: name: parse_data
arguments: data_tag: D74
datatype: string
name: parse_data
arguments: data_tag: D130
datatype: string
name: parse_data
arguments: data_tag: D56
datatype: string
name: parse_data
arguments: data_tag: D43
datatype: string
name: parse_data
arguments: data_tag: D84
datatype: string
name: parse_data
arguments: data_tag: D82
datatype: string
name: parse_data
arguments: data_tag: D116
datatype: string
name: parse_data
arguments: data_tag: D66
datatype: string
name: parse_data
arguments: data_tag: D103
datatype: string
name: parse_data
arguments: data_tag: D21
datatype: string
name: parse_data
arguments: data_tag: D80
datatype: string
name: parse_data
arguments: data_tag: D129
datatype: string
name: parse_data
arguments: data_tag: D20
datatype: string
name: parse_data
arguments: data_tag: D111
datatype: string
name: parse_data
arguments: data_tag: D60
datatype: string
name: parse_data
arguments: data_tag: D29
datatype: string

tool: D74: <-----------------------[enter]


tool: D130: check_index_source

tool: D56: /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: D43: (filename ): "%s"


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


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



tool: D116: space or tab detected, ignore it


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


tool: D103: <-----------------------[quit]


tool: D21: comment detected, replaced by NULL


tool: D80: remove extra space


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


tool: D20: empty line, ignore it


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


tool: D60: QUITTING!


tool: D29: comment detected, ignore the line


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;
}
```