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

```asm
<deBayerBL>:
  endbr64
  push   %r15
  mov    %ecx,%eax
  push   %r14
  shr    $0x1f,%eax
  push   %r13
  add    %ecx,%eax
  push   %r12
  sar    %eax
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %rsi,(%rsp)
  mov    %eax,0x2c(%rsp)
  cmp    $0x1,%ecx
  jle    L17
  mov    %edx,%eax
  movl   $0x0,0x18(%rsp)
  mov    %rdi,%r14
  mov    %edx,%r15d
  shr    $0x1f,%eax
  mov    %ecx,%r12d
  add    %edx,%eax
  sar    %eax
  mov    %eax,0x28(%rsp)
  nopw   0x0(%rax,%rax,1)
L15:
  mov    0x18(%rsp),%eax
  mov    %eax,%ebp
  add    $0x1,%eax
  mov    %eax,0x18(%rsp)
  cmp    $0x1,%r15d
  jle    L4
  mov    0x18(%rsp),%eax
  xor    %r13d,%r13d
  mov    %r12d,%ebx
  add    %eax,%eax
  lea    -0x2(%rax),%ecx
  sub    $0x1,%eax
  mov    %eax,0x14(%rsp)
  lea    -0x1(%rbp),%eax
  mov    %ecx,0x10(%rsp)
  mov    %eax,0x1c(%rsp)
  nopl   0x0(%rax,%rax,1)
L29:
  xor    %r9d,%r9d
  mov    %r13d,%esi
  mov    %ebx,%r8d
  mov    %r15d,%ecx
  mov    %ebp,%edx
  mov    %r14,%rdi
  call   <getBayerPixelCol@plt>
  lea    -0x1(%r13),%r10d
  xor    %r9d,%r9d
  mov    %ebx,%r8d
  mov    %r10d,%esi
  mov    %r15d,%ecx
  mov    %ebp,%edx
  mov    %r14,%rdi
  mov    %r10d,0xc(%rsp)
  mov    %eax,%r12d
  mov    %r13d,0x8(%rsp)
  call   <getBayerPixelCol@plt>
  mov    0x1c(%rsp),%edx
  xor    %r9d,%r9d
  mov    %r13d,%esi
  mov    %ebx,%r8d
  mov    %r15d,%ecx
  mov    %r14,%rdi
  add    %eax,%r12d
  call   <getBayerPixelCol@plt>
  mov    0xc(%rsp),%r10d
  xor    %r9d,%r9d
  mov    %ebx,%r8d
  mov    0x1c(%rsp),%edx
  mov    %r15d,%ecx
  mov    %r14,%rdi
  add    %eax,%r12d
  mov    %r10d,%esi
  mov    %r10d,0x20(%rsp)
  call   <getBayerPixelCol@plt>
  sub    $0x8,%rsp
  mov    %ebx,%r8d
  mov    %r15d,%ecx
  add    %eax,%r12d
  lea    0x0(%r13,%r13,1),%esi
  lea    0x3(%r12),%eax
  cmovns %r12d,%eax
  xor    %r9d,%r9d
  sar    $0x2,%eax
  push   %rax
  mov    0x20(%rsp),%edx
  mov    0x10(%rsp),%rdi
  mov    %esi,0x1c(%rsp)
  call   <setPixelBounds@plt>
  mov    %r13d,%esi
  mov    $0x2,%r9d
  mov    %ebp,%edx
  mov    %ebx,%r8d
  mov    %r15d,%ecx
  mov    %r14,%rdi
  call   <getBayerPixelCol@plt>
  mov    0x30(%rsp),%r10d
  mov    %ebx,%r8d
  mov    %r15d,%ecx
  mov    $0x2,%r9d
  mov    %ebp,%edx
  mov    %r14,%rdi
  mov    %eax,%r12d
  mov    %r10d,%esi
  mov    %r10d,0x34(%rsp)
  call   <getBayerPixelCol@plt>
  mov    %r13d,%esi
  mov    $0x1,%r9d
  mov    %ebp,%edx
  mov    %ebx,%r8d
  mov    %r15d,%ecx
  mov    %r14,%rdi
  add    %eax,%r12d
  call   <getBayerPixelCol@plt>
  mov    0x2c(%rsp),%edx
  mov    %r13d,%esi
  mov    %ebx,%r8d
  mov    $0x1,%r9d
  mov    %r15d,%ecx
  mov    %r14,%rdi
  add    %eax,%r12d
  call   <getBayerPixelCol@plt>
  mov    0x20(%rsp),%edx
  mov    0x1c(%rsp),%esi
  mov    %ebx,%r8d
  add    %eax,%r12d
  mov    $0x1,%r9d
  mov    %r15d,%ecx
  lea    0x3(%r12),%eax
  cmovns %r12d,%eax
  mov    0x10(%rsp),%r12
  sar    $0x2,%eax
  mov    %r12,%rdi
  mov    %eax,(%rsp)
  call   <setPixelBounds@plt>
  mov    %r13d,%esi
  mov    $0x3,%r9d
  mov    %ebp,%edx
  mov    %ebx,%r8d
  mov    %r15d,%ecx
  mov    %r14,%rdi
  call   <getBayerPixelCol@plt>
  mov    0x20(%rsp),%edx
  mov    0x1c(%rsp),%esi
  mov    %r12,%rdi
  mov    $0x2,%r9d
  mov    %ebx,%r8d
  mov    %r15d,%ecx
  mov    %eax,(%rsp)
  mov    %r12,0x10(%rsp)
  call   <setPixelBounds@plt>
  xor    %r9d,%r9d
  mov    %r13d,%esi
  mov    %ebx,%r8d
  mov    %r15d,%ecx
  mov    %ebp,%edx
  mov    %r14,%rdi
  call   <getBayerPixelCol@plt>
  mov    0x2c(%rsp),%edx
  xor    %r9d,%r9d
  mov    %r13d,%esi
  mov    %ebx,%r8d
  mov    %r15d,%ecx
  mov    %r14,%rdi
  mov    %eax,%r12d
  call   <getBayerPixelCol@plt>
  mov    0x1c(%rsp),%esi
  mov    0x20(%rsp),%edx
  xor    %r9d,%r9d
  add    %eax,%r12d
  mov    %ebx,%r8d
  mov    %r15d,%ecx
  mov    %r12d,%eax
  lea    0x1(%rsi),%r11d
  shr    $0x1f,%eax
  mov    %r11d,%esi
  mov    %r11d,0x30(%rsp)
  add    %r12d,%eax
  mov    0x10(%rsp),%r12
  sar    %eax
  mov    %r12,%rdi
  mov    %eax,(%rsp)
  call   <setPixelBounds@plt>
  mov    %r13d,%esi
  mov    $0x2,%r9d
  mov    %ebp,%edx
  mov    %ebx,%r8d
  mov    %r15d,%ecx
  mov    %r14,%rdi
  call   <getBayerPixelCol@plt>
  mov    0x20(%rsp),%edx
  mov    0x30(%rsp),%esi
  mov    %r12,%rdi
  mov    $0x1,%r9d
  mov    %ebx,%r8d
  mov    %r15d,%ecx
  mov    %eax,(%rsp)
  mov    %r12,0x10(%rsp)
  call   <setPixelBounds@plt>
  mov    %r13d,%esi
  mov    $0x3,%r9d
  mov    %ebp,%edx
  add    $0x1,%r13d
  mov    %ebx,%r8d
  mov    %r15d,%ecx
  mov    %r14,%rdi
  call   <getBayerPixelCol@plt>
  mov    $0x3,%r9d
  mov    %ebx,%r8d
  mov    %ebp,%edx
  mov    %r15d,%ecx
  mov    %r13d,%esi
  mov    %r14,%rdi
  mov    %eax,%r12d
  call   <getBayerPixelCol@plt>
  mov    0x20(%rsp),%edx
  mov    0x30(%rsp),%esi
  mov    %ebx,%r8d
  add    %eax,%r12d
  mov    0x10(%rsp),%rdi
  mov    $0x2,%r9d
  mov    %r15d,%ecx
  mov    %r12d,%eax
  shr    $0x1f,%eax
  add    %r12d,%eax
  sar    %eax
  mov    %eax,(%rsp)
  call   <setPixelBounds@plt>
  mov    0x18(%rsp),%esi
  xor    %r9d,%r9d
  mov    %ebx,%r8d
  mov    %r15d,%ecx
  mov    %ebp,%edx
  mov    %r14,%rdi
  call   <getBayerPixelCol@plt>
  mov    0x34(%rsp),%esi
  xor    %r9d,%r9d
  mov    %ebx,%r8d
  mov    %r15d,%ecx
  mov    %ebp,%edx
  mov    %r14,%rdi
  mov    %eax,%r12d
  call   <getBayerPixelCol@plt>
  mov    0x24(%rsp),%edx
  mov    0x1c(%rsp),%esi
  mov    %ebx,%r8d
  add    %eax,%r12d
  mov    %r15d,%ecx
  mov    %r12d,%eax
  shr    $0x1f,%eax
  add    %r12d,%eax
  mov    0x10(%rsp),%r12
  sar    %eax
  xor    %r9d,%r9d
  mov    %r12,%rdi
  mov    %eax,(%rsp)
  call   <setPixelBounds@plt>
  mov    0x18(%rsp),%esi
  mov    %ebx,%r8d
  mov    %r15d,%ecx
  mov    $0x1,%r9d
  mov    %ebp,%edx
  mov    %r14,%rdi
  call   <getBayerPixelCol@plt>
  mov    0x24(%rsp),%edx
  mov    0x1c(%rsp),%esi
  mov    %r12,%rdi
  mov    $0x1,%r9d
  mov    %ebx,%r8d
  mov    %r15d,%ecx
  mov    %eax,(%rsp)
  mov    %r12,0x10(%rsp)
  call   <setPixelBounds@plt>
  mov    0x18(%rsp),%esi
  mov    %ebx,%r8d
  mov    %r15d,%ecx
  mov    $0x3,%r9d
  mov    %ebp,%edx
  mov    %r14,%rdi
  call   <getBayerPixelCol@plt>
  mov    0x28(%rsp),%edx
  mov    0x18(%rsp),%esi
  mov    %ebx,%r8d
  mov    $0x3,%r9d
  mov    %r15d,%ecx
  mov    %r14,%rdi
  mov    %eax,%r12d
  call   <getBayerPixelCol@plt>
  mov    0x24(%rsp),%edx
  mov    0x1c(%rsp),%esi
  mov    %ebx,%r8d
  add    %eax,%r12d
  mov    $0x2,%r9d
  mov    %r15d,%ecx
  mov    %r12d,%eax
  shr    $0x1f,%eax
  add    %r12d,%eax
  mov    0x10(%rsp),%r12
  sar    %eax
  mov    %r12,%rdi
  mov    %eax,(%rsp)
  call   <setPixelBounds@plt>
  mov    0x18(%rsp),%esi
  xor    %r9d,%r9d
  mov    %ebx,%r8d
  mov    %r15d,%ecx
  mov    %ebp,%edx
  mov    %r14,%rdi
  call   <getBayerPixelCol@plt>
  mov    0x30(%rsp),%r11d
  xor    %r9d,%r9d
  mov    %r12,%rdi
  mov    0x24(%rsp),%edx
  mov    %ebx,%r8d
  mov    %r15d,%ecx
  mov    %eax,(%rsp)
  mov    %r11d,%esi
  mov    %r11d,0x1c(%rsp)
  mov    %r12,0x10(%rsp)
  call   <setPixelBounds@plt>
  mov    0x18(%rsp),%esi
  mov    %ebx,%r8d
  mov    %r15d,%ecx
  mov    $0x2,%r9d
  mov    %ebp,%edx
  mov    %r14,%rdi
  call   <getBayerPixelCol@plt>
  mov    0x28(%rsp),%edx
  mov    0x18(%rsp),%esi
  mov    %ebx,%r8d
  mov    $0x2,%r9d
  mov    %r15d,%ecx
  mov    %r14,%rdi
  mov    %eax,%r12d
  call   <getBayerPixelCol@plt>
  mov    0x18(%rsp),%esi
  mov    %ebx,%r8d
  mov    %r15d,%ecx
  mov    $0x1,%r9d
  mov    %ebp,%edx
  mov    %r14,%rdi
  add    %eax,%r12d
  call   <getBayerPixelCol@plt>
  mov    $0x1,%r9d
  mov    %ebx,%r8d
  mov    %ebp,%edx
  mov    %r15d,%ecx
  mov    %r13d,%esi
  mov    %r14,%rdi
  add    %eax,%r12d
  call   <getBayerPixelCol@plt>
  mov    0x24(%rsp),%edx
  mov    0x1c(%rsp),%esi
  mov    %ebx,%r8d
  add    %eax,%r12d
  mov    0x10(%rsp),%rdi
  mov    $0x1,%r9d
  mov    %r15d,%ecx
  lea    0x3(%r12),%eax
  cmovns %r12d,%eax
  sar    $0x2,%eax
  mov    %eax,(%rsp)
  call   <setPixelBounds@plt>
  mov    0x18(%rsp),%esi
  mov    %ebx,%r8d
  mov    %r15d,%ecx
  mov    $0x3,%r9d
  mov    %ebp,%edx
  mov    %r14,%rdi
  call   <getBayerPixelCol@plt>
  mov    $0x3,%r9d
  mov    %ebx,%r8d
  mov    %ebp,%edx
  mov    %r15d,%ecx
  mov    %r13d,%esi
  mov    %r14,%rdi
  mov    %eax,%r12d
  call   <getBayerPixelCol@plt>
  mov    0x28(%rsp),%edx
  mov    0x18(%rsp),%esi
  mov    %ebx,%r8d
  mov    $0x3,%r9d
  mov    %r15d,%ecx
  mov    %r14,%rdi
  add    %eax,%r12d
  call   <getBayerPixelCol@plt>
  mov    0x28(%rsp),%edx
  mov    %ebx,%r8d
  mov    %r15d,%ecx
  mov    $0x3,%r9d
  mov    %r13d,%esi
  mov    %r14,%rdi
  add    %eax,%r12d
  call   <getBayerPixelCol@plt>
  mov    0x24(%rsp),%edx
  mov    0x1c(%rsp),%esi
  mov    %ebx,%r8d
  add    %eax,%r12d
  mov    0x10(%rsp),%rdi
  mov    $0x2,%r9d
  mov    %r15d,%ecx
  lea    0x3(%r12),%eax
  cmovns %r12d,%eax
  sar    $0x2,%eax
  mov    %eax,(%rsp)
  call   <setPixelBounds@plt>
  pop    %rax
  pop    %rdx
  cmp    0x28(%rsp),%r13d
  jl     L29
  mov    %ebx,%r12d
L4:
  mov    0x2c(%rsp),%edx
  cmp    %edx,0x18(%rsp)
  jl     L15
L17:
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
void deBayerBL(uint8_t *in, uint8_t *out, uint32_t img_w, uint32_t img_h) {
  int32_t x, y;
  for (y = 0; y < img_h / 2; ++y) {
    for (x = 0; x < img_w / 2; ++x) {
      setPixelBounds(out, x * 2, y * 2, img_w, img_h, 0, (getBayerPixelCol(in, x, y, img_w, img_h, 0) + getBayerPixelCol(in, x - 1, y, img_w, img_h, 0) + getBayerPixelCol(in, x, y - 1, img_w, img_h, 0) + getBayerPixelCol(in, x - 1, y - 1, img_w, img_h, 0)) / 4);
      setPixelBounds(out, x * 2, y * 2, img_w, img_h, 1, (getBayerPixelCol(in, x, y, img_w, img_h, 2) + getBayerPixelCol(in, x - 1, y, img_w, img_h, 2) + getBayerPixelCol(in, x, y, img_w, img_h, 1) + getBayerPixelCol(in, x, y - 1, img_w, img_h, 1)) / 4);
      setPixelBounds(out, x * 2, y * 2, img_w, img_h, 2, getBayerPixelCol(in, x, y, img_w, img_h, 3));
      setPixelBounds(out, x * 2 + 1, y * 2, img_w, img_h, 0, (getBayerPixelCol(in, x, y, img_w, img_h, 0) + getBayerPixelCol(in, x, y - 1, img_w, img_h, 0)) / 2);
      setPixelBounds(out, x * 2 + 1, y * 2, img_w, img_h, 1, getBayerPixelCol(in, x, y, img_w, img_h, 2));
      setPixelBounds(out, x * 2 + 1, y * 2, img_w, img_h, 2, (getBayerPixelCol(in, x, y, img_w, img_h, 3) + getBayerPixelCol(in, x + 1, y, img_w, img_h, 3)) / 2);
      setPixelBounds(out, x * 2, y * 2 + 1, img_w, img_h, 0, (getBayerPixelCol(in, x, y, img_w, img_h, 0) + getBayerPixelCol(in, x - 1, y, img_w, img_h, 0)) / 2);
      setPixelBounds(out, x * 2, y * 2 + 1, img_w, img_h, 1, getBayerPixelCol(in, x, y, img_w, img_h, 1));
      setPixelBounds(out, x * 2, y * 2 + 1, img_w, img_h, 2, (getBayerPixelCol(in, x, y, img_w, img_h, 3) + getBayerPixelCol(in, x, y + 1, img_w, img_h, 3)) / 2);
      setPixelBounds(out, x * 2 + 1, y * 2 + 1, img_w, img_h, 0, getBayerPixelCol(in, x, y, img_w, img_h, 0));
      setPixelBounds(out, x * 2 + 1, y * 2 + 1, img_w, img_h, 1, (getBayerPixelCol(in, x, y, img_w, img_h, 2) + getBayerPixelCol(in, x, y + 1, img_w, img_h, 2) + getBayerPixelCol(in, x, y, img_w, img_h, 1) + getBayerPixelCol(in, x + 1, y, img_w, img_h, 1)) / 4);
      setPixelBounds(out, x * 2 + 1, y * 2 + 1, img_w, img_h, 2, (getBayerPixelCol(in, x, y, img_w, img_h, 3) + getBayerPixelCol(in, x + 1, y, img_w, img_h, 3) + getBayerPixelCol(in, x, y + 1, img_w, img_h, 3) + getBayerPixelCol(in, x + 1, y + 1, img_w, img_h, 3)) / 4);
    }
  }
}
```