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

```asm
<branchfree_search2_prefetch>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x50,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    %edx,-0x34(%rbp)
  mov    %ecx,-0x38(%rbp)
  mov    %r8,-0x40(%rbp)
  mov    %r9,-0x48(%rbp)
  mov    -0x28(%rbp),%rax
  mov    %rax,-0x18(%rbp)
  mov    -0x28(%rbp),%rax
  mov    %rax,-0x10(%rbp)
  cmpq   $0x0,-0x30(%rbp)
  je     L68
  jmp    L105
L14:
  mov    -0x30(%rbp),%rax
  shr    %rax
  mov    %rax,-0x8(%rbp)
  mov    -0x8(%rbp),%rax
  shr    %rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    $0x0,%edx
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <__builtin_prefetch@plt>
  mov    -0x8(%rbp),%rax
  shr    %rax
  mov    %rax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    $0x0,%edx
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <__builtin_prefetch@plt>
  mov    -0x8(%rbp),%rax
  shr    %rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  mov    $0x0,%edx
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <__builtin_prefetch@plt>
  mov    -0x8(%rbp),%rax
  shr    %rax
  mov    %rax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  mov    $0x0,%edx
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <__builtin_prefetch@plt>
  mov    -0x8(%rbp),%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cmp    %eax,-0x34(%rbp)
  jle    L75
  mov    -0x8(%rbp),%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  jmp    L33
L75:
  mov    -0x18(%rbp),%rax
L33:
  mov    %rax,-0x18(%rbp)
  mov    -0x8(%rbp),%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cmp    %eax,-0x38(%rbp)
  jle    L57
  mov    -0x8(%rbp),%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  jmp    L50
L57:
  mov    -0x10(%rbp),%rax
L50:
  mov    %rax,-0x10(%rbp)
  mov    -0x8(%rbp),%rax
  sub    %rax,-0x30(%rbp)
L105:
  cmpq   $0x1,-0x30(%rbp)
  ja     L14
  mov    -0x18(%rbp),%rax
  mov    (%rax),%eax
  cmp    %eax,-0x34(%rbp)
  jle    L55
  mov    $0x4,%edx
  jmp    L58
L55:
  mov    $0x0,%edx
L58:
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  sub    -0x28(%rbp),%rax
  sar    $0x2,%rax
  mov    %rax,%rdx
  mov    -0x40(%rbp),%rax
  mov    %rdx,(%rax)
  mov    -0x10(%rbp),%rax
  mov    (%rax),%eax
  cmp    %eax,-0x38(%rbp)
  jle    L61
  mov    $0x4,%edx
  jmp    L72
L61:
  mov    $0x0,%edx
L72:
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  sub    -0x28(%rbp),%rax
  sar    $0x2,%rax
  mov    %rax,%rdx
  mov    -0x48(%rbp),%rax
  mov    %rdx,(%rax)
  jmp    L30
L68:
  nop
L30:
  leave
  ret
```

assistant: ```c
void branchfree_search2_prefetch(int *source, size_t n, int target1, int target2, size_t *index1, size_t *index2) {
  int *base1 = source;
  int *base2 = source;
  if (n == 0)
    return;
  while (n > 1) {
    size_t half = n >> 1;
    __builtin_prefetch(base1 + (half >> 1), 0, 0);
    __builtin_prefetch(base1 + half + (half >> 1), 0, 0);
    __builtin_prefetch(base2 + (half >> 1), 0, 0);
    __builtin_prefetch(base2 + half + (half >> 1), 0, 0);
    base1 = (base1[half] < target1) ? &base1[half] : base1;
    base2 = (base2[half] < target2) ? &base2[half] : base2;
    n -= half;
  }
  *index1 = (*base1 < target1) + base1 - source;
  *index2 = (*base2 < target2) + base2 - source;
}
```