user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<RGB444toRGB444_ROW2X_STRETCH2X>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  mov    %rdi,-0x30(%rbp)
  mov    %rsi,-0x38(%rbp)
  mov    %rdx,-0x40(%rbp)
  mov    %ecx,-0x44(%rbp)
  mov    %r8,-0x50(%rbp)
  mov    %r9d,-0x48(%rbp)
  mov    -0x30(%rbp),%r15
  mov    -0x38(%rbp),%rbx
  mov    -0x40(%rbp),%r12
  mov    -0x50(%rbp),%rdi
  mov    -0x48(%rbp),%ecx
  test   %ecx,%ecx
  je     L35
  movzwl (%rdi),%eax
  movzwl %ax,%r13d
  add    $0x2,%rdi
  mov    %rdi,%rsi
  movzwl (%r15),%eax
  movzwl %ax,%r14d
  mov    %r13d,%eax
  xor    %r14d,%eax
  shr    %eax
  and    $0x777,%eax
  mov    %eax,%edx
  mov    %r14d,%eax
  and    %r13d,%eax
  lea    (%rdx,%rax,1),%r14d
  add    $0x4,%r15
  sub    $0x1,%ecx
  mov    %ecx,%r10d
  mov    %r13d,%eax
  mov    %ax,(%r12)
  add    $0x2,%r12
  mov    %r14d,%eax
  mov    %ax,(%rbx)
  add    $0x2,%rbx
  jmp    L42
L36:
  movzwl (%rsi),%eax
  movzwl %ax,%ecx
  mov    %ecx,%eax
  xor    %r13d,%eax
  shr    %eax
  and    $0x777,%eax
  mov    %eax,%edx
  mov    %r13d,%eax
  and    %ecx,%eax
  lea    (%rdx,%rax,1),%r13d
  mov    %r13d,%eax
  mov    %ax,(%r12)
  lea    0x2(%r12),%rax
  mov    %ecx,%edx
  mov    %dx,(%rax)
  movzwl (%r15),%eax
  movzwl %ax,%edi
  mov    %ecx,%eax
  xor    %edi,%eax
  shr    %eax
  and    $0x777,%eax
  mov    %eax,%edx
  mov    %edi,%eax
  and    %ecx,%eax
  lea    (%rdx,%rax,1),%edi
  mov    %edi,%eax
  xor    %r14d,%eax
  shr    %eax
  and    $0x777,%eax
  mov    %eax,%edx
  mov    %r14d,%eax
  and    %edi,%eax
  lea    (%rdx,%rax,1),%r14d
  mov    %r14d,%eax
  mov    %ax,(%rbx)
  lea    0x2(%rbx),%rax
  mov    %edi,%edx
  mov    %dx,(%rax)
  lea    0x2(%rsi),%rax
  movzwl (%rax),%eax
  movzwl %ax,%eax
  mov    %eax,%r13d
  mov    %ecx,%eax
  xor    %r13d,%eax
  shr    %eax
  and    $0x777,%eax
  mov    %eax,%edx
  and    %r13d,%ecx
  mov    %ecx,%eax
  add    %edx,%eax
  mov    %eax,%edx
  lea    0x4(%r12),%rax
  mov    %dx,(%rax)
  lea    0x6(%r12),%rax
  mov    %r13d,%edx
  mov    %dx,(%rax)
  lea    0x4(%r15),%rax
  movzwl (%rax),%eax
  movzwl %ax,%ecx
  mov    %ecx,%eax
  xor    %r13d,%eax
  shr    %eax
  and    $0x777,%eax
  mov    %eax,%edx
  mov    %ecx,%eax
  and    %r13d,%eax
  lea    (%rdx,%rax,1),%r14d
  mov    %edi,%eax
  xor    %r14d,%eax
  shr    %eax
  and    $0x777,%eax
  mov    %eax,%edx
  and    %r14d,%edi
  mov    %edi,%eax
  add    %edx,%eax
  mov    %eax,%edi
  lea    0x4(%rbx),%rax
  mov    %edi,%edx
  mov    %dx,(%rax)
  lea    0x6(%rbx),%rax
  mov    %r14d,%edx
  mov    %dx,(%rax)
  add    $0x4,%rsi
  add    $0x8,%r15
  add    $0x8,%r12
  add    $0x8,%rbx
  mov    %r10d,%eax
  sub    $0x2,%eax
  mov    %eax,%r10d
