user: 提供的汇编代码用C语言表示会是什么样子：

```asm
<search_index>:
  endbr64
  push   %r15
  mov    %rsi,%rcx
  mov    $0x1,%edx
  push   %r14
  push   %r13
  push   %r12
  mov    %rsi,%r12
  mov    $0x8,%esi
  push   %rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    %edi,0x1c(%rsp)
  lea    0x30(%rsp),%rdi
  mov    %fs:0x28,%rax
  mov    %rax,0x38(%rsp)
  xor    %eax,%eax
  call   <fread@plt>
  mov    0x3c(%rsp),%edx
  mov    0x40(%rsp),%r9d
  mov    0x38(%rsp),%eax
  mov    0x34(%rsp),%esi
  mov    %edx,%r8d
  shl    $0x18,%r9d
  shl    $0x10,%edx
  mov    %eax,%edi
  shl    $0x18,%r8d
  shl    $0x10,%edi
  or     %edx,%r9d
  shl    $0x8,%eax
  or     %esi,%r9d
  or     %edi,%r8d
  mov    %esi,%edi
  or     0x30(%rsp),%r8d
  mov    %r9d,%r14d
  shl    $0x8,%edi
  or     %eax,%r14d
  or     %edi,%r8d
  mov    %r14d,%eax
  mov    %r8d,%r13d
  sub    %r8d,%eax
  cmp    $0x7,%eax
  je     L48
  movslq %r14d,%rax
  mov    %r12,%rbx
  mov    %r14d,%r12d
  mov    %rax,0x8(%rsp)
  movslq %r8d,%rax
  mov    %rax,0x10(%rsp)
  lea    0x29(%rsp),%rax
  mov    %rax,%r14
  nopl   0x0(%rax,%rax,1)
L4:
  imul   $0xffffffff92492493,0x8(%rsp),%rax
  mov    %r12d,%edx
  mov    %r13d,%ecx
  sar    $0x1f,%edx
  sar    $0x1f,%ecx
  shr    $0x20,%rax
  add    %r12d,%eax
  sar    $0x2,%eax
  sub    %edx,%eax
  imul   $0xffffffff92492493,0x10(%rsp),%rdx
  shr    $0x20,%rdx
  add    %r13d,%edx
  sar    $0x2,%edx
  sub    %edx,%ecx
  add    %ecx,%eax
  test   $0x1,%al
  je     L88
  add    $0x1,%eax
L88:
  mov    %eax,%ebp
  mov    %rbx,%rdi
  shr    $0x1f,%ebp
  add    %eax,%ebp
  mov    D15(%rip),%rax
  sar    %ebp
  lea    0x0(,%rbp,8),%r15d
  mov    (%rax),%edx
  sub    %ebp,%r15d
  add    %r13d,%r15d
  mov    %r15d,%esi
  call   <fseek@plt>
  mov    %rbx,%rcx
  mov    $0x1,%edx
  mov    %r14,%rdi
  mov    $0x7,%esi
  call   <fread@plt>
  mov    0x35(%rsp),%edi
  mov    0x31(%rsp),%esi
  mov    0x2d(%rsp),%edx
  mov    %edi,%r8d
  mov    %esi,%r11d
  mov    %edi,%eax
  mov    %esi,%r10d
  shl    $0x10,%r11d
  shl    $0x18,%r8d
  mov    %edx,%ecx
  or     %r11d,%r8d
  mov    %edx,%r11d
  or     0x29(%rsp),%r8d
  shl    $0x8,%r11d
  or     %r11d,%r8d
  cmp    0x1c(%rsp),%r8d
  je     L101
  jge    L32
  mov    %r12d,%eax
  sub    %r15d,%eax
  cmp    $0x7,%eax
  je     L43
  movslq %r15d,%rax
  mov    %rax,0x10(%rsp)
  mov    %rax,%r13
  jmp    L4
  cs nopw 0x0(%rax,%rax,1)
L32:
  cmp    $0x1,%ebp
  je     L93
  movslq %r15d,%rax
  mov    %rax,0x8(%rsp)
  mov    %rax,%r12
  jmp    L4
  nopl   (%rax)
L93:
  mov    %rbx,%r12
  mov    %r8d,%ebx
L48:
  cmp    0x1c(%rsp),%ebx
  jle    L23
  mov    D15(%rip),%rax
  mov    %r13d,%esi
  mov    %r12,%rdi
  mov    (%rax),%edx
  call   <fseek@plt>
  mov    %r12,%rcx
  lea    0x29(%rsp),%rdi
  mov    $0x1,%edx
  mov    $0x7,%esi
  call   <fread@plt>
  mov    0x35(%rsp),%eax
  mov    0x31(%rsp),%r10d
  mov    0x2d(%rsp),%ecx
L101:
  shl    $0x10,%eax
  shl    $0x8,%r10d
  or     %r10d,%eax
  or     %ecx,%eax
  mov    0x38(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L57
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L23:
  mov    0x35(%rsp),%edi
  mov    0x31(%rsp),%esi
  mov    0x2d(%rsp),%edx
  nopl   0x0(%rax,%rax,1)
L43:
  mov    %edi,%eax
  mov    %esi,%r10d
  mov    %edx,%ecx
  jmp    L101
L57:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
uint32_t search_index(const uint32_t ip, FILE *qqwry_file) {
  uint32_t index_ip;
  uint32_t index_start;
  uint32_t index_end;
  uint32_t index_mid;
  unsigned char head[8];
  unsigned char index_bytes[7];
  fread(head, 8, 1, qqwry_file);
  index_start = (uint32_t)((((uint8_t *)(&head[0]))[3] << 24) | (((uint8_t *)(&head[0]))[2] << 16) | (((uint8_t *)(&head[0]))[1] << 8) | ((uint8_t *)(&head[0]))[0]);
  index_end = (uint32_t)((((uint8_t *)(&head[4]))[3] << 24) | (((uint8_t *)(&head[4]))[2] << 16) | (((uint8_t *)(&head[4]))[1] << 8) | ((uint8_t *)(&head[4]))[0]);
  while (1) {
    if ((index_end - index_start) == 7) {
      break;
    }
    index_mid = index_end / 7 - index_start / 7;
    if (index_mid % 2 == 0) {
      index_mid = index_mid / 2;
    } else {
      index_mid = (index_mid + 1) / 2;
    }
    index_mid = index_start + index_mid * 7;
    fseek(qqwry_file, index_mid, SEEK_SET);
    fread(index_bytes, 7, 1, qqwry_file);
    index_ip = (uint32_t)((((uint8_t *)(&index_bytes[0]))[3] << 24) | (((uint8_t *)(&index_bytes[0]))[2] << 16) | (((uint8_t *)(&index_bytes[0]))[1] << 8) | ((uint8_t *)(&index_bytes[0]))[0]);
    if (index_ip == ip) {
      break;
    } else if (index_ip < ip) {
      index_start = index_mid;
    } else {
      index_end = index_mid;
    }
  }
  if (index_ip > ip) {
    fseek(qqwry_file, index_start, SEEK_SET);
    fread(index_bytes, 7, 1, qqwry_file);
  }
  return (uint32_t)((((uint8_t *)(&index_bytes[4]))[2] << 16) | (((uint8_t *)(&index_bytes[4]))[1] << 8) | ((uint8_t *)(&index_bytes[4]))[0]);
}
```