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

```asm
<frprmn>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    %rdi,%r14
  mov    %rdi,0x8(%rsp)
  mov    %esi,%r15d
  movss  %xmm0,0x34(%rsp)
  mov    %rdx,0x38(%rsp)
  mov    %rcx,%r13
  mov    %r8,0x20(%rsp)
  mov    %r9,0x28(%rsp)
  mov    $0x1,%edi
  call   <vector@plt>
  mov    %rax,%rbp
  mov    %r15d,%esi
  mov    $0x1,%edi
  call   <vector@plt>
  mov    %rax,%r12
  mov    %r15d,%esi
  mov    $0x1,%edi
  call   <vector@plt>
  mov    %rax,%rbx
  mov    %r14,%rdi
  mov    0x20(%rsp),%rax
  call   *%rax
  movss  %xmm0,0x30(%rsp)
  mov    %rbx,%rsi
  mov    %r14,%rdi
  mov    0x28(%rsp),%rax
  call   *%rax
  test   %r15d,%r15d
  jle    L79
  lea    0x1(%r15),%edx
  mov    $0x1,%eax
  movss  D4(%rip),%xmm1
L64:
  movss  (%rbx,%rax,4),%xmm0
  xorps  %xmm1,%xmm0
  movss  %xmm0,0x0(%rbp,%rax,4)
  movss  %xmm0,(%r12,%rax,4)
  movss  %xmm0,(%rbx,%rax,4)
  add    $0x1,%rax
  cmp    %rax,%rdx
  jne    L64
L79:
  mov    $0x1,%r14d
  jmp    L61
L45:
  mov    %r15d,%edx
  mov    $0x1,%esi
  mov    %rbx,%rdi
  call   <free_vector@plt>
  mov    %r15d,%edx
  mov    $0x1,%esi
  mov    %r12,%rdi
  call   <free_vector@plt>
  mov    %r15d,%edx
  mov    $0x1,%esi
  mov    %rbp,%rdi
  call   <free_vector@plt>
L63:
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L73:
  mov    %r15d,%edx
  mov    $0x1,%esi
  mov    %rbx,%rdi
  call   <free_vector@plt>
  mov    %r15d,%edx
  mov    $0x1,%esi
  mov    %r12,%rdi
  call   <free_vector@plt>
  mov    %r15d,%edx
  mov    $0x1,%esi
  mov    %rbp,%rdi
  call   <free_vector@plt>
  jmp    L63
L4:
  movss  (%rbx,%rax,4),%xmm2
  movaps %xmm2,%xmm0
  xorps  D4(%rip),%xmm0
  movss  %xmm0,0x0(%rbp,%rax,4)
  movaps %xmm1,%xmm0
  mulss  (%r12,%rax,4),%xmm0
  subss  %xmm2,%xmm0
  movss  %xmm0,(%r12,%rax,4)
  movss  %xmm0,(%rbx,%rax,4)
  add    $0x1,%rax
  cmp    %rdx,%rax
  jne    L4
  add    $0x1,%r14d
  cmp    $0xc9,%r14d
  je     L41
L61:
  mov    0x38(%rsp),%rax
  mov    %r14d,(%rax)
  mov    0x20(%rsp),%r8
  mov    %r13,%rcx
  mov    %r15d,%edx
  mov    %rbx,%rsi
  mov    0x8(%rsp),%rdi
  call   <linmin@plt>
  movss  0x0(%r13),%xmm0
  subss  0x30(%rsp),%xmm0
  call   <fabs@plt>
  movsd  %xmm0,0x10(%rsp)
  movss  0x0(%r13),%xmm0
  call   <fabs@plt>
  movsd  %xmm0,0x18(%rsp)
  movss  0x30(%rsp),%xmm0
  call   <fabs@plt>
  movsd  0x10(%rsp),%xmm1
  addsd  %xmm1,%xmm1
  addsd  0x18(%rsp),%xmm0
  addsd  D46(%rip),%xmm0
  pxor   %xmm2,%xmm2
  cvtss2sd 0x34(%rsp),%xmm2
  mulsd  %xmm2,%xmm0
  comisd %xmm1,%xmm0
  jae    L45
  movss  0x0(%r13),%xmm6
  movss  %xmm6,0x30(%rsp)
  mov    %rbx,%rsi
  mov    0x8(%rsp),%rdi
  mov    0x28(%rsp),%rax
  call   *%rax
  test   %r15d,%r15d
  jle    L73
  lea    0x1(%r15),%edx
  mov    $0x1,%eax
  pxor   %xmm1,%xmm1
  movaps %xmm1,%xmm3
L85:
  movss  0x0(%rbp,%rax,4),%xmm0
  movaps %xmm0,%xmm2
  mulss  %xmm0,%xmm2
  addss  %xmm2,%xmm3
  movss  (%rbx,%rax,4),%xmm2
  addss  %xmm2,%xmm0
  mulss  %xmm2,%xmm0
  addss  %xmm0,%xmm1
  add    $0x1,%rax
  cmp    %rax,%rdx
  jne    L85
  ucomiss D25(%rip),%xmm3
  jp     L88
  je     L73
L88:
  divss  %xmm3,%xmm1
  mov    $0x1,%eax
  jmp    L4
L41:
  lea    D45(%rip),%rdi
  call   <nrerror@plt>
  jmp    L63
```

tool_calls: name: parse_data
arguments: tag: D4
type: byte[16]
name: parse_data
arguments: tag: D46
type: byte[8]
name: parse_data
arguments: tag: D25
type: f64
name: parse_data
arguments: tag: D45
type: string

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

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

tool: D25: 0

tool: D45: Too many iterations in frprmn

assistant: ```c
void frprmn(float p[], int n, float ftol, int *iter, float *fret, float (*func)(float[]), void (*dfunc)(float[], float[])) {
  void linmin(float p[], float xi[], int n, float *fret, float (*func)(float[]));
  int j, its;
  float gg, gam, fp, dgg;
  float *g, *h, *xi;
  g = vector(1, n);
  h = vector(1, n);
  xi = vector(1, n);
  fp = (*func)(p);
  (*dfunc)(p, xi);
  for (j = 1; j <= n; j++) {
    g[j] = -xi[j];
    xi[j] = h[j] = g[j];
  }
  for (its = 1; its <= 200; its++) {
    *iter = its;
    linmin(p, xi, n, fret, func);
    if (2.0 * fabs(*fret - fp) <= ftol * (fabs(*fret) + fabs(fp) + 1.0e-10)) {
      free_vector(xi, 1, n);
      free_vector(h, 1, n);
      free_vector(g, 1, n);
      return;
    }
    fp = *fret;
    (*dfunc)(p, xi);
    dgg = gg = 0.0;
    for (j = 1; j <= n; j++) {
      gg += g[j] * g[j];
      dgg += (xi[j] + g[j]) * xi[j];
    }
    if (gg == 0.0) {
      free_vector(xi, 1, n);
      free_vector(h, 1, n);
      free_vector(g, 1, n);
      return;
    }
    gam = dgg / gg;
    for (j = 1; j <= n; j++) {
      g[j] = -xi[j];
      xi[j] = h[j] = g[j] + gam * h[j];
    }
  }
  nrerror("Too many iterations in frprmn");
}
```