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

```asm
<ddst>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    %edi,%ebx
  mov    %esi,%r15d
  mov    %rdx,%rbp
  mov    %rcx,%r12
  mov    %r8,0x8(%rsp)
  mov    (%rcx),%r13d
  lea    0x0(,%r13,4),%eax
  cmp    %edi,%eax
  jl     L99
L159:
  mov    0x4(%r12),%r14d
  cmp    %r14d,%ebx
  jg     L54
L179:
  test   %r15d,%r15d
  js     L50
  movslq %r13d,%rax
  mov    0x8(%rsp),%rsi
  lea    (%rsi,%rax,4),%r15
  mov    %r15,%rcx
  mov    %r14d,%edx
  mov    %rbp,%rsi
  mov    %ebx,%edi
  call   <dstsub@plt>
  cmp    $0x4,%ebx
  jg     L60
  je     L31
  movss  0x0(%rbp),%xmm0
  movss  0x4(%rbp),%xmm1
  movaps %xmm0,%xmm4
  subss  %xmm1,%xmm4
  addss  %xmm1,%xmm0
  movss  %xmm0,0x0(%rbp)
  cmp    $0x2,%ebx
  jg     L59
  jmp    L79
L99:
  mov    %edi,%r13d
  sar    $0x2,%r13d
  mov    %r8,%rdx
  mov    %rcx,%rsi
  mov    %r13d,%edi
  call   <makewt@plt>
  jmp    L159
L54:
  movslq %r13d,%rax
  mov    0x8(%rsp),%rdi
  lea    (%rdi,%rax,4),%rdx
  mov    %r12,%rsi
  mov    %ebx,%edi
  call   <makect@plt>
  mov    %ebx,%r14d
  jmp    L179
L50:
  movslq %ebx,%rax
  movss  -0x4(%rbp,%rax,4),%xmm4
  lea    -0x2(%rbx),%eax
  cmp    $0x1,%eax
  jle    L158
  cltq
  lea    0x0(,%rax,4),%rdx
  lea    0x0(%rbp,%rdx,1),%rax
  lea    -0x8(%rbp,%rdx,1),%rdx
  lea    -0x4(%rbx),%ecx
  shr    %ecx
  mov    %ecx,%ecx
  shl    $0x3,%rcx
  sub    %rcx,%rdx
  movss  D19(%rip),%xmm3
L8:
  movss  (%rax),%xmm0
  movss  -0x4(%rax),%xmm2
  movaps %xmm0,%xmm1
  xorps  %xmm3,%xmm1
  subss  %xmm2,%xmm1
  movss  %xmm1,0x4(%rax)
  subss  %xmm2,%xmm0
  movss  %xmm0,(%rax)
  sub    $0x8,%rax
  cmp    %rdx,%rax
  jne    L8
L158:
  movss  0x0(%rbp),%xmm0
  movaps %xmm0,%xmm1
  addss  %xmm4,%xmm1
  movss  %xmm1,0x4(%rbp)
  subss  %xmm4,%xmm0
  movss  %xmm0,0x0(%rbp)
  cmp    $0x4,%ebx
  jg     L73
  je     L121
L108:
  movslq %r13d,%r13
  mov    0x8(%rsp),%rax
  lea    (%rax,%r13,4),%rcx
  mov    %r14d,%edx
  mov    %rbp,%rsi
  mov    %ebx,%edi
  call   <dstsub@plt>
  jmp    L128
L73:
  movslq %r13d,%rax
  mov    0x8(%rsp),%r15
  lea    (%r15,%rax,4),%rcx
  mov    %r14d,%edx
  mov    %rbp,%rsi
  mov    %ebx,%edi
  call   <rftbsub@plt>
  mov    %r15,%r8
  mov    %r13d,%ecx
  mov    %r12,%rdx
  mov    %rbp,%rsi
  mov    %ebx,%edi
  call   <cftbsub@plt>
  jmp    L108
L121:
  mov    0x8(%rsp),%r8
  mov    %r13d,%ecx
  mov    %r12,%rdx
  mov    %rbp,%rsi
  mov    $0x4,%edi
  call   <cftbsub@plt>
  jmp    L108
L60:
  mov    0x8(%rsp),%r8
  mov    %r13d,%ecx
  mov    %r12,%rdx
  mov    %rbp,%rsi
  mov    %ebx,%edi
  call   <cftfsub@plt>
  mov    %r15,%rcx
  mov    %r14d,%edx
  mov    %rbp,%rsi
  mov    %ebx,%edi
  call   <rftfsub@plt>
L80:
  movss  0x0(%rbp),%xmm0
  movss  0x4(%rbp),%xmm1
  movaps %xmm0,%xmm4
  subss  %xmm1,%xmm4
  addss  %xmm1,%xmm0
  movss  %xmm0,0x0(%rbp)
L59:
  lea    0x4(%rbp),%rax
  mov    $0x2,%edx
  movss  D19(%rip),%xmm3
L107:
  movss  0x4(%rax),%xmm0
  movss  0x8(%rax),%xmm2
  movaps %xmm0,%xmm1
  xorps  %xmm3,%xmm1
  subss  %xmm2,%xmm1
  movss  %xmm1,(%rax)
  subss  %xmm2,%xmm0
  movss  %xmm0,0x4(%rax)
  add    $0x2,%edx
  add    $0x8,%rax
  cmp    %edx,%ebx
  jg     L107
L79:
  movslq %ebx,%rbx
  xorps  D19(%rip),%xmm4
  movss  %xmm4,-0x4(%rbp,%rbx,4)
L128:
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L31:
  mov    0x8(%rsp),%r8
  mov    %r13d,%ecx
  mov    %r12,%rdx
  mov    %rbp,%rsi
  mov    $0x4,%edi
  call   <cftfsub@plt>
  jmp    L80
```

