user: 请将以下的汇编代码转换成C语言代码：

```asm
<brent>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x78,%rsp
  movss  %xmm0,-0x64(%rbp)
  movss  %xmm1,-0x68(%rbp)
  movss  %xmm2,-0x6c(%rbp)
  mov    %rdi,-0x78(%rbp)
  movss  %xmm3,-0x70(%rbp)
  mov    %rsi,-0x80(%rbp)
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0x34(%rbp)
  movss  -0x6c(%rbp),%xmm0
  comiss -0x64(%rbp),%xmm0
  jbe    L143
  movss  -0x64(%rbp),%xmm0
  jmp    L349
L143:
  movss  -0x6c(%rbp),%xmm0
L349:
  movss  %xmm0,-0x5c(%rbp)
  movss  -0x64(%rbp),%xmm0
  comiss -0x6c(%rbp),%xmm0
  jbe    L363
  movss  -0x64(%rbp),%xmm0
  jmp    L314
L363:
  movss  -0x6c(%rbp),%xmm0
L314:
  movss  %xmm0,-0x58(%rbp)
  movss  -0x68(%rbp),%xmm0
  movss  %xmm0,-0x40(%rbp)
  movss  -0x40(%rbp),%xmm0
  movss  %xmm0,-0x3c(%rbp)
  movss  -0x3c(%rbp),%xmm0
  movss  %xmm0,-0x38(%rbp)
  mov    -0x38(%rbp),%eax
  mov    -0x78(%rbp),%rdx
  movd   %eax,%xmm0
  call   *%rdx
  movd   %xmm0,%eax
  mov    %eax,-0x48(%rbp)
  movss  -0x48(%rbp),%xmm0
  movss  %xmm0,-0x50(%rbp)
  movss  -0x50(%rbp),%xmm0
  movss  %xmm0,-0x4c(%rbp)
  movl   $0x1,-0x60(%rbp)
  jmp    L55
L100:
  movss  -0x5c(%rbp),%xmm0
  movaps %xmm0,%xmm1
  addss  -0x58(%rbp),%xmm1
  movss  D91(%rip),%xmm0
  mulss  %xmm1,%xmm0
  movss  %xmm0,-0x30(%rbp)
  mov    -0x38(%rbp),%eax
  movd   %eax,%xmm0
  call   <fabs@plt>
  movd   %xmm0,%eax
  movd   %eax,%xmm0
  mulss  -0x70(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  cvtss2sd %xmm0,%xmm1
  movsd  D33(%rip),%xmm0
  addsd  %xmm1,%xmm0
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,-0x2c(%rbp)
  pxor   %xmm0,%xmm0
  cvtss2sd -0x2c(%rbp),%xmm0
  addsd  %xmm0,%xmm0
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,-0x28(%rbp)
  movss  -0x38(%rbp),%xmm0
  subss  -0x30(%rbp),%xmm0
  movd   %xmm0,%eax
  movd   %eax,%xmm0
  call   <fabs@plt>
  pxor   %xmm2,%xmm2
  cvtss2sd %xmm0,%xmm2
  pxor   %xmm0,%xmm0
  cvtss2sd -0x28(%rbp),%xmm0
  movss  -0x58(%rbp),%xmm1
  subss  -0x5c(%rbp),%xmm1
  pxor   %xmm3,%xmm3
  cvtss2sd %xmm1,%xmm3
  movsd  D99(%rip),%xmm1
  mulsd  %xmm3,%xmm1
  subsd  %xmm1,%xmm0
  comisd %xmm2,%xmm0
  jb     L40
  mov    -0x80(%rbp),%rax
  movss  -0x38(%rbp),%xmm0
  movss  %xmm0,(%rax)
  movss  -0x48(%rbp),%xmm0
  jmp    L412
L40:
  mov    -0x34(%rbp),%eax
  movd   %eax,%xmm0
  call   <fabs@plt>
  movd   %xmm0,%eax
  movd   %eax,%xmm6
  comiss -0x2c(%rbp),%xmm6
  jbe    L372
  movss  -0x38(%rbp),%xmm0
  movaps %xmm0,%xmm1
  subss  -0x3c(%rbp),%xmm1
  movss  -0x48(%rbp),%xmm0
  subss  -0x50(%rbp),%xmm0
  mulss  %xmm1,%xmm0
  movss  %xmm0,-0x24(%rbp)
  movss  -0x38(%rbp),%xmm0
  movaps %xmm0,%xmm1
  subss  -0x40(%rbp),%xmm1
  movss  -0x48(%rbp),%xmm0
  subss  -0x4c(%rbp),%xmm0
  mulss  %xmm1,%xmm0
  movss  %xmm0,-0x20(%rbp)
  movss  -0x38(%rbp),%xmm0
  subss  -0x40(%rbp),%xmm0
  mulss  -0x20(%rbp),%xmm0
  movss  -0x38(%rbp),%xmm1
  subss  -0x3c(%rbp),%xmm1
  mulss  -0x24(%rbp),%xmm1
  subss  %xmm1,%xmm0
  movss  %xmm0,-0x44(%rbp)
  movss  -0x20(%rbp),%xmm0
  subss  -0x24(%rbp),%xmm0
  addss  %xmm0,%xmm0
  movss  %xmm0,-0x20(%rbp)
  movss  -0x20(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  comiss %xmm1,%xmm0
  jbe    L334
  movss  -0x44(%rbp),%xmm0
  movss  D76(%rip),%xmm1
  xorps  %xmm1,%xmm0
  movss  %xmm0,-0x44(%rbp)
L334:
  mov    -0x20(%rbp),%eax
  movd   %eax,%xmm0
  call   <fabs@plt>
  movd   %xmm0,%eax
  mov    %eax,-0x20(%rbp)
  movss  -0x34(%rbp),%xmm0
  movss  %xmm0,-0x1c(%rbp)
  movss  -0x54(%rbp),%xmm0
  movss  %xmm0,-0x34(%rbp)
  mov    -0x44(%rbp),%eax
  movd   %eax,%xmm0
  call   <fabs@plt>
  movd   %xmm0,%ebx
  pxor   %xmm1,%xmm1
  cvtss2sd -0x20(%rbp),%xmm1
  movsd  D99(%rip),%xmm0
  mulsd  %xmm0,%xmm1
  pxor   %xmm0,%xmm0
  cvtss2sd -0x1c(%rbp),%xmm0
  mulsd  %xmm1,%xmm0
  pxor   %xmm7,%xmm7
  cvtsd2ss %xmm0,%xmm7
  movd   %xmm7,%eax
  movd   %eax,%xmm0
  call   <fabs@plt>
  movd   %ebx,%xmm6
  comiss %xmm0,%xmm6
  jae    L403
  movss  -0x5c(%rbp),%xmm0
  subss  -0x38(%rbp),%xmm0
  mulss  -0x20(%rbp),%xmm0
  comiss -0x44(%rbp),%xmm0
  jae    L403
  movss  -0x58(%rbp),%xmm0
  subss  -0x38(%rbp),%xmm0
  movaps %xmm0,%xmm1
  mulss  -0x20(%rbp),%xmm1
  movss  -0x44(%rbp),%xmm0
  comiss %xmm1,%xmm0
  jb     L198
L403:
  movss  -0x38(%rbp),%xmm0
  comiss -0x30(%rbp),%xmm0
  jb     L282
  movss  -0x5c(%rbp),%xmm0
  subss  -0x38(%rbp),%xmm0
  jmp    L288
L282:
  movss  -0x58(%rbp),%xmm0
  subss  -0x38(%rbp),%xmm0
L288:
  movss  %xmm0,-0x34(%rbp)
  pxor   %xmm1,%xmm1
  cvtss2sd -0x34(%rbp),%xmm1
  movsd  D9(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,-0x54(%rbp)
  jmp    L128
L198:
  movss  -0x44(%rbp),%xmm0
  divss  -0x20(%rbp),%xmm0
  movss  %xmm0,-0x54(%rbp)
  movss  -0x38(%rbp),%xmm0
  addss  -0x54(%rbp),%xmm0
  movss  %xmm0,-0x18(%rbp)
  movss  -0x18(%rbp),%xmm0
  movaps %xmm0,%xmm1
  subss  -0x5c(%rbp),%xmm1
  movss  -0x28(%rbp),%xmm0
  comiss %xmm1,%xmm0
  ja     L168
  movss  -0x58(%rbp),%xmm0
  movaps %xmm0,%xmm1
  subss  -0x18(%rbp),%xmm1
  movss  -0x28(%rbp),%xmm0
  comiss %xmm1,%xmm0
  jbe    L128
L168:
  movss  -0x30(%rbp),%xmm0
  subss  -0x38(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  comiss %xmm1,%xmm0
  jb     L335
  mov    -0x2c(%rbp),%eax
  movd   %eax,%xmm0
  call   <fabs@plt>
  movd   %xmm0,%eax
  jmp    L222
L335:
  mov    -0x2c(%rbp),%eax
  movd   %eax,%xmm0
  call   <fabs@plt>
  movd   %xmm0,%eax
  movss  D76(%rip),%xmm0
  movd   %eax,%xmm4
  xorps  %xmm0,%xmm4
  movd   %xmm4,%eax
L222:
  mov    %eax,-0x54(%rbp)
  jmp    L128
L372:
  movss  -0x38(%rbp),%xmm0
  comiss -0x30(%rbp),%xmm0
  jb     L192
  movss  -0x5c(%rbp),%xmm0
  subss  -0x38(%rbp),%xmm0
  jmp    L389
L192:
  movss  -0x58(%rbp),%xmm0
  subss  -0x38(%rbp),%xmm0
L389:
  movss  %xmm0,-0x34(%rbp)
  pxor   %xmm1,%xmm1
  cvtss2sd -0x34(%rbp),%xmm1
  movsd  D9(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,-0x54(%rbp)
L128:
  mov    -0x54(%rbp),%eax
  movd   %eax,%xmm0
  call   <fabs@plt>
  movd   %xmm0,%eax
  movd   %eax,%xmm7
  comiss -0x2c(%rbp),%xmm7
  jb     L203
  movss  -0x38(%rbp),%xmm0
  addss  -0x54(%rbp),%xmm0
  jmp    L190
L203:
  movss  -0x54(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  comiss %xmm1,%xmm0
  jb     L321
  mov    -0x2c(%rbp),%eax
  movd   %eax,%xmm0
  call   <fabs@plt>
  movd   %xmm0,%eax
  jmp    L259
L321:
  mov    -0x2c(%rbp),%eax
  movd   %eax,%xmm0
  call   <fabs@plt>
  movd   %xmm0,%eax
  movss  D76(%rip),%xmm0
  movd   %eax,%xmm5
  xorps  %xmm0,%xmm5
  movd   %xmm5,%eax
L259:
  movd   %eax,%xmm0
  addss  -0x38(%rbp),%xmm0
L190:
  movss  %xmm0,-0x18(%rbp)
  mov    -0x18(%rbp),%eax
  mov    -0x78(%rbp),%rdx
  movd   %eax,%xmm0
  call   *%rdx
  movd   %xmm0,%eax
  mov    %eax,-0x14(%rbp)
  movss  -0x48(%rbp),%xmm0
  comiss -0x14(%rbp),%xmm0
  jb     L293
  movss  -0x18(%rbp),%xmm0
  comiss -0x38(%rbp),%xmm0
  jb     L8
  movss  -0x38(%rbp),%xmm0
  movss  %xmm0,-0x5c(%rbp)
  jmp    L307
L8:
  movss  -0x38(%rbp),%xmm0
  movss  %xmm0,-0x58(%rbp)
L307:
  movss  -0x3c(%rbp),%xmm0
  movss  %xmm0,-0x40(%rbp)
  movss  -0x38(%rbp),%xmm0
  movss  %xmm0,-0x3c(%rbp)
  movss  -0x18(%rbp),%xmm0
  movss  %xmm0,-0x38(%rbp)
  movss  -0x4c(%rbp),%xmm0
  movss  %xmm0,-0x50(%rbp)
  movss  -0x48(%rbp),%xmm0
  movss  %xmm0,-0x4c(%rbp)
  movss  -0x14(%rbp),%xmm0
  movss  %xmm0,-0x48(%rbp)
  jmp    L221
L293:
  movss  -0x38(%rbp),%xmm0
  comiss -0x18(%rbp),%xmm0
  jbe    L213
  movss  -0x18(%rbp),%xmm0
  movss  %xmm0,-0x5c(%rbp)
  jmp    L394
L213:
  movss  -0x18(%rbp),%xmm0
  movss  %xmm0,-0x58(%rbp)
L394:
  movss  -0x4c(%rbp),%xmm0
  comiss -0x14(%rbp),%xmm0
  jae    L341
  movss  -0x3c(%rbp),%xmm0
  ucomiss -0x38(%rbp),%xmm0
  jp     L232
  movss  -0x3c(%rbp),%xmm0
  ucomiss -0x38(%rbp),%xmm0
  jne    L232
L341:
  movss  -0x3c(%rbp),%xmm0
  movss  %xmm0,-0x40(%rbp)
  movss  -0x18(%rbp),%xmm0
  movss  %xmm0,-0x3c(%rbp)
  movss  -0x4c(%rbp),%xmm0
  movss  %xmm0,-0x50(%rbp)
  movss  -0x14(%rbp),%xmm0
  movss  %xmm0,-0x4c(%rbp)
  jmp    L221
L232:
  movss  -0x50(%rbp),%xmm0
  comiss -0x14(%rbp),%xmm0
  jae    L82
  movss  -0x40(%rbp),%xmm0
  ucomiss -0x38(%rbp),%xmm0
  jp     L300
  movss  -0x40(%rbp),%xmm0
  ucomiss -0x38(%rbp),%xmm0
  je     L82
L300:
  movss  -0x40(%rbp),%xmm0
  ucomiss -0x3c(%rbp),%xmm0
  jp     L221
  movss  -0x40(%rbp),%xmm0
  ucomiss -0x3c(%rbp),%xmm0
  jne    L221
L82:
  movss  -0x18(%rbp),%xmm0
  movss  %xmm0,-0x40(%rbp)
  movss  -0x14(%rbp),%xmm0
  movss  %xmm0,-0x50(%rbp)
L221:
  addl   $0x1,-0x60(%rbp)
L55:
  cmpl   $0x64,-0x60(%rbp)
  jle    L100
  lea    D59(%rip),%rax
  mov    %rax,%rdi
  call   <nrerror@plt>
  mov    -0x80(%rbp),%rax
  movss  -0x38(%rbp),%xmm0
  movss  %xmm0,(%rax)
  movss  -0x48(%rbp),%xmm0
L412:
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: tag: D91
type: f32
name: extract_symbolic_data
arguments: tag: D33
type: byte[8]
name: extract_symbolic_data
arguments: tag: D99
type: f32[2]
name: extract_symbolic_data
arguments: tag: D76
type: byte[4]
name: extract_symbolic_data
arguments: tag: D9
type: f64
name: extract_symbolic_data
arguments: tag: D59
type: string

tool: D91: 0.5

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

tool: {"D99": [0.0,1.75]}

tool: {"D76": [0x00,0x00,0x00,0x80]}

tool: D9: 0.381966

tool: D59: Too many iterations in brent

assistant: ```c
float brent(float ax, float bx, float cx, float (*f)(float), float tol, float *xmin) {
  int iter;
  float a, b, d, etemp, fu, fv, fw, fx, p, q, r, tol1, tol2, u, v, w, x, xm;
  float e = 0.0;
  a = (ax < cx ? ax : cx);
  b = (ax > cx ? ax : cx);
  x = w = v = bx;
  fw = fv = fx = (*f)(x);
  for (iter = 1; iter <= 100; iter++) {
    xm = 0.5 * (a + b);
    tol2 = 2.0 * (tol1 = tol * fabs(x) + 1.0e-10);
    if (fabs(x - xm) <= (tol2 - 0.5 * (b - a))) {
      *xmin = x;
      return fx;
    }
    if (fabs(e) > tol1) {
      r = (x - w) * (fx - fv);
      q = (x - v) * (fx - fw);
      p = (x - v) * q - (x - w) * r;
      q = 2.0 * (q - r);
      if (q > 0.0)
        p = -p;
      q = fabs(q);
      etemp = e;
      e = d;
      if (fabs(p) >= fabs(0.5 * q * etemp) || p <= q * (a - x) || p >= q * (b - x))
        d = 0.3819660 * (e = (x >= xm ? a - x : b - x));
      else {
        d = p / q;
        u = x + d;
        if (u - a < tol2 || b - u < tol2)
          d = ((xm - x) >= 0.0 ? fabs(tol1) : -fabs(tol1));
      }
    } else {
      d = 0.3819660 * (e = (x >= xm ? a - x : b - x));
    }
    u = (fabs(d) >= tol1 ? x + d : x + ((d) >= 0.0 ? fabs(tol1) : -fabs(tol1)));
    fu = (*f)(u);
    if (fu <= fx) {
      if (u >= x)
        a = x;
      else
        b = x;
      (v) = (w);
      (w) = (x);
      (x) = (u);
      (fv) = (fw);
      (fw) = (fx);
      (fx) = (fu);
    } else {
      if (u < x)
        a = u;
      else
        b = u;
      if (fu <= fw || w == x) {
        v = w;
        w = u;
        fv = fw;
        fw = fu;
      } else if (fu <= fv || v == x || v == w) {
        v = u;
        fv = fu;
      }
    }
  }
  nrerror("Too many iterations in brent");
  *xmin = x;
  return fx;
}
```