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

```asm
<deNoise>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  mov    %rdx,%r12
  push   %rbp
  push   %rbx
  sub    $0x138,%rsp
  mov    (%rcx),%r13
  mov    0x170(%rsp),%eax
  mov    %rdi,0x10(%rsp)
  mov    %rsi,0x18(%rsp)
  mov    0x180(%rsp),%r15
  mov    %eax,0x28(%rsp)
  mov    0x178(%rsp),%eax
  mov    %r8d,0x8(%rsp)
  mov    0x190(%rsp),%r14
  mov    %eax,0x48(%rsp)
  mov    0x188(%rsp),%rax
  mov    %r9d,0x20(%rsp)
  mov    %rax,0x50(%rsp)
  test   %r13,%r13
  je     L106
L161:
  mov    (%r15),%ecx
  test   %ecx,%ecx
  jne    L231
  mov    0x50(%rsp),%rax
  mov    (%rax),%edx
  test   %edx,%edx
  je     L69
L231:
  mov    (%r14),%eax
  test   %eax,%eax
  je     L249
  mov    0x10(%rsp),%rax
  movzwl 0x0(%r13),%edi
  mov    %r14,%rdx
  movzbl (%rax),%ecx
  shl    $0x8,%edi
  movzwl %di,%edi
  shl    $0x10,%ecx
  mov    %ecx,(%r12)
  mov    %ecx,%esi
  mov    %ecx,0x30(%rsp)
  call   <LowPassMul@plt>
  mov    0x18(%rsp),%rbx
  mov    0x30(%rsp),%ecx
  lea    0x1000007f(%rax),%edx
  add    $0x10007fff,%eax
  shr    $0x10,%eax
  shr    $0x8,%edx
  mov    %dx,0x0(%r13)
  mov    %al,(%rbx)
  movslq 0x8(%rsp),%rbx
  mov    %rbx,%rax
  mov    %rbx,0x8(%rsp)
  mov    $0x1,%ebx
  cmp    $0x1,%eax
  jle    L104
  mov    %rbx,%rbp
  mov    %ecx,%ebx
  nopl   0x0(%rax)
L256:
  mov    0x10(%rsp),%rax
  movzwl %bx,%edi
  mov    %r15,%rdx
  movzbl (%rax,%rbp,1),%esi
  shl    $0x10,%esi
  call   <LowPassMul@plt>
  movzwl 0x0(%r13,%rbp,2),%edi
  mov    %r14,%rdx
  mov    %eax,(%r12,%rbp,4)
  mov    %eax,%esi
  mov    %eax,%ebx
  shl    $0x8,%edi
  movzwl %di,%edi
  call   <LowPassMul@plt>
  mov    0x18(%rsp),%rcx
  lea    0x1000007f(%rax),%edx
  add    $0x10007fff,%eax
  shr    $0x8,%edx
  shr    $0x10,%eax
  mov    %dx,0x0(%r13,%rbp,2)
  mov    %al,(%rcx,%rbp,1)
  add    $0x1,%rbp
  cmp    0x8(%rsp),%rbp
  jne    L256
L104:
  movslq 0x20(%rsp),%rbx
  mov    %rbx,0x30(%rsp)
  cmp    $0x1,%ebx
  jle    L319
  movslq 0x28(%rsp),%rax
  mov    0x10(%rsp),%rbx
  mov    %r15,0x20(%rsp)
  movq   $0x1,0x28(%rsp)
  mov    0x18(%rsp),%rcx
  add    %rax,%rbx
  mov    %rax,0x40(%rsp)
  mov    0x8(%rsp),%rax
  mov    %rbx,0x10(%rsp)
  add    %rax,%rax
  lea    0x0(%r13,%rax,1),%rbx
  mov    %rax,0x38(%rsp)
  movslq 0x48(%rsp),%rax
  mov    0x50(%rsp),%r13
  add    %rax,%rcx
  mov    %rax,0x48(%rsp)
  mov    %rcx,0x18(%rsp)
  nopl   0x0(%rax,%rax,1)
L186:
  mov    0x10(%rsp),%rax
  movzwl (%r12),%edi
  mov    %r13,%rdx
  mov    $0x1,%ebp
  movzbl (%rax),%r8d
  shl    $0x10,%r8d
  mov    %r8d,%esi
  mov    %r8d,%r15d
  call   <LowPassMul@plt>
  movzwl (%rbx),%edi
  mov    %r14,%rdx
  mov    %eax,(%r12)
  mov    %eax,%esi
  shl    $0x8,%edi
  movzwl %di,%edi
  call   <LowPassMul@plt>
  mov    0x18(%rsp),%rcx
  lea    0x1000007f(%rax),%edx
  add    $0x10007fff,%eax
  shr    $0x10,%eax
  shr    $0x8,%edx
  cmpq   $0x1,0x8(%rsp)
  mov    %dx,(%rbx)
  mov    %al,(%rcx)
  mov    %rbp,%rax
  mov    %r15d,%ebp
  mov    %rax,%r15
  jle    L309
  nopl   0x0(%rax,%rax,1)
L52:
  mov    0x10(%rsp),%rax
  mov    0x20(%rsp),%rdx
  movzwl %bp,%edi
  movzbl (%rax,%r15,1),%esi
  shl    $0x10,%esi
  call   <LowPassMul@plt>
  movzwl (%r12,%r15,4),%edi
  mov    %r13,%rdx
  mov    %eax,%esi
  mov    %eax,%ebp
  call   <LowPassMul@plt>
  movzwl (%rbx,%r15,2),%edi
  mov    %r14,%rdx
  mov    %eax,(%r12,%r15,4)
  mov    %eax,%esi
  shl    $0x8,%edi
  movzwl %di,%edi
  call   <LowPassMul@plt>
  mov    0x18(%rsp),%rcx
  lea    0x1000007f(%rax),%edx
  add    $0x10007fff,%eax
  shr    $0x8,%edx
  shr    $0x10,%eax
  mov    %dx,(%rbx,%r15,2)
  mov    %al,(%rcx,%r15,1)
  add    $0x1,%r15
  cmp    0x8(%rsp),%r15
  jne    L52
L309:
  mov    0x40(%rsp),%rdx
  addq   $0x1,0x28(%rsp)
  add    %rdx,0x10(%rsp)
  mov    0x28(%rsp),%rax
  mov    0x48(%rsp),%rdx
  add    0x38(%rsp),%rbx
  add    %rdx,0x18(%rsp)
  cmp    0x30(%rsp),%rax
  jne    L186
L319:
  add    $0x138,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L249:
  mov    0x50(%rsp),%rax
  mov    %r15,0x178(%rsp)
  mov    %r12,%rdx
  mov    0x28(%rsp),%r9d
  mov    0x20(%rsp),%r8d
  mov    %rax,0x180(%rsp)
  mov    0x48(%rsp),%eax
  mov    0x8(%rsp),%ecx
  mov    0x18(%rsp),%rsi
  mov    %eax,0x170(%rsp)
  mov    0x10(%rsp),%rdi
  add    $0x138,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    10b0 <deNoiseSpacial@plt>
L69:
  mov    0x48(%rsp),%eax
  mov    %r14,0x178(%rsp)
  mov    %r13,%rdx
  mov    0x28(%rsp),%r9d
  mov    0x20(%rsp),%r8d
  mov    0x8(%rsp),%ecx
  mov    %eax,0x170(%rsp)
  mov    0x18(%rsp),%rsi
  mov    0x10(%rsp),%rdi
  add    $0x138,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1090 <deNoiseTemporal@plt>
L106:
  mov    %r8d,%edi
  mov    %rcx,%rbx
  mov    %r8d,%ebp
  imul   %r9d,%edi
  add    %edi,%edi
  call   <malloc@plt>
  mov    %rax,(%rbx)
  mov    %rax,%rdi
  mov    %rax,%r13
  movslq 0x20(%rsp),%rax
  mov    %rax,0x30(%rsp)
  test   %rax,%rax
  jle    L161
  movslq %ebp,%rbx
  test   %rbx,%rbx
  jle    L161
  mov    %rbx,%rdx
  movslq 0x28(%rsp),%rax
  pxor   %xmm2,%xmm2
  mov    %r12,0x118(%rsp)
  and    $0xfffffffffffffff0,%rdx
  mov    %rdi,0x110(%rsp)
  xor    %r12d,%r12d
  lea    0x5(%rdx),%rcx
  mov    %rax,0x38(%rsp)
  mov    %rbx,%rax
  lea    0x1(%rdx),%rsi
  mov    %rcx,0x90(%rsp)
  lea    0x8(%rdx),%rcx
  shr    $0x4,%rax
  lea    0x7(%rdx),%r10
  mov    %rcx,0xd0(%rsp)
  lea    0x9(%rdx),%rcx
  shl    $0x5,%rax
  lea    0x2(%rdx),%r9
  add    %rdi,%rax
  lea    0x3(%rdx),%r8
  lea    0x4(%rdx),%rbp
  mov    %rsi,0x60(%rsp)
  mov    %rcx,0xe0(%rsp)
  lea    0xa(%rdx),%rcx
  lea    0x6(%rdx),%r11
  mov    %rcx,0xe8(%rsp)
  lea    0xb(%rdx),%rcx
  mov    %rcx,0xf0(%rsp)
  lea    0xc(%rdx),%rcx
  mov    %rcx,0xf8(%rsp)
  lea    0xd(%rdx),%rcx
  mov    %rcx,0x100(%rsp)
  lea    0xe(%rdx),%rcx
  mov    %rcx,0x108(%rsp)
  mov    0x10(%rsp),%rcx
  mov    %rax,0x40(%rsp)
  lea    -0x1(%rbx),%rax
  mov    %r10,0xb0(%rsp)
  mov    %rcx,%r10
  mov    %rax,0x58(%rsp)
  mov    %rcx,%rax
  add    %rsi,%rcx
  mov    %r10,%r13
  mov    %rcx,0x78(%rsp)
  mov    %r10,%rcx
  add    %rdx,%rax
  add    %r9,%rcx
  mov    %r11,0x98(%rsp)
  xor    %r11d,%r11d
  mov    %rcx,0x88(%rsp)
  mov    %r10,%rcx
  add    %r8,%rcx
  mov    %r9,0x70(%rsp)
  mov    %rcx,0xa8(%rsp)
  mov    %r10,%rcx
  add    %rbp,%rcx
  mov    %r8,0x80(%rsp)
  mov    %rcx,0xb8(%rsp)
  mov    0x90(%rsp),%rcx
  mov    %rbp,0xa0(%rsp)
  add    %r10,%rcx
  mov    %rax,0x68(%rsp)
  mov    %rcx,0xc0(%rsp)
  mov    0x98(%rsp),%rcx
  add    %r10,%rcx
  mov    %rcx,0xc8(%rsp)
  mov    0xb0(%rsp),%rcx
  add    %r10,%rcx
  mov    %rcx,0xd8(%rsp)
  mov    %r15,0x120(%rsp)
  mov    %rdx,%r15
  mov    %r14,0x128(%rsp)
  nopl   (%rax)
L30:
  lea    (%r11,%r11,1),%rcx
  mov    %r11,%r8
  add    %rbx,%r11
  mov    %r10,%r9
  lea    (%rdi,%r11,2),%rdx
  lea    (%rdi,%rcx,1),%rsi
  sub    %r13,%r9
  lea    (%rbx,%r10,1),%rbp
  cmp    %rdx,%r10
  mov    %rsi,%rax
  setae  %r14b
  cmp    %rbp,%rsi
  setae  %dl
  or     %r14b,%dl
  je     L266
  cmpq   $0xe,0x58(%rsp)
  mov    %r10,%rdx
  seta   %r14b
  add    0x40(%rsp),%rcx
  test   %r14b,%r14b
  je     L266
L160:
  movdqu (%rdx),%xmm0
  add    $0x20,%rax
  add    $0x10,%rdx
  movdqa %xmm0,%xmm1
  punpckhbw %xmm2,%xmm0
  punpcklbw %xmm2,%xmm1
  psllw  $0x8,%xmm0
  psllw  $0x8,%xmm1
  movups %xmm0,-0x10(%rax)
  movups %xmm1,-0x20(%rax)
  cmp    %rax,%rcx
  jne    L160
  cmp    %rbx,%r15
  je     L299
  mov    0x68(%rsp),%rax
  lea    (%r15,%r8,1),%rdx
  movzbl (%rax,%r9,1),%eax
  shl    $0x8,%eax
  mov    %ax,(%rdi,%rdx,2)
  mov    0x60(%rsp),%rax
  cmp    %rax,%rbx
  jle    L299
  lea    (%rax,%r8,1),%rdx
  mov    0x78(%rsp),%rax
  movzbl (%rax,%r9,1),%eax
  shl    $0x8,%eax
  mov    %ax,(%rdi,%rdx,2)
  mov    0x70(%rsp),%rax
  cmp    %rax,%rbx
  jle    L299
  lea    (%rax,%r8,1),%rdx
  mov    0x88(%rsp),%rax
  movzbl (%rax,%r9,1),%eax
  shl    $0x8,%eax
  mov    %ax,(%rdi,%rdx,2)
  mov    0x80(%rsp),%rax
  cmp    %rax,%rbx
  jle    L299
  lea    (%rax,%r8,1),%rdx
  mov    0xa8(%rsp),%rax
  movzbl (%rax,%r9,1),%eax
  shl    $0x8,%eax
  mov    %ax,(%rdi,%rdx,2)
  mov    0xa0(%rsp),%rax
  cmp    %rax,%rbx
  jle    L299
  lea    (%rax,%r8,1),%rdx
  mov    0xb8(%rsp),%rax
  movzbl (%rax,%r9,1),%eax
  shl    $0x8,%eax
  mov    %ax,(%rdi,%rdx,2)
  mov    0x90(%rsp),%rax
  cmp    %rax,%rbx
  jle    L299
  lea    (%rax,%r8,1),%rdx
  mov    0xc0(%rsp),%rax
  movzbl (%rax,%r9,1),%eax
  shl    $0x8,%eax
  mov    %ax,(%rdi,%rdx,2)
  mov    0x98(%rsp),%rax
  cmp    %rax,%rbx
  jle    L299
  lea    (%rax,%r8,1),%rdx
  mov    0xc8(%rsp),%rax
  movzbl (%rax,%r9,1),%eax
  shl    $0x8,%eax
  mov    %ax,(%rdi,%rdx,2)
  mov    0xb0(%rsp),%rax
  cmp    %rax,%rbx
  jle    L299
  lea    (%rax,%r8,1),%rdx
  mov    0xd8(%rsp),%rax
  movzbl (%rax,%r9,1),%eax
  shl    $0x8,%eax
  mov    %ax,(%rdi,%rdx,2)
  mov    0xd0(%rsp),%rax
  cmp    %rax,%rbx
  jle    L299
  lea    (%rax,%r8,1),%rdx
  add    %r13,%rax
  movzbl (%rax,%r9,1),%eax
  shl    $0x8,%eax
  mov    %ax,(%rdi,%rdx,2)
  mov    0xe0(%rsp),%rax
  cmp    %rax,%rbx
  jle    L299
  lea    (%rax,%r8,1),%rdx
  add    %r13,%rax
  movzbl (%rax,%r9,1),%eax
  shl    $0x8,%eax
  mov    %ax,(%rdi,%rdx,2)
  mov    0xe8(%rsp),%rax
  cmp    %rax,%rbx
  jle    L299
  lea    (%rax,%r8,1),%rdx
  add    %r13,%rax
  movzbl (%rax,%r9,1),%eax
  shl    $0x8,%eax
  mov    %ax,(%rdi,%rdx,2)
  mov    0xf0(%rsp),%rax
  cmp    %rax,%rbx
  jle    L299
  lea    (%rax,%r8,1),%rdx
  add    %r13,%rax
  movzbl (%rax,%r9,1),%eax
  shl    $0x8,%eax
  mov    %ax,(%rdi,%rdx,2)
  mov    0xf8(%rsp),%rax
  cmp    %rax,%rbx
  jle    L299
  lea    (%rax,%r8,1),%rdx
  add    %r13,%rax
  movzbl (%rax,%r9,1),%eax
  shl    $0x8,%eax
  mov    %ax,(%rdi,%rdx,2)
  mov    0x100(%rsp),%rax
  cmp    %rax,%rbx
  jle    L299
  lea    (%rax,%r8,1),%rdx
  add    %r13,%rax
  movzbl (%rax,%r9,1),%eax
  shl    $0x8,%eax
  mov    %ax,(%rdi,%rdx,2)
  mov    0x108(%rsp),%rax
  cmp    %rax,%rbx
  jle    L299
  add    %rax,%r8
  add    %r13,%rax
  movzbl (%rax,%r9,1),%eax
  shl    $0x8,%eax
  mov    %ax,(%rdi,%r8,2)
  nop
L299:
  add    $0x1,%r12
  add    0x38(%rsp),%r10
  cmp    0x30(%rsp),%r12
  jne    L30
  mov    0x110(%rsp),%r13
  mov    0x118(%rsp),%r12
  mov    0x120(%rsp),%r15
  mov    0x128(%rsp),%r14
  jmp    L161
L266:
  mov    %r10,%rax
  nopl   0x0(%rax)
L216:
  movzbl (%rax),%edx
  add    $0x1,%rax
  add    $0x2,%rsi
  shl    $0x8,%edx
  mov    %dx,-0x2(%rsi)
  cmp    %rbp,%rax
  jne    L216
  jmp    L299
```

