user: Please show me the C implementation that matches the assembly code listed below:

```asm
<main>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x10,%rsp
  cmp    $0x1,%edi
  jg     L30
  mov    $0x3d0900,%edi
  call   <malloc@plt>
  mov    $0x3d0900,%edi
  mov    %rax,%rbp
  call   <malloc@plt>
  mov    %rax,%r13
  test   %rbp,%rbp
  je     L77
  test   %rax,%rax
  je     L77
  mov    $0xdeadbeef,%edi
  mov    $0xf4240,%r12d
  mov    $0x3d0900,%r14d
  call   <srand@plt>
L23:
  xor    %ebx,%ebx
  nopl   (%rax)
L44:
  xor    %eax,%eax
  call   <rand@plt>
  mov    %eax,0x0(%rbp,%rbx,4)
  add    $0x1,%rbx
  cmp    %ebx,%r12d
  jg     L44
L67:
  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    D4(%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    D20(%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    D26(%rip),%rdi
  call   <verify@plt>
  add    $0x10,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L30:
  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     L21
  test   %rax,%rax
  je     L21
L39:
  mov    $0xdeadbeef,%edi
  call   <srand@plt>
  test   %r12d,%r12d
  jg     L23
  jmp    L67
L77:
  mov    $0xf4240,%r12d
  mov    $0x3d0900,%r14d
L21:
  lea    D35(%rip),%rdi
  call   <puts@plt>
  mov    $0x1,%edi
  call   <exit@plt>
  jmp    L39
```

tool_calls: name: parse_data
arguments: tag: D4
type_guessed: string
name: parse_data
arguments: tag: D20
type_guessed: string
name: parse_data
arguments: tag: D26
type_guessed: string
name: parse_data
arguments: tag: D35
type_guessed: string

tool: D4: Threads: %d


tool: D20: sort1

tool: D26: sort2

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