L42:
  mov    %r10d,%eax
  cmp    $0x1,%eax
  jg     L36
  test   %eax,%eax
  je     L49
  mov    %rsi,%rax
  movzwl (%rax),%eax
  movzwl %ax,%esi
  mov    %esi,%eax
  xor    %r13d,%eax
  shr    %eax
  and    $0x777,%eax
  mov    %eax,%edx
  mov    %r13d,%eax
  and    %esi,%eax
  lea    (%rdx,%rax,1),%r13d
  mov    %r13d,%eax
  mov    %ax,(%r12)
  lea    0x2(%r12),%rax
  mov    %esi,%edx
  mov    %dx,(%rax)
  lea    0x4(%r12),%rax
  mov    %esi,%edx
  mov    %dx,(%rax)
  movzwl (%r15),%eax
  movzwl %ax,%r12d
  mov    %esi,%eax
  xor    %r12d,%eax
  shr    %eax
  and    $0x777,%eax
  mov    %eax,%edx
  and    %r12d,%esi
  mov    %esi,%eax
  lea    (%rdx,%rax,1),%r12d
  mov    %r14d,%eax
  xor    %r12d,%eax
  shr    %eax
  and    $0x777,%eax
  mov    %eax,%edx
  mov    %r14d,%eax
  and    %r12d,%eax
  lea    (%rdx,%rax,1),%r14d
  mov    %r14d,%eax
  mov    %ax,(%rbx)
  lea    0x2(%rbx),%rax
  mov    %r12d,%edx
  mov    %dx,(%rax)
  lea    0x4(%rbx),%rax
  mov    %r12d,%edx
  mov    %dx,(%rax)
  jmp    L35
L49:
  mov    %r13d,%eax
  mov    %ax,(%r12)
  mov    %r14d,%eax
  mov    %ax,(%rbx)
