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

```asm
<selip>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x90,%rsp
  mov    %rdi,-0x78(%rbp)
  mov    %rsi,-0x80(%rbp)
  mov    %rdx,-0x88(%rbp)
  cmpq   $0x0,-0x78(%rbp)
  je     L201
  mov    -0x78(%rbp),%rax
  cmp    -0x80(%rbp),%rax
  ja     L201
  cmpq   $0x0,-0x80(%rbp)
  jne    L125
L201:
  lea    D23(%rip),%rax
  mov    %rax,%rdi
  call   <nrerror@plt>
L125:
  mov    $0x42,%esi
  mov    $0x1,%edi
  call   <nr_lvector@plt>
  mov    %rax,-0x18(%rbp)
  mov    $0x42,%esi
  mov    $0x1,%edi
  call   <nr_vector@plt>
  mov    %rax,-0x10(%rbp)
  mov    -0x78(%rbp),%rax
  mov    %rax,-0x38(%rbp)
  movss  D1(%rip),%xmm0
  movss  %xmm0,-0x64(%rbp)
  movss  D14(%rip),%xmm0
  movss  %xmm0,-0x60(%rbp)
L27:
  movq   $0x0,-0x28(%rbp)
  mov    -0x28(%rbp),%rax
  mov    %rax,-0x30(%rbp)
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0x5c(%rbp)
  movq   $0x41,-0x20(%rbp)
  movq   $0x1,-0x58(%rbp)
  jmp    L158
L109:
  mov    -0x58(%rbp),%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x88(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  comiss -0x60(%rbp),%xmm0
  jb     L117
  mov    -0x58(%rbp),%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x88(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm1
  movss  -0x64(%rbp),%xmm0
  comiss %xmm1,%xmm0
  jb     L117
  addq   $0x1,-0x30(%rbp)
  mov    -0x58(%rbp),%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x88(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  ucomiss -0x60(%rbp),%xmm0
  jp     L97
  ucomiss -0x60(%rbp),%xmm0
  jne    L97
  addq   $0x1,-0x28(%rbp)
L97:
  cmpq   $0x40,-0x30(%rbp)
  ja     L104
  mov    -0x58(%rbp),%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x88(%rbp),%rax
  add    %rax,%rdx
  mov    -0x30(%rbp),%rax
  lea    0x0(,%rax,4),%rcx
  mov    -0x10(%rbp),%rax
  add    %rcx,%rax
  movss  (%rdx),%xmm0
  movss  %xmm0,(%rax)
  jmp    L262
L104:
  mov    -0x30(%rbp),%rax
  cmp    -0x20(%rbp),%rax
  jne    L262
  mov    -0x30(%rbp),%rax
  shr    $0x6,%rax
  mov    %rax,%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x20(%rbp)
  mov    -0x58(%rbp),%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x88(%rbp),%rax
  add    %rax,%rdx
  mov    -0x58(%rbp),%rcx
  mov    -0x30(%rbp),%rax
  add    %rax,%rcx
  mov    -0x38(%rbp),%rax
  add    %rcx,%rax
  and    $0x3f,%eax
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rcx
  mov    -0x10(%rbp),%rax
  add    %rcx,%rax
  movss  (%rdx),%xmm0
  movss  %xmm0,(%rax)
L262:
  mov    -0x58(%rbp),%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x88(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  movss  -0x5c(%rbp),%xmm1
  addss  %xmm1,%xmm0
  movss  %xmm0,-0x5c(%rbp)
L117:
  addq   $0x1,-0x58(%rbp)
L158:
  mov    -0x58(%rbp),%rax
  cmp    -0x80(%rbp),%rax
  jbe    L109
  mov    -0x38(%rbp),%rax
  cmp    -0x28(%rbp),%rax
  ja     L2
  mov    -0x10(%rbp),%rax
  mov    $0x42,%edx
  mov    $0x1,%esi
  mov    %rax,%rdi
  call   <nr_free_vector@plt>
  mov    -0x18(%rbp),%rax
  mov    $0x42,%edx
  mov    $0x1,%esi
  mov    %rax,%rdi
  call   <nr_free_lvector@plt>
  movss  -0x60(%rbp),%xmm0
  jmp    L299
L2:
  cmpq   $0x40,-0x30(%rbp)
  ja     L205
  mov    -0x10(%rbp),%rdx
  mov    -0x30(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <shell@plt>
  mov    -0x38(%rbp),%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  movss  %xmm0,-0x64(%rbp)
  mov    -0x10(%rbp),%rax
  mov    $0x42,%edx
  mov    $0x1,%esi
  mov    %rax,%rdi
  call   <nr_free_vector@plt>
  mov    -0x18(%rbp),%rax
  mov    $0x42,%edx
  mov    $0x1,%esi
  mov    %rax,%rdi
  call   <nr_free_lvector@plt>
  movss  -0x64(%rbp),%xmm0
  jmp    L299
L205:
  mov    -0x30(%rbp),%rax
  test   %rax,%rax
  js     L84
  pxor   %xmm0,%xmm0
  cvtsi2ss %rax,%xmm0
  jmp    L55
L84:
  mov    %rax,%rdx
  shr    %rdx
  and    $0x1,%eax
  or     %rax,%rdx
  pxor   %xmm0,%xmm0
  cvtsi2ss %rdx,%xmm0
  addss  %xmm0,%xmm0
L55:
  mov    -0x10(%rbp),%rax
  add    $0x104,%rax
  movss  -0x5c(%rbp),%xmm1
  divss  %xmm0,%xmm1
  movss  %xmm1,(%rax)
  mov    -0x10(%rbp),%rax
  mov    %rax,%rsi
  mov    $0x41,%edi
  call   <shell@plt>
  mov    -0x10(%rbp),%rax
  add    $0x108,%rax
  movss  -0x64(%rbp),%xmm0
  movss  %xmm0,(%rax)
  movq   $0x1,-0x50(%rbp)
  jmp    L239
L183:
  mov    -0x50(%rbp),%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movq   $0x0,(%rax)
  addq   $0x1,-0x50(%rbp)
L239:
  cmpq   $0x42,-0x50(%rbp)
  jbe    L183
  movq   $0x1,-0x58(%rbp)
  jmp    L171
L235:
  mov    -0x58(%rbp),%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x88(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  comiss -0x60(%rbp),%xmm0
  jb     L190
  mov    -0x58(%rbp),%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x88(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm1
  movss  -0x64(%rbp),%xmm0
  comiss %xmm1,%xmm0
  jb     L190
  movq   $0x0,-0x48(%rbp)
  movq   $0x42,-0x40(%rbp)
  jmp    L245
L135:
  mov    -0x40(%rbp),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  shr    %rax
  mov    %rax,-0x8(%rbp)
  mov    -0x58(%rbp),%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x88(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  mov    -0x8(%rbp),%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm1
  comiss %xmm1,%xmm0
  jb     L12
  mov    -0x8(%rbp),%rax
  mov    %rax,-0x48(%rbp)
  jmp    L245
L12:
  mov    -0x8(%rbp),%rax
  mov    %rax,-0x40(%rbp)
L245:
  mov    -0x40(%rbp),%rax
  sub    -0x48(%rbp),%rax
  cmp    $0x1,%rax
  ja     L135
  mov    -0x40(%rbp),%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  add    $0x1,%rdx
  mov    %rdx,(%rax)
L190:
  addq   $0x1,-0x58(%rbp)
L171:
  mov    -0x58(%rbp),%rax
  cmp    -0x80(%rbp),%rax
  jbe    L235
  movq   $0x1,-0x50(%rbp)
  jmp    L293
L64:
  mov    -0x50(%rbp),%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  movss  %xmm0,-0x60(%rbp)
  mov    -0x50(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x50(%rbp)
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  sub    %rax,-0x38(%rbp)
L293:
  mov    -0x50(%rbp),%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  cmp    %rax,-0x38(%rbp)
  ja     L64
  mov    -0x50(%rbp),%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x10(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  movss  %xmm0,-0x64(%rbp)
  jmp    L27
L299:
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: data_label: D23
type_guessed: string
name: disassemble_data
arguments: data_label: D1
type_guessed: f32
name: disassemble_data
arguments: data_label: D14
type_guessed: byte[4]

tool: D23: bad input to selip

tool: D1: 1e+30

tool: {"D14": [0xca,0xf2,0x49,0xf1]}

assistant: ```c
float selip(unsigned long k, unsigned long n, float arr[]) {
  void shell(unsigned long n, float a[]);
  unsigned long i, j, jl, jm, ju, kk, mm, nlo, nxtmm, *isel;
  float ahi, alo, sum, *sel;
  if (k < 1 || k > n || n <= 0)
    nrerror("bad input to selip");
  isel = nr_lvector(1, 64 + 2);
  sel = nr_vector(1, 64 + 2);
  kk = k;
  ahi = 1.0e30;
  alo = -1.0e30;
  for (;;) {
    mm = nlo = 0;
    sum = 0.0;
    nxtmm = 64 + 1;
    for (i = 1; i <= n; i++) {
      if (arr[i] >= alo && arr[i] <= ahi) {
        mm++;
        if (arr[i] == alo)
          nlo++;
        if (mm <= 64)
          sel[mm] = arr[i];
        else if (mm == nxtmm) {
          nxtmm = mm + mm / 64;
          sel[1 + ((i + mm + kk) % 64)] = arr[i];
        }
        sum += arr[i];
      }
    }
    if (kk <= nlo) {
      nr_free_vector(sel, 1, 64 + 2);
      nr_free_lvector(isel, 1, 64 + 2);
      return alo;
    } else if (mm <= 64) {
      shell(mm, sel);
      ahi = sel[kk];
      nr_free_vector(sel, 1, 64 + 2);
      nr_free_lvector(isel, 1, 64 + 2);
      return ahi;
    }
    sel[64 + 1] = sum / mm;
    shell(64 + 1, sel);
    sel[64 + 2] = ahi;
    for (j = 1; j <= 64 + 2; j++)
      isel[j] = 0;
    for (i = 1; i <= n; i++) {
      if (arr[i] >= alo && arr[i] <= ahi) {
        jl = 0;
        ju = 64 + 2;
        while (ju - jl > 1) {
          jm = (ju + jl) / 2;
          if (arr[i] >= sel[jm])
            jl = jm;
          else
            ju = jm;
        }
        isel[ju]++;
      }
    }
    j = 1;
    while (kk > isel[j]) {
      alo = sel[j];
      kk -= isel[j++];
    }
    ahi = sel[j];
  }
}
```