user: Converte this assembly snippet into its equivalent C code:

```asm
<mnbrak>:
  endbr64
  push   %r15
  mov    $0x1,%eax
  mov    %r8,%r15
  push   %r14
  mov    %rdx,%r14
  push   %r13
  mov    %rsi,%r13
  push   %r12
  mov    %r9,%r12
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  mov    %rcx,%rbx
  sub    $0x18,%rsp
  movsd  (%rdi),%xmm0
  call   *0x50(%rsp)
  mov    $0x1,%eax
  movsd  %xmm0,(%rbx)
  movsd  0x0(%r13),%xmm0
  call   *0x50(%rsp)
  movsd  %xmm0,(%r15)
  comisd (%rbx),%xmm0
  jbe    L73
  movsd  0x0(%rbp),%xmm0
  movsd  0x0(%r13),%xmm1
  movsd  %xmm1,0x0(%rbp)
  movsd  %xmm0,0x0(%r13)
  movsd  (%r15),%xmm0
  movsd  (%rbx),%xmm1
  movsd  %xmm1,(%r15)
  movsd  %xmm0,(%rbx)
L73:
  movsd  0x0(%r13),%xmm1
  mov    $0x1,%eax
  movapd %xmm1,%xmm0
  subsd  0x0(%rbp),%xmm0
  mulsd  D92(%rip),%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,(%r14)
  call   *0x50(%rsp)
  movsd  %xmm0,(%r12)
  movsd  (%r15),%xmm1
  comisd %xmm0,%xmm1
  ja     L115
  jmp    L104
  nopw   0x0(%rax,%rax,1)
L105:
  comisd D99(%rip),%xmm3
  ja     L59
  mov    D49(%rip),%rax
  movapd %xmm6,%xmm7
  movq   %rax,%xmm3
L86:
  divsd  %xmm3,%xmm0
  movapd %xmm2,%xmm1
  subsd  %xmm0,%xmm1
  movapd %xmm2,%xmm0
  movapd %xmm1,%xmm3
  subsd  %xmm1,%xmm0
  subsd  %xmm5,%xmm3
  mulsd  %xmm3,%xmm0
  comisd %xmm7,%xmm0
  jbe    L49
  movapd %xmm1,%xmm0
  movsd  %xmm1,0x8(%rsp)
  mov    $0x1,%eax
  call   *0x50(%rsp)
  movsd  (%r12),%xmm2
  movsd  0x8(%rsp),%xmm1
  comisd %xmm0,%xmm2
  ja     L78
  comisd (%r15),%xmm0
  ja     L9
  movsd  (%r14),%xmm0
  movapd %xmm0,%xmm1
  subsd  0x0(%r13),%xmm1
  mulsd  D92(%rip),%xmm1
  addsd  %xmm0,%xmm1
L164:
  movapd %xmm1,%xmm0
  movsd  %xmm1,0x8(%rsp)
  mov    $0x1,%eax
  call   *0x50(%rsp)
  movsd  0x8(%rsp),%xmm1
L167:
  movsd  0x0(%r13),%xmm2
  movsd  %xmm2,0x0(%rbp)
  movsd  (%r14),%xmm2
  movsd  %xmm2,0x0(%r13)
  movsd  %xmm1,(%r14)
  movsd  (%r15),%xmm1
  movsd  %xmm1,(%rbx)
  movsd  (%r12),%xmm1
  movsd  %xmm1,(%r15)
  movsd  %xmm0,(%r12)
  movsd  (%r15),%xmm1
  comisd %xmm0,%xmm1
  jbe    L104
L115:
  movsd  0x0(%r13),%xmm2
  movapd %xmm1,%xmm3
  subsd  (%rbx),%xmm1
  pxor   %xmm6,%xmm6
  movsd  (%r14),%xmm5
  subsd  %xmm0,%xmm3
  movapd %xmm2,%xmm0
  movapd %xmm2,%xmm4
  subsd  0x0(%rbp),%xmm4
  subsd  %xmm5,%xmm0
  mulsd  %xmm4,%xmm3
  mulsd  %xmm0,%xmm1
  mulsd  %xmm3,%xmm4
  mulsd  %xmm1,%xmm0
  subsd  %xmm3,%xmm1
  comisd %xmm6,%xmm1
  movapd %xmm1,%xmm3
  andpd  D57(%rip),%xmm3
  subsd  %xmm4,%xmm0
  ja     L105
  comisd D99(%rip),%xmm3
  jbe    L35
  xorpd  D31(%rip),%xmm3
L59:
  addsd  %xmm3,%xmm3
  movapd %xmm6,%xmm7
  jmp    L86
  nopl   0x0(%rax)
L49:
  movapd %xmm5,%xmm3
  movsd  D32(%rip),%xmm0
  movapd %xmm1,%xmm4
  subsd  %xmm2,%xmm3
  mulsd  %xmm3,%xmm0
  addsd  %xmm0,%xmm2
  movapd %xmm5,%xmm0
  subsd  %xmm1,%xmm0
  subsd  %xmm2,%xmm4
  mulsd  %xmm4,%xmm0
  comisd %xmm7,%xmm0
  jbe    L66
  movapd %xmm1,%xmm0
  movsd  %xmm1,0x8(%rsp)
  mov    $0x1,%eax
  call   *0x50(%rsp)
  movsd  (%r12),%xmm2
  movsd  0x8(%rsp),%xmm1
  comisd %xmm0,%xmm2
  jbe    L167
  movsd  (%r14),%xmm2
  movsd  %xmm2,0x0(%r13)
  movapd %xmm1,%xmm2
  movsd  %xmm1,(%r14)
  subsd  0x0(%r13),%xmm2
  mulsd  D92(%rip),%xmm2
  addsd  %xmm2,%xmm1
  movsd  (%r12),%xmm2
  movsd  %xmm2,(%r15)
  movsd  %xmm0,(%r12)
  jmp    L164
  nop
L35:
  mov    D88(%rip),%rax
  movapd %xmm6,%xmm7
  movq   %rax,%xmm3
  jmp    L86
  nopl   (%rax)
L66:
  movapd %xmm2,%xmm0
  subsd  %xmm5,%xmm0
  mulsd  %xmm4,%xmm0
  comisd %xmm7,%xmm0
  jb     L88
  movapd %xmm2,%xmm0
  movsd  %xmm2,0x8(%rsp)
  mov    $0x1,%eax
  call   *0x50(%rsp)
  movsd  0x8(%rsp),%xmm2
  movapd %xmm2,%xmm1
  jmp    L167
  nopl   0x0(%rax)
L78:
  movsd  0x0(%r13),%xmm2
  movsd  %xmm2,0x0(%rbp)
  movsd  %xmm1,0x0(%r13)
  movsd  (%r15),%xmm1
  movsd  %xmm1,(%rbx)
  movsd  %xmm0,(%r15)
L104:
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  xchg   %ax,%ax
L88:
  mulsd  D92(%rip),%xmm3
  addsd  %xmm5,%xmm3
  movapd %xmm3,%xmm1
  jmp    L164
  nopl   (%rax)
L9:
  movsd  %xmm1,(%r14)
  movsd  %xmm0,(%r12)
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: parse_data
arguments: data_label: D92
data_type: f64
name: parse_data
arguments: data_label: D99
data_type: byte[16]
name: parse_data
arguments: data_label: D49
data_type: byte[8]
name: parse_data
arguments: data_label: D57
data_type: qword[2]
name: parse_data
arguments: data_label: D31
data_type: f32[4]
name: parse_data
arguments: data_label: D32
data_type: f64
name: parse_data
arguments: data_label: D88
data_type: byte[8]

tool: D92: 1.61803398875

tool: {"D99": [0xbc,0x89,0xd8,0x97,0xb2,0xd2,0x9c,0x3c,0x00,0x00,0x00,0x00,0x00,0x00,0x59,0x40]}

tool: {"D49": [0xbc,0x89,0xd8,0x97,0xb2,0xd2,0xac,0x3c]}

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

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

tool: D32: 100

tool: {"D88": [0xbc,0x89,0xd8,0x97,0xb2,0xd2,0xac,0xbc]}

assistant: ```c
void mnbrak(ax, bx, cx, fa, fb, fc, func) double *ax, *bx, *cx, *fa, *fb, *fc;
double (*func)();
{
  double ulim, u, r, q, fu, dum;
  *fa = (*func)(*ax);
  *fb = (*func)(*bx);
  if (*fb > *fa) {
    (dum) = (*ax);
    (*ax) = (*bx);
    (*bx) = (dum);
    (dum) = (*fb);
    (*fb) = (*fa);
    (*fa) = (dum);
  }
  *cx = (*bx) + 1.618033988750 * (*bx - *ax);
  *fc = (*func)(*cx);
  while (*fb > *fc) {
    r = (*bx - *ax) * (*fb - *fc);
    q = (*bx - *cx) * (*fb - *fa);
    u = (*bx) - ((*bx - *cx) * q - (*bx - *ax) * r) / (2.0 * ((q - r) > 0.0 ? fabs(((fabs(q - r)) > (1.0e-16) ? (fabs(q - r)) : (1.0e-16))) : -fabs(((fabs(q - r)) > (1.0e-16) ? (fabs(q - r)) : (1.0e-16)))));
    ulim = (*bx) + 100.0 * (*cx - *bx);
    if ((*bx - u) * (u - *cx) > 0.0) {
      fu = (*func)(u);
      if (fu < *fc) {
        *ax = (*bx);
        *bx = u;
        *fa = (*fb);
        *fb = fu;
        return;
      } else if (fu > *fb) {
        *cx = u;
        *fc = fu;
        return;
      }
      u = (*cx) + 1.618033988750 * (*cx - *bx);
      fu = (*func)(u);
    } else if ((*cx - u) * (u - ulim) > 0.0) {
      fu = (*func)(u);
      if (fu < *fc) {
        (*bx) = (*cx);
        (*cx) = (u);
        (u) = (*cx + 1.618033988750 * (*cx - *bx));
        (*fb) = (*fc);
        (*fc) = (fu);
        (fu) = ((*func)(u));
      }
    } else if ((u - ulim) * (ulim - *cx) >= 0.0) {
      u = ulim;
      fu = (*func)(u);
    } else {
      u = (*cx) + 1.618033988750 * (*cx - *bx);
      fu = (*func)(u);
    }
    (*ax) = (*bx);
    (*bx) = (*cx);
    (*cx) = (u);
    (*fa) = (*fb);
    (*fb) = (*fc);
    (*fc) = (fu);
  }
}
```