user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<testSelecting>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  sub    $0x40,%rsp
  movdqa D11(%rip),%xmm0
  mov    %fs:0x28,%rax
  mov    %rax,0x38(%rsp)
  xor    %eax,%eax
  mov    %rsp,%rbp
  movl   $0x73726570,0x28(%rsp)
  movabs $0x7065705f64656c6b,%rax
  movaps %xmm0,(%rsp)
  movdqa D0(%rip),%xmm0
  mov    %rbp,%rdi
  mov    %rax,0x20(%rsp)
  mov    $0x24,%eax
  movaps %xmm0,0x10(%rsp)
  mov    %ax,0x2c(%rsp)
  call   <strlen@plt>
  lea    0x1(%rax),%edi
  call   <malloc@plt>
  mov    %rbp,%rsi
  mov    %rax,%r13
  mov    %rax,%rdi
  call   <strcpy@plt>
  mov    %r13,%rdi
  call   <extractAlphabetLetters@plt>
  mov    %rax,%rdi
  mov    %rax,%rbp
  call   <strlen@plt>
  mov    %r13,%rdi
  mov    %eax,%r12d
  call   <strlen@plt>
  mov    %r12d,%ecx
  mov    %rbp,%rdx
  mov    %r13,%rdi
  mov    %eax,%esi
  call   <buildTree@plt>
  xor    %ecx,%ecx
  mov    $0x24,%edx
  mov    %rbp,%rsi
  mov    %rax,%rdi
  mov    %rax,%r12
  call   <selectOp@plt>
  xor    %edi,%edi
  cmp    $0xffffffff,%eax
  sete   %dil
  call   <assert@plt>
  mov    $0x1,%ecx
  mov    %rbp,%rsi
  mov    %r12,%rdi
  mov    $0x24,%edx
  call   <selectOp@plt>
  xor    %edi,%edi
  cmp    $0x2c,%eax
  sete   %dil
  call   <assert@plt>
  mov    $0x2,%ecx
  mov    %rbp,%rsi
  mov    %r12,%rdi
  mov    $0x24,%edx
  call   <selectOp@plt>
  xor    %edi,%edi
  cmp    $0xffffffff,%eax
  sete   %dil
  call   <assert@plt>
  mov    $0x1,%ecx
  mov    %rbp,%rsi
  mov    %r12,%rdi
  mov    $0x6c,%edx
  call   <selectOp@plt>
  xor    %edi,%edi
  cmp    $0x21,%eax
  sete   %dil
  call   <assert@plt>
  mov    $0x6,%ecx
  mov    %rbp,%rsi
  mov    %r12,%rdi
  mov    $0x6f,%edx
  call   <selectOp@plt>
  xor    %edi,%edi
  cmp    $0xffffffff,%eax
  sete   %dil
  call   <assert@plt>
  mov    $0x2,%ecx
  mov    %rbp,%rsi
  mov    %r12,%rdi
  mov    $0x70,%edx
  call   <selectOp@plt>
  xor    %edi,%edi
  cmp    $0xc,%eax
  sete   %dil
  call   <assert@plt>
  lea    D21(%rip),%rdi
  call   <print@plt>
  mov    %r13,%rdi
  call   <free@plt>
  mov    %r12,%rdi
  call   <deleteTree@plt>
  mov    0x38(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L3
  add    $0x40,%rsp
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L3:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: tag: D11
data_type: byte[16]
name: unpack_data
arguments: tag: D0
data_type: byte[16]
name: unpack_data
arguments: tag: D21
data_type: string

tool: {"D11": [0x50,0x65,0x74,0x65,0x72,0x5f,0x50,0x69,0x70,0x65,0x72,0x5f,0x70,0x69,0x63,0x6b]}

tool: {"D0": [0x65,0x64,0x5f,0x61,0x5f,0x70,0x65,0x63,0x6b,0x5f,0x6f,0x66,0x5f,0x70,0x69,0x63]}

tool: D21: Selecting tests [PASSED]

assistant: ```c
void testSelecting() {
  char tmp[] = "Peter_Piper_picked_a_peck_of_pickled_peppers$";
  char *test = (char *)malloc((strlen(tmp) + 1) * sizeof(char));
  strcpy(test, tmp);
  char *used_alphabet = extractAlphabetLetters(test);
  struct WaveletTree *tree = buildTree(test, (int)strlen(test), used_alphabet, (int)strlen(used_alphabet));
  assert(selectOp(tree, used_alphabet, '$', 0) == -1);
  assert(selectOp(tree, used_alphabet, '$', 1) == 44);
  assert(selectOp(tree, used_alphabet, '$', 2) == -1);
  assert(selectOp(tree, used_alphabet, 'l', 1) == 33);
  assert(selectOp(tree, used_alphabet, 'o', 6) == -1);
  assert(selectOp(tree, used_alphabet, 'p', 2) == 12);
  print("Selecting tests [PASSED]");
  free((void *)test);
  deleteTree(tree);
}
```