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    L13
  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)
L13:
  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     L20
  cmpq   $0x0,-0x20(%rbp)
  jne    L28
L20:
  lea    D27(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0x1,%edi
  call   <exit@plt>
L28:
  mov    $0xdeadbeef,%edi
  call   <srand@plt>
  movl   $0x0,-0x34(%rbp)
  jmp    L36
L26:
  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)
L36:
  mov    -0x34(%rbp),%eax
  cmp    -0x30(%rbp),%eax
  jl     L26
  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    D39(%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    D10(%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    D29(%rip),%rax
  mov    %rax,%rdi
  call   <verify@plt>
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: tag: D27
data_type: string
name: disassemble_data
arguments: tag: D39
data_type: string
name: disassemble_data
arguments: tag: D10
data_type: string
name: disassemble_data
arguments: tag: D29
data_type: string

tool: D27: allocation failure

tool: D39: Threads: %d


tool: D10: sort1

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