user: 下面的汇编指令对应的C源代码是什么:

```asm
<BinSearchInsert>:
  endbr64
  push   %r13
  mov    %edx,%r9d
  push   %r12
  mov    %edx,%r12d
  movzbl %sil,%edx
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  cmpw   $0x0,-0x2(%rdi,%rdx,2)
  jne    L247
  mov    %rdi,%rbx
  mov    %esi,%eax
  lea    -0x1(%rsi),%ecx
  cmp    $0x1,%sil
  jbe    L202
  movzbl %cl,%ecx
  lea    -0x2(%rdi,%rcx,2),%rdx
  xchg   %ax,%ax
L175:
  mov    %eax,%ecx
  sub    $0x1,%eax
  cmp    $0x1,%al
  je     L0
  sub    $0x2,%rdx
  cmpw   $0x0,0x2(%rdx)
  je     L175
  sub    $0x2,%ecx
  cmp    (%rbx),%r12w
  jae    L68
L170:
  sub    $0x2,%eax
  movzbl %cl,%ecx
  movzbl %al,%eax
  mov    %rax,%rdx
  lea    0x2(%rax,%rax,1),%r8
  neg    %rdx
  add    %rdx,%rdx
  lea    (%rdx,%rcx,2),%rsi
  lea    0x2(%rdx,%rcx,2),%rdi
  mov    %r8,%rdx
  add    %rbx,%rsi
  add    %rbx,%rdi
  call   <memmove@plt>
  movzwl (%rbx),%edx
L148:
  mov    %dx,0x2(%rbx)
  xor    %eax,%eax
  mov    %r12w,(%rbx)
L110:
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
  nopw   0x0(%rax,%rax,1)
L0:
  movzwl (%rbx),%edx
  cmp    %dx,%r12w
  jb     L148
  mov    %rbx,%rsi
  xor    %ecx,%ecx
  xor    %r11d,%r11d
  xor    %ebp,%ebp
  cmp    %r12w,%dx
  jae    L210
L25:
  test   %dx,%dx
  je     L195
  movzbl %al,%edx
  mov    %eax,%ecx
  lea    (%rbx,%rdx,2),%rsi
L195:
  mov    %r12w,(%rsi)
  add    $0x8,%rsp
  mov    %ecx,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
  nopl   0x0(%rax,%rax,1)
L174:
  mov    $0x1,%r13d
L123:
  cmp    %cl,%bpl
  jae    L210
  sub    %ebp,%eax
  sub    $0x2,%eax
  movzbl %al,%eax
  mov    %rax,%rdx
  lea    0x2(%rax,%rax,1),%r8
  neg    %rdx
  add    %rdx,%rdx
  lea    0x2(%rdx,%r11,2),%rdi
  lea    (%rdx,%r10,1),%rsi
  mov    %r8,%rdx
  add    %rbx,%rsi
  add    %rbx,%rdi
  call   <memmove@plt>
  movzbl %bpl,%r11d
L210:
  test   %r13b,%r13b
  je     L95
  mov    %r12w,(%rbx,%r11,2)
  mov    %ebp,%eax
L180:
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
  nopw   0x0(%rax,%rax,1)
L68:
  movzbl %cl,%r11d
  lea    (%r11,%r11,1),%r10
  lea    (%rbx,%r10,1),%rsi
  movzwl (%rsi),%edx
  cmp    %dx,%r12w
  ja     L25
L2:
  mov    %ecx,%ebp
  xor    %esi,%esi
  movzbl %cl,%r8d
  xor    %edi,%edi
  nopl   0x0(%rax,%rax,1)
L44:
  mov    %r8d,%r13d
  sub    %edi,%r13d
  mov    %r13d,%edx
  shr    $0x1f,%edx
  add    %r13d,%edx
  sar    %edx
  add    %esi,%edx
  movzbl %dl,%r13d
  cmp    %r9w,(%rbx,%r13,2)
  je     L60
  jbe    L106
  lea    -0x1(%rdx),%ebp
  cmp    %sil,%bpl
  jbe    L117
  movzbl %bpl,%r8d
  jmp    L44
  cs nopw 0x0(%rax,%rax,1)
L106:
  lea    0x1(%rdx),%esi
  cmp    %sil,%bpl
  jbe    L174
  movzbl %sil,%edi
  jmp    L44
  nopw   0x0(%rax,%rax,1)
L60:
  add    $0x8,%rsp
  mov    %edx,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
  nopl   (%rax)
L95:
  mov    %r12w,0x2(%rbx,%r11,2)
  mov    %ebp,%eax
  jmp    L180
  nopl   (%rax)
L117:
  xor    %r13d,%r13d
  jmp    L123
L202:
  movzwl (%rdi),%edx
  cmp    %r12w,%dx
  jbe    L217
  test   %cl,%cl
  je     L148
  xor    %eax,%eax
  mov    $0xffffffff,%ecx
  jmp    L170
L217:
  movzbl %cl,%r11d
  lea    (%r11,%r11,1),%r10
  lea    (%rdi,%r10,1),%rsi
  movzwl (%rsi),%edx
  cmp    %r12w,%dx
  jb     L25
  test   %cl,%cl
  jne    L2
  xor    %ebp,%ebp
  xor    %r11d,%r11d
  jmp    L210
  nopl   0x0(%rax,%rax,1)
L247:
  mov    $0xffffffff,%eax
  jmp    L110
```

assistant: ```c
char BinSearchInsert(unsigned short *src, unsigned char len, unsigned short key) {
  unsigned char i, low, high, mid, flag;
  if (src[len - 1] != 0)
    return -1;
  while ((len > 1) && (src[len - 1] == 0))
    len--;
  low = 0;
  high = len - 1;
  if (key < src[low]) {
    for (i = len - 1; i > low; i--) {
      src[i + 1] = src[i];
    }
    src[i + 1] = src[i];
    src[i] = key;
    return low;
  }
  if (key > src[high]) {
    if (src[high] != 0) {
      high++;
    }
    src[high] = key;
    return high;
  }
  while (low < high) {
    mid = low + ((high - low) / 2);
    if (key == src[mid])
      return mid;
    if (key < src[mid]) {
      high = mid - 1;
      flag = 0;
    } else {
      low = mid + 1;
      flag = 1;
    }
  }
  for (i = len - 1; i > high; i--) {
    src[i + 1] = src[i];
  }
  if (flag)
    src[i] = key;
  else
    src[i + 1] = key;
  return high;
}
```