L35:
  nop
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
```

assistant: ```c
void RGB444toRGB444_ROW2X_STRETCH2X(unsigned char *dest_ptr_1, unsigned char *dest_ptr_12, unsigned char *dest_ptr_2, int dest_dx, unsigned char *src_ptr, int src_dx) {
  register unsigned char *d1 = dest_ptr_1;
  register unsigned char *d12 = dest_ptr_12;
  register unsigned char *d2 = dest_ptr_2;
  register unsigned char *s = src_ptr;
  register int count = src_dx;
  if (count) {
    register unsigned int da_rgb;
    register unsigned int dc_rgb;
    register unsigned int sa_rgb;
    sa_rgb = *(unsigned short *)(s);
    da_rgb = sa_rgb;
    s += 2;
    register unsigned int sb_rgb;
    sb_rgb = *(unsigned short *)(d1);
    dc_rgb = (((da_rgb ^ sb_rgb) >> 1) & (((1U << (8 + 4 - 1)) - (1U << 8)) | ((1U << (4 + 4 - 1)) - (1U << 4)) | ((1U << (0 + 4 - 1)) - (1U << 0)))) + (da_rgb & sb_rgb);
    d1 += 2 * 2;
    count--;
    *(unsigned short *)(d2) = da_rgb;
    d2 += 2;
    *(unsigned short *)(d12) = dc_rgb;
    d12 += 2;
    while (count >= 2) {
      register unsigned int db_rgb;
      register unsigned int dd_rgb;
      register unsigned int sa_rgb;
      sa_rgb = *(unsigned short *)(s);
      db_rgb = sa_rgb;
      da_rgb = (((da_rgb ^ db_rgb) >> 1) & (((1U << (8 + 4 - 1)) - (1U << 8)) | ((1U << (4 + 4 - 1)) - (1U << 4)) | ((1U << (0 + 4 - 1)) - (1U << 0)))) + (da_rgb & db_rgb);
      *(unsigned short *)(d2) = da_rgb;
      *(unsigned short *)(d2 + 2) = db_rgb;
      register unsigned int sb_rgb;
      sb_rgb = *(unsigned short *)(d1);
      dd_rgb = (((db_rgb ^ sb_rgb) >> 1) & (((1U << (8 + 4 - 1)) - (1U << 8)) | ((1U << (4 + 4 - 1)) - (1U << 4)) | ((1U << (0 + 4 - 1)) - (1U << 0)))) + (db_rgb & sb_rgb);
      dc_rgb = (((dc_rgb ^ dd_rgb) >> 1) & (((1U << (8 + 4 - 1)) - (1U << 8)) | ((1U << (4 + 4 - 1)) - (1U << 4)) | ((1U << (0 + 4 - 1)) - (1U << 0)))) + (dc_rgb & dd_rgb);
      *(unsigned short *)(d12) = dc_rgb;
      *(unsigned short *)(d12 + 2) = dd_rgb;
      sa_rgb = *(unsigned short *)(s + 2);
      da_rgb = sa_rgb;
      db_rgb = (((db_rgb ^ da_rgb) >> 1) & (((1U << (8 + 4 - 1)) - (1U << 8)) | ((1U << (4 + 4 - 1)) - (1U << 4)) | ((1U << (0 + 4 - 1)) - (1U << 0)))) + (db_rgb & da_rgb);
      *(unsigned short *)(d2 + 2 * 2) = db_rgb;
      *(unsigned short *)(d2 + 3 * 2) = da_rgb;
      sb_rgb = *(unsigned short *)(d1 + 2 * 2);
      dc_rgb = (((da_rgb ^ sb_rgb) >> 1) & (((1U << (8 + 4 - 1)) - (1U << 8)) | ((1U << (4 + 4 - 1)) - (1U << 4)) | ((1U << (0 + 4 - 1)) - (1U << 0)))) + (da_rgb & sb_rgb);
      dd_rgb = (((dd_rgb ^ dc_rgb) >> 1) & (((1U << (8 + 4 - 1)) - (1U << 8)) | ((1U << (4 + 4 - 1)) - (1U << 4)) | ((1U << (0 + 4 - 1)) - (1U << 0)))) + (dd_rgb & dc_rgb);
      *(unsigned short *)(d12 + 2 * 2) = dd_rgb;
      *(unsigned short *)(d12 + 3 * 2) = dc_rgb;
      s += 4;
      d1 += 4 * 2;
      d2 += 4 * 2;
      d12 += 4 * 2;
      count -= 2;
    }
    if (count) {
      register unsigned int db_rgb;
      register unsigned int dd_rgb;
      register unsigned int sa_rgb;
      sa_rgb = *(unsigned short *)(s);
      db_rgb = sa_rgb;
      da_rgb = (((da_rgb ^ db_rgb) >> 1) & (((1U << (8 + 4 - 1)) - (1U << 8)) | ((1U << (4 + 4 - 1)) - (1U << 4)) | ((1U << (0 + 4 - 1)) - (1U << 0)))) + (da_rgb & db_rgb);
      *(unsigned short *)(d2) = da_rgb;
      *(unsigned short *)(d2 + 2) = db_rgb;
      *(unsigned short *)(d2 + 2 * 2) = db_rgb;
      register unsigned int sb_rgb;
      sb_rgb = *(unsigned short *)(d1);
      dd_rgb = (((db_rgb ^ sb_rgb) >> 1) & (((1U << (8 + 4 - 1)) - (1U << 8)) | ((1U << (4 + 4 - 1)) - (1U << 4)) | ((1U << (0 + 4 - 1)) - (1U << 0)))) + (db_rgb & sb_rgb);
      dc_rgb = (((dc_rgb ^ dd_rgb) >> 1) & (((1U << (8 + 4 - 1)) - (1U << 8)) | ((1U << (4 + 4 - 1)) - (1U << 4)) | ((1U << (0 + 4 - 1)) - (1U << 0)))) + (dc_rgb & dd_rgb);
      *(unsigned short *)(d12) = dc_rgb;
      *(unsigned short *)(d12 + 2) = dd_rgb;
      *(unsigned short *)(d12 + 2 * 2) = dd_rgb;
    } else {
      *(unsigned short *)(d2) = da_rgb;
      *(unsigned short *)(d12) = dc_rgb;
    }
  }
}
```