user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<generateFunctionTest>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x30,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  lea    0x10(%rsp),%rcx
  lea    0x18(%rsp),%rdx
  lea    0x20(%rsp),%rsi
  lea    0x14(%rsp),%r8
  call   <getAlphabetFromFile@plt>
  mov    0x14(%rsp),%ecx
  mov    0x20(%rsp),%rdx
  mov    0x10(%rsp),%esi
  mov    0x18(%rsp),%rdi
  call   <buildTree@plt>
  mov    %rax,%rbx
  subl   $0x1,0x10(%rsp)
  mov    0x18(%rsp),%rax
  movsbl (%rax),%r12d
  mov    %r12d,%esi
  lea    D97(%rip),%rdi
  call   <printf@plt>
  mov    0x10(%rsp),%eax
  mov    %eax,%r14d
  shr    $0x1f,%r14d
  add    %eax,%r14d
  sar    %r14d
  mov    %r14d,%edi
  call   <sqrt@plt>
  mov    %eax,%r13d
  mov    $0x3e8,%ebp
  pxor   %xmm4,%xmm4
  movsd  %xmm4,0x8(%rsp)
L33:
  mov    $0x0,%eax
  call   <timerStart@plt>
  mov    %r14d,%edx
  mov    0x20(%rsp),%rsi
  mov    %rbx,%rdi
  call   <accessOp@plt>
  mov    $0x0,%eax
  call   <timerStop@plt>
  mov    $0x0,%eax
  call   <timerGetTimeSpan@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %rax,%xmm0
  addsd  0x8(%rsp),%xmm0
  movsd  %xmm0,0x8(%rsp)
  sub    $0x1,%ebp
  jne    L33
  lea    D91(%rip),%rsi
  lea    D38(%rip),%rdi
  call   <fopen@plt>
  mov    %rax,%rbp
  movsd  0x8(%rsp),%xmm0
  divsd  D78(%rip),%xmm0
  lea    D77(%rip),%rsi
  mov    %rax,%rdi
  call   <fprintf@plt>
  mov    %rbp,%rdi
  call   <fclose@plt>
  mov    $0x3e8,%ebp
  pxor   %xmm5,%xmm5
  movsd  %xmm5,0x8(%rsp)
L29:
  mov    $0x0,%eax
  call   <timerStart@plt>
  mov    %r12d,%ecx
  mov    %r14d,%edx
  mov    0x20(%rsp),%rsi
  mov    %rbx,%rdi
  call   <rankOp@plt>
  mov    $0x0,%eax
  call   <timerStop@plt>
  mov    $0x0,%eax
  call   <timerGetTimeSpan@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %rax,%xmm0
  addsd  0x8(%rsp),%xmm0
  movsd  %xmm0,0x8(%rsp)
  sub    $0x1,%ebp
  jne    L29
  lea    D91(%rip),%rsi
  lea    D84(%rip),%rdi
  call   <fopen@plt>
  mov    %rax,%rbp
  movsd  0x8(%rsp),%xmm0
  divsd  D78(%rip),%xmm0
  lea    D77(%rip),%rsi
  mov    %rax,%rdi
  call   <fprintf@plt>
  mov    %rbp,%rdi
  call   <fclose@plt>
  mov    $0x3e8,%ebp
  pxor   %xmm6,%xmm6
  movsd  %xmm6,0x8(%rsp)
L8:
  mov    $0x0,%eax
  call   <timerStart@plt>
  mov    %r13d,%ecx
  mov    %r12d,%edx
  mov    0x20(%rsp),%rsi
  mov    %rbx,%rdi
  call   <selectOp@plt>
  mov    $0x0,%eax
  call   <timerStop@plt>
  mov    $0x0,%eax
  call   <timerGetTimeSpan@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %rax,%xmm0
  addsd  0x8(%rsp),%xmm0
  movsd  %xmm0,0x8(%rsp)
  sub    $0x1,%ebp
  jne    L8
  lea    D91(%rip),%rsi
  lea    D123(%rip),%rdi
  call   <fopen@plt>
  mov    %rax,%rbp
  movsd  0x8(%rsp),%xmm0
  divsd  D78(%rip),%xmm0
  lea    D77(%rip),%rsi
  mov    %rax,%rdi
  call   <fprintf@plt>
  mov    %rbp,%rdi
  call   <fclose@plt>
  mov    %rbx,%rdi
  call   <deleteTree@plt>
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L7
  add    $0x30,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L7:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: tag: D97
type_guessed: string
name: extract_symbolic_data
arguments: tag: D91
type_guessed: string
name: extract_symbolic_data
arguments: tag: D38
type_guessed: string
name: extract_symbolic_data
arguments: tag: D78
type_guessed: f64
name: extract_symbolic_data
arguments: tag: D77
type_guessed: string
name: extract_symbolic_data
arguments: tag: D84
type_guessed: string
name: extract_symbolic_data
arguments: tag: D123
type_guessed: string

tool: D97: %c

tool: D91: w

tool: D38: access.out

tool: D78: 1000

tool: D77: %f

tool: D84: rank.out

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