tool_calls: name: unpack_data
arguments: label: D19
type_guessed: byte[16]

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

assistant: ```c
void ddst(int n, int isgn, float *a, int *ip, float *w) {
  void makewt(int nw, int *ip, float *w);
  void makect(int nc, int *ip, float *c);
  void cftfsub(int n, float *a, int *ip, int nw, float *w);
  void cftbsub(int n, float *a, int *ip, int nw, float *w);
  void rftfsub(int n, float *a, int nc, float *c);
  void rftbsub(int n, float *a, int nc, float *c);
  void dstsub(int n, float *a, int nc, float *c);
  int j, nw, nc;
  float xr;
  nw = ip[0];
  if (n > (nw << 2)) {
    nw = n >> 2;
    makewt(nw, ip, w);
  }
  nc = ip[1];
  if (n > nc) {
    nc = n;
    makect(nc, ip, w + nw);
  }
  if (isgn < 0) {
    xr = a[n - 1];
    for (j = n - 2; j >= 2; j -= 2) {
      a[j + 1] = -a[j] - a[j - 1];
      a[j] -= a[j - 1];
    }
    a[1] = a[0] + xr;
    a[0] -= xr;
    if (n > 4) {
      rftbsub(n, a, nc, w + nw);
      cftbsub(n, a, ip, nw, w);
    } else if (n == 4) {
      cftbsub(n, a, ip, nw, w);
    }
  }
  dstsub(n, a, nc, w + nw);
  if (isgn >= 0) {
    if (n > 4) {
      cftfsub(n, a, ip, nw, w);
      rftfsub(n, a, nc, w + nw);
    } else if (n == 4) {
      cftfsub(n, a, ip, nw, w);
    }
    xr = a[0] - a[1];
    a[0] += a[1];
    for (j = 2; j < n; j += 2) {
      a[j - 1] = -a[j] - a[j + 1];
      a[j] -= a[j + 1];
    }
    a[n - 1] = -xr;
  }
}
```