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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x38,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  cmp    $0x4,%edi
  jne    L142
  lea    -0x3c(%rbp),%rdi
  mov    %rsi,%r12
  call   <time@plt>
  mov    %eax,%edi
  call   <srand@plt>
  mov    0x8(%r12),%rdi
  call   <atoi@plt>
  mov    0x10(%r12),%rdi
  mov    %eax,%ebx
  call   <atoi@plt>
  mov    0x18(%r12),%rdi
  mov    %eax,%r14d
  call   <atoi@plt>
  lea    0x1(%rbx),%eax
  lea    D12(%rip),%rdi
  mov    %eax,%r15d
  mov    %eax,-0x50(%rbp)
  imul   %ebx,%r15d
  mov    %r15d,%r13d
  shr    $0x1f,%r13d
  add    %r15d,%r13d
  sar    %r13d
  cmp    %r13d,%r14d
  cmovg  %r13d,%r14d
  call   <puts@plt>
  mov    0x8(%r12),%rdi
  call   <puts@plt>
  mov    0x10(%r12),%rdi
  call   <puts@plt>
  mov    0x18(%r12),%rdi
  call   <puts@plt>
  test   %r14d,%r14d
  je     L76
  test   %ebx,%ebx
  je     L76
  movslq %r13d,%rax
  mov    %rsp,%rsi
  add    $0xf,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rax
  and    $0xfffffffffffffff0,%rcx
  sub    %rax,%rsi
L152:
  cmp    %rsi,%rsp
  je     L60
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L152
  nopl   0x0(%rax,%rax,1)
L174:
  mov    -0x50(%rbp),%ecx
  add    $0x1,%r15
  add    %ecx,-0x4c(%rbp)
  cmp    -0x58(%rbp),%r15
  jne    L128
L76:
  xor    %eax,%eax
L42:
  mov    -0x38(%rbp),%rdx
  sub    %fs:0x28,%rdx
  jne    L99
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
L60:
  and    $0xfff,%ecx
  sub    %rcx,%rsp
  test   %rcx,%rcx
  je     L75
  orq    $0x0,-0x8(%rsp,%rcx,1)
L75:
  sub    $0x1,%r15d
  mov    %rsp,-0x48(%rbp)
  jle    L180
  lea    -0x1(%r13),%edx
  xor    %esi,%esi
  mov    %rsp,%rdi
  add    $0x1,%rdx
  call   <memset@plt>
  jmp    L180
  nopw   0x0(%rax,%rax,1)
L143:
  xor    %eax,%eax
  call   <rand@plt>
  cltd
  idiv   %r13d
  mov    -0x48(%rbp),%rax
  movslq %edx,%rdx
  cmpb   $0x0,(%rax,%rdx,1)
  je     L16
L180:
  test   %r14d,%r14d
  jne    L143
  test   %ebx,%ebx
  jle    L76
  movslq %ebx,%rax
  movl   $0x0,-0x4c(%rbp)
  xor    %r15d,%r15d
  mov    %rax,-0x58(%rbp)
  nopw   0x0(%rax,%rax,1)
L128:
  lea    0x1(%r15),%edx
  mov    -0x4c(%rbp),%r8d
  mov    %r15d,%r14d
  mov    %r15,%r12
  imul   %r15d,%edx
  mov    %edx,%eax
  shr    $0x1f,%eax
  add    %edx,%eax
  sar    %eax
  sub    %eax,%r8d
  mov    -0x48(%rbp),%rax
  movslq %r8d,%r8
  sub    %r15,%r8
  lea    (%rax,%r8,1),%r13
  jmp    L36
  xchg   %ax,%ax
L187:
  add    $0x1,%r12
  cmp    %r12d,%ebx
  jle    L174
L36:
  cmpb   $0x0,0x0(%r13,%r12,1)
  mov    %r12d,%edx
  je     L187
  mov    %r14d,%esi
  lea    D26(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L187
L16:
  movb   $0x1,(%rax,%rdx,1)
  sub    $0x1,%r14d
  jmp    L180
L142:
  lea    D10(%rip),%rdi
  call   <puts@plt>
  or     $0xffffffff,%eax
  jmp    L42
L99:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: label: D12
data_type: string
name: parse_data
arguments: label: D26
data_type: string
name: parse_data
arguments: label: D10
data_type: string

tool: D12: GT1

tool: D26: %d,%d


tool: D10: Usage: gt1 n m k
n is size of V
m is size of E
k is size of vertex cover

assistant: ```c
int main(int argc, char *argv[]) {
  if (argc != 4) {
    printf("Usage: gt1 n m k\nn is size of V\nm is size of E\nk is size of vertex cover\n");
    return -1;
  }
  int i, j, n, m, k, nn;
  time_t t;
  srand(time(&t));
  n = atoi(argv[1]);
  m = atoi(argv[2]);
  k = atoi(argv[3]);
  nn = n * (n + 1) / 2;
  if (m > nn)
    m = nn;
  printf("GT1\n");
  for (i = 1; i < argc; i++)
    printf("%s\n", argv[i]);
  if (n == 0)
    return 0;
  if (m == 0)
    return 0;
  char decide[nn];
  for (i = 0; i < nn; i++)
    decide[i] = 0;
  i = 0;
  while (m) {
    i = rand() % nn;
    if (!decide[i]) {
      decide[i] = 1;
      m--;
    }
  }
  for (i = 0; i < n; i++)
    for (j = i; j < n; j++)
      if (decide[i * n + j - i * (i + 1) / 2]) {
        printf("%d,%d\n", i, j);
      }
  return 0;
}
```