user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<ddct>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    %edi,%ebx
  mov    %esi,0xc(%rsp)
  mov    %rdx,%rbp
  mov    %rcx,%r12
  mov    %r8,%r14
  mov    (%rcx),%r13d
  lea    0x0(,%r13,4),%eax
  cmp    %edi,%eax
  jl     L99
L118:
  mov    0x4(%r12),%r15d
  cmp    %r15d,%ebx
  jg     L169
L124:
  cmpl   $0x0,0xc(%rsp)
  js     L43
  movslq %r13d,%r13
  lea    (%r14,%r13,4),%r13
  mov    %r13,%rcx
  mov    %r15d,%edx
  mov    %rbp,%rsi
  mov    %ebx,%edi
  call   <dctsub@plt>
  cmp    $0x4,%ebx
  jg     L27
  je     L176
  movss  0x0(%rbp),%xmm0
  movss  0x4(%rbp),%xmm1
  movaps %xmm0,%xmm3
  subss  %xmm1,%xmm3
  addss  %xmm1,%xmm0
  movss  %xmm0,0x0(%rbp)
  cmp    $0x2,%ebx
  jg     L156
  jmp    L78
L99:
  mov    %edi,%r13d
  sar    $0x2,%r13d
  mov    %r8,%rdx
  mov    %rcx,%rsi
  mov    %r13d,%edi
  call   <makewt@plt>
  jmp    L118
L169:
  movslq %r13d,%rax
  lea    (%r14,%rax,4),%rdx
  mov    %r12,%rsi
  mov    %ebx,%edi
  call   <makect@plt>
  mov    %ebx,%r15d
  jmp    L124
L43:
  movslq %ebx,%rax
  movss  -0x4(%rbp,%rax,4),%xmm3
  lea    -0x2(%rbx),%eax
  cmp    $0x1,%eax
  jle    L103
  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
L75:
  movss  (%rax),%xmm0
  movss  -0x4(%rax),%xmm1
  movaps %xmm0,%xmm2
  subss  %xmm1,%xmm2
  movss  %xmm2,0x4(%rax)
  addss  %xmm1,%xmm0
  movss  %xmm0,(%rax)
  sub    $0x8,%rax
  cmp    %rdx,%rax
  jne    L75
L103:
  movss  0x0(%rbp),%xmm0
  movaps %xmm0,%xmm1
  subss  %xmm3,%xmm1
  movss  %xmm1,0x4(%rbp)
  addss  %xmm3,%xmm0
  movss  %xmm0,0x0(%rbp)
  cmp    $0x4,%ebx
  jg     L7
  je     L9
L19:
  movslq %r13d,%r13
  lea    (%r14,%r13,4),%rcx
  mov    %r15d,%edx
  mov    %rbp,%rsi
  mov    %ebx,%edi
  call   <dctsub@plt>
  jmp    L37
L7:
  movslq %r13d,%rax
  lea    (%r14,%rax,4),%rcx
  mov    %r15d,%edx
  mov    %rbp,%rsi
  mov    %ebx,%edi
  call   <rftbsub@plt>
  lea    0x8(%r12),%rsi
  mov    %rbp,%rdx
  mov    %ebx,%edi
  call   <bitrv2@plt>
  mov    %r14,%rdx
  mov    %rbp,%rsi
  mov    %ebx,%edi
  call   <cftbsub@plt>
  jmp    L19
L9:
  mov    %r14,%rdx
  mov    %rbp,%rsi
  mov    $0x4,%edi
  call   <cftfsub@plt>
  jmp    L19
L27:
  lea    0x8(%r12),%rsi
  mov    %rbp,%rdx
  mov    %ebx,%edi
  call   <bitrv2@plt>
  mov    %r14,%rdx
  mov    %rbp,%rsi
  mov    %ebx,%edi
  call   <cftfsub@plt>
  mov    %r13,%rcx
  mov    %r15d,%edx
  mov    %rbp,%rsi
  mov    %ebx,%edi
  call   <rftfsub@plt>
L126:
  movss  0x0(%rbp),%xmm0
  movss  0x4(%rbp),%xmm1
  movaps %xmm0,%xmm3
  subss  %xmm1,%xmm3
  addss  %xmm1,%xmm0
  movss  %xmm0,0x0(%rbp)
L156:
  lea    0x4(%rbp),%rax
  mov    $0x2,%edx
L92:
  movss  0x4(%rax),%xmm0
  movss  0x8(%rax),%xmm1
  movaps %xmm0,%xmm2
  subss  %xmm1,%xmm2
  movss  %xmm2,(%rax)
  addss  %xmm1,%xmm0
  movss  %xmm0,0x4(%rax)
  add    $0x2,%edx
  add    $0x8,%rax
  cmp    %edx,%ebx
  jg     L92
L78:
  movslq %ebx,%rbx
  movss  %xmm3,-0x4(%rbp,%rbx,4)
L37:
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L176:
  mov    %r14,%rdx
  mov    %rbp,%rsi
  mov    $0x4,%edi
  call   <cftfsub@plt>
  jmp    L126
```

assistant: ```c
void ddct(int n, int isgn, float *a, int *ip, float *w) {
  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);
      bitrv2(n, ip + 2, a);
      cftbsub(n, a, w);
    } else if (n == 4) {
      cftfsub(n, a, w);
    }
  }
  dctsub(n, a, nc, w + nw);
  if (isgn >= 0) {
    if (n > 4) {
      bitrv2(n, ip + 2, a);
      cftfsub(n, a, w);
      rftfsub(n, a, nc, w + nw);
    } else if (n == 4) {
      cftfsub(n, a, 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;
  }
}
```