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

```asm
<main>:
  endbr64
  push   %r15
  lea    -0x2(%rdi),%eax
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  mov    %rsi,%rbp
  mov    %eax,%esi
  push   %rbx
  mov    %edi,%ebx
  sub    $0x28,%rsp
  mov    %edi,0x14(%rsp)
  lea    D30(%rip),%rdi
  mov    %eax,0x10(%rsp)
  xor    %eax,%eax
  call   <printf@plt>
  cmp    $0x1,%ebx
  jle    L71
  mov    0x10(%rsp),%ebx
  mov    $0x4,%esi
  mov    %ebx,%edi
  call   <calloc@plt>
  mov    %rax,0x8(%rsp)
  test   %ebx,%ebx
  jle    L118
L75:
  mov    0x14(%rsp),%eax
  xor    %ebx,%ebx
  lea    -0x3(%rax),%r12d
  xchg   %ax,%ax
L38:
  mov    0x10(%rbp,%rbx,8),%rdi
  call   <atoi@plt>
  mov    0x8(%rsp),%rcx
  mov    %eax,(%rcx,%rbx,4)
  mov    %rbx,%rax
  add    $0x1,%rbx
  cmp    %r12,%rax
  jne    L38
L118:
  mov    0x8(%rbp),%rdi
  call   <read_graph@plt>
  mov    0x14(%rsp),%eax
  cmp    $0x3,%eax
  jle    L93
  sub    $0x4,%eax
  mov    0x8(%rsp),%rcx
  mov    $0x1,%r12d
  xor    %ebp,%ebp
  add    $0x2,%rax
  lea    D15(%rip),%r13
  mov    %rax,0x18(%rsp)
  lea    0x4(%rcx),%r15
  nopl   0x0(%rax,%rax,1)
L92:
  cmp    %r12d,0x10(%rsp)
  jle    L90
  mov    0x14(%rsp),%eax
  mov    0x8(%rsp),%rcx
  mov    %r15,%r14
  sub    $0x3,%eax
  sub    %r12d,%eax
  lea    -0x1(%r12,%rax,1),%rax
  lea    0x8(%rcx,%rax,4),%rbx
  jmp    L83
  nopl   (%rax)
L28:
  add    $0x4,%r14
  cmp    %r14,%rbx
  je     L90
L83:
  mov    -0x4(%r15),%edi
  mov    (%r14),%esi
  call   <has_edge@plt>
  test   %eax,%eax
  jne    L28
  mov    (%r14),%ecx
  mov    -0x4(%r15),%edx
  add    $0x1,%ebp
  mov    %r13,%rdi
  mov    %ebp,%esi
  add    $0x4,%r14
  call   <printf@plt>
  cmp    %r14,%rbx
  jne    L83
L90:
  add    $0x1,%r12
  add    $0x4,%r15
  cmp    0x18(%rsp),%r12
  jne    L92
  test   %ebp,%ebp
  je     L93
L64:
  add    $0x28,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L71:
  mov    0x0(%rbp),%rsi
  lea    D6(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    $0x1,%edi
  call   <exit@plt>
  mov    0x10(%rsp),%ebx
  mov    $0x4,%esi
  mov    %ebx,%edi
  call   <calloc@plt>
  mov    %rax,0x8(%rsp)
  test   %ebx,%ebx
  jg     L75
  mov    0x8(%rbp),%rdi
  call   <read_graph@plt>
L93:
  lea    D11(%rip),%rdi
  call   <puts@plt>
  jmp    L64
```

tool_calls: name: disassemble_data
arguments: label: D30
type_infered: string
name: disassemble_data
arguments: label: D15
type_infered: string
name: disassemble_data
arguments: label: D6
type_infered: string
name: disassemble_data
arguments: label: D11
type_infered: string

tool: D30: Called with %d elements


tool: D15: Error[%d] doesn't contain, %d %d


tool: D6: usage: %s filename [elements]

tool: D11: Checked!

assistant: ```c
int main(int argc, char *argv[]) {
  int i, j, size = argc - 2;
  int *nums;
  printf("Called with %d elements\n", argc - 2);
  if (argc < 2) {
    printf("usage: %s filename [elements]", argv[0]);
    exit(1);
  }
  nums = calloc(size, sizeof(int));
  for (i = 0; i < size; i++)
    nums[i] = atoi(argv[i + 2]);
  read_graph(argv[1]);
  int errors = 0;
  for (i = 0; i < size - 1; i++)
    for (j = i + 1; j < size; j++)
      if (!has_edge(nums[i], nums[j]))
        printf("Error[%d] doesn't contain, %d %d\n", ++errors, nums[i], nums[j]);
  if (!errors)
    printf("Checked!\n");
  return 0;
}
```