user: 下面的汇编指令对应的C源代码是什么：

```asm
<filter_c_3d_median>:
  endbr64
  push   %r15
  mov    %rdi,%r15
  push   %r14
  push   %r13
  push   %r12
  mov    %ecx,%r12d
  push   %rbp
  push   %rbx
  mov    %esi,%ebx
  sub    $0xe8,%rsp
  mov    0x130(%rsp),%r13d
  mov    %edx,0x4(%rsp)
  mov    %r8,0x10(%rsp)
  mov    %r13d,%eax
  imul   %r13d,%eax
  mov    %eax,0x68(%rsp)
  imul   %r13d,%eax
  lea    0x0(,%rax,4),%edi
  mov    %eax,0x8(%rsp)
  call   <malloc@plt>
  mov    0x4(%rsp),%esi
  mov    0x8(%rsp),%r9d
  mov    %rax,%rbp
  mov    %r13d,%eax
  shr    $0x1f,%eax
  mov    %esi,%edi
  add    %r13d,%eax
  imul   %r12d,%edi
  sar    %eax
  mov    %eax,%r14d
  mov    %r9d,%eax
  shr    $0x1f,%eax
  sub    %r14d,%ebx
  mov    %edi,0x54(%rsp)
  add    %r9d,%eax
  mov    %ebx,0xac(%rsp)
  sar    %eax
  cmp    %ebx,%r14d
  jge    L33
  mov    %esi,%ecx
  mov    %r12d,%ebx
  cltq
  sub    %r14d,%ecx
  sub    %r14d,%ebx
  lea    0x0(%rbp,%rax,4),%rax
  mov    %ecx,0xb4(%rsp)
  mov    %ebx,0xb0(%rsp)
  mov    %rax,0xa0(%rsp)
  cmp    %ecx,%r14d
  jge    L33
  cmp    %ebx,%r14d
  jge    L33
  mov    %edi,%eax
  movslq %edi,%rdi
  movslq %r14d,%rbx
  mov    0x10(%rsp),%r8
  mov    %rdi,0x60(%rsp)
  shl    $0x2,%rdi
  mov    %r13d,%r12d
  mov    %rdi,0xd0(%rsp)
  mov    %esi,%edi
  imul   %r14d,%esi
  and    $0xfffffffc,%r12d
  mov    %rbx,0x98(%rsp)
  movl   $0x0,0x80(%rsp)
  mov    %esi,%ecx
  mov    %eax,%esi
  mov    %r14d,0x78(%rsp)
  imul   %r14d,%esi
  movslq %ecx,%rax
  mov    %esi,%edx
  movslq %esi,%rsi
  add    %rsi,%rax
  lea    0x1(%r12),%esi
  add    %rbx,%rax
  mov    %esi,0x20(%rsp)
  lea    0x2(%r12),%esi
  lea    (%r8,%rax,4),%rax
  mov    %esi,0x24(%rsp)
  lea    -0x1(%r13),%esi
  mov    %rax,0x90(%rsp)
  lea    (%rcx,%rdx,1),%eax
  mov    %eax,0xd8(%rsp)
  neg    %eax
  mov    %eax,0xa8(%rsp)
  movslq %edi,%rax
  mov    %rax,0xb8(%rsp)
  shl    $0x2,%rax
  mov    %rax,0x8(%rsp)
  mov    %r13d,%eax
  shr    $0x2,%eax
  mov    %esi,0x10(%rsp)
  lea    -0x1(%r9),%esi
  sub    $0x1,%eax
  mov    %esi,0xdc(%rsp)
  add    $0x1,%rax
  shl    $0x4,%rax
  mov    %rax,0x18(%rsp)
  mov    %r14d,%eax
  mov    %r15,%r14
  mov    %rbp,%r15
  mov    %r12d,%ebp
  mov    %eax,%r12d
L101:
  mov    0xd8(%rsp),%eax
  add    0x80(%rsp),%eax
  mov    %r12d,0x7c(%rsp)
  mov    %eax,0x84(%rsp)
  mov    0x98(%rsp),%rax
  neg    %rax
  mov    %rax,0x88(%rsp)
L149:
  mov    0x88(%rsp),%rax
  shl    $0x2,%rax
  lea    (%r14,%rax,1),%rcx
  add    0x90(%rsp),%rax
  mov    %rax,0xc8(%rsp)
  mov    0x98(%rsp),%rax
  mov    %rcx,0xc0(%rsp)
  mov    %rax,0x70(%rsp)
L13:
  mov    0x70(%rsp),%edx
  test   %r13d,%r13d
  jle    L2
  movslq 0x80(%rsp),%rsi
  mov    0xc0(%rsp),%rdi
  movl   $0x0,0x28(%rsp)
  mov    0x70(%rsp),%rcx
  movl   $0x0,0x50(%rsp)
  mov    %rsi,%rax
  mov    %rsi,0x30(%rsp)
  mov    %eax,0x2c(%rsp)
  lea    (%rdi,%rcx,4),%rsi
  mov    0x84(%rsp),%eax
  mov    0xa8(%rsp),%edi
  mov    %rsi,0x58(%rsp)
  add    %edi,%eax
  add    %edx,%eax
  mov    %eax,0x6c(%rsp)
  mov    0x10(%rsp),%eax
  mov    %rax,0x38(%rsp)
  lea    0x4(%r15),%rax
  mov    %rax,0x40(%rsp)
  lea    (%r14,%r15,1),%rax
  mov    %rax,0x48(%rsp)
  nopl   0x0(%rax)
L68:
  mov    0x30(%rsp),%rdi
  mov    0x58(%rsp),%rax
  xor    %r10d,%r10d
  mov    0x28(%rsp),%esi
  lea    (%rax,%rdi,4),%rcx
  mov    0x6c(%rsp),%edi
  add    0x2c(%rsp),%edi
  nopl   (%rax)
L46:
  movslq %esi,%r8
  lea    0x4(%rcx),%rbx
  lea    0x0(,%r8,4),%r9
  lea    (%r15,%r9,1),%rdx
  mov    %rdx,%r11
  mov    %rdx,%rax
  sub    %rbx,%r11
  cmp    $0x8,%r11
  jbe    L129
  cmpl   $0x2,0x10(%rsp)
  jbe    L129
  mov    0x18(%rsp),%rbx
  lea    (%rbx,%rdx,1),%r8
  mov    %rcx,%rdx
  sub    %rax,%rdx
L37:
  movups (%rax,%rdx,1),%xmm1
  add    $0x10,%rax
  movups %xmm1,-0x10(%rax)
  cmp    %r8,%rax
  jne    L37
  lea    0x0(%rbp,%rsi,1),%eax
  cmp    %r13d,%ebp
  je     L138
  lea    0x0(%rbp,%rdi,1),%edx
  mov    0x20(%rsp),%ebx
  sub    %r12d,%edx
  movslq %edx,%rdx
  movss  (%r14,%rdx,4),%xmm0
  movslq %eax,%rdx
  add    $0x1,%eax
  movss  %xmm0,(%r15,%rdx,4)
  cmp    %ebx,%r13d
  jle    L138
  lea    (%rbx,%rdi,1),%edx
  cltq
  sub    %r12d,%edx
  lea    0x0(,%rax,4),%r8
  movslq %edx,%rdx
  movss  (%r14,%rdx,4),%xmm0
  movss  %xmm0,(%r15,%rax,4)
  mov    0x24(%rsp),%eax
  cmp    %eax,%r13d
  jle    L138
  add    %edi,%eax
  sub    %r12d,%eax
  cltq
  movss  (%r14,%rax,4),%xmm0
  movss  %xmm0,0x4(%r15,%r8,1)
L138:
  lea    0x1(%r10),%eax
  add    %r13d,%esi
  add    0x8(%rsp),%rcx
  add    0x4(%rsp),%edi
  cmp    %eax,%r13d
  je     L91
  mov    %eax,%r10d
  jmp    L46
  nopl   0x0(%rax,%rax,1)
L129:
  mov    0x40(%rsp),%rax
  add    0x38(%rsp),%r8
  lea    (%rax,%r8,4),%r8
  mov    %rcx,%rax
  sub    0x48(%rsp),%rax
  sub    %r9,%rax
  add    %r14,%rax
  nopl   0x0(%rax)
L137:
  movss  (%rax,%rdx,1),%xmm0
  add    $0x4,%rdx
  movss  %xmm0,-0x4(%rdx)
  cmp    %r8,%rdx
  jne    L137
  jmp    L138
  nopl   (%rax)
L91:
  mov    0x50(%rsp),%esi
  mov    0x68(%rsp),%ecx
  mov    0x60(%rsp),%rdi
  add    %ecx,0x28(%rsp)
  add    %rdi,0x30(%rsp)
  mov    0x54(%rsp),%ecx
  lea    0x1(%rsi),%eax
  add    %ecx,0x2c(%rsp)
  cmp    %esi,%r10d
  je     L2
  mov    %eax,0x50(%rsp)
  jmp    L68
L2:
  mov    0xdc(%rsp),%edx
  xor    %esi,%esi
  mov    %r15,%rdi
  call   <inkernel_quicksort@plt>
  mov    0xa0(%rsp),%rax
  mov    0xc8(%rsp),%rcx
  movss  (%rax),%xmm0
  mov    0x70(%rsp),%rax
  movss  %xmm0,(%rcx,%rax,4)
  add    $0x1,%rax
  mov    %rax,0x70(%rsp)
  cmp    %eax,0xb0(%rsp)
  jg     L13
  addl   $0x1,0x7c(%rsp)
  mov    0x4(%rsp),%edi
  mov    0xb8(%rsp),%rcx
  add    %edi,0x84(%rsp)
  add    %rcx,0x88(%rsp)
  mov    0x7c(%rsp),%eax
  cmp    0xb4(%rsp),%eax
  jne    L149
  mov    0x54(%rsp),%ecx
  addl   $0x1,0x78(%rsp)
  mov    0xd0(%rsp),%rdi
  add    %ecx,0x80(%rsp)
  add    %rdi,0x90(%rsp)
  mov    0x78(%rsp),%eax
  sub    %ecx,0xa8(%rsp)
  cmp    0xac(%rsp),%eax
  jne    L101
L33:
  add    $0xe8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
void filter_c_3d_median(float *im, int nz, int ny, int nx, float *res, int nzr, int nyr, int nxr, int w) {
  int nwin = w * w * w;
  float *win = (float *)malloc(nwin * sizeof(float));
  int edgex = w / 2;
  int edgey = w / 2;
  int edgez = w / 2;
  int mpos = nwin / 2;
  int step = ny * nx;
  int x, y, z, wx, wy, wz, ind, indy, indz, indw;
  int nwa;
  for (z = edgez; z < (nz - edgez); ++z) {
    indz = z * step;
    for (y = edgey; y < (ny - edgey); ++y) {
      ind = indz + y * ny;
      for (x = edgex; x < (nx - edgex); ++x) {
        nwa = 0;
        for (wz = 0; wz < w; ++wz) {
          indw = step * (z + wz - edgez);
          for (wy = 0; wy < w; ++wy) {
            indy = indw + ny * (y + wy - edgey);
            for (wx = 0; wx < w; ++wx) {
              win[nwa] = im[indy + x + wx - edgex];
              ++nwa;
            }
          }
        }
        inkernel_quicksort(win, 0, nwin - 1);
        res[ind + x] = win[mpos];
      }
    }
  }
}
```