user: What would the C source look like for the assembly code provided here?

```asm
<hunt>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x18(%rbp)
  mov    %esi,-0x1c(%rbp)
  movsd  %xmm0,-0x28(%rbp)
  mov    %rdx,-0x30(%rbp)
  mov    -0x1c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mov    -0x18(%rbp),%rax
  add    $0x8,%rax
  movsd  (%rax),%xmm1
  comisd %xmm1,%xmm0
  seta   %al
  movzbl %al,%eax
  mov    %eax,-0x8(%rbp)
  mov    -0x30(%rbp),%rax
  mov    (%rax),%eax
  test   %eax,%eax
  jle    L65
  mov    -0x30(%rbp),%rax
  mov    (%rax),%eax
  cmp    %eax,-0x1c(%rbp)
  jge    L150
L65:
  mov    -0x30(%rbp),%rax
  movl   $0x0,(%rax)
  mov    -0x1c(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x10(%rbp)
  jmp    L182
L150:
  movl   $0x1,-0xc(%rbp)
  mov    -0x30(%rbp),%rax
  mov    (%rax),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  movsd  -0x28(%rbp),%xmm0
  comisd %xmm1,%xmm0
  setae  %al
  movzbl %al,%eax
  cmp    %eax,-0x8(%rbp)
  jne    L155
  mov    -0x30(%rbp),%rax
  mov    (%rax),%eax
  cmp    %eax,-0x1c(%rbp)
  je     L58
  mov    -0x30(%rbp),%rax
  mov    (%rax),%eax
  add    $0x1,%eax
  mov    %eax,-0x10(%rbp)
  jmp    L88
L60:
  mov    -0x30(%rbp),%rax
  mov    -0x10(%rbp),%edx
  mov    %edx,(%rax)
  shll   -0xc(%rbp)
  mov    -0x30(%rbp),%rax
  mov    (%rax),%edx
  mov    -0xc(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x10(%rbp)
  mov    -0x10(%rbp),%eax
  cmp    -0x1c(%rbp),%eax
  jle    L88
  mov    -0x1c(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x10(%rbp)
  jmp    L182
L88:
  mov    -0x10(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  movsd  -0x28(%rbp),%xmm0
  comisd %xmm1,%xmm0
  setae  %al
  movzbl %al,%eax
  cmp    %eax,-0x8(%rbp)
  je     L60
  jmp    L162
L155:
  mov    -0x30(%rbp),%rax
  mov    (%rax),%eax
  cmp    $0x1,%eax
  jne    L209
  mov    -0x30(%rbp),%rax
  movl   $0x0,(%rax)
  jmp    L64
L209:
  mov    -0x30(%rbp),%rax
  mov    (%rax),%eax
  mov    %eax,-0x10(%rbp)
  mov    -0x30(%rbp),%rax
  mov    (%rax),%eax
  lea    -0x1(%rax),%edx
  mov    -0x30(%rbp),%rax
  mov    %edx,(%rax)
  jmp    L105
L30:
  mov    -0x30(%rbp),%rax
  mov    (%rax),%eax
  mov    %eax,-0x10(%rbp)
  shll   -0xc(%rbp)
  mov    -0x10(%rbp),%eax
  sub    -0xc(%rbp),%eax
  mov    %eax,%edx
  mov    -0x30(%rbp),%rax
  mov    %edx,(%rax)
  mov    -0x30(%rbp),%rax
  mov    (%rax),%eax
  test   %eax,%eax
  jg     L105
  mov    -0x30(%rbp),%rax
  movl   $0x0,(%rax)
  jmp    L182
L105:
  mov    -0x30(%rbp),%rax
  mov    (%rax),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  comisd -0x28(%rbp),%xmm0
  seta   %al
  movzbl %al,%eax
  cmp    %eax,-0x8(%rbp)
  je     L30
L182:
  jmp    L162
L163:
  mov    -0x30(%rbp),%rax
  mov    (%rax),%edx
  mov    -0x10(%rbp),%eax
  add    %edx,%eax
  sar    %eax
  mov    %eax,-0x4(%rbp)
  mov    -0x4(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  movsd  -0x28(%rbp),%xmm0
  comisd %xmm1,%xmm0
  seta   %al
  movzbl %al,%eax
  cmp    %eax,-0x8(%rbp)
  jne    L191
  mov    -0x30(%rbp),%rax
  mov    -0x4(%rbp),%edx
  mov    %edx,(%rax)
  jmp    L162
L191:
  mov    -0x4(%rbp),%eax
  mov    %eax,-0x10(%rbp)
L162:
  mov    -0x30(%rbp),%rax
  mov    (%rax),%edx
  mov    -0x10(%rbp),%eax
  sub    %edx,%eax
  cmp    $0x1,%eax
  jne    L163
  jmp    L64
L58:
  nop
L64:
  pop    %rbp
  ret
```

assistant: ```c
void hunt(double xx[], int n, double x, int *jlo) {
  int jm, jhi, inc, ascnd;
  ascnd = (xx[n] > xx[1]);
  if (*jlo <= 0 || *jlo > n) {
    *jlo = 0;
    jhi = n + 1;
  } else {
    inc = 1;
    if (x >= xx[*jlo] == ascnd) {
      if (*jlo == n)
        return;
      jhi = (*jlo) + 1;
      while (x >= xx[jhi] == ascnd) {
        *jlo = jhi;
        inc += inc;
        jhi = (*jlo) + inc;
        if (jhi > n) {
          jhi = n + 1;
          break;
        }
      }
    } else {
      if (*jlo == 1) {
        *jlo = 0;
        return;
      }
      jhi = (*jlo);
      *jlo -= 1;
      while (x < xx[*jlo] == ascnd) {
        jhi = (*jlo);
        inc += inc;
        *jlo = jhi - inc;
        if (*jlo < 1) {
          *jlo = 0;
          break;
        }
      }
    }
  }
  while (jhi - (*jlo) != 1) {
    jm = (jhi + (*jlo)) >> 1;
    if (x > xx[jm] == ascnd)
      *jlo = jm;
    else
      jhi = jm;
  }
}
```