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

```asm
<generateFunctionTest>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x90,%rsp
  mov    %rdi,-0x88(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    -0x70(%rbp),%rdi
  lea    -0x74(%rbp),%rcx
  lea    -0x50(%rbp),%rdx
  lea    -0x48(%rbp),%rsi
  mov    -0x88(%rbp),%rax
  mov    %rdi,%r8
  mov    %rax,%rdi
  call   <getAlphabetFromFile@plt>
  mov    -0x70(%rbp),%ecx
  mov    -0x48(%rbp),%rdx
  mov    -0x74(%rbp),%esi
  mov    -0x50(%rbp),%rax
  mov    %rax,%rdi
  call   <buildTree@plt>
  mov    %rax,-0x28(%rbp)
  mov    -0x74(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,-0x74(%rbp)
  mov    -0x50(%rbp),%rax
  movzbl (%rax),%eax
  mov    %al,-0x75(%rbp)
  movsbl -0x75(%rbp),%eax
  mov    %eax,%esi
  lea    D27(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    -0x74(%rbp),%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  mov    %eax,-0x60(%rbp)
  mov    -0x74(%rbp),%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  mov    %eax,-0x5c(%rbp)
  mov    -0x74(%rbp),%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  mov    %eax,%edi
  call   <sqrt@plt>
  mov    %eax,-0x58(%rbp)
  movl   $0x3e8,-0x54(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x40(%rbp)
  movl   $0x0,-0x6c(%rbp)
  jmp    L48
L41:
  mov    $0x0,%eax
  call   <timerStart@plt>
  mov    -0x48(%rbp),%rcx
  mov    -0x60(%rbp),%edx
  mov    -0x28(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <accessOp@plt>
  mov    $0x0,%eax
  call   <timerStop@plt>
  mov    $0x0,%eax
  call   <timerGetTimeSpan@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %rax,%xmm0
  movsd  -0x40(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x40(%rbp)
  addl   $0x1,-0x6c(%rbp)
L48:
  mov    -0x6c(%rbp),%eax
  cmp    -0x54(%rbp),%eax
  jl     L41
  lea    D49(%rip),%rax
  mov    %rax,%rsi
  lea    D81(%rip),%rax
  mov    %rax,%rdi
  call   <fopen@plt>
  mov    %rax,-0x20(%rbp)
  movsd  -0x40(%rbp),%xmm0
  movsd  D105(%rip),%xmm1
  divsd  %xmm1,%xmm0
  movq   %xmm0,%rdx
  mov    -0x20(%rbp),%rax
  movq   %rdx,%xmm0
  lea    D100(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <fprintf@plt>
  mov    -0x20(%rbp),%rax
  mov    %rax,%rdi
  call   <fclose@plt>
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x38(%rbp)
  movl   $0x0,-0x68(%rbp)
  jmp    L9
L30:
  mov    $0x0,%eax
  call   <timerStart@plt>
  movsbl -0x75(%rbp),%ecx
  mov    -0x48(%rbp),%rsi
  mov    -0x5c(%rbp),%edx
  mov    -0x28(%rbp),%rax
  mov    %rax,%rdi
  call   <rankOp@plt>
  mov    $0x0,%eax
  call   <timerStop@plt>
  mov    $0x0,%eax
  call   <timerGetTimeSpan@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %rax,%xmm0
  movsd  -0x38(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x38(%rbp)
  addl   $0x1,-0x68(%rbp)
L9:
  mov    -0x68(%rbp),%eax
  cmp    -0x54(%rbp),%eax
  jl     L30
  lea    D49(%rip),%rax
  mov    %rax,%rsi
  lea    D54(%rip),%rax
  mov    %rax,%rdi
  call   <fopen@plt>
  mov    %rax,-0x18(%rbp)
  movsd  -0x38(%rbp),%xmm0
  movsd  D105(%rip),%xmm1
  divsd  %xmm1,%xmm0
  movq   %xmm0,%rdx
  mov    -0x18(%rbp),%rax
  movq   %rdx,%xmm0
  lea    D100(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <fprintf@plt>
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <fclose@plt>
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x30(%rbp)
  movl   $0x0,-0x64(%rbp)
  jmp    L0
L66:
  mov    $0x0,%eax
  call   <timerStart@plt>
  movsbl -0x75(%rbp),%edx
  mov    -0x48(%rbp),%rsi
  mov    -0x58(%rbp),%ecx
  mov    -0x28(%rbp),%rax
  mov    %rax,%rdi
  call   <selectOp@plt>
  mov    $0x0,%eax
  call   <timerStop@plt>
  mov    $0x0,%eax
  call   <timerGetTimeSpan@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %rax,%xmm0
  movsd  -0x30(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x30(%rbp)
  addl   $0x1,-0x64(%rbp)
L0:
  mov    -0x64(%rbp),%eax
  cmp    -0x54(%rbp),%eax
  jl     L66
  lea    D49(%rip),%rax
  mov    %rax,%rsi
  lea    D72(%rip),%rax
  mov    %rax,%rdi
  call   <fopen@plt>
  mov    %rax,-0x10(%rbp)
  movsd  -0x30(%rbp),%xmm0
  movsd  D105(%rip),%xmm1
  divsd  %xmm1,%xmm0
  movq   %xmm0,%rdx
  mov    -0x10(%rbp),%rax
  movq   %rdx,%xmm0
  lea    D100(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <fprintf@plt>
  mov    -0x10(%rbp),%rax
  mov    %rax,%rdi
  call   <fclose@plt>
  mov    -0x28(%rbp),%rax
  mov    %rax,%rdi
  call   <deleteTree@plt>
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L31
  call   <__stack_chk_fail@plt>
L31:
  leave
  ret
```

