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

```asm
<main>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x10,%rsp
  cmp    $0x1,%edi
  jg     L8
  mov    $0x3d0900,%edi
  call   <malloc@plt>
  mov    $0x3d0900,%edi
  mov    %rax,%rbp
  call   <malloc@plt>
  mov    %rax,%r13
  test   %rbp,%rbp
  je     L62
  test   %rax,%rax
  je     L62
  mov    $0xdeadbeef,%edi
  mov    $0xf4240,%r12d
  mov    $0x3d0900,%r14d
  call   <srand@plt>
L36:
  xor    %ebx,%ebx
  nopl   (%rax)
L15:
  xor    %eax,%eax
  call   <rand@plt>
  mov    %eax,0x0(%rbp,%rbx,4)
  add    $0x1,%rbx
  cmp    %ebx,%r12d
  jg     L15
L46:
  mov    $0x1,%edi
  call   <omp_set_nested@plt>
  xor    %edi,%edi
  call   <omp_set_dynamic@plt>
  xor    %eax,%eax
  call   <omp_get_num_threads@plt>
  lea    D31(%rip),%rdi
  mov    %eax,%esi
  call   <printf@plt>
  mov    %r14d,%edx
  mov    %rbp,%rsi
  mov    %r13,%rdi
  call   <memcpy@plt>
  xor    %eax,%eax
  call   <omp_get_wtime@plt>
  mov    %r12d,%esi
  mov    %r13,%rdi
  movsd  %xmm0,0x8(%rsp)
  call   <sort1@plt>
  movsd  0x8(%rsp),%xmm0
  mov    %r12d,%edx
  mov    %r13,%rsi
  lea    D25(%rip),%rdi
  call   <verify@plt>
  mov    %r14d,%edx
  mov    %rbp,%rsi
  mov    %r13,%rdi
  call   <memcpy@plt>
  xor    %eax,%eax
  call   <omp_get_wtime@plt>
  mov    %r12d,%esi
  mov    %r13,%rdi
  movsd  %xmm0,0x8(%rsp)
  call   <sort2@plt>
  movsd  0x8(%rsp),%xmm0
  mov    %r12d,%edx
  mov    %r13,%rsi
  lea    D23(%rip),%rdi
  call   <verify@plt>
  add    $0x10,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L8:
  mov    0x8(%rsi),%rdi
  xor    %edx,%edx
  xor    %esi,%esi
  call   <strtoul@plt>
  lea    0x0(,%rax,4),%r14d
  mov    %eax,%r12d
  mov    %r14d,%edi
  call   <malloc@plt>
  mov    %r14d,%edi
  mov    %rax,%rbp
  call   <malloc@plt>
  mov    %rax,%r13
  test   %rbp,%rbp
  je     L78
  test   %rax,%rax
  je     L78
L54:
  mov    $0xdeadbeef,%edi
  call   <srand@plt>
  test   %r12d,%r12d
  jg     L36
  jmp    L46
L62:
  mov    $0xf4240,%r12d
  mov    $0x3d0900,%r14d
L78:
  lea    D19(%rip),%rdi
  call   <puts@plt>
  mov    $0x1,%edi
  call   <exit@plt>
  jmp    L54
```

tool_calls: name: disassemble_data
arguments: data_label: D31
type_guessed: string
name: disassemble_data
arguments: data_label: D25
type_guessed: string
name: disassemble_data
arguments: data_label: D23
type_guessed: string
name: disassemble_data
arguments: data_label: D19
type_guessed: string

tool: D31: Threads: %d


tool: D25: sort1

tool: D23: sort2

tool: D19: allocation failure

assistant: ```c
int main(int argc, char **argv) {
  int i, count = 1000000;
  double stime;
  int *unsorted, *sorted, num_threads;
  if (argc >= 2)
    count = strtoul(argv[1], NULL, 0);
  unsorted = malloc(count * sizeof(int));
  sorted = malloc(count * sizeof(int));
  if (unsorted == NULL || sorted == NULL) {
    puts("allocation failure");
    exit(1);
  }
  srand(0xdeadbeef);
  for (i = 0; i < count; i++)
    unsorted[i] = rand();
  omp_set_nested(1);
  omp_set_dynamic(0);
#pragma omp parallel
#pragma omp single nowait
  num_threads = omp_get_num_threads();
  printf("Threads: %d\n", num_threads);
  memcpy(sorted, unsorted, count * sizeof(int));
  stime = omp_get_wtime();
  sort1(sorted, count);
  verify("sort1", stime, sorted, count);
  memcpy(sorted, unsorted, count * sizeof(int));
  stime = omp_get_wtime();
  sort2(sorted, count);
  verify("sort2", stime, sorted, count);
  return 0;
}
```