user: Translate the below assembly code into C programming language:

```asm
<BSbisection>:
  endbr64
  push   %r15
  movapd %xmm5,%xmm7
  movq   %xmm0,%r15
  push   %r14
  push   %rbp
  mov    $0x65,%ebp
  push   %rbx
  mov    %edi,%ebx
  sub    $0x48,%rsp
  mov    D107(%rip),%rax
  mov    %rax,%r14
  mov    D65(%rip),%rax
  movq   %rax,%xmm8
  jmp    L95
  nopl   0x0(%rax)
L56:
  comisd D107(%rip),%xmm5
  jbe    L102
  mov    D107(%rip),%rax
  mov    $0x1,%edi
  movq   %rax,%xmm5
  nop
L112:
  movsd  %xmm7,0x30(%rsp)
  movsd  %xmm4,0x28(%rsp)
  movsd  %xmm3,0x20(%rsp)
  movsd  %xmm2,0x18(%rsp)
  movsd  %xmm1,0x10(%rsp)
  movsd  %xmm5,0x8(%rsp)
  movsd  %xmm8,0x38(%rsp)
  call   <assert@plt>
  movsd  0x8(%rsp),%xmm5
  movq   %r15,%xmm0
  mov    %ebx,%edi
  movsd  0x18(%rsp),%xmm2
  movsd  0x28(%rsp),%xmm4
  movsd  0x20(%rsp),%xmm3
  movsd  0x10(%rsp),%xmm1
  call   <BSAmericanApprox@plt>
  movsd  0x30(%rsp),%xmm7
  movsd  D96(%rip),%xmm2
  movsd  0x8(%rsp),%xmm5
  movapd %xmm7,%xmm6
  subsd  %xmm0,%xmm6
  andpd  D75(%rip),%xmm6
  comisd %xmm6,%xmm2
  jae    L67
  cmpltsd %xmm7,%xmm0
  movsd  0x38(%rsp),%xmm8
  movq   %r14,%xmm6
  sub    $0x1,%ebp
  movsd  0x10(%rsp),%xmm1
  movsd  0x18(%rsp),%xmm2
  movsd  0x20(%rsp),%xmm3
  movsd  0x28(%rsp),%xmm4
  movapd %xmm0,%xmm9
  andpd  %xmm0,%xmm6
  andnpd %xmm5,%xmm9
  andpd  %xmm0,%xmm5
  andnpd %xmm8,%xmm0
  orpd   %xmm6,%xmm9
  orpd   %xmm5,%xmm0
  movq   %xmm9,%r14
  movapd %xmm0,%xmm8
  je     L43
L95:
  movapd %xmm8,%xmm5
  mov    %ebx,%edi
  movq   %r15,%xmm0
  movsd  %xmm7,0x30(%rsp)
  movsd  %xmm8,0x38(%rsp)
  movsd  %xmm4,0x28(%rsp)
  movsd  %xmm3,0x20(%rsp)
  movsd  %xmm2,0x18(%rsp)
  movsd  %xmm1,0x10(%rsp)
  call   <BSAmericanApprox@plt>
  movsd  0x28(%rsp),%xmm4
  movq   %r14,%xmm5
  mov    %ebx,%edi
  movsd  0x20(%rsp),%xmm3
  movsd  0x18(%rsp),%xmm2
  movsd  %xmm0,0x8(%rsp)
  movq   %r15,%xmm0
  movsd  0x10(%rsp),%xmm1
  call   <BSAmericanApprox@plt>
  movsd  0x8(%rsp),%xmm9
  movsd  0x30(%rsp),%xmm7
  comisd %xmm7,%xmm9
  ja     L43
  comisd %xmm0,%xmm7
  ja     L68
  movsd  0x38(%rsp),%xmm8
  movapd %xmm7,%xmm6
  movq   %r14,%xmm5
  subsd  %xmm9,%xmm0
  subsd  %xmm9,%xmm6
  movsd  D65(%rip),%xmm1
  movsd  0x18(%rsp),%xmm2
  subsd  %xmm8,%xmm5
  movsd  0x20(%rsp),%xmm3
  movsd  0x28(%rsp),%xmm4
  mulsd  %xmm6,%xmm5
  divsd  %xmm0,%xmm5
  addsd  %xmm8,%xmm5
  comisd %xmm5,%xmm1
  movsd  0x10(%rsp),%xmm1
  jbe    L56
  mov    D65(%rip),%rax
  mov    $0x1,%edi
  movq   %rax,%xmm5
  jmp    L112
  nopw   0x0(%rax,%rax,1)
L102:
  ucomisd %xmm5,%xmm5
  jnp    L25
L63:
  xor    %edi,%edi
  jmp    L112
  nopl   (%rax)
L25:
  comisd D65(%rip),%xmm5
  jb     L63
  movsd  D107(%rip),%xmm6
  xor    %edi,%edi
  comisd %xmm5,%xmm6
  setae  %dil
  jmp    L112
  nopl   0x0(%rax)
L43:
  pxor   %xmm5,%xmm5
L67:
  add    $0x48,%rsp
  movapd %xmm5,%xmm0
  pop    %rbx
  pop    %rbp
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L68:
  mov    D107(%rip),%rax
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  movq   %rax,%xmm5
  pop    %r14
  pop    %r15
  movapd %xmm5,%xmm0
  ret
```

tool_calls: name: retrieve_data
arguments: tag: D107
type_guessed: f64[2]
name: retrieve_data
arguments: tag: D65
type_guessed: f64[2]
name: retrieve_data
arguments: tag: D96
type_guessed: f64
name: retrieve_data
arguments: tag: D75
type_guessed: qword[2]

tool: {"D107": [100.99999,1e-7]}

tool: {"D65": [1e-7,1e-6]}

tool: D96: 1e-06

tool: {"D75": [0x7fffffffffffffff,0x0000000000000000]}

assistant: ```c
extern double BSbisection(int fCall, double S, double X, double T, double r, double b, double price) {
  double vLow = 0.0000001;
  double vHigh = 100.99999, cLow, cHigh;
  double epsilon = 0.000001;
  double val, diff, vi = 0.0;
  int counter = 0;
  for (;;) {
    cLow = BSAmericanApprox(fCall, S, X, T, r, b, vLow);
    cHigh = BSAmericanApprox(fCall, S, X, T, r, b, vHigh);
    if (price < cLow)
      return 0.0;
    else if (price > cHigh)
      return 100.99999;
    vi = vLow + (price - cLow) * (vHigh - vLow) / (cHigh - cLow);
    if (vi < 0.0000001)
      vi = 0.0000001;
    else if (vi > 100.99999)
      vi = 100.99999;
    assert(((vi) == (vi)) && (vi) >= 0.0000001 && vi <= 100.99999);
    val = BSAmericanApprox(fCall, S, X, T, r, b, vi);
    diff = price - val;
    if (fabs(diff) <= epsilon)
      break;
    else if (val < price)
      vLow = vi;
    else
      vHigh = vi;
    if (counter++ >= 100)
      return 0;
  }
  return vi;
}
```