user: Translate the below assembly code into C programming language:

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    %edi,-0x44(%rbp)
  mov    %rsi,-0x50(%rbp)
  movl   $0xf4240,-0x30(%rbp)
  cmpl   $0x1,-0x44(%rbp)
  jle    L23
  mov    -0x50(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%rax
  mov    $0x0,%edx
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <strtoul@plt>
  mov    %eax,-0x30(%rbp)
L23:
  mov    -0x30(%rbp),%eax
  cltq
  shl    $0x2,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x28(%rbp)
  mov    -0x30(%rbp),%eax
  cltq
  shl    $0x2,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x20(%rbp)
  cmpq   $0x0,-0x28(%rbp)
  je     L47
  cmpq   $0x0,-0x20(%rbp)
  jne    L43
L47:
  lea    D28(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0x1,%edi
  call   <exit@plt>
L43:
  mov    $0xdeadbeef,%edi
  call   <srand@plt>
  movl   $0x0,-0x34(%rbp)
  jmp    L1
L12:
  mov    -0x34(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  lea    (%rdx,%rax,1),%rbx
  mov    $0x0,%eax
  call   <rand@plt>
  mov    %eax,(%rbx)
  addl   $0x1,-0x34(%rbp)
L1:
  mov    -0x34(%rbp),%eax
  cmp    -0x30(%rbp),%eax
  jl     L12
  mov    $0x1,%edi
  call   <omp_set_nested@plt>
  mov    $0x0,%edi
  call   <omp_set_dynamic@plt>
  mov    $0x0,%eax
  call   <omp_get_num_threads@plt>
  mov    %eax,-0x2c(%rbp)
  mov    -0x2c(%rbp),%eax
  mov    %eax,%esi
  lea    D5(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    -0x30(%rbp),%eax
  cltq
  shl    $0x2,%eax
  mov    %eax,%edx
  mov    -0x28(%rbp),%rcx
  mov    -0x20(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
  mov    $0x0,%eax
  call   <omp_get_wtime@plt>
  movq   %xmm0,%rax
  mov    %rax,-0x18(%rbp)
  mov    -0x30(%rbp),%edx
  mov    -0x20(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <sort1@plt>
  mov    -0x30(%rbp),%edx
  mov    -0x20(%rbp),%rcx
  mov    -0x18(%rbp),%rax
  mov    %rcx,%rsi
  movq   %rax,%xmm0
  lea    D31(%rip),%rax
  mov    %rax,%rdi
  call   <verify@plt>
  mov    -0x30(%rbp),%eax
  cltq
  shl    $0x2,%eax
  mov    %eax,%edx
  mov    -0x28(%rbp),%rcx
  mov    -0x20(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <memcpy@plt>
  mov    $0x0,%eax
  call   <omp_get_wtime@plt>
  movq   %xmm0,%rax
  mov    %rax,-0x18(%rbp)
  mov    -0x30(%rbp),%edx
  mov    -0x20(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <sort2@plt>
  mov    -0x30(%rbp),%edx
  mov    -0x20(%rbp),%rcx
  mov    -0x18(%rbp),%rax
  mov    %rcx,%rsi
  movq   %rax,%xmm0
  lea    D22(%rip),%rax
  mov    %rax,%rdi
  call   <verify@plt>
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

tool_calls: name: read_data
arguments: label: D28
data_type: string
name: read_data
arguments: label: D5
data_type: string
name: read_data
arguments: label: D31
data_type: string
name: read_data
arguments: label: D22
data_type: string

tool: D28: allocation failure

tool: D5: Threads: %d


tool: D31: sort1

tool: D22: sort2

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