user: Please show me the C implementation that matches the assembly code listed below:

```asm
<test_desordered_elements>:
  endbr64
  push   %rbx
  sub    $0x60,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x58(%rsp)
  xor    %eax,%eax
  movq   $0x0,0x28(%rsp)
  movq   $0x0,0x30(%rsp)
  movq   $0x0,0x38(%rsp)
  movq   $0x0,0x40(%rsp)
  movq   $0x0,0x48(%rsp)
  movl   $0x1,(%rsp)
  movl   $0x2,0x4(%rsp)
  movl   $0x3,0x8(%rsp)
  movl   $0x4,0xc(%rsp)
  movl   $0x5,0x10(%rsp)
  movl   $0x6,0x14(%rsp)
  movl   $0x7,0x18(%rsp)
  movl   $0x8,0x1c(%rsp)
  movl   $0x9,0x20(%rsp)
  movl   $0xa,0x24(%rsp)
  mov    %rsp,%rbx
  mov    %rbx,%rsi
  lea    D26(%rip),%rdi
  call   <printArray@plt>
  mov    $0xb,%edx
  mov    $0xa,%esi
  mov    %rbx,%rdi
  call   <search@plt>
  mov    %eax,%esi
  lea    D59(%rip),%rdi
  call   <printf@plt>
  mov    $0x1,%edx
  mov    $0xa,%esi
  mov    %rbx,%rdi
  call   <search@plt>
  mov    %eax,%esi
  lea    D89(%rip),%rdi
  call   <printf@plt>
  mov    $0xa,%edx
  mov    $0xa,%esi
  mov    %rbx,%rdi
  call   <search@plt>
  mov    %eax,%esi
  lea    D54(%rip),%rdi
  call   <printf@plt>
  mov    $0xb,%edx
  mov    $0xa,%esi
  mov    %rbx,%rdi
  call   <searchR@plt>
  mov    %eax,%esi
  lea    D32(%rip),%rdi
  call   <printf@plt>
  mov    $0x1,%edx
  mov    $0xa,%esi
  mov    %rbx,%rdi
  call   <searchR@plt>
  mov    %eax,%esi
  lea    D23(%rip),%rdi
  call   <printf@plt>
  mov    $0xa,%edx
  mov    $0xa,%esi
  mov    %rbx,%rdi
  call   <searchR@plt>
  mov    %eax,%esi
  lea    D22(%rip),%rdi
  call   <printf@plt>
  mov    $0xb,%ecx
  mov    $0xa,%edx
  mov    $0xa,%esi
  mov    %rbx,%rdi
  call   <search_from_tail@plt>
  mov    %eax,%esi
  lea    D81(%rip),%rdi
  call   <printf@plt>
  mov    $0x1,%ecx
  mov    $0xa,%edx
  mov    $0xa,%esi
  mov    %rbx,%rdi
  call   <search_from_tail@plt>
  mov    %eax,%esi
  lea    D9(%rip),%rdi
  call   <printf@plt>
  mov    $0xa,%ecx
  mov    $0xa,%edx
  mov    $0xa,%esi
  mov    %rbx,%rdi
  call   <search_from_tail@plt>
  mov    %eax,%esi
  lea    D80(%rip),%rdi
  call   <printf@plt>
  mov    0x58(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L6
  add    $0x60,%rsp
  pop    %rbx
  ret
L6:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: data_tag: D26
type_guessed: string
name: disassemble_data
arguments: data_tag: D59
type_guessed: string
name: disassemble_data
arguments: data_tag: D89
type_guessed: string
name: disassemble_data
arguments: data_tag: D54
type_guessed: string
name: disassemble_data
arguments: data_tag: D32
type_guessed: string
name: disassemble_data
arguments: data_tag: D23
type_guessed: string
name: disassemble_data
arguments: data_tag: D22
type_guessed: string
name: disassemble_data
arguments: data_tag: D81
type_guessed: string
name: disassemble_data
arguments: data_tag: D9
type_guessed: string
name: disassemble_data
arguments: data_tag: D80
type_guessed: string

tool: D26: Original Array: 

tool: D59: [search] Looking for 11, returned: %d


tool: D89: [search] Looking for 1, returned: %d


tool: D54: [search] Looking for 10, returned: %d


tool: D32: [recursive search] Looking for 11, returned: %d


tool: D23: [recursive search] Looking for 1, returned: %d


tool: D22: [recursive search] Looking for 10, returned: %d


tool: D81: [search recursive from tail] Looking for 11, returned: %d


tool: D9: [search recursive from tail] Looking for 1, returned: %d


tool: D80: [search recursive from tail] Looking for 10, returned: %d


assistant: ```c
void test_desordered_elements() {
  int array[20] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
  int tam = 10;
  printArray("Original Array: ", array);
  printf(("[search] Looking for 11, returned: %d\n"), search(array, tam, 11));
  printf(("[search] Looking for 1, returned: %d\n"), search(array, tam, 1));
  printf(("[search] Looking for 10, returned: %d\n"), search(array, tam, 10));
  printf(("[recursive search] Looking for 11, returned: %d\n"), searchR(array, tam, 11));
  printf(("[recursive search] Looking for 1, returned: %d\n"), searchR(array, tam, 1));
  printf(("[recursive search] Looking for 10, returned: %d\n"), searchR(array, tam, 10));
  printf(("[search recursive from tail] Looking for 11, returned: %d\n"), search_from_tail(array, tam, tam, 11));
  printf(("[search recursive from tail] Looking for 1, returned: %d\n"), search_from_tail(array, tam, tam, 1));
  printf(("[search recursive from tail] Looking for 10, returned: %d\n"), search_from_tail(array, tam, tam, 10));
}
```