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

```asm
<dispoly>:
  endbr64
  push   %r15
  push   %r14
  mov    %rsi,%r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %r8,%rbx
  sub    $0x58,%rsp
  mov    %rdx,0x30(%rsp)
  mov    %ecx,0x2c(%rsp)
  mov    %r9,0x40(%rsp)
  test   %ecx,%ecx
  jle    L207
  lea    -0x1(%rcx),%edx
  pxor   %xmm7,%xmm7
  mov    %r8,%rax
  lea    0x8(%r8,%rdx,8),%rdx
  movsd  %xmm7,0x18(%rsp)
  jmp    L158
  nopl   0x0(%rax)
L32:
  add    $0x8,%rax
  cmp    %rdx,%rax
  je     L207
L158:
  movsd  0x18(%rsp),%xmm4
  ucomisd (%rax),%xmm4
  jp     L32
  jne    L32
L255:
  mov    0x40(%rsp),%rax
  movq   $0x0,(%rax)
L10:
  add    $0x58,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L207:
  movslq 0x34(%r14),%rax
  mov    0x30(%rsp),%rdi
  movslq 0x18(%r14),%rcx
  lea    (%rdi,%rax,8),%r15
  mov    %r15,0x48(%rsp)
  test   %ecx,%ecx
  jle    L165
  mov    0x2c(%rsp),%eax
  movl   $0x0,0x10(%rsp)
  pxor   %xmm7,%xmm7
  movsd  %xmm7,0x18(%rsp)
  lea    0x1(%rax),%r13d
  movslq %r13d,%rax
  shl    $0x3,%rax
  mov    %rax,0x38(%rsp)
  mov    %r13d,%eax
  mov    %rax,0x8(%rsp)
  nopl   0x0(%rax)
L216:
  mov    0x10(%rsp),%eax
  imul   0x20(%r14),%eax
  mov    0x30(%rsp),%rdi
  cltq
  lea    (%rdi,%rax,8),%rbp
  mov    0x38(%rsp),%rax
  mov    0x2c(%rsp),%edi
  movsd  0x0(%rbp),%xmm0
  lea    0x0(%rbp,%rax,1),%r12
  movsd  %xmm0,(%r15)
  movsd  (%r12),%xmm5
  movsd  %xmm5,0x20(%rsp)
  test   %edi,%edi
  jle    L157
  mov    $0x1,%r13d
  nopw   0x0(%rax,%rax,1)
L217:
  movsd  0x0(%rbp,%r13,8),%xmm3
  movsd  -0x8(%rbx,%r13,8),%xmm0
  movsd  (%r12,%r13,8),%xmm1
  add    $0x1,%r13
  movsd  %xmm3,(%rsp)
  call   <pow@plt>
  mulsd  (%rsp),%xmm0
  addsd  (%r15),%xmm0
  movsd  %xmm0,(%r15)
  cmp    %r13,0x8(%rsp)
  jne    L217
L157:
  movsd  0x20(%rsp),%xmm1
  call   <pow@plt>
  ucomisd 0x18(%rsp),%xmm0
  movsd  %xmm0,(%r15)
  jp     L174
  je     L255
L174:
  addl   $0x1,0x10(%rsp)
  movslq 0x18(%r14),%rcx
  add    $0x8,%r15
  mov    0x10(%rsp),%eax
  cmp    %eax,%ecx
  jg     L216
  movslq 0x3c(%r14),%rax
  mov    0x30(%rsp),%rdi
  mov    0x2c(%rsp),%esi
  lea    (%r14,%rax,4),%rax
  mov    %rax,0x18(%rsp)
  movslq 0x38(%r14),%rax
  lea    (%rdi,%rax,8),%r13
  test   %esi,%esi
  jle    L226
L44:
  mov    %r13,%rax
  xor    %esi,%esi
  nopw   0x0(%rax,%rax,1)
L134:
  mov    0x18(%rsp),%rdi
  movslq (%rdi,%rsi,4),%rdx
  test   %edx,%edx
  jle    L104
  movsd  D10(%rip),%xmm0
  lea    (%rax,%rdx,8),%rdx
  nopl   0x0(%rax)
L210:
  mulsd  (%rbx),%xmm0
  add    $0x8,%rax
  movsd  %xmm0,-0x8(%rax)
  cmp    %rax,%rdx
  jne    L210
L104:
  add    $0x1,%rsi
  add    $0x8,%rbx
  cmp    %esi,0x2c(%rsp)
  jg     L134
  movslq 0x2c(%rsp),%rsi
  mov    $0x4,%edx
  mov    %rsi,%rdi
  shl    $0x2,%rsi
  test   %edi,%edi
  cmovle %rdx,%rsi
  add    0x18(%rsp),%rsi
L20:
  test   %ecx,%ecx
  jle    L125
  mov    0x48(%rsp),%rdx
  lea    (%rsi,%rcx,4),%rdi
  nopl   0x0(%rax)
L232:
  movslq (%rsi),%rcx
  test   %ecx,%ecx
  jle    L180
  movsd  D10(%rip),%xmm0
  lea    (%rax,%rcx,8),%rcx
  nopl   0x0(%rax,%rax,1)
L258:
  mulsd  (%rdx),%xmm0
  add    $0x8,%rax
  movsd  %xmm0,-0x8(%rax)
  cmp    %rcx,%rax
  jne    L258
L180:
  add    $0x4,%rsi
  add    $0x8,%rdx
  cmp    %rsi,%rdi
  jne    L232
L125:
  mov    0x40(%rsp),%rax
  mov    0x30(%rsp),%rdi
  mov    0x1c(%r14),%ecx
  movq   $0x0,(%rax)
  movslq 0x44(%r14),%rax
  lea    (%r14,%rax,4),%r15
  movslq 0x48(%r14),%rax
  lea    (%r14,%rax,4),%rsi
  movslq 0x30(%r14),%rax
  lea    (%rdi,%rax,8),%rbp
  lea    -0x8(%r13),%rax
  xor    %r13d,%r13d
  mov    %rax,0x20(%rsp)
  test   %ecx,%ecx
  jle    L10
L108:
  mov    0x28(%r14),%edx
  movsd  0x0(%rbp),%xmm2
  lea    0x8(%rbp),%rcx
  test   %edx,%edx
  jle    L13
  mov    0x20(%rsp),%rax
  mov    0x18(%rsp),%r12
  mov    %rcx,%rbp
  xor    %ebx,%ebx
  jmp    L198
  cs nopw 0x0(%rax,%rax,1)
L42:
  movslq (%rsi),%r8
  movsd  (%rax,%r8,8),%xmm0
  test   %r8d,%r8d
  js     L194
  mulsd  %xmm0,%xmm2
  nopw   0x0(%rax,%rax,1)
L296:
  movslq (%r12),%rcx
  add    $0x4,%r15
  add    $0x4,%rsi
  add    $0x8,%rbp
  add    $0x4,%r12
  add    $0x1,%ebx
  lea    (%rax,%rcx,8),%rax
  cmp    %ebx,0x28(%r14)
  jle    L151
L198:
  mov    (%r15),%ecx
  test   $0x2,%cl
  jne    L296
  test   %ecx,%ecx
  jne    L42
  movsd  (%rax),%xmm0
  movsd  0x0(%rbp),%xmm1
  mov    %rsi,0x10(%rsp)
  mov    %rax,(%rsp)
  movsd  %xmm2,0x8(%rsp)
  call   <pow@plt>
  movsd  0x8(%rsp),%xmm2
  mov    0x10(%rsp),%rsi
  mov    (%rsp),%rax
  mulsd  %xmm0,%xmm2
  jmp    L296
  nopw   0x0(%rax,%rax,1)
L194:
  divsd  %xmm0,%xmm2
  jmp    L296
L13:
  mov    %rcx,%rbp
  nopl   0x0(%rax)
L151:
  mov    0x40(%rsp),%rax
  add    $0x1,%r13d
  addsd  (%rax),%xmm2
  movsd  %xmm2,(%rax)
  cmp    %r13d,0x1c(%r14)
  jg     L108
  jmp    L10
L165:
  movslq 0x3c(%r14),%rax
  mov    0x30(%rsp),%rdi
  lea    (%r14,%rax,4),%rax
  mov    %rax,0x18(%rsp)
  movslq 0x38(%r14),%rax
  lea    (%rdi,%rax,8),%r13
  mov    0x2c(%rsp),%eax
  test   %eax,%eax
  jg     L44
  jmp    L125
L226:
  mov    0x18(%rsp),%rsi
  mov    %r13,%rax
  jmp    L20
```

