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

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  lea    -0x61000(%rsp),%r11
L67:
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  cmp    %r11,%rsp
  jne    L67
  sub    $0xac8,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x61ab8(%rsp)
  xor    %eax,%eax
  lea    D16(%rip),%r15
  jmp    L55
L43:
  mov    %r13,%rdi
  call   <fclose@plt>
  lea    D17(%rip),%rdi
  call   <printf@plt>
L55:
  lea    0x1c(%rsp),%rbx
L41:
  lea    D84(%rip),%rdi
  call   <printf@plt>
  lea    D46(%rip),%rdi
  call   <printf@plt>
  mov    %rbx,%rsi
  mov    %r15,%rdi
  call   <scanf@plt>
  mov    0x1c(%rsp),%eax
  cmp    $0x2,%eax
  je     L73
  cmp    $0x3,%eax
  je     L80
  cmp    $0x1,%eax
  jne    L41
  lea    D41(%rip),%rsi
  lea    D3(%rip),%rdi
  call   <fopen@plt>
  mov    %rax,%r13
  mov    $0x64,%ebx
  lea    0x30(%rsp),%r12
  lea    0x20(%rsp),%rbp
  lea    D114(%rip),%r14
L13:
  mov    %ebx,%esi
  mov    %r12,%rdi
  call   <fnGenRandInput@plt>
  mov    $0x0,%esi
  mov    %rbp,%rdi
  call   <gettimeofday@plt>
  pxor   %xmm1,%xmm1
  cvtsi2sdl 0x28(%rsp),%xmm1
  movsd  0x20(%rsp),%xmm0
  divsd  D81(%rip),%xmm0
  addsd  %xmm0,%xmm1
  movsd  %xmm1,0x8(%rsp)
  mov    %ebx,%esi
  mov    %r12,%rdi
  call   <fnInsertionSort@plt>
  mov    $0x0,%esi
  mov    %rbp,%rdi
  call   <gettimeofday@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sdl 0x28(%rsp),%xmm0
  movsd  0x20(%rsp),%xmm1
  divsd  D81(%rip),%xmm1
  addsd  %xmm1,%xmm0
  subsd  0x8(%rsp),%xmm0
  mov    %ebx,%edx
  mov    %r14,%rsi
  mov    %r13,%rdi
  call   <fprintf@plt>
  add    $0x64,%ebx
  cmp    $0x2710,%ebx
  jne    L13
  jmp    L43
L73:
  lea    D33(%rip),%rdi
  call   <printf@plt>
  lea    0x18(%rsp),%rsi
  mov    %r15,%rdi
  call   <scanf@plt>
  lea    D94(%rip),%rdi
  call   <printf@plt>
  lea    0x30(%rsp),%rbx
  mov    0x18(%rsp),%esi
  mov    %rbx,%rdi
  call   <fnGenRandInput@plt>
  mov    0x18(%rsp),%esi
  mov    %rbx,%rdi
  call   <fnDispArray@plt>
  mov    0x18(%rsp),%esi
  mov    %rbx,%rdi
  call   <fnInsertionSort@plt>
  lea    D95(%rip),%rdi
  call   <printf@plt>
  mov    0x18(%rsp),%esi
  mov    %rbx,%rdi
  call   <fnDispArray@plt>
  jmp    L55
L80:
  mov    $0x0,%edi
  call   <exit@plt>
  jmp    L55
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D16
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D17
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D84
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D46
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D41
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D3
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D114
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D81
type_guessed: f64
name: extract_symbolic_data
arguments: data_tag: D33
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D94
type_guessed: string
name: extract_symbolic_data
arguments: data_tag: D95
type_guessed: string

tool: D16: %d

tool: D17: 
Data File generated and stored in file < InsertionPlot.dat >.
 Use a plotting utility


tool: D84: 
1.Plot the Graph
2.InsertionSort
3.Exit

tool: D46: 
Enter your choice


tool: D41: w

tool: D3: InsertionPlot.dat

tool: D114: %d	%lf


tool: D81: 1000000

tool: D33: 
Enter the number of elements to sort


tool: D94: 
Unsorted Array


tool: D95: 
Sorted Array


assistant: ```c
int main(void) {
  FILE *fp;
  struct timeval tv;
  double dStart, dEnd;
  int iaArr[100000], iNum, iPos, iKey, i, iChoice;
  for (;;) {
    printf("\n1.Plot the Graph\n2.InsertionSort\n3.Exit");
    printf("\nEnter your choice\n");
    scanf("%d", &iChoice);
    switch (iChoice) {
    case 1:
      fp = fopen("InsertionPlot.dat", "w");
      for (i = 100; i < 10000; i += 100) {
        fnGenRandInput(iaArr, i);
        gettimeofday(&tv, NULL);
        dStart = tv.tv_sec + (tv.tv_usec / 1000000.0);
        fnInsertionSort(iaArr, i);
        gettimeofday(&tv, NULL);
        dEnd = tv.tv_sec + (tv.tv_usec / 1000000.0);
        fprintf(fp, "%d\t%lf\n", i, dEnd - dStart);
      }
      fclose(fp);
      printf("\nData File generated and stored in file < InsertionPlot.dat >.\n Use a plotting utility\n");
      break;
    case 2:
      printf("\nEnter the number of elements to sort\n");
      scanf("%d", &iNum);
      printf("\nUnsorted Array\n");
      fnGenRandInput(iaArr, iNum);
      fnDispArray(iaArr, iNum);
      fnInsertionSort(iaArr, iNum);
      printf("\nSorted Array\n");
      fnDispArray(iaArr, iNum);
      break;
    case 3:
      exit(0);
    }
  }
  return 0;
}
```