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

```asm
<main>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rsi,%rbx
  sub    $0x38,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  cmp    $0x1,%edi
  jle    L74
  mov    $0x64,%ebp
  cmp    $0x3,%edi
  je     L15
L11:
  mov    $0x800000,%edi
  call   <sqrt@plt>
  mov    %eax,%r12d
  imul   %eax,%eax
  lea    0x0(,%rax,4),%edi
  call   <malloc@plt>
  xor    %esi,%esi
  mov    %rsp,%rdi
  mov    %rax,%r13
  call   <gettimeofday@plt>
  mov    0x8(%rbx),%rdi
  lea    D27(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L1
  mov    0x8(%rbx),%rdi
  lea    D63(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L3
  mov    %r12d,%edx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <kernel_mem_bound@plt>
L22:
  lea    0x10(%rsp),%rdi
  xor    %esi,%esi
  call   <gettimeofday@plt>
  pxor   %xmm0,%xmm0
  pxor   %xmm1,%xmm1
  movsd  D18(%rip),%xmm2
  cvtsi2sdq 0x10(%rsp),%xmm0
  lea    D49(%rip),%rdi
  mov    $0x1,%eax
  cvtsi2sdq 0x18(%rsp),%xmm1
  divsd  %xmm2,%xmm0
  addsd  %xmm1,%xmm0
  pxor   %xmm1,%xmm1
  cvtsi2sdq (%rsp),%xmm1
  divsd  %xmm2,%xmm1
  pxor   %xmm2,%xmm2
  cvtsi2sdq 0x8(%rsp),%xmm2
  addsd  %xmm2,%xmm1
  subsd  %xmm1,%xmm0
  call   <printf@plt>
  xor    %eax,%eax
L69:
  mov    0x28(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L81
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L1:
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <kernel_cpu_bound@plt>
  jmp    L22
L15:
  mov    0x10(%rsi),%rdi
  call   <atoi@plt>
  mov    %eax,%ebp
  test   %eax,%eax
  jg     L11
  mov    %eax,%esi
  lea    D57(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  or     $0xffffffff,%eax
  jmp    L69
L3:
  mov    (%rbx),%rsi
  lea    D13(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L22
L74:
  mov    (%rsi),%rsi
  lea    D48(%rip),%rdi
  call   <printf@plt>
  xor    %eax,%eax
  jmp    L69
L81:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: data_label: D27
type_guessed: string
name: unpack_data
arguments: data_label: D63
type_guessed: string
name: unpack_data
arguments: data_label: D18
type_guessed: f64
name: unpack_data
arguments: data_label: D49
type_guessed: string
name: unpack_data
arguments: data_label: D57
type_guessed: string
name: unpack_data
arguments: data_label: D13
type_guessed: string
name: unpack_data
arguments: data_label: D48
type_guessed: string

tool: D27: cpu

tool: D63: mem

tool: D18: 1000000

tool: D49: %f


tool: D57: Invalid number of trials = %d


tool: D13: Invalid parameters, USAGE: %s [mem|cpu]


tool: D48: Invalid parameters, USAGE: %s [mem|cpu] [trials, default=100]


assistant: ```c
int main(int argc, char *argv[]) {
  unsigned long long nll;
  unsigned int *big_array;
  struct timeval start, end;
  unsigned int sqrt_mem_size;
  int trials;
  if (argc < 2) {
    printf("Invalid parameters, USAGE: %s [mem|cpu] [trials, default=100]\n", argv[0]);
    return 0;
  }
  if (argc == 3) {
    trials = atoi(argv[2]);
    if (trials < 1) {
      printf("Invalid number of trials = %d\n", trials);
      return -1;
    }
  } else {
    trials = 100;
  }
  sqrt_mem_size = (unsigned int)sqrt(sizeof(int) * (((1024 * 1024) / sizeof(int)) * 8));
  big_array = (int *)malloc(sizeof(int) * sqrt_mem_size * sqrt_mem_size);
  gettimeofday(&start, NULL);
  if (strcmp(argv[1], "cpu") == 0)
    nll = kernel_cpu_bound(trials, sqrt_mem_size);
  else if (strcmp(argv[1], "mem") == 0)
    nll = kernel_mem_bound(big_array, trials, sqrt_mem_size);
  else
    printf("Invalid parameters, USAGE: %s [mem|cpu]\n", argv[0]);
  gettimeofday(&end, NULL);
  printf("%f\n", (((double)end.tv_sec + ((double)end.tv_usec / 1000000.0)) - ((double)start.tv_sec + ((double)start.tv_usec / 1000000.0))));
  return 0;
}
```