user: 请从给定的汇编指令推导出C源代码：

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  cmp    $0x1,%edi
  jle    L102
  lea    -0x2(%rdi),%eax
  lea    0x8(%rsi),%rbx
  xor    %r14d,%r14d
  xor    %ebp,%ebp
  lea    0x10(%rsi,%rax,8),%r13
  lea    D40(%rip),%r12
  jmp    L82
  nopl   (%rax)
L9:
  add    $0x8,%rbx
  mov    $0x1,%r14d
  cmp    %r13,%rbx
  je     L59
L82:
  mov    (%rbx),%rdi
  mov    $0x2,%edx
  mov    %r12,%rsi
  call   <strncmp@plt>
  test   %rax,%rax
  je     L9
  mov    (%rbx),%rdi
  xor    %esi,%esi
  mov    $0xa,%edx
  call   <strtoul@plt>
  mov    (%rbx),%rdi
  xor    %esi,%esi
  mov    $0xa,%edx
  mov    %rax,%r15
  call   <strtol@plt>
  cmp    $0x1,%eax
  jle    L57
  cmp    $0x5f5e100,%r15
  ja     L57
  test   %rbp,%rbp
  cmove  %r15,%rbp
  add    $0x8,%rbx
  cmp    %r13,%rbx
  jne    L82
L59:
  test   %rbp,%rbp
  je     L0
L10:
  lea    0x0(,%rbp,4),%rdi
  call   <malloc@plt>
  xor    %edi,%edi
  mov    %rax,%r12
  call   <time@plt>
  mov    %eax,%edi
  call   <srandom@plt>
  mov    %rbp,%rsi
  mov    %r12,%rdi
  call   <init_arr@plt>
  test   %r14d,%r14d
  je     L44
  lea    -0x1(%rbp),%rdx
  xor    %esi,%esi
  mov    %r12,%rdi
  call   <quicksort@plt>
L81:
  mov    %r12,%rdi
  call   <free@plt>
  xor    %eax,%eax
L45:
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L0:
  mov    $0x40,%ebp
  jmp    L10
L102:
  mov    $0x100,%edi
  mov    $0x40,%ebp
  call   <malloc@plt>
  xor    %edi,%edi
  mov    %rax,%r12
  call   <time@plt>
  mov    %eax,%edi
  call   <srandom@plt>
  mov    $0x40,%esi
  mov    %r12,%rdi
  call   <init_arr@plt>
L44:
  lea    D29(%rip),%rdi
  call   <puts@plt>
  mov    %rbp,%rsi
  mov    %r12,%rdi
  call   <print_arr@plt>
  xor    %esi,%esi
  lea    -0x1(%rbp),%rdx
  mov    %r12,%rdi
  call   <quicksort@plt>
  lea    D35(%rip),%rdi
  call   <puts@plt>
  mov    %rbp,%rsi
  mov    %r12,%rdi
  call   <print_arr@plt>
  jmp    L81
L57:
  lea    D18(%rip),%rdi
  call   <puts@plt>
  mov    (%rbx),%rsi
  lea    D15(%rip),%rdi
  call   <printf@plt>
  mov    $0x1,%eax
  jmp    L45
```

tool_calls: name: retrieve_data
arguments: label: D40
type_guessed: string
name: retrieve_data
arguments: label: D29
type_guessed: string
name: retrieve_data
arguments: label: D35
type_guessed: string
name: retrieve_data
arguments: label: D18
type_guessed: string
name: retrieve_data
arguments: label: D15
type_guessed: string

tool: D40: -q

tool: D29: Array:

tool: D35: Quicksort:

tool: D18: ERROR: Invalid argument

tool: D15: %s


assistant: ```c
int main(const int argc, const char *argv[]) {
  size_t arg, length = 0;
  int i, quiet = 0;
  int *numbers;
  for (i = 1; i < argc; i++) {
    if (strncmp(argv[i], "-q", 2) == 0) {
      quiet = 1;
    } else {
      arg = strtoul(argv[i], NULL, 10);
      if (strtol(argv[i], NULL, 10) < 2 || arg > 100000000) {
        puts("ERROR: Invalid argument");
        printf("%s\n", argv[i]);
        return 1;
      }
      if (length == 0)
        length = arg;
    }
  }
  if (length == 0)
    length = 64;
  numbers = malloc(length * sizeof(int));
  srandom(time(NULL));
  init_arr(numbers, length);
  if (!quiet) {
    puts("Array:");
    print_arr(numbers, length);
  }
  quicksort(numbers, 0, length - 1);
  if (!quiet) {
    puts("Quicksort:");
    print_arr(numbers, length);
  }
  free(numbers);
  return 0;
}
```