user: 提供的汇编代码用C语言表示会是什么样子：

```asm
<chroma_smooth_3x3>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0xd0,%rsp
  mov    %edi,-0xa4(%rbp)
  mov    %esi,-0xa8(%rbp)
  mov    %rdx,-0xb0(%rbp)
  mov    %rcx,-0xb8(%rbp)
  mov    %r8,-0xc0(%rbp)
  mov    %r9,-0xc8(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x4,-0x98(%rbp)
  jmp    L24
L90:
  movl   $0x4,-0x9c(%rbp)
  jmp    L224
L106:
  mov    -0x9c(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    -0x98(%rbp),%eax
  imul   -0xa4(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0xb0(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x88(%rbp)
  mov    -0x98(%rbp),%eax
  add    $0x1,%eax
  imul   -0xa4(%rbp),%eax
  mov    %eax,%edx
  mov    -0x9c(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0xb0(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x84(%rbp)
  mov    -0x88(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0xc0(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    -0x84(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0xc0(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%eax
  add    %edx,%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  mov    %eax,-0x80(%rbp)
  cmpl   $0xffff,-0x80(%rbp)
  jle    L211
  movl   $0x0,-0x8c(%rbp)
  movl   $0xfffffffe,-0x94(%rbp)
  jmp    L181
L188:
  movl   $0xfffffffe,-0x90(%rbp)
  jmp    L164
L209:
  mov    -0x9c(%rbp),%edx
  mov    -0x94(%rbp),%eax
  lea    (%rdx,%rax,1),%ecx
  mov    -0x98(%rbp),%edx
  mov    -0x90(%rbp),%eax
  add    %edx,%eax
  imul   -0xa4(%rbp),%eax
  add    %ecx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0xb0(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x74(%rbp)
  mov    -0x9c(%rbp),%edx
  mov    -0x94(%rbp),%eax
  add    %edx,%eax
  lea    0x1(%rax),%ecx
  mov    -0x98(%rbp),%edx
  mov    -0x90(%rbp),%eax
  add    %edx,%eax
  imul   -0xa4(%rbp),%eax
  add    %ecx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0xb0(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x70(%rbp)
  mov    -0x9c(%rbp),%edx
  mov    -0x94(%rbp),%eax
  lea    (%rdx,%rax,1),%ecx
  mov    -0x98(%rbp),%edx
  mov    -0x90(%rbp),%eax
  add    %edx,%eax
  add    $0x1,%eax
  imul   -0xa4(%rbp),%eax
  add    %ecx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0xb0(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x6c(%rbp)
  mov    -0x9c(%rbp),%edx
  mov    -0x94(%rbp),%eax
  add    %edx,%eax
  lea    0x1(%rax),%ecx
  mov    -0x98(%rbp),%edx
  mov    -0x90(%rbp),%eax
  add    %edx,%eax
  add    $0x1,%eax
  imul   -0xa4(%rbp),%eax
  add    %ecx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0xb0(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,-0x68(%rbp)
  mov    -0x70(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0xc0(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    -0x6c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0xc0(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%eax
  add    %edx,%eax
  mov    %eax,%edx
  shr    $0x1f,%edx
  add    %edx,%eax
  sar    %eax
  mov    %eax,-0x64(%rbp)
  mov    -0x74(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0xc0(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  sub    -0x64(%rbp),%eax
  mov    %eax,%edx
  mov    -0x8c(%rbp),%eax
  cltq
  mov    %edx,-0x60(%rbp,%rax,4)
  mov    -0x68(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0xc0(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  sub    -0x64(%rbp),%eax
  mov    %eax,%edx
  mov    -0x8c(%rbp),%eax
  cltq
  mov    %edx,-0x30(%rbp,%rax,4)
  addl   $0x1,-0x8c(%rbp)
  addl   $0x2,-0x90(%rbp)
L164:
  cmpl   $0x2,-0x90(%rbp)
  jle    L209
  addl   $0x2,-0x94(%rbp)
L181:
  cmpl   $0x2,-0x94(%rbp)
  jle    L188
  lea    -0x60(%rbp),%rax
  mov    %rax,%rdi
  call   <opt_med9@plt>
  mov    %eax,-0x7c(%rbp)
  lea    -0x30(%rbp),%rax
  mov    %rax,%rdi
  call   <opt_med9@plt>
  mov    %eax,-0x78(%rbp)
  mov    -0x80(%rbp),%edx
  mov    -0x7c(%rbp),%eax
  add    %edx,%eax
  cmp    $0x8000,%eax
  jle    L40
  mov    -0x80(%rbp),%edx
  mov    -0x78(%rbp),%eax
  add    %edx,%eax
  cmp    $0x8000,%eax
  jle    L179
  mov    -0x80(%rbp),%edx
  mov    -0x7c(%rbp),%eax
  add    %edx,%eax
  test   %eax,%eax
  jle    L148
  mov    -0x80(%rbp),%edx
  mov    -0x7c(%rbp),%eax
  add    %edx,%eax
  cmp    $0x6fffe,%eax
  jg     L33
  mov    -0x80(%rbp),%edx
  mov    -0x7c(%rbp),%eax
  add    %edx,%eax
  cltq
  shl    $0x2,%rax
  jmp    L36
L33:
  mov    $0x1bfffc,%eax
  jmp    L36
L148:
  mov    $0x0,%eax
L36:
  mov    -0xc8(%rbp),%rdx
  add    %rdx,%rax
  mov    (%rax),%ecx
  mov    -0x98(%rbp),%eax
  imul   -0xa4(%rbp),%eax
  mov    %eax,%edx
  mov    -0x9c(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0xb8(%rbp),%rax
  add    %rdx,%rax
  mov    0x10(%rbp),%edx
  add    %ecx,%edx
  mov    %edx,(%rax)
  mov    -0x80(%rbp),%edx
  mov    -0x78(%rbp),%eax
  add    %edx,%eax
  test   %eax,%eax
  jle    L221
  mov    -0x80(%rbp),%edx
  mov    -0x78(%rbp),%eax
  add    %edx,%eax
  cmp    $0x6fffe,%eax
  jg     L170
  mov    -0x80(%rbp),%edx
  mov    -0x78(%rbp),%eax
  add    %edx,%eax
  cltq
  shl    $0x2,%rax
  jmp    L196
L170:
  mov    $0x1bfffc,%eax
  jmp    L196
L221:
  mov    $0x0,%eax
L196:
  mov    -0xc8(%rbp),%rdx
  add    %rdx,%rax
  mov    (%rax),%ecx
  mov    -0x9c(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    -0x98(%rbp),%eax
  add    $0x1,%eax
  imul   -0xa4(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0xb8(%rbp),%rax
  add    %rdx,%rax
  mov    0x10(%rbp),%edx
  add    %ecx,%edx
  mov    %edx,(%rax)
  jmp    L126
L211:
  nop
  jmp    L126
L40:
  nop
  jmp    L126
L179:
  nop
L126:
  addl   $0x2,-0x9c(%rbp)
L224:
  mov    -0xa4(%rbp),%eax
  sub    $0x4,%eax
  cmp    %eax,-0x9c(%rbp)
  jl     L106
  addl   $0x2,-0x98(%rbp)
L24:
  mov    -0xa8(%rbp),%eax
  sub    $0x5,%eax
  cmp    %eax,-0x98(%rbp)
  jl     L90
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L190
  call   <__stack_chk_fail@plt>
L190:
  leave
  ret
```

