user: 请将以下的汇编代码转换成C语言代码：

```asm
<conservativeSmooth>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %ecx,-0x2c(%rsp)
  test   %ecx,%ecx
  jle    L277
  mov    %edx,%eax
  mov    %rdi,%rbp
  lea    -0x1(%rdx),%edi
  xor    %ebx,%ebx
  neg    %eax
  xor    %r15d,%r15d
  mov    %edi,%r14d
  mov    %edi,-0x28(%rsp)
  mov    %eax,-0x44(%rsp)
  mov    %edx,%eax
  lea    -0x1(%rcx),%r13d
  mov    %ebx,%r12d
  shr    $0x4,%eax
  mov    %rsi,%r11
  sub    $0x1,%eax
  add    $0x1,%rax
  shl    $0x4,%rax
  mov    %rax,-0x20(%rsp)
  mov    %edx,%eax
  and    $0xfffffff0,%eax
  cmp    %edi,%edx
  mov    %eax,-0x24(%rsp)
  mov    %edi,%eax
  cmovle %edx,%r14d
  add    $0x1,%rax
  mov    %rax,-0x10(%rsp)
  mov    %edx,%eax
  and    $0xf,%eax
  mov    %eax,-0x18(%rsp)
  sub    $0x1,%eax
  mov    %eax,-0x14(%rsp)
  mov    %r13d,%eax
  mov    %r15d,%r13d
  mov    %rbp,%r15
  mov    %eax,%ebx
  mov    %r14d,%ebp
  mov    %edx,%r14d
  xchg   %ax,%ax
L203:
  lea    (%r12,%r14,1),%eax
  mov    %eax,-0x48(%rsp)
  test   %r14d,%r14d
  jle    L241
  test   %r13d,%r13d
  je     L21
  mov    -0x28(%rsp),%eax
  test   %eax,%eax
  jle    L204
  mov    -0x44(%rsp),%edx
  mov    %r12d,-0x30(%rsp)
  movslq %r12d,%rsi
  xor    %eax,%eax
  mov    %rsi,-0x50(%rsp)
  lea    (%r11,%rsi,1),%rdi
  add    %r15,%rsi
  lea    -0x1(%rdx),%ecx
  add    $0x1,%edx
  mov    %edx,-0x3c(%rsp)
  mov    -0x48(%rsp),%edx
  mov    %ecx,-0x40(%rsp)
  lea    -0x1(%rdx),%ecx
  add    $0x1,%edx
  mov    %ecx,-0x38(%rsp)
  mov    %edx,-0x34(%rsp)
L41:
  movzbl (%rdi,%rax,1),%edx
  cmp    %r13d,%ebx
  jle    L406
  test   %eax,%eax
  je     L406
  mov    -0x40(%rsp),%ecx
  add    %eax,%ecx
  movslq %ecx,%rcx
  movzbl (%r11,%rcx,1),%r8d
  mov    -0x3c(%rsp),%ecx
  add    %eax,%ecx
  movslq %ecx,%rcx
  movzbl (%r11,%rcx,1),%r12d
  mov    -0x38(%rsp),%ecx
  add    %eax,%ecx
  movslq %ecx,%rcx
  movzbl (%r11,%rcx,1),%r10d
  mov    -0x34(%rsp),%ecx
  add    %eax,%ecx
  cmp    %r12b,%r8b
  movslq %ecx,%rcx
  movzbl (%r11,%rcx,1),%r9d
  mov    %r12d,%ecx
  cmovae %r8d,%ecx
  cmp    %r10b,%cl
  cmovb  %r10d,%ecx
  cmp    %r9b,%cl
  cmovb  %r9d,%ecx
  cmp    %cl,%dl
  ja     L361
  cmp    %r12b,%r8b
  cmova  %r12d,%r8d
  cmp    %r10b,%r8b
  cmova  %r10d,%r8d
  cmp    %r9b,%r8b
  cmova  %r9d,%r8d
  cmp    %r8b,%dl
  cmovb  %r8d,%edx
  nopl   0x0(%rax)
L406:
  mov    %dl,(%rsi,%rax,1)
  lea    0x1(%rax),%edx
  add    $0x1,%rax
  cmp    %eax,%ebp
  jg     L41
  mov    -0x30(%rsp),%r12d
  cmp    %edx,%r14d
  jle    L241
L379:
  mov    -0x50(%rsp),%rdi
  movslq %edx,%rax
  mov    %r14d,%ecx
  sub    %edx,%ecx
  add    %rax,%rdi
  lea    -0x1(%rcx),%r8d
  lea    (%r15,%rdi,1),%rsi
  lea    0x1(%r11,%rdi,1),%r10
  mov    %rsi,%r9
  sub    %r10,%r9
  cmp    $0xe,%r9
  jbe    L16
  cmp    %edx,%r14d
  setg   %r10b
  cmp    $0x6,%r8d
  seta   %r9b
  test   %r9b,%r10b
  je     L16
  cmp    %edx,%r14d
  mov    $0x1,%eax
  cmovle %eax,%ecx
  cmp    $0xe,%r8d
  jbe    L454
  mov    %ecx,%r8d
  lea    (%r11,%rdi,1),%r9
  xor    %eax,%eax
  shr    $0x4,%r8d
  shl    $0x4,%r8
  nopl   0x0(%rax,%rax,1)
L120:
  movdqu (%r9,%rax,1),%xmm0
  movups %xmm0,(%rsi,%rax,1)
  add    $0x10,%rax
  cmp    %r8,%rax
  jne    L120
  mov    %ecx,%eax
  and    $0xfffffff0,%eax
  add    %eax,%edx
  cmp    %eax,%ecx
  je     L241
L31:
  sub    %eax,%ecx
  lea    -0x1(%rcx),%esi
  cmp    $0x6,%esi
  jbe    L194
  add    %rdi,%rax
  mov    (%r11,%rax,1),%rsi
  mov    %rsi,(%r15,%rax,1)
  mov    %ecx,%eax
  and    $0xfffffff8,%eax
  add    %eax,%edx
  cmp    %eax,%ecx
  je     L241
L194:
  lea    (%r12,%rdx,1),%eax
  cltq
  movzbl (%r11,%rax,1),%ecx
  mov    %cl,(%r15,%rax,1)
  lea    0x1(%rdx),%eax
  cmp    %eax,%r14d
  jle    L241
  add    %r12d,%eax
  cltq
  movzbl (%r11,%rax,1),%ecx
  mov    %cl,(%r15,%rax,1)
  lea    0x2(%rdx),%eax
  cmp    %eax,%r14d
  jle    L241
  add    %r12d,%eax
  cltq
  movzbl (%r11,%rax,1),%ecx
  mov    %cl,(%r15,%rax,1)
  lea    0x3(%rdx),%eax
  cmp    %eax,%r14d
  jle    L241
  add    %r12d,%eax
  cltq
  movzbl (%r11,%rax,1),%ecx
  mov    %cl,(%r15,%rax,1)
  lea    0x4(%rdx),%eax
  cmp    %eax,%r14d
  jle    L241
  add    %r12d,%eax
  cltq
  movzbl (%r11,%rax,1),%ecx
  mov    %cl,(%r15,%rax,1)
  lea    0x5(%rdx),%eax
  cmp    %eax,%r14d
  jle    L241
  add    %r12d,%eax
  add    $0x6,%edx
  cltq
  movzbl (%r11,%rax,1),%ecx
  mov    %cl,(%r15,%rax,1)
  cmp    %edx,%r14d
  jle    L241
  add    %r12d,%edx
  movslq %edx,%rdx
  movzbl (%r11,%rdx,1),%eax
  mov    %al,(%r15,%rdx,1)
  cs nopw 0x0(%rax,%rax,1)
L241:
  add    %r14d,-0x44(%rsp)
  mov    -0x48(%rsp),%r12d
  add    $0x1,%r13d
  cmp    %r13d,-0x2c(%rsp)
  jne    L203
L277:
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L204:
  movslq %r12d,%rax
  xor    %edx,%edx
  mov    %rax,-0x50(%rsp)
  jmp    L379
  nopw   0x0(%rax,%rax,1)
L361:
  mov    %ecx,%edx
  jmp    L406
  nopw   0x0(%rax,%rax,1)
L21:
  movslq %r12d,%rax
  lea    (%r15,%rax,1),%rcx
  lea    0x1(%rax),%rdx
  lea    (%r11,%rdx,1),%rdi
  mov    %rcx,%rsi
  sub    %rdi,%rsi
  cmp    $0xe,%rsi
  jbe    L162
  mov    -0x28(%rsp),%edi
  cmp    $0x6,%edi
  jbe    L162
  cmp    $0xe,%edi
  jbe    L371
  mov    -0x20(%rsp),%rdi
  lea    (%r11,%rax,1),%rsi
  xor    %edx,%edx
L391:
  movdqu (%rsi,%rdx,1),%xmm1
  movups %xmm1,(%rcx,%rdx,1)
  add    $0x10,%rdx
  cmp    %rdi,%rdx
  jne    L391
  mov    -0x24(%rsp),%edi
  cmp    %r14d,%edi
  je     L241
  cmpl   $0x6,-0x14(%rsp)
  mov    -0x18(%rsp),%esi
  mov    %edi,%edx
  mov    %edi,%ecx
  jbe    L405
L416:
  add    %rax,%rcx
  mov    (%r11,%rcx,1),%rax
  mov    %rax,(%r15,%rcx,1)
  mov    %esi,%eax
  and    $0xfffffff8,%eax
  add    %eax,%edx
  cmp    %esi,%eax
  je     L241
L405:
  lea    (%r12,%rdx,1),%eax
  cltq
  movzbl (%r11,%rax,1),%ecx
  mov    %cl,(%r15,%rax,1)
  lea    0x1(%rdx),%eax
  cmp    %r14d,%eax
  jge    L241
  add    %r12d,%eax
  cltq
  movzbl (%r11,%rax,1),%ecx
  mov    %cl,(%r15,%rax,1)
  lea    0x2(%rdx),%eax
  cmp    %eax,%r14d
  jle    L241
  add    %r12d,%eax
  cltq
  movzbl (%r11,%rax,1),%ecx
  mov    %cl,(%r15,%rax,1)
  lea    0x3(%rdx),%eax
  cmp    %eax,%r14d
  jle    L241
  add    %r12d,%eax
  cltq
  movzbl (%r11,%rax,1),%ecx
  mov    %cl,(%r15,%rax,1)
  lea    0x4(%rdx),%eax
  cmp    %eax,%r14d
  jle    L241
  add    %r12d,%eax
  cltq
  movzbl (%r11,%rax,1),%ecx
  mov    %cl,(%r15,%rax,1)
  lea    0x5(%rdx),%eax
  cmp    %eax,%r14d
  jle    L241
  add    %r12d,%eax
  add    $0x6,%edx
  cltq
  movzbl (%r11,%rax,1),%ecx
  mov    %cl,(%r15,%rax,1)
  cmp    %edx,%r14d
  jle    L241
  add    %r12d,%edx
  movslq %edx,%rax
  movzbl (%r11,%rax,1),%edx
  mov    %dl,(%r15,%rax,1)
  jmp    L241
  nopl   0x0(%rax)
L16:
  mov    -0x50(%rsp),%rdi
  lea    (%r11,%rdi,1),%rdx
  lea    (%r15,%rdi,1),%rcx
  nopl   (%rax)
L349:
  movzbl (%rdx,%rax,1),%esi
  mov    %sil,(%rcx,%rax,1)
  add    $0x1,%rax
  cmp    %eax,%r14d
  jg     L349
  jmp    L241
L162:
  mov    -0x10(%rsp),%rdi
  lea    (%rdi,%rax,1),%rcx
  jmp    L183
  nopl   0x0(%rax)
L233:
  add    $0x1,%rdx
L183:
  movzbl (%r11,%rax,1),%esi
  mov    %sil,(%r15,%rax,1)
  mov    %rdx,%rax
  cmp    %rdx,%rcx
  jne    L233
  jmp    L241
L454:
  xor    %eax,%eax
  jmp    L31
L371:
  mov    %r14d,%esi
  xor    %edx,%edx
  xor    %ecx,%ecx
  jmp    L416
```

assistant: ```c
void conservativeSmooth(unsigned char *out, unsigned char *in, int w, int h) {
  int i, j, m, n;
  unsigned char min, max;
  for (i = 0; i < h; i++) {
    for (j = 0; j < w; j++) {
      if (i > 0 && i < h - 1 && j > 0 && j < w - 1) {
        min = 255;
        max = 0;
        for (m = -1; m <= +1; m++) {
          for (n = -1; n <= +1; n++) {
            if (m != 0 && n != 0) {
              if (in[(i + m) * w + (j + n)] <= min) {
                min = in[(i + m) * w + (j + n)];
              }
              if (in[(i + m) * w + (j + n)] >= max) {
                max = in[(i + m) * w + (j + n)];
              }
            }
          }
        }
        if (in[i * w + j] > max) {
          out[i * w + j] = max;
        } else if (in[i * w + j] < min) {
          out[i * w + j] = min;
        } else {
          out[i * w + j] = in[i * w + j];
        }
      } else {
        out[i * w + j] = in[i * w + j];
      }
    }
  }
}
```