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

```asm
<s_memcpy4rgba>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    %edx,-0x34(%rbp)
  mov    %ecx,-0x38(%rbp)
  mov    %r8d,-0x3c(%rbp)
  mov    %r9d,-0x40(%rbp)
  mov    -0x28(%rbp),%rax
  mov    %rax,-0x10(%rbp)
  mov    -0x30(%rbp),%rax
  mov    %rax,-0x8(%rbp)
  mov    $0x8,%eax
  sub    -0x38(%rbp),%eax
  mov    %eax,-0x38(%rbp)
  mov    $0x8,%eax
  sub    -0x3c(%rbp),%eax
  mov    %eax,-0x3c(%rbp)
  mov    $0x8,%eax
  sub    -0x40(%rbp),%eax
  mov    %eax,-0x40(%rbp)
  jmp    L48
L33:
  mov    -0x8(%rbp),%rax
  mov    (%rax),%eax
  mov    %al,-0x14(%rbp)
  cmpb   $0xff,-0x14(%rbp)
  je     L27
  mov    -0x8(%rbp),%rax
  mov    (%rax),%eax
  shr    $0x18,%eax
  mov    %al,-0x13(%rbp)
  mov    -0x8(%rbp),%rax
  mov    (%rax),%eax
  shr    $0x10,%eax
  mov    %al,-0x12(%rbp)
  mov    -0x8(%rbp),%rax
  mov    (%rax),%eax
  shr    $0x8,%eax
  mov    %al,-0x11(%rbp)
  cmpb   $0x0,-0x14(%rbp)
  jne    L38
  movzbl -0x13(%rbp),%eax
  mov    %al,-0x17(%rbp)
  movzbl -0x12(%rbp),%eax
  mov    %al,-0x16(%rbp)
  movzbl -0x11(%rbp),%eax
  mov    %al,-0x15(%rbp)
  jmp    L24
L38:
  mov    -0x10(%rbp),%rax
  mov    (%rax),%edx
  mov    0x10(%rbp),%eax
  mov    %eax,%ecx
  shr    %cl,%edx
  mov    -0x38(%rbp),%eax
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    %edx,%eax
  mov    %al,-0x17(%rbp)
  mov    -0x10(%rbp),%rax
  mov    (%rax),%edx
  mov    0x18(%rbp),%eax
  mov    %eax,%ecx
  shr    %cl,%edx
  mov    -0x3c(%rbp),%eax
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    %edx,%eax
  mov    %al,-0x16(%rbp)
  mov    -0x10(%rbp),%rax
  mov    (%rax),%edx
  mov    0x20(%rbp),%eax
  mov    %eax,%ecx
  shr    %cl,%edx
  mov    -0x40(%rbp),%eax
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    %edx,%eax
  mov    %al,-0x15(%rbp)
  movzbl -0x14(%rbp),%eax
  movzbl -0x17(%rbp),%edx
  movzbl -0x13(%rbp),%ecx
  sub    %ecx,%edx
  imul   %edx,%eax
  sar    $0x8,%eax
  mov    %eax,%edx
  movzbl -0x13(%rbp),%eax
  add    %edx,%eax
  mov    %al,-0x17(%rbp)
  movzbl -0x14(%rbp),%eax
  movzbl -0x16(%rbp),%edx
  movzbl -0x12(%rbp),%ecx
  sub    %ecx,%edx
  imul   %edx,%eax
  sar    $0x8,%eax
  mov    %eax,%edx
  movzbl -0x12(%rbp),%eax
  add    %edx,%eax
  mov    %al,-0x16(%rbp)
  movzbl -0x14(%rbp),%eax
  movzbl -0x15(%rbp),%edx
  movzbl -0x11(%rbp),%ecx
  sub    %ecx,%edx
  imul   %edx,%eax
  sar    $0x8,%eax
  mov    %eax,%edx
  movzbl -0x11(%rbp),%eax
  add    %edx,%eax
  mov    %al,-0x15(%rbp)
L24:
  movzbl -0x17(%rbp),%edx
  mov    -0x38(%rbp),%eax
  mov    %eax,%ecx
  sar    %cl,%edx
  mov    0x10(%rbp),%eax
  mov    %edx,%esi
  mov    %eax,%ecx
  shl    %cl,%esi
  movzbl -0x16(%rbp),%edx
  mov    -0x3c(%rbp),%eax
  mov    %eax,%ecx
  sar    %cl,%edx
  mov    0x18(%rbp),%eax
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    %edx,%eax
  or     %eax,%esi
  movzbl -0x15(%rbp),%edx
  mov    -0x40(%rbp),%eax
  mov    %eax,%ecx
  sar    %cl,%edx
  mov    0x20(%rbp),%eax
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    %edx,%eax
  or     %esi,%eax
  mov    %eax,%edx
  mov    -0x10(%rbp),%rax
  mov    %edx,(%rax)
L27:
  addq   $0x4,-0x10(%rbp)
  addq   $0x4,-0x8(%rbp)
L48:
  mov    -0x34(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    %edx,-0x34(%rbp)
  test   %eax,%eax
  jne    L33
  nop
  nop
  pop    %rbp
  ret
```

assistant: ```c
void s_memcpy4rgba(void *dest, unsigned int *rgba, int n, int rl, int gl, int bl, int ro, int go, int bo) {
  unsigned char a;
  unsigned char sr;
  unsigned char sg;
  unsigned char sb;
  unsigned char dr;
  unsigned char dg;
  unsigned char db;
  unsigned int *d = (unsigned int *)dest;
  unsigned int *s = (unsigned int *)rgba;
  rl = 8 - rl;
  gl = 8 - gl;
  bl = 8 - bl;
  while (n--) {
    a = *s;
    if (a != 0xff) {
      sr = *s >> 0x18;
      sg = *s >> 0x10;
      sb = *s >> 0x08;
      if (a == 0x00) {
        dr = sr;
        dg = sg;
        db = sb;
      } else {
        dr = (*d >> ro) << rl;
        dg = (*d >> go) << gl;
        db = (*d >> bo) << bl;
        dr = (a * (dr - sr) >> 8) + sr;
        dg = (a * (dg - sg) >> 8) + sg;
        db = (a * (db - sb) >> 8) + sb;
      }
      *d = ((dr >> rl) << ro) | ((dg >> gl) << go) | ((db >> bl) << bo);
    }
    d++;
    s++;
  };
}
```