user: 这段汇编代码用C语言表示是什么样的？

```asm
<deinterlace_16>:
  endbr64
  test   %r8d,%r8d
  jle    L52
  push   %r15
  mov    %rdi,%rax
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rdx,%rbx
  sub    $0x28,%rsp
  mov    0x60(%rsp),%edx
  test   %edx,%edx
  jne    L25
  movslq %ecx,%rcx
  mov    %rax,%r15
  mov    %rsi,%rbp
  lea    0x0(,%rcx,4),%rax
  mov    %rax,0x18(%rsp)
  lea    -0x1(%r8),%eax
  lea    0x4(%r15,%rax,4),%rax
  mov    %rax,0x10(%rsp)
  nopl   0x0(%rax)
L4:
  movzwl (%r15),%eax
  mov    (%r15),%r14d
  movzwl 0x0(%rbp),%r13d
  mov    0x0(%rbp),%r12d
  mov    %ax,0x8(%rsp)
  xor    %eax,%eax
  call   <isBigEndian@plt>
  test   %rax,%rax
  je     L14
  movzwl 0x8(%rsp),%r14d
  rol    $0x8,%r13w
  movzwl %r13w,%r12d
  rol    $0x8,%r14w
  movzwl %r14w,%r14d
L14:
  mov    %r14d,(%rbx)
  add    $0x4,%r15
  add    $0x4,%rbp
  mov    %r12d,0x4(%rbx)
  add    0x18(%rsp),%rbx
  cmp    %r15,0x10(%rsp)
  jne    L4
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L25:
  movslq %ecx,%rcx
  mov    %rax,%r14
  mov    %r9d,%r13d
  mov    %rsi,%r12
  lea    0x0(,%rcx,4),%rax
  mov    %rbx,%r15
  mov    %rax,0x10(%rsp)
  lea    -0x1(%r8),%eax
  lea    0x4(%r14,%rax,4),%rax
  mov    %rax,0x8(%rsp)
  nopw   0x0(%rax,%rax,1)
L8:
  mov    (%r12),%ebp
  mov    0x60(%rsp),%eax
  mov    %r13d,%ecx
  mov    (%r14),%ebx
  imul   %ebp,%eax
  sar    %cl,%eax
  sub    %eax,%ebx
  xor    %eax,%eax
  add    %ebx,%ebp
  call   <isBigEndian@plt>
  test   %rax,%rax
  je     L33
  mov    %ebp,%eax
  mov    %ebp,%edx
  shl    $0x8,%eax
  movzbl %dh,%ebp
  movzwl %ax,%eax
  or     %eax,%ebp
  mov    %ebx,%eax
  movzbl %bh,%ebx
  shl    $0x8,%eax
  movzwl %ax,%eax
  or     %eax,%ebx
L33:
  mov    %ebp,(%r15)
  add    $0x4,%r14
  add    $0x4,%r12
  mov    %ebx,0x4(%r15)
  add    0x10(%rsp),%r15
  cmp    0x8(%rsp),%r14
  jne    L8
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L52:
  ret
```

assistant: ```c
void deinterlace_16(int32_t *buffer_a, int32_t *buffer_b, int16_t *buffer_out, int numchannels, int numsamples, uint8_t interlacing_shift, uint8_t interlacing_leftweight) {
  int i;
  if (numsamples <= 0)
    return;
  if (interlacing_leftweight) {
    for (i = 0; i < numsamples; i++) {
      int32_t difference, midright;
      int16_t left;
      int16_t right;
      midright = buffer_a[i];
      difference = buffer_b[i];
      right = midright - ((difference * interlacing_leftweight) >> interlacing_shift);
      left = right + difference;
      if (isBigEndian()) {
        do {
          left = (((left)&0x00FF) << 0x08) | (((left)&0xFF00) >> 0x08);
        } while (0);
        do {
          right = (((right)&0x00FF) << 0x08) | (((right)&0xFF00) >> 0x08);
        } while (0);
      }
      buffer_out[i * numchannels] = left;
      buffer_out[i * numchannels + 1] = right;
    }
    return;
  }
  for (i = 0; i < numsamples; i++) {
    int16_t left, right;
    left = buffer_a[i];
    right = buffer_b[i];
    if (isBigEndian()) {
      do {
        left = (((left)&0x00FF) << 0x08) | (((left)&0xFF00) >> 0x08);
      } while (0);
      do {
        right = (((right)&0x00FF) << 0x08) | (((right)&0xFF00) >> 0x08);
      } while (0);
    }
    buffer_out[i * numchannels] = left;
    buffer_out[i * numchannels + 1] = right;
  }
}
```