user: 提供的汇编代码用C语言表示会是什么样子:

```asm
<cg_scale>:
  endbr64
  mov    %rdx,%r9
  mov    %rsi,%r10
  movabs $0x6666666666666667,%rdx
  mov    %r9,%rax
  imul   %rdx
  mov    %r9,%rax
  sar    $0x3f,%rax
  sar    %rdx
  mov    %rdx,%rcx
  sub    %rax,%rcx
  lea    (%rcx,%rcx,4),%rax
  mov    %r9,%rcx
  sub    %rax,%rcx
  cmp    %rsi,%rdi
  je     L178
  test   %rcx,%rcx
  jle    L54
  lea    -0x1(%rcx),%rax
  cmp    $0x1,%rax
  jbe    L204
  lea    0x8(%rsi),%rax
  cmp    %rax,%rdi
  je     L204
  movupd (%rsi),%xmm1
  movapd %xmm0,%xmm2
  mov    %rcx,%rax
  unpcklpd %xmm2,%xmm2
  shr    %rax
  mulpd  %xmm2,%xmm1
  movups %xmm1,(%rdi)
  cmp    $0x2,%rax
  jne    L90
  movupd 0x10(%rsi),%xmm1
  mulpd  %xmm2,%xmm1
  movups %xmm1,0x10(%rdi)
  nopl   0x0(%rax)
L71:
  cmp    %rcx,%r9
  jle    L186
  lea    0x50(,%rcx,8),%rax
  lea    0x0(,%rcx,8),%rsi
  lea    (%r10,%rax,1),%r11
  lea    (%rdi,%rsi,1),%r8
  add    %r10,%rsi
  lea    -0x1(%r9),%rdx
  sub    %rcx,%rdx
  cmp    %r11,%r8
  setae  %r11b
  add    %rdi,%rax
  cmp    %rax,%rsi
  setae  %al
  or     %al,%r11b
  je     L93
  cmp    $0x4,%rdx
  jbe    L93
  movabs $0xcccccccccccccccd,%r9
  mov    %rdx,%rax
  movapd %xmm0,%xmm1
  mul    %r9
  mov    %rsi,%rax
  unpcklpd %xmm1,%xmm1
  shr    $0x2,%rdx
  lea    0x1(%rdx),%r9
  mov    %r8,%rdx
  mov    %r9,%rsi
  shr    %rsi
  lea    (%rsi,%rsi,4),%rsi
  shl    $0x4,%rsi
  add    %rax,%rsi
  nopl   (%rax)
L219:
  movupd 0x10(%rax),%xmm5
  movupd 0x20(%rax),%xmm4
  add    $0x50,%rax
  add    $0x50,%rdx
  movupd -0x20(%rax),%xmm3
  movupd -0x10(%rax),%xmm2
  movupd -0x50(%rax),%xmm6
  mulpd  %xmm1,%xmm5
  mulpd  %xmm1,%xmm4
  mulpd  %xmm1,%xmm3
  mulpd  %xmm1,%xmm2
  mulpd  %xmm1,%xmm6
  movups %xmm5,-0x40(%rdx)
  movups %xmm4,-0x30(%rdx)
  movups %xmm3,-0x20(%rdx)
  movups %xmm2,-0x10(%rdx)
  movups %xmm6,-0x50(%rdx)
  cmp    %rax,%rsi
  jne    L219
  mov    %r9,%rdx
  and    $0xfffffffffffffffe,%rdx
  lea    (%rdx,%rdx,4),%rax
  add    %rcx,%rax
  cmp    %rdx,%r9
  je     L186
  movsd  (%r10,%rax,8),%xmm1
  mulsd  %xmm0,%xmm1
  movsd  %xmm1,(%rdi,%rax,8)
  add    $0x1,%rax
  movsd  (%r10,%rax,8),%xmm1
  lea    0x0(,%rax,8),%rdx
  mulsd  %xmm0,%xmm1
  movsd  %xmm1,(%rdi,%rax,8)
  movsd  0x8(%r10,%rax,8),%xmm1
  mulsd  %xmm0,%xmm1
  movsd  %xmm1,0x8(%rdi,%rdx,1)
  movsd  0x10(%r10,%rdx,1),%xmm1
  mulsd  %xmm0,%xmm1
  movsd  %xmm1,0x10(%rdi,%rdx,1)
  mulsd  0x18(%r10,%rdx,1),%xmm0
  movsd  %xmm0,0x18(%rdi,%rdx,1)
  ret
  nop
L93:
  movsd  (%r10,%rcx,8),%xmm1
  mulsd  %xmm0,%xmm1
  movsd  %xmm1,(%rdi,%rcx,8)
  movsd  0x8(%r10,%rcx,8),%xmm1
  mulsd  %xmm0,%xmm1
  movsd  %xmm1,0x8(%rdi,%rcx,8)
  movsd  0x10(%r10,%rcx,8),%xmm1
  mulsd  %xmm0,%xmm1
  movsd  %xmm1,0x10(%rdi,%rcx,8)
  movsd  0x18(%r10,%rcx,8),%xmm1
  mulsd  %xmm0,%xmm1
  movsd  %xmm1,0x18(%rdi,%rcx,8)
  movsd  0x20(%r10,%rcx,8),%xmm1
  mulsd  %xmm0,%xmm1
  movsd  %xmm1,0x20(%rdi,%rcx,8)
  add    $0x5,%rcx
  cmp    %rcx,%r9
  jg     L93
L186:
  ret
  nopl   (%rax)
L90:
  movsd  0x10(%rsi),%xmm1
  mulsd  %xmm0,%xmm1
  movsd  %xmm1,0x10(%rdi)
  jmp    L71
  nopl   0x0(%rax,%rax,1)
L178:
  test   %rcx,%rcx
  jle    L91
  cmp    $0x1,%rcx
  je     L136
  movupd (%rdi),%xmm1
  movapd %xmm0,%xmm2
  mov    %rcx,%rax
  unpcklpd %xmm2,%xmm2
  shr    %rax
  mulpd  %xmm2,%xmm1
  movups %xmm1,(%rdi)
  cmp    $0x2,%rax
  je     L215
  cmp    $0x2,%rcx
  je     L101
  mov    $0x2,%eax
L198:
  lea    (%rdi,%rax,8),%rax
  movsd  (%rax),%xmm1
  mulsd  %xmm0,%xmm1
  movsd  %xmm1,(%rax)
L101:
  cmp    %rcx,%r9
  jle    L186
  movabs $0xcccccccccccccccd,%rdx
  sub    $0x1,%r9
  sub    %rcx,%r9
  mov    %r9,%rax
  mul    %rdx
  shr    $0x2,%rdx
  lea    0x1(%rdx),%rsi
  cmp    $0x4,%r9
  jbe    L97
  mov    %rsi,%rdx
  movapd %xmm0,%xmm1
  lea    (%rdi,%rcx,8),%rax
  shr    %rdx
  unpcklpd %xmm1,%xmm1
  lea    (%rdx,%rdx,4),%rdx
  shl    $0x4,%rdx
  add    %rax,%rdx
L108:
  movupd 0x10(%rax),%xmm5
  movupd 0x20(%rax),%xmm4
  add    $0x50,%rax
  movupd -0x20(%rax),%xmm3
  movupd -0x10(%rax),%xmm2
  movupd -0x50(%rax),%xmm6
  mulpd  %xmm1,%xmm5
  mulpd  %xmm1,%xmm4
  mulpd  %xmm1,%xmm3
  mulpd  %xmm1,%xmm2
  mulpd  %xmm1,%xmm6
  movups %xmm5,-0x40(%rax)
  movups %xmm4,-0x30(%rax)
  movups %xmm3,-0x20(%rax)
  movups %xmm2,-0x10(%rax)
  movups %xmm6,-0x50(%rax)
  cmp    %rax,%rdx
  jne    L108
  mov    %rsi,%rax
  and    $0xfffffffffffffffe,%rax
  lea    (%rax,%rax,4),%rdx
  add    %rdx,%rcx
  cmp    %rsi,%rax
  je     L186
L97:
  shl    $0x3,%rcx
  lea    (%rdi,%rcx,1),%rax
  movsd  (%rax),%xmm1
  mulsd  %xmm0,%xmm1
  movsd  %xmm1,(%rax)
  lea    0x8(%rdi,%rcx,1),%rax
  movsd  (%rax),%xmm1
  mulsd  %xmm0,%xmm1
  movsd  %xmm1,(%rax)
  lea    0x10(%rdi,%rcx,1),%rax
  movsd  (%rax),%xmm1
  mulsd  %xmm0,%xmm1
  movsd  %xmm1,(%rax)
  lea    0x18(%rdi,%rcx,1),%rax
  movsd  (%rax),%xmm1
  mulsd  %xmm0,%xmm1
  movsd  %xmm1,(%rax)
  lea    0x20(%rdi,%rcx,1),%rax
  mulsd  (%rax),%xmm0
  movsd  %xmm0,(%rax)
  ret
  cs nopw 0x0(%rax,%rax,1)
L215:
  movupd 0x10(%rdi),%xmm1
  mulpd  %xmm2,%xmm1
  movups %xmm1,0x10(%rdi)
  jmp    L101
  nopw   0x0(%rax,%rax,1)
L204:
  movsd  (%r10),%xmm1
  mulsd  %xmm0,%xmm1
  movsd  %xmm1,(%rdi)
  cmp    $0x1,%rcx
  je     L71
  movsd  0x8(%r10),%xmm1
  mulsd  %xmm0,%xmm1
  movsd  %xmm1,0x8(%rdi)
  cmp    $0x2,%rcx
  je     L71
  movsd  0x10(%r10),%xmm1
  mulsd  %xmm0,%xmm1
  movsd  %xmm1,0x10(%rdi)
  cmp    $0x4,%rcx
  jne    L71
  movsd  0x18(%r10),%xmm1
  mulsd  %xmm0,%xmm1
  movsd  %xmm1,0x18(%rdi)
  jmp    L71
  nopl   (%rax)
L54:
  xor    %ecx,%ecx
  jmp    L71
L91:
  xor    %ecx,%ecx
  jmp    L101
L136:
  xor    %eax,%eax
  jmp    L198
```

assistant: ```c
void cg_scale(double *y, double *x, double s, long int n) {
  long int i, n5;
  n5 = n % 5;
  if (y == x) {
    for (i = 0; i < n5; i++)
      y[i] *= s;
    for (; i < n;) {
      y[i] *= s;
      i++;
      y[i] *= s;
      i++;
      y[i] *= s;
      i++;
      y[i] *= s;
      i++;
      y[i] *= s;
      i++;
    }
  } else {
    for (i = 0; i < n5; i++)
      y[i] = s * x[i];
    for (; i < n;) {
      y[i] = s * x[i];
      i++;
      y[i] = s * x[i];
      i++;
      y[i] = s * x[i];
      i++;
      y[i] = s * x[i];
      i++;
      y[i] = s * x[i];
      i++;
    }
  }
  return;
}
```