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

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  lea    -0x61000(%rsp),%r11
L36:
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  cmp    %r11,%rsp
  jne    L36
  sub    $0xad8,%rsp
  lea    D43(%rip),%r14
  lea    D87(%rip),%r13
  mov    %fs:0x28,%rax
  mov    %rax,0x61ac8(%rsp)
  xor    %eax,%eax
  lea    0x2c(%rsp),%rax
  lea    0x40(%rsp),%rbx
  mov    %rax,0x10(%rsp)
  lea    0x28(%rsp),%rax
  lea    0x30(%rsp),%rbp
  mov    %rax,0x18(%rsp)
  nopl   (%rax)
L74:
  lea    D20(%rip),%rdi
  call   <printf@plt>
  lea    D23(%rip),%rdi
  call   <printf@plt>
  mov    0x10(%rsp),%rsi
  mov    %r14,%rdi
  call   <scanf@plt>
  mov    0x2c(%rsp),%eax
  cmp    $0x2,%eax
  je     L76
  cmp    $0x3,%eax
  je     L59
  cmp    $0x1,%eax
  jne    L74
  lea    D28(%rip),%rsi
  lea    D98(%rip),%rdi
  mov    $0x64,%r15d
  call   <fopen@plt>
  mov    %rax,%r12
  nopl   0x0(%rax)
L31:
  mov    %r15d,%esi
  mov    %rbx,%rdi
  call   <fnGenRandInput@plt>
  xor    %esi,%esi
  mov    %rbp,%rdi
  call   <gettimeofday@plt>
  pxor   %xmm1,%xmm1
  mov    %r15d,%esi
  mov    %rbx,%rdi
  cvtsi2sdl 0x38(%rsp),%xmm1
  movsd  0x30(%rsp),%xmm0
  divsd  D113(%rip),%xmm0
  addsd  %xmm0,%xmm1
  movsd  %xmm1,0x8(%rsp)
  call   <fnInsertionSort@plt>
  xor    %esi,%esi
  mov    %rbp,%rdi
  call   <gettimeofday@plt>
  pxor   %xmm0,%xmm0
  mov    %r15d,%edx
  mov    %r13,%rsi
  cvtsi2sdl 0x38(%rsp),%xmm0
  movsd  0x30(%rsp),%xmm1
  mov    %r12,%rdi
  add    $0x64,%r15d
  divsd  D113(%rip),%xmm1
  addsd  %xmm1,%xmm0
  subsd  0x8(%rsp),%xmm0
  call   <fprintf@plt>
  cmp    $0x2710,%r15d
  jne    L31
  mov    %r12,%rdi
  call   <fclose@plt>
  lea    D89(%rip),%rdi
  call   <printf@plt>
  jmp    L74
  cs nopw 0x0(%rax,%rax,1)
L59:
  xor    %edi,%edi
  call   <exit@plt>
  jmp    L74
L76:
  lea    D91(%rip),%rdi
  call   <printf@plt>
  mov    0x18(%rsp),%rsi
  mov    %r14,%rdi
  call   <scanf@plt>
  lea    D110(%rip),%rdi
  call   <printf@plt>
  mov    0x28(%rsp),%esi
  mov    %rbx,%rdi
  call   <fnGenRandInput@plt>
  mov    0x28(%rsp),%esi
  mov    %rbx,%rdi
  call   <fnDispArray@plt>
  mov    0x28(%rsp),%esi
  mov    %rbx,%rdi
  call   <fnInsertionSort@plt>
  lea    D106(%rip),%rdi
  call   <printf@plt>
  mov    0x28(%rsp),%esi
  mov    %rbx,%rdi
  call   <fnDispArray@plt>
  jmp    L74
```

tool_calls: name: unpack_data
arguments: data_label: D43
type: string
name: unpack_data
arguments: data_label: D87
type: string
name: unpack_data
arguments: data_label: D20
type: string
name: unpack_data
arguments: data_label: D23
type: string
name: unpack_data
arguments: data_label: D28
type: string
name: unpack_data
arguments: data_label: D98
type: string
name: unpack_data
arguments: data_label: D113
type: f64
name: unpack_data
arguments: data_label: D89
type: string
name: unpack_data
arguments: data_label: D91
type: string
name: unpack_data
arguments: data_label: D110
type: string
name: unpack_data
arguments: data_label: D106
type: string

tool: D43: %d

tool: D87: %d	%lf


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

tool: D23: 
Enter your choice


tool: D28: w

tool: D98: InsertionPlot.dat

tool: D113: 1000000

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


tool: D91: 
Enter the number of elements to sort


tool: D110: 
Unsorted Array


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