tool_calls: name: retrieve_data
arguments: data_tag: D10
data_type: f64

tool: D10: 1

assistant: ```c
int dispoly(int dummy, const int iparm[], const double dparm[], int Nhat, const double rawcrd[], double *discrd) {
  const int *iflgp, *imaxp, *imaxpow, *ipowp;
  int ip, ivar, jhat, k, m;
  const double *cptr, *dpolp, *pptr;
  double *aux, auxp0, *dvarpow, *dpowp, term, var;
  for (jhat = 0; jhat < Nhat; jhat++) {
    if (rawcrd[jhat] == 0.0) {
      *discrd = 0.0;
      return 0;
    }
  }
  aux = (double *)(dparm + iparm[13]);
  for (k = 0; k < iparm[6]; k++) {
    cptr = dparm + k * iparm[8];
    pptr = cptr + (1 + Nhat);
    aux[k] = *(cptr++);
    auxp0 = *(pptr++);
    for (jhat = 0; jhat < Nhat; jhat++) {
      aux[k] += *(cptr++) * pow(rawcrd[jhat], *(pptr++));
    }
    aux[k] = pow(aux[k], auxp0);
    if (aux[k] == 0.0) {
      *discrd = 0.0;
      return 0;
    }
  }
  imaxpow = iparm + iparm[15];
  dvarpow = (double *)(dparm + iparm[14]);
  imaxp = imaxpow;
  dpowp = dvarpow;
  for (jhat = 0; jhat < Nhat; jhat++, imaxp++) {
    var = 1.0;
    for (ip = 0; ip < *imaxp; ip++, dpowp++) {
      var *= rawcrd[jhat];
      *dpowp = var;
    }
  }
  for (k = 0; k < iparm[6]; k++, imaxp++) {
    var = 1.0;
    for (ip = 0; ip < *imaxp; ip++, dpowp++) {
      var *= aux[k];
      *dpowp = var;
    }
  }
  *discrd = 0.0;
  iflgp = iparm + iparm[17];
  ipowp = iparm + iparm[18];
  dpolp = dparm + iparm[12];
  for (m = 0; m < iparm[7]; m++) {
    term = *(dpolp++);
    imaxp = imaxpow;
    dpowp = dvarpow - 1;
    for (ivar = 0; ivar < iparm[10]; ivar++) {
      if (*iflgp & 2) {
      } else if (*iflgp) {
        if (*ipowp < 0) {
          term /= dpowp[*ipowp];
        } else {
          term *= dpowp[*ipowp];
        }
      } else {
        term *= pow(dpowp[0], *dpolp);
      }
      iflgp++;
      ipowp++;
      dpolp++;
      dpowp += *imaxp;
      imaxp++;
    }
    *discrd += term;
  }
  return 0;
}
```