user: 下面的汇编指令对应的C源代码是什么：

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  xor    %r14d,%r14d
  push   %r13
  mov    $0x1,%r13d
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rsi,%rbx
  sub    $0x38,%rsp
  mov    0x10(%rsi),%rdi
  lea    D65(%rip),%rsi
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  lea    0x18(%rsp),%r12
  lea    0x1e(%rsp),%r15
  call   <fopen@plt>
  mov    0x8(%rbx),%rdi
  lea    D66(%rip),%rsi
  lea    D9(%rip),%rbx
  mov    %rax,0x8(%rsp)
  call   <fopen@plt>
  movl   $0x0,0x18(%rsp)
  mov    %rax,%rbp
  nop
L14:
  xor    %eax,%eax
  mov    %r12,%rdx
  mov    %rbx,%rsi
  mov    %rbp,%rdi
  call   <fscanf@plt>
  test   %eax,%eax
  js     L45
  jne    L9
  mov    0x18(%rsp),%ecx
  mov    %r15,%rdx
  lea    D20(%rip),%rsi
  xor    %eax,%eax
  mov    %rbp,%rdi
  test   %ecx,%ecx
  jne    L81
  call   <fscanf@plt>
  xor    %r14d,%r14d
  jmp    L14
  nopl   0x0(%rax,%rax,1)
L9:
  cmp    $0x1,%eax
  jne    L14
  mov    0x18(%rsp),%r8d
  mov    0x8(%rsp),%rdi
  mov    %r14d,%ecx
  mov    %r13d,%edx
  lea    D72(%rip),%rsi
  add    $0x1,%r13d
  call   <fprintf@plt>
  mov    0x18(%rsp),%r14d
  jmp    L14
  nopl   0x0(%rax)
L81:
  call   <fscanf@plt>
  mov    %r15,%rsi
  lea    D40(%rip),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L45
  movl   $0x0,0x18(%rsp)
  test   %r14d,%r14d
  jne    L59
  add    $0x1,%r13d
  jmp    L14
  nop
L45:
  mov    0x8(%rsp),%rbx
  mov    0x18(%rsp),%ecx
  xor    %r8d,%r8d
  mov    %r13d,%edx
  lea    D72(%rip),%rsi
  mov    %rbx,%rdi
  call   <fprintf@plt>
  mov    %rbx,%rdi
  call   <fclose@plt>
  mov    %rbp,%rdi
  call   <fclose@plt>
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L105
  add    $0x38,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nop
L59:
  mov    0x8(%rsp),%rdi
  mov    %r13d,%edx
  xor    %r8d,%r8d
  mov    %r14d,%ecx
  lea    D72(%rip),%rsi
  add    $0x1,%r13d
  call   <fprintf@plt>
  jmp    L14
L105:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_label: D65
datatype: string
name: parse_data
arguments: data_label: D66
datatype: string
name: parse_data
arguments: data_label: D9
datatype: string
name: parse_data
arguments: data_label: D20
datatype: string
name: parse_data
arguments: data_label: D72
datatype: string
name: parse_data
arguments: data_label: D40
datatype: string

tool: D65: a

tool: D66: r

tool: D9: %i

tool: D20: %s

tool: D72: a %i %i %i 0


tool: D40: cost

assistant: ```c
int main(int argc, char **argv) {
  FILE *f1, *f2;
  int i, j = 0;
  char key[10];
  int prev_node, node, code;
  f1 = fopen(argv[2], "a");
  f2 = fopen(argv[1], "r");
  node = 0;
  prev_node = 0;
  while ((code = fscanf(f2, "%i", &node)) >= 0) {
    if (!code && node) {
      fscanf(f2, "%s", key);
      if (strcmp("cost", key) == 0)
        break;
      node = 0;
      j++;
      if (prev_node)
        fprintf(f1, "a %i %i %i 0\n", j, prev_node, node);
    } else if (!code) {
      fscanf(f2, "%s", key);
      prev_node = 0;
    } else if (code == 1) {
      j++;
      fprintf(f1, "a %i %i %i 0\n", j, prev_node, node);
      prev_node = node;
    }
  }
  j++;
  fprintf(f1, "a %i %i %i 0\n", j, node, 0);
  fclose(f1);
  fclose(f2);
}
```