assistant: ```c
void deNoise(unsigned char *Frame, unsigned char *FrameDest, unsigned int *LineAnt, unsigned short **FrameAntPtr, int W, int H, int sStride, int dStride, int *Horizontal, int *Vertical, int *Temporal) {
  long X, Y;
  long sLineOffs = 0, dLineOffs = 0;
  unsigned int PixelAnt;
  unsigned int PixelDst;
  unsigned short *FrameAnt = (*FrameAntPtr);
  if (!FrameAnt) {
    (*FrameAntPtr) = FrameAnt = (unsigned short *)malloc(W * H * sizeof(unsigned short));
    for (Y = 0; Y < H; Y++) {
      unsigned short *dst = &FrameAnt[Y * W];
      unsigned char *src = Frame + Y * sStride;
      for (X = 0; X < W; X++)
        dst[X] = src[X] << 8;
    }
  }
  if (!Horizontal[0] && !Vertical[0]) {
    deNoiseTemporal(Frame, FrameDest, FrameAnt, W, H, sStride, dStride, Temporal);
    return;
  }
  if (!Temporal[0]) {
    deNoiseSpacial(Frame, FrameDest, LineAnt, W, H, sStride, dStride, Horizontal, Vertical);
    return;
  }
  LineAnt[0] = PixelAnt = Frame[0] << 16;
  PixelDst = LowPassMul(FrameAnt[0] << 8, PixelAnt, Temporal);
  FrameAnt[0] = ((PixelDst + 0x1000007F) >> 8);
  FrameDest[0] = ((PixelDst + 0x10007FFF) >> 16);
  for (X = 1; X < W; X++) {
    LineAnt[X] = PixelAnt = LowPassMul(PixelAnt, Frame[X] << 16, Horizontal);
    PixelDst = LowPassMul(FrameAnt[X] << 8, PixelAnt, Temporal);
    FrameAnt[X] = ((PixelDst + 0x1000007F) >> 8);
    FrameDest[X] = ((PixelDst + 0x10007FFF) >> 16);
  }
  for (Y = 1; Y < H; Y++) {
    unsigned int PixelAnt;
    unsigned short *LinePrev = &FrameAnt[Y * W];
    sLineOffs += sStride, dLineOffs += dStride;
    PixelAnt = Frame[sLineOffs] << 16;
    LineAnt[0] = LowPassMul(LineAnt[0], PixelAnt, Vertical);
    PixelDst = LowPassMul(LinePrev[0] << 8, LineAnt[0], Temporal);
    LinePrev[0] = ((PixelDst + 0x1000007F) >> 8);
    FrameDest[dLineOffs] = ((PixelDst + 0x10007FFF) >> 16);
    for (X = 1; X < W; X++) {
      unsigned int PixelDst;
      PixelAnt = LowPassMul(PixelAnt, Frame[sLineOffs + X] << 16, Horizontal);
      LineAnt[X] = LowPassMul(LineAnt[X], PixelAnt, Vertical);
      PixelDst = LowPassMul(LinePrev[X] << 8, LineAnt[X], Temporal);
      LinePrev[X] = ((PixelDst + 0x1000007F) >> 8);
      FrameDest[dLineOffs + X] = ((PixelDst + 0x10007FFF) >> 16);
    }
  }
}
```