user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<bessi>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  movsd  %xmm0,-0x38(%rbp)
  movsd  %xmm1,-0x40(%rbp)
  movsd  -0x38(%rbp),%xmm0
  cvttsd2si %xmm0,%eax
  mov    %eax,-0x2c(%rbp)
  cmpl   $0x0,-0x2c(%rbp)
  jne    L43
  mov    -0x40(%rbp),%rax
  movq   %rax,%xmm0
  mov    $0x1,%eax
  call   <bessi0@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  jmp    L13
L43:
  cmpl   $0x1,-0x2c(%rbp)
  jne    L97
  mov    -0x40(%rbp),%rax
  movq   %rax,%xmm0
  mov    $0x1,%eax
  call   <bessi1@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  jmp    L13
L97:
  pxor   %xmm0,%xmm0
  ucomisd -0x40(%rbp),%xmm0
  jp     L59
  pxor   %xmm0,%xmm0
  ucomisd -0x40(%rbp),%xmm0
  jne    L59
  pxor   %xmm0,%xmm0
  jmp    L13
L59:
  movsd  -0x40(%rbp),%xmm0
  movq   D28(%rip),%xmm1
  andpd  %xmm0,%xmm1
  movsd  D55(%rip),%xmm0
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x10(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x18(%rbp)
  movsd  -0x18(%rbp),%xmm0
  movsd  %xmm0,-0x20(%rbp)
  movsd  D84(%rip),%xmm0
  movsd  %xmm0,-0x28(%rbp)
  pxor   %xmm1,%xmm1
  cvtsi2sdl -0x2c(%rbp),%xmm1
  movsd  D65(%rip),%xmm0
  mulsd  %xmm0,%xmm1
  movq   %xmm1,%rax
  movq   %rax,%xmm0
  call   <sqrt@plt>
  cvttsd2si %xmm0,%edx
  mov    -0x2c(%rbp),%eax
  add    %edx,%eax
  add    %eax,%eax
  mov    %eax,-0x30(%rbp)
  jmp    L109
L102:
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0x30(%rbp),%xmm0
  mulsd  -0x10(%rbp),%xmm0
  mulsd  -0x28(%rbp),%xmm0
  movsd  -0x20(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x8(%rbp)
  movsd  -0x28(%rbp),%xmm0
  movsd  %xmm0,-0x20(%rbp)
  movsd  -0x8(%rbp),%xmm0
  movsd  %xmm0,-0x28(%rbp)
  movsd  -0x28(%rbp),%xmm0
  movq   D28(%rip),%xmm1
  andpd  %xmm1,%xmm0
  comisd D11(%rip),%xmm0
  jbe    L56
  movsd  -0x18(%rbp),%xmm1
  movsd  D56(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x18(%rbp)
  movsd  -0x28(%rbp),%xmm1
  movsd  D56(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x28(%rbp)
  movsd  -0x20(%rbp),%xmm1
  movsd  D56(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x20(%rbp)
L56:
  mov    -0x30(%rbp),%eax
  cmp    -0x2c(%rbp),%eax
  jne    L1
  movsd  -0x20(%rbp),%xmm0
  movsd  %xmm0,-0x18(%rbp)
L1:
  subl   $0x1,-0x30(%rbp)
L109:
  cmpl   $0x0,-0x30(%rbp)
  jg     L102
  mov    -0x40(%rbp),%rax
  movq   %rax,%xmm0
  mov    $0x1,%eax
  call   <bessi0@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  divsd  -0x28(%rbp),%xmm0
  movsd  -0x18(%rbp),%xmm1
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x18(%rbp)
  pxor   %xmm0,%xmm0
  comisd -0x40(%rbp),%xmm0
  jbe    L93
  mov    -0x2c(%rbp),%eax
  and    $0x1,%eax
  test   %eax,%eax
  je     L93
  movsd  -0x18(%rbp),%xmm0
  movq   D29(%rip),%xmm1
  xorpd  %xmm1,%xmm0
  jmp    L13
L93:
  movsd  -0x18(%rbp),%xmm0
L13:
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: data_tag: D28
datatype: qword
name: disassemble_data
arguments: data_tag: D55
datatype: f64
name: disassemble_data
arguments: data_tag: D84
datatype: f64
name: disassemble_data
arguments: data_tag: D65
datatype: f64
name: disassemble_data
arguments: data_tag: D11
datatype: f64[2]
name: disassemble_data
arguments: data_tag: D56
datatype: byte[8]
name: disassemble_data
arguments: data_tag: D29
datatype: f32[2]

tool: D28: 9223372036854775807

tool: D55: 2

tool: D84: 1

tool: D65: 40

tool: {"D11": [10000000000.0,1e-10]}

tool: {"D56": [0xbb,0xbd,0xd7,0xd9,0xdf,0x7c,0xdb,0x3d]}

tool: {"D29": [0.0,-0.0]}

assistant: ```c
double bessi(nn, x)
double x;
double nn;
{
  int j, n;
  double bi, bim, bip, tox, ans;
  n = (int)nn;
  if (n == 0)
    return bessi0(x);
  if (n == 1)
    return bessi1(x);
  if (x == 0.0)
    return 0.0;
  else {
    tox = 2.0 / fabs(x);
    bip = ans = 0.0;
    bi = 1.0;
    for (j = 2 * (n + (int)sqrt(40.0 * n)); j > 0; j--) {
      bim = bip + j * tox * bi;
      bip = bi;
      bi = bim;
      if (fabs(bi) > 1.0e10) {
        ans *= 1.0e-10;
        bi *= 1.0e-10;
        bip *= 1.0e-10;
      }
      if (j == n)
        ans = bip;
    }
    ans *= bessi0(x) / bi;
    return x < 0.0 && (n & 1) ? -ans : ans;
  }
}
```