user: 请从给定的汇编指令推导出C源代码:

```asm
<SKP_Silk_scale_vector32_16_Q14>:
  endbr64
  mov    %rdi,%rcx
  cmp    $0x1ffe,%esi
  jle    L121
  test   %edx,%edx
  jle    L103
  lea    -0x1(%rdx),%eax
  movswl %si,%esi
  cmp    $0x2,%eax
  jbe    L115
  mov    %rdi,%rax
  mov    %edx,%edi
  movd   %esi,%xmm7
  movdqa D7(%rip),%xmm2
  shr    $0x2,%edi
  pshufd $0x0,%xmm7,%xmm3
  sub    $0x1,%edi
  movdqa %xmm3,%xmm4
  shl    $0x4,%rdi
  psrlq  $0x20,%xmm4
  lea    0x10(%rcx,%rdi,1),%rdi
  nopl   0x0(%rax,%rax,1)
L25:
  movdqu (%rax),%xmm1
  add    $0x10,%rax
  pand   %xmm2,%xmm1
  movdqa %xmm1,%xmm0
  psrlq  $0x20,%xmm1
  pmuludq %xmm3,%xmm0
  pmuludq %xmm4,%xmm1
  pshufd $0x8,%xmm0,%xmm0
  pshufd $0x8,%xmm1,%xmm1
  punpckldq %xmm1,%xmm0
  movdqu -0x10(%rax),%xmm1
  psrad  $0x10,%xmm0
  psrad  $0x10,%xmm1
  movdqa %xmm1,%xmm5
  psrlq  $0x20,%xmm1
  pmuludq %xmm3,%xmm5
  pmuludq %xmm4,%xmm1
  pshufd $0x8,%xmm5,%xmm5
  pshufd $0x8,%xmm1,%xmm1
  punpckldq %xmm1,%xmm5
  paddd  %xmm5,%xmm0
  pslld  $0x2,%xmm0
  movups %xmm0,-0x10(%rax)
  cmp    %rdi,%rax
  jne    L25
  mov    %edx,%edi
  and    $0xfffffffc,%edi
  test   $0x3,%dl
  je     L64
L108:
  movslq %edi,%r8
  shl    $0x2,%r8
  lea    (%rcx,%r8,1),%r10
  mov    (%r10),%r9d
  movzwl %r9w,%eax
  sar    $0x10,%r9d
  imul   %esi,%eax
  imul   %esi,%r9d
  sar    $0x10,%eax
  add    %r9d,%eax
  shl    $0x2,%eax
  mov    %eax,(%r10)
  lea    0x1(%rdi),%eax
  cmp    %eax,%edx
  jle    L132
  lea    0x4(%rcx,%r8,1),%r10
  add    $0x2,%edi
  mov    (%r10),%r9d
  movzwl %r9w,%eax
  sar    $0x10,%r9d
  imul   %esi,%eax
  imul   %esi,%r9d
  sar    $0x10,%eax
  add    %r9d,%eax
  shl    $0x2,%eax
  mov    %eax,(%r10)
  cmp    %edi,%edx
  jle    L132
  lea    0x8(%rcx,%r8,1),%rcx
  mov    (%rcx),%edx
  movzwl %dx,%eax
  sar    $0x10,%edx
  imul   %esi,%eax
  imul   %esi,%edx
  sar    $0x10,%eax
  add    %edx,%eax
  shl    $0x2,%eax
  mov    %eax,(%rcx)
L132:
  ret
  nopl   0x0(%rax)
L121:
  shl    $0x2,%esi
  test   %edx,%edx
  jle    L132
  lea    -0x1(%rdx),%eax
  movswl %si,%esi
  cmp    $0x2,%eax
  jbe    L33
  mov    %rdi,%rax
  mov    %edx,%edi
  movd   %esi,%xmm6
  movdqa D7(%rip),%xmm2
  shr    $0x2,%edi
  pshufd $0x0,%xmm6,%xmm3
  sub    $0x1,%edi
  movdqa %xmm3,%xmm4
  shl    $0x4,%rdi
  psrlq  $0x20,%xmm4
  lea    0x10(%rcx,%rdi,1),%rdi
  nopl   0x0(%rax)
L73:
  movdqu (%rax),%xmm1
  add    $0x10,%rax
  pand   %xmm2,%xmm1
  movdqa %xmm1,%xmm0
  psrlq  $0x20,%xmm1
  pmuludq %xmm3,%xmm0
  pmuludq %xmm4,%xmm1
  pshufd $0x8,%xmm0,%xmm0
  pshufd $0x8,%xmm1,%xmm1
  punpckldq %xmm1,%xmm0
  movdqa %xmm0,%xmm1
  movdqu -0x10(%rax),%xmm0
  psrad  $0x10,%xmm1
  psrad  $0x10,%xmm0
  movdqa %xmm0,%xmm5
  psrlq  $0x20,%xmm0
  pmuludq %xmm3,%xmm5
  pmuludq %xmm4,%xmm0
  pshufd $0x8,%xmm5,%xmm5
  pshufd $0x8,%xmm0,%xmm0
  punpckldq %xmm0,%xmm5
  paddd  %xmm5,%xmm1
  movups %xmm1,-0x10(%rax)
  cmp    %rax,%rdi
  jne    L73
  mov    %edx,%r8d
  and    $0xfffffffc,%r8d
  test   $0x3,%dl
  je     L24
L88:
  movslq %r8d,%r9
  shl    $0x2,%r9
  lea    (%rcx,%r9,1),%r10
  mov    (%r10),%edi
  movzwl %di,%eax
  sar    $0x10,%edi
  imul   %esi,%eax
  imul   %esi,%edi
  sar    $0x10,%eax
  add    %edi,%eax
  mov    %eax,(%r10)
  lea    0x1(%r8),%eax
  cmp    %edx,%eax
  jge    L132
  lea    0x4(%rcx,%r9,1),%r10
  add    $0x2,%r8d
  mov    (%r10),%edi
  movzwl %di,%eax
  sar    $0x10,%edi
  imul   %esi,%eax
  imul   %esi,%edi
  sar    $0x10,%eax
  add    %edi,%eax
  mov    %eax,(%r10)
  cmp    %r8d,%edx
  jle    L132
  lea    0x8(%rcx,%r9,1),%rcx
  mov    (%rcx),%edx
  movzwl %dx,%eax
  sar    $0x10,%edx
  imul   %esi,%eax
  imul   %esi,%edx
  sar    $0x10,%eax
  add    %edx,%eax
  mov    %eax,(%rcx)
  ret
  nopl   0x0(%rax)
L103:
  ret
  nopl   0x0(%rax)
L24:
  ret
  nopl   0x0(%rax)
L64:
  ret
L115:
  xor    %edi,%edi
  jmp    L108
L33:
  xor    %r8d,%r8d
  jmp    L88
```

tool_calls: name: parse_data
arguments: data_label: D7
type: byte[16]

tool: {"D7": [0xff,0xff,0x00,0x00,0xff,0xff,0x00,0x00,0xff,0xff,0x00,0x00,0xff,0xff,0x00,0x00]}

assistant: ```c
void SKP_Silk_scale_vector32_16_Q14(int *data1, int gain_Q14, int dataSize) {
  int i, gain_Q16;
  if (gain_Q14 < (0x7FFF >> 2)) {
    gain_Q16 = ((gain_Q14) << (2));
    for (i = 0; i < dataSize; i++) {
      data1[i] = ((((data1[i]) >> 16) * (int)((short)(gain_Q16))) + ((((data1[i]) & 0x0000FFFF) * (int)((short)(gain_Q16))) >> 16));
    }
  } else {
    ;
    for (i = 0; i < dataSize; i++) {
      data1[i] = ((((((data1[i]) >> 16) * (int)((short)(gain_Q14))) + ((((data1[i]) & 0x0000FFFF) * (int)((short)(gain_Q14))) >> 16))) << (2));
    }
  }
}
```