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

```asm
<main>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x10,%rsp
  cmp    $0x1,%edi
  jg     L15
  mov    $0x3d0900,%edi
  call   <malloc@plt>
  mov    $0x3d0900,%edi
  mov    %rax,%rbp
  call   <malloc@plt>
  mov    %rax,%r13
  test   %rbp,%rbp
  je     L30
  test   %rax,%rax
  je     L30
  mov    $0xdeadbeef,%edi
  mov    $0xf4240,%r12d
  mov    $0x3d0900,%r14d
  call   <srand@plt>
L28:
  xor    %ebx,%ebx
  nopl   (%rax)
L9:
  xor    %eax,%eax
  call   <rand@plt>
  mov    %eax,0x0(%rbp,%rbx,4)
  add    $0x1,%rbx
  cmp    %ebx,%r12d
  jg     L9
L85:
  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    D36(%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    D7(%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    D20(%rip),%rdi
  call   <verify@plt>
  add    $0x10,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L15:
  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     L76
  test   %rax,%rax
  je     L76
L1:
  mov    $0xdeadbeef,%edi
  call   <srand@plt>
  test   %r12d,%r12d
  jg     L28
  jmp    L85
L30:
  mov    $0xf4240,%r12d
  mov    $0x3d0900,%r14d
L76:
  lea    D23(%rip),%rdi
  call   <puts@plt>
  mov    $0x1,%edi
  call   <exit@plt>
  jmp    L1
```

tool_calls: name: unpack_data
arguments: tag: D36
type_infered: string
name: unpack_data
arguments: tag: D7
type_infered: string
name: unpack_data
arguments: tag: D20
type_infered: string
name: unpack_data
arguments: tag: D23
type_infered: string

tool: D36: Threads: %d


tool: D7: sort1

tool: D20: sort2

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