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    L11
  mov    %rsi,%r14
  lea    -0x3c(%rbp),%rdi
  call   <time@plt>
  mov    %eax,%edi
  call   <srand@plt>
  mov    0x8(%r14),%rdi
  call   <atoi@plt>
  mov    %eax,%r13d
  mov    0x10(%r14),%rdi
  call   <atoi@plt>
  mov    %eax,%r15d
  mov    0x18(%r14),%rdi
  call   <atoi@plt>
  lea    0x1(%r13),%eax
  imul   %r13d,%eax
  mov    %eax,-0x44(%rbp)
  mov    %eax,%r12d
  shr    $0x1f,%r12d
  add    %eax,%r12d
  sar    %r12d
  mov    %r12d,%ebx
  cmp    %r12d,%r15d
  cmovg  %r12d,%r15d
  mov    %r15d,-0x48(%rbp)
  lea    D9(%rip),%rdi
  call   <puts@plt>
  mov    0x8(%r14),%rdi
  call   <puts@plt>
  mov    0x10(%r14),%rdi
  call   <puts@plt>
  mov    0x18(%r14),%rdi
  call   <puts@plt>
  test   %r15d,%r15d
  je     L204
  test   %r13d,%r13d
  je     L204
  movslq %r12d,%rax
  add    $0xf,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffffff0,%rcx
  and    $0xfffffffffffff000,%rax
  mov    %rsp,%rdx
  sub    %rax,%rdx
L87:
  cmp    %rdx,%rsp
  je     L177
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L87
L11:
  lea    D16(%rip),%rdi
  call   <puts@plt>
  movl   $0xffffffff,-0x48(%rbp)
  jmp    L59
L177:
  mov    %rcx,%rax
  and    $0xfff,%eax
  sub    %rax,%rsp
  test   %rax,%rax
  je     L76
  orq    $0x0,-0x8(%rsp,%rax,1)
L76:
  mov    %rsp,%r15
  cmpl   $0x1,-0x44(%rbp)
  jle    L38
  mov    $0x0,%eax
L160:
  movb   $0x0,(%r15,%rax,1)
  add    $0x1,%rax
  cmp    %eax,%r12d
  jg     L160
L38:
  cmpl   $0x0,-0x48(%rbp)
  je     L152
  mov    $0x0,%eax
  call   <rand@plt>
  cltd
  idiv   %ebx
  movslq %edx,%rax
  cmpb   $0x0,(%r15,%rax,1)
  jne    L38
  movb   $0x1,(%r15,%rax,1)
  subl   $0x1,-0x48(%rbp)
  jmp    L38
L152:
  test   %r13d,%r13d
  jle    L59
  lea    0x1(%r13),%eax
  mov    %eax,-0x50(%rbp)
  mov    %r13d,%eax
  mov    %rax,-0x58(%rbp)
  movl   $0x0,-0x4c(%rbp)
  mov    $0x0,%r14d
  jmp    L3
L137:
  add    $0x1,%rbx
  cmp    %ebx,%r13d
  jle    L179
L119:
  mov    %ebx,%edx
  cmpb   $0x0,(%r12,%rbx,1)
  je     L137
  mov    -0x44(%rbp),%esi
  lea    D22(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L137
L179:
  add    $0x1,%r14
  mov    -0x50(%rbp),%ecx
  add    %ecx,-0x4c(%rbp)
  cmp    -0x58(%rbp),%r14
  je     L59
L3:
  mov    %r14d,-0x44(%rbp)
  cmp    %r14d,%r13d
  jle    L179
  lea    0x1(%r14),%edx
  imul   %r14d,%edx
  mov    %edx,%eax
  shr    $0x1f,%eax
  add    %edx,%eax
  sar    %eax
  mov    %r14,%rbx
  mov    -0x4c(%rbp),%r12d
  sub    %eax,%r12d
  movslq %r12d,%r12
  sub    %r14,%r12
  add    %r15,%r12
  jmp    L119
L204:
  movl   $0x0,-0x48(%rbp)
L59:
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L149
  mov    -0x48(%rbp),%eax
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
L149:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: data_tag: D9
datatype: string
name: disassemble_data
arguments: data_tag: D16
datatype: string
name: disassemble_data
arguments: data_tag: D22
datatype: string

tool: D9: GT1

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

tool: D22: %d,%d


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