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

```asm
<ddst>:
  endbr64
  movslq %edi,%rax
  push   %r12
  mov    %rax,%r12
  push   %rbp
  mov    %rdx,%rbp
  push   %rbx
  lea    -0x8(%rdx,%rax,8),%rbx
  test   %esi,%esi
  js     L66
  cmp    $0x4,%eax
  jle    L10
  mov    %rdx,%rsi
  mov    %eax,%edi
  call   <dstsub@plt>
  mov    %rbp,%rsi
  mov    %r12d,%edi
  call   <bitrv2@plt>
  mov    %rbp,%rsi
  mov    %r12d,%edi
  call   <cftfsub@plt>
  mov    %rbp,%rsi
  mov    %r12d,%edi
  call   <rftfsub@plt>
  movsd  0x0(%rbp),%xmm1
  movsd  0x8(%rbp),%xmm0
  movapd %xmm1,%xmm4
  subsd  %xmm0,%xmm4
  addsd  %xmm1,%xmm0
  movsd  %xmm0,0x0(%rbp)
  jmp    L47
  nopl   0x0(%rax,%rax,1)
L10:
  mov    %rdx,%rsi
  mov    %eax,%edi
  call   <dstsub4@plt>
  cmp    $0x4,%r12d
  je     L31
  movsd  0x0(%rbp),%xmm0
  movsd  0x8(%rbp),%xmm1
  movq   D16(%rip),%xmm3
  movapd %xmm0,%xmm4
  addsd  %xmm1,%xmm0
  subsd  %xmm1,%xmm4
  movsd  %xmm0,0x0(%rbp)
  cmp    $0x3,%r12d
  jne    L115
L47:
  movq   D16(%rip),%xmm3
  lea    0x8(%rbp),%rax
  mov    $0x2,%edx
  xchg   %ax,%ax
L15:
  movsd  0x8(%rax),%xmm0
  movsd  0x10(%rax),%xmm2
  add    $0x2,%edx
  add    $0x10,%rax
  movapd %xmm0,%xmm1
  subsd  %xmm2,%xmm0
  xorpd  %xmm3,%xmm1
  subsd  %xmm2,%xmm1
  movsd  %xmm0,-0x8(%rax)
  movsd  %xmm1,-0x10(%rax)
  cmp    %edx,%r12d
  jg     L15
L115:
  xorpd  %xmm4,%xmm3
  movsd  %xmm3,(%rbx)
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
  nopl   (%rax)
L66:
  lea    -0x2(%rax),%eax
  movsd  (%rbx),%xmm4
  cmp    $0x1,%eax
  jle    L54
  cltq
  lea    -0x4(%r12),%ecx
  movq   D16(%rip),%xmm3
  lea    0x0(,%rax,8),%rdx
  shr    %ecx
  lea    0x0(%rbp,%rdx,1),%rax
  shl    $0x4,%rcx
  lea    -0x10(%rbp,%rdx,1),%rdx
  sub    %rcx,%rdx
  cs nopw 0x0(%rax,%rax,1)
L68:
  movsd  (%rax),%xmm0
  movsd  -0x8(%rax),%xmm2
  sub    $0x10,%rax
  movapd %xmm0,%xmm1
  subsd  %xmm2,%xmm0
  xorpd  %xmm3,%xmm1
  subsd  %xmm2,%xmm1
  movsd  %xmm0,0x10(%rax)
  movsd  %xmm1,0x18(%rax)
  cmp    %rax,%rdx
  jne    L68
L54:
  movsd  0x0(%rbp),%xmm0
  movapd %xmm0,%xmm1
  subsd  %xmm4,%xmm0
  addsd  %xmm4,%xmm1
  movsd  %xmm0,0x0(%rbp)
  movsd  %xmm1,0x8(%rbp)
  cmp    $0x4,%r12d
  jg     L61
  je     L32
L41:
  pop    %rbx
  mov    %rbp,%rsi
  mov    %r12d,%edi
  pop    %rbp
  pop    %r12
  jmp    10b0 <dstsub4@plt>
  xchg   %ax,%ax
L61:
  mov    %rbp,%rsi
  mov    %r12d,%edi
  call   <rftbsub@plt>
  mov    %rbp,%rsi
  mov    %r12d,%edi
  call   <bitrv2@plt>
  mov    %rbp,%rsi
  mov    %r12d,%edi
  call   <cftbsub@plt>
  pop    %rbx
  mov    %rbp,%rsi
  mov    %r12d,%edi
  pop    %rbp
  pop    %r12
  jmp    1100 <dstsub@plt>
L31:
  mov    %rbp,%rsi
  mov    $0x4,%edi
  call   <cftfsub@plt>
  movsd  0x0(%rbp),%xmm0
  movsd  0x8(%rbp),%xmm1
  movapd %xmm0,%xmm4
  addsd  %xmm1,%xmm0
  subsd  %xmm1,%xmm4
  movsd  %xmm0,0x0(%rbp)
  jmp    L47
  nopl   (%rax)
L32:
  mov    %rbp,%rsi
  mov    $0x4,%edi
  call   <cftfsub@plt>
  jmp    L41
```

tool_calls: name: extract_symbolic_data
arguments: tag: D16
type_guessed: byte[8]

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

assistant: ```c
void ddst(int n, int isgn, double *a) {
  void bitrv2(int n, double *a);
  void cftfsub(int n, double *a);
  void cftbsub(int n, double *a);
  void rftfsub(int n, double *a);
  void rftbsub(int n, double *a);
  void dstsub(int n, double *a);
  void dstsub4(int n, double *a);
  int j;
  double xr;
  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);
      bitrv2(n, a);
      cftbsub(n, a);
    } else if (n == 4) {
      cftfsub(n, a);
    }
  }
  if (n > 4) {
    dstsub(n, a);
  } else {
    dstsub4(n, a);
  }
  if (isgn >= 0) {
    if (n > 4) {
      bitrv2(n, a);
      cftfsub(n, a);
      rftfsub(n, a);
    } else if (n == 4) {
      cftfsub(n, a);
    }
    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;
  }
}
```