user: What is the c source code of the assembly code below:

```asm
<deBayerBL>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %rsi,(%rsp)
  mov    %ecx,%eax
  shr    $0x1f,%eax
  add    %ecx,%eax
  sar    %eax
  mov    %eax,0x2c(%rsp)
  cmp    $0x1,%ecx
  jle    L52
  mov    %edx,%r15d
  mov    %edx,%eax
  shr    $0x1f,%eax
  add    %edx,%eax
  sar    %eax
  mov    %eax,0x28(%rsp)
  movl   $0xffffffff,0x20(%rsp)
  movl   $0x1,0x1c(%rsp)
  mov    %rdi,%r14
  mov    %ecx,%r13d
  jmp    L14
L59:
  mov    0x1c(%rsp),%eax
  add    %eax,%eax
  lea    -0x2(%rax),%esi
  mov    %esi,0x10(%rsp)
  sub    $0x1,%eax
  mov    %eax,0x14(%rsp)
  mov    $0x0,%ebp
L56:
  mov    $0x0,%r9d
  mov    %r13d,%r8d
  mov    %r15d,%ecx
  mov    %ebx,%edx
  mov    %ebp,%esi
  mov    %r14,%rdi
  call   <getBayerPixelCol@plt>
  mov    %eax,%r12d
  mov    %ebp,0x8(%rsp)
  lea    -0x1(%rbp),%eax
  mov    $0x0,%r9d
  mov    %r13d,%r8d
  mov    %r15d,%ecx
  mov    %ebx,%edx
  mov    %eax,0x24(%rsp)
  mov    %eax,%esi
  mov    %r14,%rdi
  call   <getBayerPixelCol@plt>
  add    %eax,%r12d
  mov    $0x0,%r9d
  mov    %r13d,%r8d
  mov    %r15d,%ecx
  mov    0x20(%rsp),%edx
  mov    %ebp,%esi
  mov    %r14,%rdi
  call   <getBayerPixelCol@plt>
  add    %eax,%r12d
  mov    $0x0,%r9d
  mov    %r13d,%r8d
  mov    %r15d,%ecx
  mov    0x20(%rsp),%edx
  mov    0x24(%rsp),%esi
  mov    %r14,%rdi
  call   <getBayerPixelCol@plt>
  lea    0x0(%rbp,%rbp,1),%edi
  sub    $0x8,%rsp
  add    %eax,%r12d
  lea    0x3(%r12),%eax
  cmovns %r12d,%eax
  sar    $0x2,%eax
  push   %rax
  mov    $0x0,%r9d
  mov    %r13d,%r8d
  mov    %r15d,%ecx
  mov    0x20(%rsp),%edx
  mov    %edi,0x1c(%rsp)
  mov    %edi,%esi
  mov    0x10(%rsp),%rdi
  call   <setPixelBounds@plt>
  mov    $0x2,%r9d
  mov    %r13d,%r8d
  mov    %r15d,%ecx
  mov    %ebx,%edx
  mov    %ebp,%esi
  mov    %r14,%rdi
  call   <getBayerPixelCol@plt>
  mov    %eax,%r12d
  mov    $0x2,%r9d
  mov    %r13d,%r8d
  mov    %r15d,%ecx
  mov    %ebx,%edx
  mov    0x34(%rsp),%esi
  mov    %r14,%rdi
  call   <getBayerPixelCol@plt>
  add    %eax,%r12d
  mov    $0x1,%r9d
  mov    %r13d,%r8d
  mov    %r15d,%ecx
  mov    %ebx,%edx
  mov    %ebp,%esi
  mov    %r14,%rdi
  call   <getBayerPixelCol@plt>
  add    %eax,%r12d
  mov    $0x1,%r9d
  mov    %r13d,%r8d
  mov    %r15d,%ecx
  mov    0x30(%rsp),%edx
  mov    %ebp,%esi
  mov    %r14,%rdi
  call   <getBayerPixelCol@plt>
  add    %eax,%r12d
  lea    0x3(%r12),%eax
  cmovns %r12d,%eax
  sar    $0x2,%eax
  mov    %eax,(%rsp)
  mov    $0x1,%r9d
  mov    %r13d,%r8d
  mov    %r15d,%ecx
  mov    0x20(%rsp),%edx
  mov    0x1c(%rsp),%esi
  mov    0x10(%rsp),%r12
  mov    %r12,%rdi
  call   <setPixelBounds@plt>
  mov    $0x3,%r9d
  mov    %r13d,%r8d
  mov    %r15d,%ecx
  mov    %ebx,%edx
  mov    %ebp,%esi
  mov    %r14,%rdi
  call   <getBayerPixelCol@plt>
  mov    %eax,(%rsp)
  mov    $0x2,%r9d
  mov    %r13d,%r8d
  mov    %r15d,%ecx
  mov    0x20(%rsp),%edx
  mov    0x1c(%rsp),%esi
  mov    %r12,0x10(%rsp)
  mov    %r12,%rdi
  call   <setPixelBounds@plt>
  mov    $0x0,%r9d
  mov    %r13d,%r8d
  mov    %r15d,%ecx
  mov    %ebx,%edx
  mov    %ebp,%esi
  mov    %r14,%rdi
  call   <getBayerPixelCol@plt>
  mov    %eax,%r12d
  mov    $0x0,%r9d
  mov    %r13d,%r8d
  mov    %r15d,%ecx
  mov    0x30(%rsp),%edx
  mov    %ebp,%esi
  mov    %r14,%rdi
  call   <getBayerPixelCol@plt>
  mov    0x1c(%rsp),%ecx
  lea    0x1(%rcx),%r10d
  add    %eax,%r12d
  mov    %r12d,%eax
  shr    $0x1f,%eax
  add    %r12d,%eax
  sar    %eax
  mov    %eax,(%rsp)
  mov    $0x0,%r9d
  mov    %r13d,%r8d
  mov    %r15d,%ecx
  mov    0x20(%rsp),%edx
  mov    %r10d,0x28(%rsp)
  mov    %r10d,%esi
  mov    0x10(%rsp),%r12
  mov    %r12,%rdi
  call   <setPixelBounds@plt>
  mov    $0x2,%r9d
  mov    %r13d,%r8d
  mov    %r15d,%ecx
  mov    %ebx,%edx
  mov    %ebp,%esi
  mov    %r14,%rdi
  call   <getBayerPixelCol@plt>
  mov    %eax,(%rsp)
  mov    $0x1,%r9d
  mov    %r13d,%r8d
  mov    %r15d,%ecx
  mov    0x20(%rsp),%edx
  mov    0x28(%rsp),%esi
  mov    %r12,0x10(%rsp)
  mov    %r12,%rdi
  call   <setPixelBounds@plt>
  mov    $0x3,%r9d
  mov    %r13d,%r8d
  mov    %r15d,%ecx
  mov    %ebx,%edx
  mov    %ebp,%esi
  mov    %r14,%rdi
  call   <getBayerPixelCol@plt>
  mov    %eax,%r12d
  add    $0x1,%ebp
  mov    $0x3,%r9d
  mov    %r13d,%r8d
  mov    %r15d,%ecx
  mov    %ebx,%edx
  mov    %ebp,%esi
  mov    %r14,%rdi
  call   <getBayerPixelCol@plt>
  add    %eax,%r12d
  mov    %r12d,%eax
  shr    $0x1f,%eax
  add    %r12d,%eax
  sar    %eax
  mov    %eax,(%rsp)
  mov    $0x2,%r9d
  mov    %r13d,%r8d
  mov    %r15d,%ecx
  mov    0x20(%rsp),%edx
  mov    0x28(%rsp),%esi
  mov    0x10(%rsp),%rdi
  call   <setPixelBounds@plt>
  mov    $0x0,%r9d
  mov    %r13d,%r8d
  mov    %r15d,%ecx
  mov    %ebx,%edx
  mov    0x18(%rsp),%esi
  mov    %r14,%rdi
  call   <getBayerPixelCol@plt>
  mov    %eax,%r12d
  mov    $0x0,%r9d
  mov    %r13d,%r8d
  mov    %r15d,%ecx
  mov    %ebx,%edx
  mov    0x34(%rsp),%esi
  mov    %r14,%rdi
  call   <getBayerPixelCol@plt>
  add    %eax,%r12d
  mov    %r12d,%eax
  shr    $0x1f,%eax
  add    %r12d,%eax
  sar    %eax
  mov    %eax,(%rsp)
  mov    $0x0,%r9d
  mov    %r13d,%r8d
  mov    %r15d,%ecx
  mov    0x24(%rsp),%edx
  mov    0x1c(%rsp),%esi
  mov    0x10(%rsp),%r12
  mov    %r12,%rdi
  call   <setPixelBounds@plt>
  mov    $0x1,%r9d
  mov    %r13d,%r8d
  mov    %r15d,%ecx
  mov    %ebx,%edx
  mov    0x18(%rsp),%esi
  mov    %r14,%rdi
  call   <getBayerPixelCol@plt>
  mov    %eax,(%rsp)
  mov    $0x1,%r9d
  mov    %r13d,%r8d
  mov    %r15d,%ecx
  mov    0x24(%rsp),%edx
  mov    0x1c(%rsp),%esi
  mov    %r12,0x10(%rsp)
  mov    %r12,%rdi
  call   <setPixelBounds@plt>
  mov    $0x3,%r9d
  mov    %r13d,%r8d
  mov    %r15d,%ecx
  mov    %ebx,%edx
  mov    0x18(%rsp),%esi
  mov    %r14,%rdi
  call   <getBayerPixelCol@plt>
  mov    %eax,%r12d
  mov    $0x3,%r9d
  mov    %r13d,%r8d
  mov    %r15d,%ecx
  mov    0x2c(%rsp),%edx
  mov    0x18(%rsp),%esi
  mov    %r14,%rdi
  call   <getBayerPixelCol@plt>
  add    %eax,%r12d
  mov    %r12d,%eax
  shr    $0x1f,%eax
  add    %r12d,%eax
  sar    %eax
  mov    %eax,(%rsp)
  mov    $0x2,%r9d
  mov    %r13d,%r8d
  mov    %r15d,%ecx
  mov    0x24(%rsp),%edx
  mov    0x1c(%rsp),%esi
  mov    0x10(%rsp),%r12
  mov    %r12,%rdi
  call   <setPixelBounds@plt>
  mov    $0x0,%r9d
  mov    %r13d,%r8d
  mov    %r15d,%ecx
  mov    %ebx,%edx
  mov    0x18(%rsp),%esi
  mov    %r14,%rdi
  call   <getBayerPixelCol@plt>
  mov    %eax,(%rsp)
  mov    $0x0,%r9d
  mov    %r13d,%r8d
  mov    %r15d,%ecx
  mov    0x24(%rsp),%edx
  mov    0x28(%rsp),%esi
  mov    %r12,0x10(%rsp)
  mov    %r12,%rdi
  call   <setPixelBounds@plt>
  mov    $0x2,%r9d
  mov    %r13d,%r8d
  mov    %r15d,%ecx
  mov    %ebx,%edx
  mov    0x18(%rsp),%esi
  mov    %r14,%rdi
  call   <getBayerPixelCol@plt>
  mov    %eax,%r12d
  mov    $0x2,%r9d
  mov    %r13d,%r8d
  mov    %r15d,%ecx
  mov    0x2c(%rsp),%edx
  mov    0x18(%rsp),%esi
  mov    %r14,%rdi
  call   <getBayerPixelCol@plt>
  add    %eax,%r12d
  mov    $0x1,%r9d
  mov    %r13d,%r8d
  mov    %r15d,%ecx
  mov    %ebx,%edx
  mov    0x18(%rsp),%esi
  mov    %r14,%rdi
  call   <getBayerPixelCol@plt>
  add    %eax,%r12d
  mov    $0x1,%r9d
  mov    %r13d,%r8d
  mov    %r15d,%ecx
  mov    %ebx,%edx
  mov    %ebp,%esi
  mov    %r14,%rdi
  call   <getBayerPixelCol@plt>
  add    %eax,%r12d
  lea    0x3(%r12),%eax
  cmovns %r12d,%eax
  sar    $0x2,%eax
  mov    %eax,(%rsp)
  mov    $0x1,%r9d
  mov    %r13d,%r8d
  mov    %r15d,%ecx
  mov    0x24(%rsp),%edx
  mov    0x28(%rsp),%esi
  mov    0x10(%rsp),%rdi
  call   <setPixelBounds@plt>
  mov    $0x3,%r9d
  mov    %r13d,%r8d
  mov    %r15d,%ecx
  mov    %ebx,%edx
  mov    0x18(%rsp),%esi
  mov    %r14,%rdi
  call   <getBayerPixelCol@plt>
  mov    %eax,%r12d
  mov    $0x3,%r9d
  mov    %r13d,%r8d
  mov    %r15d,%ecx
  mov    %ebx,%edx
  mov    %ebp,%esi
  mov    %r14,%rdi
  call   <getBayerPixelCol@plt>
  add    %eax,%r12d
  mov    $0x3,%r9d
  mov    %r13d,%r8d
  mov    %r15d,%ecx
  mov    0x2c(%rsp),%edx
  mov    0x18(%rsp),%esi
  mov    %r14,%rdi
  call   <getBayerPixelCol@plt>
  add    %eax,%r12d
  mov    $0x3,%r9d
  mov    %r13d,%r8d
  mov    %r15d,%ecx
  mov    0x2c(%rsp),%edx
  mov    %ebp,%esi
  mov    %r14,%rdi
  call   <getBayerPixelCol@plt>
  add    %eax,%r12d
  lea    0x3(%r12),%eax
  cmovns %r12d,%eax
  sar    $0x2,%eax
  mov    %eax,(%rsp)
  mov    $0x2,%r9d
  mov    %r13d,%r8d
  mov    %r15d,%ecx
  mov    0x24(%rsp),%edx
  mov    0x28(%rsp),%esi
  mov    0x10(%rsp),%rdi
  call   <setPixelBounds@plt>
  add    $0x10,%rsp
  cmp    0x28(%rsp),%ebp
  jl     L56
L44:
  mov    0x1c(%rsp),%ebx
  lea    0x1(%rbx),%eax
  addl   $0x1,0x20(%rsp)
  cmp    %ebx,0x2c(%rsp)
  jle    L52
  mov    %eax,0x1c(%rsp)
L14:
  mov    0x1c(%rsp),%eax
  lea    -0x1(%rax),%ebx
  cmp    $0x1,%r15d
  jg     L59
  jmp    L44
L52:
  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);
    }
  }
}
```