user: 请将以下的汇编代码转换成C语言代码：

```asm
<main>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %rsi,%rbx
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  cmp    $0x1,%edi
  jle    L66
  mov    $0x64,%ebp
  cmp    $0x3,%edi
  je     L15
L34:
  mov    $0x800000,%edi
  call   <sqrt@plt>
  mov    %eax,%r12d
  imul   %eax,%eax
  lea    0x0(,%rax,4),%edi
  call   <malloc@plt>
  mov    %rax,%r13
  mov    %rsp,%rdi
  mov    $0x0,%esi
  call   <gettimeofday@plt>
  mov    0x8(%rbx),%rdi
  lea    D2(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L21
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <kernel_cpu_bound@plt>
L16:
  lea    0x10(%rsp),%rdi
  mov    $0x0,%esi
  call   <gettimeofday@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sdq 0x10(%rsp),%xmm0
  movsd  D14(%rip),%xmm2
  divsd  %xmm2,%xmm0
  pxor   %xmm1,%xmm1
  cvtsi2sdq 0x18(%rsp),%xmm1
  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
  lea    D64(%rip),%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  mov    $0x0,%eax
L68:
  mov    0x28(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L79
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L66:
  mov    (%rsi),%rsi
  lea    D54(%rip),%rdi
  call   <printf@plt>
  mov    $0x0,%eax
  jmp    L68
L15:
  mov    0x10(%rsi),%rdi
  call   <atoi@plt>
  mov    %eax,%ebp
  test   %eax,%eax
  jg     L34
  mov    %eax,%esi
  lea    D35(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0xffffffff,%eax
  jmp    L68
L21:
  mov    0x8(%rbx),%rdi
  lea    D68(%rip),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L52
  mov    %r12d,%edx
  mov    %ebp,%esi
  mov    %r13,%rdi
  call   <kernel_mem_bound@plt>
  jmp    L16
L52:
  mov    (%rbx),%rsi
  lea    D31(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L16
L79:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: tag: D2
type: string
name: extract_symbolic_data
arguments: tag: D14
type: f64
name: extract_symbolic_data
arguments: tag: D64
type: string
name: extract_symbolic_data
arguments: tag: D54
type: string
name: extract_symbolic_data
arguments: tag: D35
type: string
name: extract_symbolic_data
arguments: tag: D68
type: string
name: extract_symbolic_data
arguments: tag: D31
type: string

tool: D2: cpu

tool: D14: 1000000

tool: D64: %f


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


tool: D35: Invalid number of trials = %d


tool: D68: mem

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


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