assistant: ```c
void chroma_smooth_3x3(int w, int h, uint32_t *inp, uint32_t *out, int *raw2ev, int *ev2raw, int black) {
  int x, y;
  for (y = 4; y < h - 5; y += 2) {
    for (x = 4; x < w - 4; x += 2) {
      int g1 = inp[x + 1 + y * w];
      int g2 = inp[x + (y + 1) * w];
      int ge = (raw2ev[g1] + raw2ev[g2]) / 2;
      if (ge < 2 * 32768)
        continue;
      int i, j;
      int k = 0;
      int med_r[9];
      int med_b[9];
      for (i = -2; i <= 2; i += 2) {
        for (j = -2; j <= 2; j += 2) {
          int r = inp[x + i + (y + j) * w];
          int g1 = inp[x + i + 1 + (y + j) * w];
          int g2 = inp[x + i + (y + j + 1) * w];
          int b = inp[x + i + 1 + (y + j + 1) * w];
          int ge = (raw2ev[g1] + raw2ev[g2]) / 2;
          med_r[k] = raw2ev[r] - ge;
          med_b[k] = raw2ev[b] - ge;
          k++;
        }
      }
      int dr = opt_med9(med_r);
      int db = opt_med9(med_b);
      if (ge + dr <= 32768)
        continue;
      if (ge + db <= 32768)
        continue;
      out[x + y * w] = ev2raw[(((((((ge + dr)) < ((14 * 32768 - 1))) ? ((ge + dr)) : ((14 * 32768 - 1)))) > ((0))) ? (((((ge + dr)) < ((14 * 32768 - 1))) ? ((ge + dr)) : ((14 * 32768 - 1)))) : ((0)))] + black;
      out[x + 1 + (y + 1) * w] = ev2raw[(((((((ge + db)) < ((14 * 32768 - 1))) ? ((ge + db)) : ((14 * 32768 - 1)))) > ((0))) ? (((((ge + db)) < ((14 * 32768 - 1))) ? ((ge + db)) : ((14 * 32768 - 1)))) : ((0)))] + black;
    }
  }
}
```