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

```asm
<dfst>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  mov    %rdx,%r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rsi,%rbx
  sub    $0x58,%rsp
  mov    (%rcx),%r12d
  mov    %edi,0xc(%rsp)
  lea    0x0(,%r12,8),%eax
  mov    %rcx,0x48(%rsp)
  mov    %r8,0x40(%rsp)
  cmp    %edi,%eax
  jl     L103
L185:
  mov    0x48(%rsp),%rax
  mov    0x4(%rax),%eax
  mov    %eax,0x18(%rsp)
  add    %eax,%eax
  cmp    0xc(%rsp),%eax
  jl     L329
L300:
  mov    0xc(%rsp),%eax
  cmp    $0x2,%eax
  jle    L127
  mov    %eax,%ebp
  mov    %eax,%r14d
  sar    %ebp
  sar    $0x2,%r14d
  cmp    $0x7,%eax
  jle    L182
  movslq 0xc(%rsp),%r15
  movslq %ebp,%rdi
  movslq %r14d,%rsi
  lea    -0x8(,%rdi,8),%rdx
  mov    %r15,%rax
  sub    %rdi,%rax
  lea    (%rbx,%rax,8),%rcx
  mov    $0x1,%eax
  nopl   0x0(%rax)
L205:
  movsd  (%rbx,%rax,8),%xmm2
  movsd  (%rcx,%rdx,1),%xmm5
  movsd  (%rbx,%rdx,1),%xmm1
  movsd  (%rcx,%rax,8),%xmm4
  movapd %xmm2,%xmm0
  addsd  %xmm5,%xmm2
  subsd  %xmm5,%xmm0
  movapd %xmm1,%xmm3
  addsd  %xmm4,%xmm1
  subsd  %xmm4,%xmm3
  movsd  %xmm2,(%rbx,%rax,8)
  movsd  %xmm1,(%rbx,%rdx,1)
  movapd %xmm0,%xmm1
  addsd  %xmm3,%xmm1
  subsd  %xmm3,%xmm0
  movsd  %xmm1,0x0(%r13,%rax,8)
  add    $0x1,%rax
  movsd  %xmm0,0x0(%r13,%rdx,1)
  sub    $0x8,%rdx
  cmp    %rax,%rsi
  jne    L205
L299:
  mov    0xc(%rsp),%edx
  lea    (%rbx,%rsi,8),%rax
  movslq %r12d,%r12
  mov    %rbx,%rsi
  movsd  (%rax),%xmm0
  sub    %r14d,%edx
  movslq %edx,%rdx
  lea    (%rbx,%rdx,8),%rdx
  subsd  (%rdx),%xmm0
  movsd  %xmm0,0x0(%r13)
  movsd  (%rax),%xmm0
  addsd  (%rdx),%xmm0
  mov    0x18(%rsp),%edx
  movsd  %xmm0,(%rax)
  mov    0x40(%rsp),%rax
  movsd  (%rbx,%rdi,8),%xmm0
  mov    %ebp,%edi
  lea    (%rax,%r12,8),%rax
  movsd  %xmm0,(%rbx)
  lea    -0x8(%rbx,%r15,8),%r12
  mov    %rax,%rcx
  mov    %rax,0x38(%rsp)
  lea    -0x2(%rbp),%r15d
  call   <dstsub@plt>
  cmp    $0x4,%ebp
  jg     L31
  je     L183
  movsd  0x8(%rbx),%xmm0
  subsd  (%rbx),%xmm0
  movsd  %xmm0,(%r12)
  movsd  0x8(%rbx),%xmm0
  addsd  (%rbx),%xmm0
  movsd  %xmm0,0x8(%rbx)
  cmp    $0x1,%r15d
  jle    L256
L305:
  lea    0x1(%r15,%r15,1),%edx
  movq   D3(%rip),%xmm1
  movslq %r15d,%rax
  movslq %edx,%rdx
  lea    (%rbx,%rdx,8),%rdx
  xchg   %ax,%ax
L295:
  movsd  (%rbx,%rax,8),%xmm0
  subsd  0x8(%rbx,%rax,8),%xmm0
  sub    $0x20,%rdx
  movsd  %xmm0,0x20(%rdx)
  movsd  (%rbx,%rax,8),%xmm0
  xorpd  %xmm1,%xmm0
  subsd  0x8(%rbx,%rax,8),%xmm0
  sub    $0x2,%rax
  movsd  %xmm0,0x10(%rdx)
  cmp    $0x1,%eax
  jg     L295
L256:
  mov    $0x2,%r15d
  cmp    $0x1,%r14d
  jle    L263
  nopl   0x0(%rax)
L18:
  mov    0x38(%rsp),%rcx
  mov    0x18(%rsp),%edx
  mov    %r13,%rsi
  mov    %r14d,%edi
  movslq %r15d,%rbp
  call   <dstsub@plt>
  mov    0xc(%rsp),%eax
  lea    (%rbx,%rbp,8),%r12
  sub    %r15d,%eax
  cltq
  lea    (%rbx,%rax,8),%rax
  cmp    $0x4,%r14d
  jg     L52
  je     L219
  movsd  0x8(%r13),%xmm0
  subsd  0x0(%r13),%xmm0
  movsd  %xmm0,(%rax)
  movsd  0x0(%r13),%xmm0
  addsd  0x8(%r13),%xmm0
  movsd  %xmm0,(%r12)
  cmp    $0x3,%r14d
  jne    L240
  lea    0x0(,%r15,4),%edx
  movslq %edx,%rdx
  lea    0x0(,%rdx,8),%rdi
  sub    %rbp,%rdx
  shl    $0x3,%rdx
L224:
  add    %rbx,%rdx
  shl    $0x4,%rbp
  mov    $0x2,%eax
  nopw   0x0(%rax,%rax,1)
L313:
  movsd  0x0(%r13,%rax,8),%xmm0
  xorpd  D3(%rip),%xmm0
  subsd  0x8(%r13,%rax,8),%xmm0
  movsd  %xmm0,(%rdx)
  movsd  0x0(%r13,%rax,8),%xmm0
  subsd  0x8(%r13,%rax,8),%xmm0
  add    $0x2,%rax
  movsd  %xmm0,(%rdx,%rbp,1)
  add    %rdi,%rdx
  cmp    %eax,%r14d
  jg     L313
  mov    %r14d,%r12d
  add    %r15d,%r15d
  sar    %r12d
  cmp    $0x1,%r12d
  je     L1
  nopl   0x0(%rax)
L77:
  movslq %r14d,%r10
  lea    -0x1(%r12),%eax
  mov    %r12d,%r8d
  lea    0x0(,%r10,8),%rcx
  mov    %rax,0x28(%rsp)
  mov    %rax,%rbp
  neg    %rax
  lea    0x8(%rcx),%rsi
  lea    0x0(%r13,%rcx,1),%rdx
  mov    %rcx,%r9
  shl    $0x3,%r8
  lea    0x0(%r13,%rsi,1),%rdi
  mov    %rsi,0x20(%rsp)
  mov    %r10,%rsi
  lea    (%rcx,%rax,8),%r11
  shl    $0x4,%rsi
  lea    0x8(%r13),%rax
  neg    %r9
  mov    %rdi,(%rsp)
  mov    %rsi,0x30(%rsp)
  lea    (%rdx,%rcx,1),%rsi
  lea    0x18(%r13),%rdi
  mov    %rsi,0x10(%rsp)
  lea    0x18(%r13,%rcx,1),%rsi
  cmp    %rsi,%rax
  setae  %sil
  cmp    %rdi,(%rsp)
  setae  %dil
  or     %esi,%edi
  cmp    $0x2,%r12d
  setne  %sil
  and    %esi,%edi
  cmp    %rdx,%rax
  setae  %sil
  cmp    %r11,%r8
  setle  0x1f(%rsp)
  or     0x1f(%rsp),%sil
  and    %edi,%esi
  lea    (%r11,%rcx,1),%rdi
  cmp    %r8,%rdi
  setge  %dil
  cmp    %rax,0x10(%rsp)
  setbe  %r8b
  or     %r8d,%edi
  test   %dil,%sil
  je     L348
  mov    0x28(%rsp),%rdi
  lea    0x1(%rdi,%r10,1),%rsi
  shl    $0x3,%rsi
  cmp    %rsi,%r11
  setge  %sil
  cmp    %rcx,0x20(%rsp)
  setge  %dil
  or     %sil,%dil
  je     L348
  mov    0x30(%rsp),%rsi
  mov    %ebp,%r8d
  lea    -0x10(%r13,%rcx,1),%rdi
  mov    (%rsp),%rcx
  shr    %r8d
  lea    -0x1(%r8),%r9d
  lea    -0x10(%r13,%rsi,1),%rdx
  lea    -0x10(%rdi),%rsi
  shl    $0x4,%r9
  mov    %rsi,%r8
  sub    %r9,%r8
  jmp    L191
  nopw   0x0(%rax,%rax,1)
L90:
  sub    $0x10,%rsi
L191:
  movupd (%rdx),%xmm0
  movupd (%rcx),%xmm7
  sub    $0x10,%rdx
  add    $0x10,%rcx
  add    $0x10,%rax
  shufpd $0x1,%xmm0,%xmm0
  addpd  %xmm7,%xmm0
  movups %xmm0,-0x10(%rax)
  movupd 0x10(%rdx),%xmm0
  movupd -0x10(%rcx),%xmm5
  shufpd $0x1,%xmm0,%xmm0
  subpd  %xmm5,%xmm0
  shufpd $0x1,%xmm0,%xmm0
  movups %xmm0,(%rdi)
  mov    %rsi,%rdi
  cmp    %r8,%rsi
  jne    L90
  mov    %ebp,%eax
  or     $0x1,%eax
  and    $0x1,%ebp
  je     L145
  mov    %r14d,%edx
  sub    %eax,%edx
  lea    (%r14,%rdx,1),%ecx
  movslq %edx,%rdx
  movslq %ecx,%rcx
  lea    0x0(%r13,%rcx,8),%rsi
  lea    (%r14,%rax,1),%ecx
  cltq
  movslq %ecx,%rcx
  lea    0x0(%r13,%rcx,8),%rcx
  movsd  (%rcx),%xmm0
  addsd  (%rsi),%xmm0
  movsd  %xmm0,0x0(%r13,%rax,8)
  movsd  (%rsi),%xmm0
  subsd  (%rcx),%xmm0
  movsd  %xmm0,0x0(%r13,%rdx,8)
L145:
  add    %r12d,%r14d
  movslq %r14d,%r14
  movsd  0x0(%r13,%r14,8),%xmm0
  mov    %r12d,%r14d
  movsd  %xmm0,0x0(%r13)
  jmp    L18
  nopl   (%rax)
L240:
  add    %r15d,%r15d
  mov    $0x2,%r14d
L1:
  lea    0x1(%r14),%eax
  cltq
  movsd  0x0(%r13,%rax,8),%xmm0
  movslq %r15d,%rax
  shl    $0x3,%rax
  movsd  %xmm0,0x0(%r13)
L39:
  movsd  %xmm0,(%rbx,%rax,1)
L127:
  movq   $0x0,(%rbx)
  add    $0x58,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  cs nopw 0x0(%rax,%rax,1)
L52:
  mov    %rax,(%rsp)
  mov    0x48(%rsp),%rax
  mov    %r13,%rdx
  mov    %r14d,%edi
  lea    0x8(%rax),%rsi
  call   <bitrv2@plt>
  mov    0x40(%rsp),%rdx
  mov    %r13,%rsi
  mov    %r14d,%edi
  call   <cftfsub@plt>
  mov    0x38(%rsp),%rcx
  mov    %r13,%rsi
  mov    %r14d,%edi
  mov    0x18(%rsp),%edx
  call   <rftfsub@plt>
  mov    (%rsp),%rax
  movapd D54(%rip),%xmm3
  movq   D3(%rip),%xmm2
L156:
  movsd  0x8(%r13),%xmm0
  subsd  0x0(%r13),%xmm0
  mov    $0x18,%edi
  lea    0x0(,%r15,4),%r8d
  movslq %r8d,%rcx
  mov    %rcx,%r10
  movsd  %xmm0,(%rax)
  movsd  0x0(%r13),%xmm0
  addsd  0x8(%r13),%xmm0
  sub    %rbp,%r10
  lea    (%rcx,%rbp,1),%rax
  lea    0x0(,%r10,8),%rdx
  movsd  %xmm0,(%r12)
  lea    0x0(,%rax,8),%r12
  lea    -0x3(%r14),%eax
  shr    %eax
  lea    0x1(%rax),%esi
  mov    %esi,0x10(%rsp)
  sub    $0x1,%rsi
  mov    %rsi,%rax
  shl    $0x4,%rax
  add    $0x18,%rax
  cmp    $0x2,%r14d
  cmovle %rdi,%rax
  lea    0x0(,%rcx,8),%rdi
  add    %r13,%rax
  mov    %rax,(%rsp)
  xor    %eax,%eax
  cmp    $0x2,%r14d
  cmovle %rax,%rsi
  mov    %rax,%r9
  imul   %rdi,%rsi
  test   %r8d,%r8d
  cmovs  %rsi,%r9
  cmovs  %rax,%rsi
  lea    0x10(%r13),%rax
  lea    (%rsi,%r12,1),%r11
  add    %rbx,%r11
  cmp    %r11,%rax
  lea    (%r12,%r9,1),%r11
  seta   0x1f(%rsp)
  add    %rbx,%r11
  cmp    %r11,(%rsp)
  setb   %r11b
  add    %rcx,%r10
  or     0x1f(%rsp),%r11b
  shl    $0x3,%r10
  cmp    %r12,%r10
  setne  %r10b
  cmp    $0x10,%r14d
  setg   0x1f(%rsp)
  and    0x1f(%rsp),%r10b
  test   %r10b,%r11b
  je     L224
  add    %rdx,%rsi
  add    %rbx,%rsi
  cmp    %rsi,%rax
  seta   %sil
  add    %rdx,%r9
  add    %rbx,%r9
  cmp    %r9,(%rsp)
  setb   %r9b
  or     %sil,%r9b
  je     L224
  cmp    $0x2,%r14d
  mov    $0x1,%esi
  cmovg  0x10(%rsp),%esi
  add    %rbx,%rdx
  shl    $0x4,%rcx
  lea    (%rbx,%r12,1),%r9
  mov    %esi,%r10d
  shr    %r10d
  sub    $0x1,%r10d
  shl    $0x5,%r10
  lea    0x30(%r13,%r10,1),%r10
  nopw   0x0(%rax,%rax,1)
L51:
  movupd (%rax),%xmm0
  movupd 0x10(%rax),%xmm1
  add    $0x20,%rax
  movlpd -0x18(%rax),%xmm1
  movhpd -0x10(%rax),%xmm0
  xorpd  %xmm3,%xmm0
  subpd  %xmm1,%xmm0
  movlpd %xmm0,(%rdx)
  movhpd %xmm0,(%rdx,%rdi,1)
  movupd -0x20(%rax),%xmm0
  movupd -0x10(%rax),%xmm1
  add    %rcx,%rdx
  movlpd -0x18(%rax),%xmm1
  movhpd -0x10(%rax),%xmm0
  subpd  %xmm1,%xmm0
  movlpd %xmm0,(%r9)
  movhpd %xmm0,(%r9,%rdi,1)
  add    %rcx,%r9
  cmp    %rax,%r10
  jne    L51
  mov    %esi,%ecx
  mov    %esi,%edx
  mov    %r8d,%eax
  and    $0xfffffffe,%ecx
  or     $0x1,%edx
  imul   %ecx,%eax
  add    %edx,%edx
  cmp    %ecx,%esi
  je     L170
  movslq %edx,%rdx
  add    %r8d,%eax
  lea    0x0(%r13,%rdx,8),%rcx
  lea    0x8(%r13,%rdx,8),%rdx
  mov    %eax,%esi
  add    %r15d,%eax
  movsd  (%rcx),%xmm0
  sub    %r15d,%esi
  cltq
  movslq %esi,%rsi
  xorpd  %xmm2,%xmm0
  subsd  (%rdx),%xmm0
  movsd  %xmm0,(%rbx,%rsi,8)
  movsd  (%rcx),%xmm0
  subsd  (%rdx),%xmm0
  movsd  %xmm0,(%rbx,%rax,8)
L170:
  mov    %r14d,%r12d
  add    %r15d,%r15d
  sar    %r12d
  jmp    L77
  nopl   (%rax)
L348:
  lea    -0x2(%r12),%esi
  mov    0x10(%rsp),%rcx
  add    %r10,%rsi
  lea    (%rax,%rsi,8),%rax
  nopl   0x0(%rax)
L301:
  movsd  0x8(%rdx),%xmm0
  addsd  -0x8(%rcx),%xmm0
  add    $0x8,%rdx
  sub    $0x8,%rcx
  movsd  %xmm0,(%rdx,%r9,1)
  movsd  (%rcx),%xmm0
  subsd  (%rdx),%xmm0
  movsd  %xmm0,(%rcx,%r9,1)
  cmp    %rax,%rdx
  jne    L301
  jmp    L145
L219:
  mov    0x40(%rsp),%rdx
  mov    %r13,%rsi
  mov    $0x4,%edi
  mov    %rax,(%rsp)
  call   <cftfsub@plt>
  mov    (%rsp),%rax
  movapd D54(%rip),%xmm3
  movq   D3(%rip),%xmm2
  jmp    L156
L103:
  mov    %edi,%r12d
  mov    %r8,%rdx
  mov    %rcx,%rsi
  sar    $0x3,%r12d
  mov    %r12d,%edi
  call   <makewt@plt>
  jmp    L185
L329:
  mov    0x40(%rsp),%rsi
  mov    0xc(%rsp),%edi
  movslq %r12d,%rax
  lea    (%rsi,%rax,8),%rdx
  mov    0x48(%rsp),%rsi
  sar    %edi
  mov    %edi,0x18(%rsp)
  call   <makect@plt>
  jmp    L300
L182:
  movslq %r14d,%rsi
  movslq %ebp,%rdi
  movslq %eax,%r15
  jmp    L299
L31:
  mov    0x48(%rsp),%rax
  mov    %rbx,%rdx
  mov    %ebp,%edi
  lea    0x8(%rax),%rsi
  call   <bitrv2@plt>
  mov    0x40(%rsp),%rdx
  mov    %rbx,%rsi
  mov    %ebp,%edi
  call   <cftfsub@plt>
  mov    0x38(%rsp),%rcx
  mov    0x18(%rsp),%edx
  mov    %ebp,%edi
  mov    %rbx,%rsi
  call   <rftfsub@plt>
L92:
  movsd  0x8(%rbx),%xmm0
  subsd  (%rbx),%xmm0
  movsd  %xmm0,(%r12)
  movsd  0x8(%rbx),%xmm0
  addsd  (%rbx),%xmm0
  movsd  %xmm0,0x8(%rbx)
  jmp    L305
L183:
  mov    0x40(%rsp),%rdx
  mov    %rbx,%rsi
  mov    $0x4,%edi
  call   <cftfsub@plt>
  jmp    L92
L263:
  movsd  0x0(%r13),%xmm0
  mov    $0x10,%eax
  jmp    L39
```

