user: Converte this assembly snippet into its equivalent C code:

```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    D38(%rip),%rdi
  mov    %eax,0x10(%rsp)
  xor    %eax,%eax
  call   <printf@plt>
  cmp    $0x1,%ebx
  jle    L74
  mov    0x10(%rsp),%ebx
  mov    $0x4,%esi
  mov    %ebx,%edi
  call   <calloc@plt>
  mov    %rax,0x8(%rsp)
  test   %ebx,%ebx
  jle    L91
L56:
  mov    0x14(%rsp),%eax
  xor    %ebx,%ebx
  lea    -0x3(%rax),%r12d
  xchg   %ax,%ax
L93:
  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    L93
L91:
  mov    0x8(%rbp),%rdi
  call   <read_graph@plt>
  mov    0x14(%rsp),%eax
  cmp    $0x3,%eax
  jle    L127
  sub    $0x4,%eax
  mov    0x8(%rsp),%rcx
  mov    $0x1,%r12d
  xor    %ebp,%ebp
  add    $0x2,%rax
  lea    D0(%rip),%r13
  mov    %rax,0x18(%rsp)
  lea    0x4(%rcx),%r15
  nopl   0x0(%rax,%rax,1)
L116:
  cmp    %r12d,0x10(%rsp)
  jle    L94
  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    L125
  nopl   (%rax)
L100:
  add    $0x4,%r14
  cmp    %rbx,%r14
  je     L94
L125:
  mov    -0x4(%r15),%edi
  mov    (%r14),%esi
  call   <has_edge@plt>
  test   %eax,%eax
  jne    L100
  mov    (%r14),%ecx
  mov    -0x4(%r15),%edx
  add    $0x1,%ebp
  mov    %r13,%rdi
  mov    %ebp,%esi
  add    $0x4,%r14
  call   <printf@plt>
  cmp    %rbx,%r14
  jne    L125
L94:
  add    $0x1,%r12
  add    $0x4,%r15
  cmp    0x18(%rsp),%r12
  jne    L116
  test   %ebp,%ebp
  je     L127
L28:
  add    $0x28,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L74:
  mov    0x0(%rbp),%rsi
  lea    D4(%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     L56
  mov    0x8(%rbp),%rdi
  call   <read_graph@plt>
L127:
  lea    D39(%rip),%rdi
  call   <puts@plt>
  jmp    L28
```

tool_calls: name: retrieve_data
arguments: data_label: D38
datatype: string
name: retrieve_data
arguments: data_label: D0
datatype: string
name: retrieve_data
arguments: data_label: D4
datatype: string
name: retrieve_data
arguments: data_label: D39
datatype: string

tool: D38: Called with %d elements


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


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

tool: D39: 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;
}
```