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

```asm
<si_camera_demux_gen>:
  endbr64
  push   %r15
  mov    %edx,%eax
  push   %r14
  shr    $0x1f,%eax
  push   %r13
  add    %edx,%eax
  push   %r12
  sar    %eax
  push   %rbp
  push   %rbx
  sub    $0x30,%rsp
  mov    %edx,-0x1c(%rsp)
  mov    %r8d,-0x18(%rsp)
  test   %r8d,%r8d
  jle    L15
  test   %ecx,%ecx
  jle    L15
  mov    %eax,%ebp
  mov    %edx,%r12d
  movslq %edx,%r11
  movslq %ecx,%rdx
  lea    -0x1(%r8,%rbp,1),%ebx
  lea    (%r11,%r11,1),%r13
  mov    %rsi,%r9
  mov    %edx,-0x44(%rsp)
  imul   %r12d,%ebx
  lea    0x1(%rdx),%rax
  movl   $0x0,-0x40(%rsp)
  lea    (%rax,%r13,1),%rcx
  lea    (%rdi,%r11,4),%r8
  movl   $0x0,-0x38(%rsp)
  lea    (%rcx,%rcx,1),%r14
  movslq %ebp,%rcx
  mov    %r8,-0x50(%rsp)
  movslq %ebx,%r10
  mov    %ebx,-0x48(%rsp)
  lea    0x0(%r13,%rcx,1),%rsi
  add    %rdx,%rcx
  add    %r10,%rax
  add    %rdx,%rsi
  lea    0x2(%rdi,%r10,2),%r8
  add    %r10,%rcx
  lea    (%rax,%rax,1),%r15
  sub    %r13,%r10
  add    %rsi,%rsi
  add    %rcx,%rcx
  lea    0x0(,%rdx,4),%eax
  mov    %eax,0x8(%rsp)
  cltq
  add    %rax,%rax
  mov    %rax,-0x10(%rsp)
  lea    (%r9,%rdx,8),%rax
  neg    %rdx
  mov    %rax,-0x78(%rsp)
  lea    (%r12,%r12,1),%eax
  neg    %r12d
  add    %rdx,%rdx
  movslq %r12d,%rbx
  mov    %eax,-0x30(%rsp)
  mov    %r10,%r12
  sub    %r11,%rbx
  mov    -0x44(%rsp),%r11d
  mov    %rdx,(%rsp)
  mov    %rbx,-0x8(%rsp)
  lea    -0x1(%r11),%eax
  mov    %r11d,%ebx
  mov    %eax,-0x14(%rsp)
  lea    (%rdi,%rdx,1),%rax
  mov    %r11d,%edx
  and    $0xfffffffc,%ebx
  shr    $0x2,%edx
  lea    0x1(%rbx),%r10d
  mov    %rax,-0x70(%rsp)
  sub    $0x1,%edx
  mov    %r10d,-0x34(%rsp)
  lea    0x8(,%rdx,8),%rax
  mov    %r11d,%edx
  mov    %ebx,-0x28(%rsp)
  sub    %r10d,%edx
  mov    %rax,0x10(%rsp)
  lea    0x0(,%rbx,4),%eax
  lea    0x2(%rbx),%r10d
  mov    %eax,0x20(%rsp)
  lea    (%rdx,%rbp,1),%eax
  mov    %r11d,%edx
  add    $0x3,%ebx
  sub    %r10d,%edx
  mov    %eax,-0x24(%rsp)
  lea    (%rdx,%rbp,1),%eax
  mov    %r11d,%edx
  mov    %r10d,-0x2c(%rsp)
  sub    %ebx,%edx
  mov    %eax,-0x20(%rsp)
  lea    (%rdx,%rbp,1),%eax
  mov    %r11d,%edx
  mov    %ebx,0x24(%rsp)
  mov    %r12,%rbx
  mov    %eax,0xc(%rsp)
  lea    -0x8(%rdi),%rax
  mov    %r15,%r12
  mov    %rbx,%r15
  mov    %rax,0x18(%rsp)
  lea    (%rdx,%rdx,1),%rax
  mov    %rax,0x28(%rsp)
  mov    %r9,%rax
  nopl   0x0(%rax,%rax,1)
L54:
  mov    (%rsp),%rbx
  lea    0x6(%r15,%r15,1),%r10
  addl   $0x1,-0x40(%rsp)
  lea    (%rbx,%r12,1),%rbp
  lea    (%rbx,%rsi,1),%rdx
  lea    (%rbx,%r14,1),%r11
  add    %rcx,%rbx
  mov    %rdx,-0x68(%rsp)
  lea    (%rdi,%rsi,1),%rdx
  mov    %rbx,-0x58(%rsp)
  mov    -0x50(%rsp),%rbx
  mov    %r11,-0x60(%rsp)
  lea    -0x8(%r10),%r11
  add    $0x2,%rbx
  cmp    $0x4,%r11
  seta   -0x39(%rsp)
  cmp    $0x4,%r10
  seta   %r11b
  and    -0x39(%rsp),%r11b
  cmpl   $0x2,-0x14(%rsp)
  seta   %r10b
  and    %r10d,%r11d
  cmp    %rsi,-0x60(%rsp)
  setge  %r10b
  cmp    %r14,-0x68(%rsp)
  setge  -0x39(%rsp)
  or     -0x39(%rsp),%r10b
  and    %r10d,%r11d
  cmp    %r12,-0x68(%rsp)
  setge  -0x68(%rsp)
  cmp    %rbp,%rsi
  setle  %r10b
  or     -0x68(%rsp),%r10b
  and    %r11d,%r10d
  mov    -0x70(%rsp),%r11
  add    %rsi,%r11
  cmp    %r11,-0x78(%rsp)
  setbe  %r11b
  cmp    %rdx,%rax
  setae  -0x68(%rsp)
  or     -0x68(%rsp),%r11b
  and    %r10d,%r11d
  cmp    -0x58(%rsp),%r14
  setle  %r10b
  cmp    %rcx,-0x60(%rsp)
  setge  -0x68(%rsp)
  or     -0x68(%rsp),%r10b
  and    %r10d,%r11d
  cmp    -0x58(%rsp),%r12
  setle  %r10b
  cmp    %rcx,%rbp
  setge  %bpl
  or     %ebp,%r10d
  lea    (%rdi,%rcx,1),%rbp
  and    %r11d,%r10d
  mov    -0x70(%rsp),%r11
  add    %rcx,%r11
  cmp    %r11,-0x78(%rsp)
  setbe  %r11b
  cmp    %rbp,%rax
  setae  %bpl
  or     %ebp,%r11d
  lea    (%rdi,%r14,1),%rbp
  and    %r11d,%r10d
  mov    -0x70(%rsp),%r11
  add    %r14,%r11
  cmp    %r11,-0x78(%rsp)
  setbe  %r11b
  cmp    %rbp,%rax
  setae  %bpl
  or     %ebp,%r11d
  test   %r11b,%r10b
  je     L13
  lea    (%rdi,%r12,1),%r10
  cmp    %r10,%rax
  setae  %r11b
  cmp    -0x78(%rsp),%r8
  setae  %r10b
  or     %r11b,%r10b
  je     L13
  mov    0x18(%rsp),%rdx
  mov    %rcx,-0x68(%rsp)
  xor    %r10d,%r10d
  lea    (%rdx,%rcx,1),%r11
  mov    0x10(%rsp),%rcx
  lea    (%rdx,%rsi,1),%rbp
  xor    %edx,%edx
  nopl   0x0(%rax,%rax,1)
L53:
  movq   (%rax,%rdx,4),%xmm0
  movq   0x8(%rax,%rdx,4),%xmm3
  movq   0x10(%rax,%rdx,4),%xmm2
  movq   0x18(%rax,%rdx,4),%xmm4
  movdqa %xmm0,%xmm5
  movdqa %xmm0,%xmm1
  punpcklwd %xmm3,%xmm0
  punpcklwd %xmm3,%xmm5
  punpcklwd %xmm3,%xmm1
  movdqa %xmm2,%xmm3
  pshufd $0xe,%xmm5,%xmm5
  punpcklwd %xmm4,%xmm3
  punpcklwd %xmm5,%xmm1
  punpcklwd %xmm5,%xmm0
  movdqa %xmm2,%xmm5
  punpcklwd %xmm4,%xmm5
  punpcklwd %xmm4,%xmm2
  pshufd $0xe,%xmm0,%xmm0
  pshufd $0xe,%xmm5,%xmm5
  movdqa %xmm0,%xmm4
  punpcklwd %xmm5,%xmm2
  punpcklwd %xmm5,%xmm3
  movdqa %xmm0,%xmm5
  pshufd $0xe,%xmm2,%xmm2
  punpcklwd %xmm2,%xmm5
  punpcklwd %xmm2,%xmm4
  punpcklwd %xmm2,%xmm0
  pshufd $0xe,%xmm5,%xmm5
  movdqa %xmm1,%xmm2
  punpcklwd %xmm5,%xmm4
  punpcklwd %xmm5,%xmm0
  movdqa %xmm1,%xmm5
  punpcklwd %xmm3,%xmm5
  punpcklwd %xmm3,%xmm1
  punpcklwd %xmm3,%xmm2
  pshufd $0xe,%xmm5,%xmm5
  pshufd $0xe,%xmm0,%xmm0
  pshuflw $0x1b,%xmm4,%xmm4
  punpcklwd %xmm5,%xmm1
  punpcklwd %xmm5,%xmm2
  pshuflw $0x1b,%xmm0,%xmm0
  pshufd $0xe,%xmm1,%xmm1
  movq   %xmm2,(%rbx,%rdx,1)
  movq   %xmm4,0x0(%rbp,%r10,1)
  movq   %xmm1,(%r8,%rdx,1)
  add    $0x8,%rdx
  movq   %xmm0,(%r11,%r10,1)
  sub    $0x8,%r10
  cmp    %rcx,%rdx
  jne    L53
  mov    -0x38(%rsp),%edx
  mov    -0x68(%rsp),%rcx
  mov    -0x28(%rsp),%r10d
  add    0x20(%rsp),%edx
  cmp    %r10d,-0x44(%rsp)
  je     L106
  movslq %edx,%r11
  mov    -0x30(%rsp),%ebp
  add    $0x4,%edx
  movzwl (%r9,%r11,2),%ebx
  lea    (%r11,%r11,1),%r10
  mov    -0x34(%rsp),%r11d
  add    %ebp,%r11d
  movslq %r11d,%r11
  mov    %bx,(%rdi,%r11,2)
  mov    -0x24(%rsp),%r11d
  movzwl 0x2(%r9,%r10,1),%ebx
  add    %ebp,%r11d
  movslq %r11d,%r11
  mov    %bx,(%rdi,%r11,2)
  mov    -0x48(%rsp),%r11d
  movzwl 0x4(%r9,%r10,1),%ebx
  add    -0x28(%rsp),%r11d
  movslq %r11d,%r11
  mov    %bx,0x2(%rdi,%r11,2)
  mov    -0x48(%rsp),%ebx
  movzwl 0x6(%r9,%r10,1),%r11d
  mov    -0x24(%rsp),%r10d
  add    %ebx,%r10d
  movslq %r10d,%r10
  mov    %r11w,(%rdi,%r10,2)
  mov    -0x44(%rsp),%r11d
  cmp    %r11d,-0x34(%rsp)
  jge    L106
  movslq %edx,%rdx
  movzwl (%r9,%rdx,2),%r11d
  lea    (%rdx,%rdx,1),%r10
  mov    -0x2c(%rsp),%edx
  add    %ebp,%edx
  movslq %edx,%rdx
  mov    %r11w,(%rdi,%rdx,2)
  mov    -0x20(%rsp),%edx
  movzwl 0x2(%r9,%r10,1),%r11d
  add    %ebp,%edx
  movslq %edx,%rdx
  mov    %r11w,(%rdi,%rdx,2)
  mov    -0x34(%rsp),%edx
  movzwl 0x4(%r9,%r10,1),%r11d
  add    %ebx,%edx
  movslq %edx,%rdx
  mov    %r11w,0x2(%rdi,%rdx,2)
  mov    -0x20(%rsp),%edx
  movzwl 0x6(%r9,%r10,1),%r11d
  add    %ebx,%edx
  movslq %edx,%rdx
  mov    %r11w,(%rdi,%rdx,2)
  mov    -0x2c(%rsp),%r11d
  cmp    %r11d,-0x44(%rsp)
  jle    L106
  mov    0x24(%rsp),%edx
  movzwl 0x8(%r9,%r10,1),%r11d
  add    %ebp,%edx
  add    0xc(%rsp),%ebp
  movslq %edx,%rdx
  mov    %r11w,(%rdi,%rdx,2)
  movzwl 0xa(%r9,%r10,1),%r11d
  movslq %ebp,%rdx
  mov    %r11w,(%rdi,%rdx,2)
  mov    -0x2c(%rsp),%edx
  movzwl 0xc(%r9,%r10,1),%r11d
  add    %ebx,%edx
  add    0xc(%rsp),%ebx
  movslq %edx,%rdx
  mov    %r11w,0x2(%rdi,%rdx,2)
  movzwl 0xe(%r9,%r10,1),%r10d
  movslq %ebx,%rdx
  mov    %r10w,(%rdi,%rdx,2)
L106:
  mov    0x8(%rsp),%edx
  add    %edx,-0x38(%rsp)
  add    %r13,%r14
  add    %r13,%rsi
  mov    -0x10(%rsp),%rdx
  add    %r13,-0x50(%rsp)
  sub    %r13,%r12
  sub    %r13,%rcx
  add    %rdx,-0x78(%rsp)
  sub    %r13,%r8
  add    -0x8(%rsp),%r15
  add    %rdx,%rax
  mov    -0x1c(%rsp),%edx
  add    %edx,-0x30(%rsp)
  sub    %edx,-0x48(%rsp)
  mov    -0x40(%rsp),%edx
  cmp    %edx,-0x18(%rsp)
  jne    L54
L15:
  add    $0x30,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L13:
  mov    0x28(%rsp),%rbx
  mov    -0x50(%rsp),%r11
  mov    %rax,%r10
  add    %r11,%rbx
  nopl   0x0(%rax,%rax,1)
L97:
  movzwl (%r10),%ebp
  add    $0x8,%r10
  mov    %bp,0x2(%r11)
  movzwl -0x6(%r10),%ebp
  mov    %bp,-0x2(%rdx)
  movzwl -0x4(%r10),%ebp
  mov    %bp,0x2(%r11,%r15,2)
  movzwl -0x2(%r10),%ebp
  add    $0x2,%r11
  mov    %bp,-0x2(%rdx,%r15,2)
  sub    $0x2,%rdx
  cmp    %rbx,%r11
  jne    L97
  jmp    L106
```

assistant: ```c
void si_camera_demux_gen(unsigned short *out, unsigned short *in, int size, int serlen, int parlen) {
  int so2, tot, row, col, irow, icol;
  so2 = size / 2;
  tot = size * size;
  row = 0;
  col = 0;
  tot = 0;
  for (row = 0; row < parlen; row++) {
    for (col = 0; col < serlen; col++) {
      out[(row + 2) * size + (col + 1)] = in[tot];
      icol = (serlen - (col + 1)) + so2;
      irow = (parlen - (row + 1)) + so2;
      out[(row + 2) * size + icol] = in[tot + 1];
      out[irow * size + col + 1] = in[tot + 2];
      out[irow * size + icol] = in[tot + 3];
      tot += 4;
    }
  }
}
```