tool_calls: name: read_data
arguments: tag: D3
type: byte[16]
name: read_data
arguments: tag: D54
type: byte[16]

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

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

assistant: ```c
void dfst(int n, double *a, double *t, int *ip, double *w) {
  void makewt(int nw, int *ip, double *w);
  void makect(int nc, int *ip, double *c);
  void bitrv2(int n, int *ip, double *a);
  void cftfsub(int n, double *a, double *w);
  void rftfsub(int n, double *a, int nc, double *c);
  void dstsub(int n, double *a, int nc, double *c);
  int j, k, l, m, mh, nw, nc;
  double xr, xi, yr, yi;
  nw = ip[0];
  if (n > (nw << 3)) {
    nw = n >> 3;
    makewt(nw, ip, w);
  }
  nc = ip[1];
  if (n > (nc << 1)) {
    nc = n >> 1;
    makect(nc, ip, w + nw);
  }
  if (n > 2) {
    m = n >> 1;
    mh = m >> 1;
    for (j = 1; j < mh; j++) {
      k = m - j;
      xr = a[j] + a[n - j];
      xi = a[j] - a[n - j];
      yr = a[k] + a[n - k];
      yi = a[k] - a[n - k];
      a[j] = xr;
      a[k] = yr;
      t[j] = xi + yi;
      t[k] = xi - yi;
    }
    t[0] = a[mh] - a[n - mh];
    a[mh] += a[n - mh];
    a[0] = a[m];
    dstsub(m, a, nc, w + nw);
    if (m > 4) {
      bitrv2(m, ip + 2, a);
      cftfsub(m, a, w);
      rftfsub(m, a, nc, w + nw);
    } else if (m == 4) {
      cftfsub(m, a, w);
    }
    a[n - 1] = a[1] - a[0];
    a[1] = a[0] + a[1];
    for (j = m - 2; j >= 2; j -= 2) {
      a[2 * j + 1] = a[j] - a[j + 1];
      a[2 * j - 1] = -a[j] - a[j + 1];
    }
    l = 2;
    m = mh;
    while (m >= 2) {
      dstsub(m, t, nc, w + nw);
      if (m > 4) {
        bitrv2(m, ip + 2, t);
        cftfsub(m, t, w);
        rftfsub(m, t, nc, w + nw);
      } else if (m == 4) {
        cftfsub(m, t, w);
      }
      a[n - l] = t[1] - t[0];
      a[l] = t[0] + t[1];
      k = 0;
      for (j = 2; j < m; j += 2) {
        k += l << 2;
        a[k - l] = -t[j] - t[j + 1];
        a[k + l] = t[j] - t[j + 1];
      }
      l <<= 1;
      mh = m >> 1;
      for (j = 1; j < mh; j++) {
        k = m - j;
        t[j] = t[m + k] + t[m + j];
        t[k] = t[m + k] - t[m + j];
      }
      t[0] = t[m + mh];
      m = mh;
    }
    a[l] = t[0];
  }
  a[0] = 0;
}
```