tool_calls: name: unpack_data
arguments: data_tag: D27
type_infered: string
name: unpack_data
arguments: data_tag: D49
type_infered: string
name: unpack_data
arguments: data_tag: D81
type_infered: string
name: unpack_data
arguments: data_tag: D105
type_infered: f64
name: unpack_data
arguments: data_tag: D100
type_infered: string
name: unpack_data
arguments: data_tag: D54
type_infered: string
name: unpack_data
arguments: data_tag: D72
type_infered: string

tool: D27: %c

tool: D49: w

tool: D81: access.out

tool: D105: 1000

tool: D100: %f

tool: D54: rank.out

tool: D72: select.out

assistant: ```c
void generateFunctionTest(char *input_file) {
  char *input;
  char *used_alphabet;
  int input_len;
  int alphabet_len;
  getAlphabetFromFile(input_file, &used_alphabet, &input, &input_len, &alphabet_len);
  struct WaveletTree *tree = buildTree(input, input_len, used_alphabet, alphabet_len);
  input_len--;
  char letter = input[0];
  printf("%c", letter);
  int access_index = input_len / 2;
  int rank_index = input_len / 2;
  int select_index = (int)sqrt(input_len / 2);
  int iter = 1000;
  double access_time = 0;
  for (int i = 0; i < iter; ++i) {
    timerStart();
    accessOp(tree, used_alphabet, access_index);
    timerStop();
    access_time += timerGetTimeSpan();
  }
  FILE *access_file = fopen("access.out", "w");
  fprintf(access_file, "%f", access_time / 1000.0);
  fclose(access_file);
  double rank_time = 0;
  for (int i = 0; i < iter; ++i) {
    timerStart();
    rankOp(tree, used_alphabet, rank_index, letter);
    timerStop();
    rank_time += timerGetTimeSpan();
  }
  FILE *rank_file = fopen("rank.out", "w");
  fprintf(rank_file, "%f", rank_time / 1000.0);
  fclose(rank_file);
  double select_time = 0;
  for (int i = 0; i < iter; ++i) {
    timerStart();
    selectOp(tree, used_alphabet, letter, select_index);
    timerStop();
    select_time += timerGetTimeSpan();
  }
  FILE *select_file = fopen("select.out", "w");
  fprintf(select_file, "%f", select_time / 1000.0);
  fclose(select_file);
  deleteTree(tree);
}
```