user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<aan_mascara_canal>:
  endbr64
  push   %r15
  push   %r14
  mov    %ecx,%r14d
  push   %r13
  mov    %rdi,%r13
  mov    $0x18,%edi
  push   %r12
  push   %rbp
  push   %rbx
  mov    %edx,%ebx
  sub    $0xe8,%rsp
  mov    %rsi,0xb0(%rsp)
  mov    %edx,0x48(%rsp)
  mov    %ecx,0xac(%rsp)
  mov    %r8,0x20(%rsp)
  call   <malloc@plt>
  mov    $0x24,%edi
  mov    %rax,%r15
  call   <malloc@plt>
  mov    %rax,%rdi
  mov    %rax,(%r15)
  add    $0xc,%rax
  mov    %rax,0x8(%r15)
  lea    0x18(%rdi),%rax
  mov    %rax,0x10(%r15)
  test   %r14d,%r14d
  jle    L19
  mov    %r14d,%eax
  mov    %ebx,%edx
  mov    %r14d,%esi
  movl   $0x0,0x74(%rsp)
  imul   %ebx,%eax
  xor    %r14d,%r14d
  mov    %r13,%rbp
  cltq
  shl    $0x2,%rax
  lea    -0x4(%r13,%rax,1),%rcx
  lea    -0x8(%r13,%rax,1),%rax
  mov    %rax,0xd8(%rsp)
  movslq %ebx,%rax
  mov    %rcx,0xd0(%rsp)
  mov    %ebx,%ecx
  lea    0x0(,%rax,4),%rbx
  lea    -0x4(%r13,%rbx,1),%rax
  mov    %rbx,0x30(%rsp)
  mov    %rax,0xb8(%rsp)
  lea    -0x8(%r13,%rbx,1),%rax
  mov    %rax,0xc0(%rsp)
  lea    (%rdx,%rdx,1),%eax
  movslq %eax,%rdx
  neg    %eax
  lea    -0x4(%r13,%rdx,4),%rdx
  mov    %rdx,0xc8(%rsp)
  lea    0x0(%r13,%rbx,1),%rdx
  mov    %rdx,0x40(%rsp)
  lea    0x1(%rcx),%edx
  movslq %edx,%rdx
  lea    0x0(%r13,%rdx,4),%rdx
  mov    %r14d,%r13d
  mov    %rdx,0x50(%rsp)
  mov    %ecx,%edx
  neg    %edx
  mov    %edx,0xa8(%rsp)
  lea    -0x1(%rcx),%edx
  lea    -0x1(%rsi),%ecx
  mov    %edx,0x28(%rsp)
  mov    %ecx,0x2c(%rsp)
  nopl   0x0(%rax,%rax,1)
L20:
  mov    0x48(%rsp),%edx
  test   %edx,%edx
  jle    L109
  mov    0x48(%rsp),%edx
  movslq %r14d,%rsi
  mov    %r13d,%r12d
  xor    %ebx,%ebx
  shl    $0x2,%rsi
  mov    %r14d,%r13d
  lea    (%rax,%rdx,1),%ecx
  cltq
  add    %r14d,%edx
  movslq %ecx,%r8
  lea    0x0(%rbp,%rax,4),%rax
  movslq %edx,%r9
  mov    %edx,0x4c(%rsp)
  shl    $0x2,%r8
  lea    -0x4(%rbp,%rsi,1),%rdx
  mov    %rax,0x80(%rsp)
  lea    0x4(%rbp,%r8,1),%rax
  mov    %ecx,0x70(%rsp)
  lea    0x0(%rbp,%r8,1),%rcx
  mov    %rax,0x88(%rsp)
  movslq 0xa8(%rsp),%rax
  mov    %rdx,0xa0(%rsp)
  lea    0x0(%rbp,%rax,4),%r8
  mov    %rax,%rdx
  mov    0x28(%rsp),%eax
  mov    %rcx,0x68(%rsp)
  lea    0x0(%rbp,%rsi,1),%rcx
  mov    %edx,0xc(%rsp)
  add    0xb0(%rsp),%rsi
  mov    %r8,%r14
  mov    %rax,0x18(%rsp)
  movslq 0x74(%rsp),%rax
  mov    %rcx,0x38(%rsp)
  lea    0x0(%rbp,%r9,4),%rcx
  mov    %rbp,%r9
  mov    %rcx,0x78(%rsp)
  mov    %rax,%rcx
  lea    0x0(%rbp,%rax,4),%rax
  mov    %rax,0x58(%rsp)
  lea    0x1(%rdx),%eax
  mov    %r12d,%edx
  cltq
  or     %ebx,%edx
  mov    %r8,0x60(%rsp)
  lea    0x0(%rbp,%rax,4),%rax
  mov    %rsi,0x10(%rsp)
  mov    %rax,0x98(%rsp)
  lea    0x1(%rcx),%eax
  cltq
  mov    %ecx,0x8(%rsp)
  lea    0x0(%rbp,%rax,4),%rax
  mov    %rax,0x90(%rsp)
  mov    %ebx,%eax
  je     L83
  nopw   0x0(%rax,%rax,1)
L254:
  mov    %ebx,%esi
  test   %r12d,%r12d
  jne    L267
  cmp    %ebx,0x28(%rsp)
  je     L273
L267:
  test   %rbx,%rbx
  je     L173
  cmp    %esi,0x28(%rsp)
  je     L14
  test   %r12d,%r12d
  je     L229
  cmp    %r12d,0x2c(%rsp)
  je     L247
  mov    0x30(%rsp),%rdx
  lea    0x8(%r15),%r10
  lea    0x18(%r15),%r11
  mov    %r14,%rsi
L272:
  xor    %eax,%eax
L257:
  movss  -0x4(%rsi,%rax,1),%xmm0
  movss  %xmm0,(%rdi,%rax,1)
  add    $0x4,%rax
  cmp    $0xc,%rax
  jne    L257
  add    %rdx,%rsi
  cmp    %r10,%r11
  je     L169
  mov    (%r10),%rdi
  add    $0x8,%r10
  jmp    L272
  nopl   0x0(%rax)
L229:
  movss  -0x4(%rbp),%xmm0
  mov    0x8(%r15),%rsi
  xor    %eax,%eax
  movss  %xmm0,(%rdi)
  movss  0x0(%rbp),%xmm0
  movss  %xmm0,0x4(%rdi)
  movss  0x4(%rbp),%xmm0
  movss  %xmm0,0x8(%rdi)
L205:
  movss  -0x4(%rbp,%rax,1),%xmm0
  movss  %xmm0,(%rsi,%rax,1)
  add    $0x4,%rax
  cmp    $0xc,%rax
  jne    L205
  mov    0x40(%rsp),%rax
  mov    0x10(%r15),%rdi
  lea    (%rax,%rbx,4),%rsi
  xor    %eax,%eax
L157:
  movss  -0x4(%rsi,%rax,1),%xmm0
  movss  %xmm0,(%rdi,%rax,1)
  add    $0x4,%rax
  cmp    $0xc,%rax
  jne    L157
  nopl   0x0(%rax)
L169:
  add    $0x1,%r13d
L263:
  mov    0x20(%rsp),%rdi
  xor    %eax,%eax
  mov    %r15,%rsi
  mov    %r9,(%rsp)
  add    $0x4,%rbp
  add    $0x4,%r14
  call   <pixel_resultante@plt>
  pxor   %xmm0,%xmm0
  addl   $0x1,0xc(%rsp)
  mov    (%rsp),%r9
  cvtsi2ss %eax,%xmm0
  mov    0x10(%rsp),%rax
  addl   $0x1,0x8(%rsp)
  cmp    %rbx,0x18(%rsp)
  movss  %xmm0,(%rax,%rbx,4)
  lea    0x1(%rbx),%rax
  je     L140
  mov    %rax,%rbx
  mov    %r12d,%edx
  mov    (%r15),%rdi
  or     %ebx,%edx
  mov    %ebx,%eax
  jne    L254
L83:
  movss  (%r9),%xmm0
  mov    0x8(%r15),%rsi
  add    $0x1,%r13d
  mov    0x40(%rsp),%rdx
  mov    0x10(%r15),%rax
  movss  %xmm0,(%rdi)
  mov    0x50(%rsp),%rcx
  movss  %xmm0,0x4(%rdi)
  movss  0x4(%r9),%xmm0
  movss  %xmm0,0x8(%rdi)
  movss  (%r9),%xmm0
  movss  %xmm0,(%rsi)
  movss  (%rdx),%xmm0
  movss  %xmm0,(%rax)
  movss  (%r9),%xmm0
  movss  %xmm0,0x4(%rsi)
  movss  0x4(%r9),%xmm0
  movss  %xmm0,0x8(%rsi)
  movss  (%rdx),%xmm0
  movss  %xmm0,0x4(%rax)
  movss  (%rcx),%xmm0
  movss  %xmm0,0x8(%rax)
  jmp    L263
  nopl   (%rax)
L173:
  cmp    %r12d,0x2c(%rsp)
  je     L12
  mov    0x68(%rsp),%rax
  mov    0x30(%rsp),%rdx
  lea    0x8(%r15),%rsi
  lea    0x18(%r15),%r10
  movss  (%rax),%xmm0
  mov    0x38(%rsp),%rax
  movss  %xmm0,(%rdi)
  movss  (%rax),%xmm0
  mov    0x8(%r15),%rax
  movss  %xmm0,(%rax)
  mov    0x78(%rsp),%rax
  movss  (%rax),%xmm0
  mov    0x10(%r15),%rax
  movss  %xmm0,(%rax)
  mov    0x60(%rsp),%rax
L250:
  movss  (%rax),%xmm0
  movss  %xmm0,0x4(%rdi)
  movss  0x4(%rax),%xmm0
  add    %rdx,%rax
  movss  %xmm0,0x8(%rdi)
  cmp    %rsi,%r10
  je     L169
  mov    (%rsi),%rdi
  add    $0x8,%rsi
  jmp    L250
  nopl   0x0(%rax)
L247:
  lea    -0x1(%r13),%esi
  mov    0x10(%r15),%rax
  mov    0x38(%rsp),%rcx
  add    $0x1,%r13d
  movslq %esi,%rsi
  movss  (%r9,%rsi,4),%xmm0
  movslq %r13d,%rsi
  movss  %xmm0,(%rax)
  movss  (%rcx,%rbx,4),%xmm0
  movss  %xmm0,0x4(%rax)
  movss  (%r9,%rsi,4),%xmm0
  movss  %xmm0,0x8(%rax)
  xor    %eax,%eax
L132:
  movss  -0x4(%r14,%rax,1),%xmm0
  movss  %xmm0,(%rdi,%rax,1)
  add    $0x4,%rax
  cmp    $0xc,%rax
  jne    L132
  mov    0x58(%rsp),%rax
  mov    0x8(%r15),%rdi
  lea    (%rax,%rbx,4),%rsi
  xor    %eax,%eax
L96:
  movss  -0x4(%rsi,%rax,1),%xmm0
  movss  %xmm0,(%rdi,%rax,1)
  add    $0x4,%rax
  cmp    $0xc,%rax
  jne    L96
  jmp    L263
  nop
L14:
  mov    0x8(%r15),%r11
  mov    0x10(%r15),%r10
  cmp    %r12d,0x2c(%rsp)
  je     L175
  mov    0x70(%rsp),%ecx
  mov    0x30(%rsp),%rdx
  lea    (%rax,%rcx,1),%esi
  mov    0x38(%rsp),%rcx
  add    0x4c(%rsp),%eax
  movslq %esi,%rsi
  cltq
  movss  (%r9,%rsi,4),%xmm0
  lea    0x8(%r15),%rsi
  movss  %xmm0,0x8(%rdi)
  movss  (%rcx,%rbx,4),%xmm0
  movss  %xmm0,0x8(%r11)
  movss  (%r9,%rax,4),%xmm0
  mov    %r14,%rax
  movss  %xmm0,0x8(%r10)
  lea    0x18(%r15),%r10
L198:
  movss  -0x4(%rax),%xmm0
  movss  %xmm0,(%rdi)
  movss  (%rax),%xmm0
  add    %rdx,%rax
  movss  %xmm0,0x4(%rdi)
  cmp    %r10,%rsi
  je     L169
  mov    (%rsi),%rdi
  add    $0x8,%rsi
  jmp    L198
  nopl   0x0(%rax)
L140:
  mov    (%r15),%rdi
  mov    %r12d,%r13d
  mov    %r9,%rbp
L158:
  mov    0x48(%rsp),%edx
  mov    0x4c(%rsp),%r14d
  add    $0x1,%r13d
  add    %edx,0xa8(%rsp)
  mov    0x70(%rsp),%eax
  add    %edx,0x74(%rsp)
  cmp    %r13d,0xac(%rsp)
  jne    L20
L19:
  call   <free@plt>
  add    $0xe8,%rsp
  mov    %r15,%rdi
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1070 <free@plt>
  nopl   0x0(%rax)
L273:
  mov    0xb8(%rsp),%rdx
  mov    0xc0(%rsp),%rcx
  add    $0x1,%r13d
  mov    0x10(%r15),%rsi
  add    0x48(%rsp),%eax
  movss  (%rdx),%xmm0
  cltq
  movss  %xmm0,0x8(%rdi)
  movss  %xmm0,0x4(%rdi)
  movss  (%rcx),%xmm0
  mov    0xc8(%rsp),%rcx
  movss  %xmm0,(%rdi)
  mov    0x8(%r15),%rdi
  movss  (%rdx),%xmm0
  movss  %xmm0,0x8(%rdi)
  movss  (%rcx),%xmm0
  movss  %xmm0,0x8(%rsi)
  movss  -0x4(%rbp),%xmm0
  movss  %xmm0,(%rdi)
  movss  0x0(%rbp),%xmm0
  movss  %xmm0,0x4(%rdi)
  mov    0x28(%rsp),%edi
  add    %ebx,%edi
  movslq %edi,%rdi
  movss  (%r9,%rdi,4),%xmm0
  movss  %xmm0,(%rsi)
  movss  (%r9,%rax,4),%xmm0
  movss  %xmm0,0x4(%rsi)
  jmp    L263
  nopl   0x0(%rax,%rax,1)
L12:
  mov    0x68(%rsp),%rcx
  mov    0x8(%r15),%rax
  add    $0x1,%r13d
  mov    0x80(%rsp),%rdx
  mov    0x10(%r15),%rsi
  movss  (%rcx),%xmm0
  movss  %xmm0,0x8(%rdi)
  movss  %xmm0,0x4(%rdi)
  movss  (%rcx),%xmm0
  mov    0x88(%rsp),%rcx
  movss  %xmm0,0x8(%rax)
  movss  (%rdx),%xmm0
  mov    0x60(%rsp),%rdx
  movss  %xmm0,(%rdi)
  movss  (%rcx),%xmm0
  mov    0x98(%rsp),%rcx
  movss  %xmm0,0x8(%rsi)
  movss  (%rdx),%xmm0
  movss  %xmm0,0x4(%rdi)
  movss  (%rcx),%xmm0
  movss  %xmm0,0x8(%rdi)
  mov    0x58(%rsp),%rdi
  movss  (%rdi),%xmm0
  mov    0x90(%rsp),%rdi
  movss  %xmm0,0x4(%rax)
  movss  (%rdi),%xmm0
  movss  %xmm0,0x8(%rax)
  jmp    L263
  nopl   0x0(%rax)
L175:
  mov    0xd0(%rsp),%rax
  mov    0xa0(%rsp),%rdx
  add    $0x1,%r13d
  movss  (%rax),%xmm0
  movss  %xmm0,0x8(%r10)
  movss  %xmm0,0x8(%r11)
  movss  (%rdx),%xmm0
  mov    0xc(%rsp),%edx
  movss  %xmm0,0x8(%rdi)
  movss  (%rax),%xmm0
  mov    0xd8(%rsp),%rax
  movss  %xmm0,0x4(%r10)
  movss  (%rax),%xmm0
  lea    -0x1(%rdx),%eax
  cltq
  movss  %xmm0,(%r10)
  movss  (%r9,%rax,4),%xmm0
  movslq %edx,%rax
  movss  %xmm0,(%rdi)
  movss  (%r9,%rax,4),%xmm0
  movss  %xmm0,0x4(%rdi)
  mov    0x8(%rsp),%edi
  lea    -0x1(%rdi),%eax
  cltq
  movss  (%r9,%rax,4),%xmm0
  movslq %edi,%rax
  movss  %xmm0,(%r11)
  movss  (%r9,%rax,4),%xmm0
  movss  %xmm0,0x4(%r11)
  jmp    L263
L109:
  mov    0x48(%rsp),%ecx
  add    %ecx,%eax
  mov    %eax,0x70(%rsp)
  lea    (%r14,%rcx,1),%eax
  mov    %eax,0x4c(%rsp)
  jmp    L158
```

assistant: ```c
void aan_mascara_canal(float *canal_input, float *canal_output, int width, int height, float **m) {
  int i, j, k, l;
  float **area;
  {
    int ml;
    area = (float **)malloc(sizeof(float *) * (3));
    area[0] = (float *)malloc(sizeof(float) * (3) * (3));
    for (ml = 0; ml < (3); ml++)
      area[ml] = &(area[0][ml * (3)]);
  };
  for (j = 0; j < height; j++) {
    for (i = 0; i < width; i++) {
      if (i == 0 && j == 0) {
        area[0][0] = canal_input[0];
        area[0][1] = canal_input[0];
        area[0][2] = canal_input[1];
        area[1][0] = canal_input[0];
        area[2][0] = canal_input[width];
        for (k = 1; k < 3; k++)
          for (l = 1; l < 3; l++)
            area[k][l] = canal_input[(width * (j - 1 + k)) + (i - 1 + l)];
      } else if (i == (width - 1) && j == 0) {
        area[0][2] = canal_input[width - 1];
        area[0][1] = canal_input[width - 1];
        area[0][0] = canal_input[width - 2];
        area[1][2] = canal_input[width - 1];
        area[2][2] = canal_input[width * 2 - 1];
        for (k = 1; k < 3; k++)
          for (l = 0; l < 2; l++)
            area[k][l] = canal_input[(width * (j - 1 + k)) + (i - 1 + l)];
      } else if (i == 0 && j == (height - 1)) {
        area[0][2] = canal_input[width * (j - 1)];
        area[0][1] = canal_input[width * (j - 1)];
        area[1][2] = canal_input[width * (j - 1)];
        area[0][0] = canal_input[width * (j - 2)];
        area[2][2] = canal_input[(width * (j - 1)) + 1];
        for (k = 0; k < 2; k++)
          for (l = 1; l < 3; l++)
            area[k][l] = canal_input[(width * (j - 1 + k)) + (i - 1 + l)];
      } else if (i == (width - 1) && j == (height - 1)) {
        area[2][2] = canal_input[width * height - 1];
        area[1][2] = canal_input[width * height - 1];
        area[0][2] = canal_input[width * (height - 1) - 1];
        area[2][1] = canal_input[width * height - 1];
        area[2][0] = canal_input[width * height - 2];
        for (k = 0; k < 2; k++)
          for (l = 0; l < 2; l++)
            area[k][l] = canal_input[(width * (j - 1 + k)) + (i - 1 + l)];
      } else if (i == 0) {
        area[0][0] = canal_input[(width * (j - 1 + 0)) + i];
        area[1][0] = canal_input[(width * (j - 1 + 1)) + i];
        area[2][0] = canal_input[(width * (j - 1 + 2)) + i];
        for (k = 0; k < 3; k++)
          for (l = 1; l < 3; l++)
            area[k][l] = canal_input[(width * (j - 1 + k)) + (i - 1 + l)];
      } else if (i == (width - 1)) {
        area[0][2] = canal_input[(width * (j - 1 + 0)) + i];
        area[1][2] = canal_input[(width * (j - 1 + 1)) + i];
        area[2][2] = canal_input[(width * (j - 1 + 2)) + i];
        for (k = 0; k < 3; k++)
          for (l = 0; l < 2; l++)
            area[k][l] = canal_input[(width * (j - 1 + k)) + (i - 1 + l)];
      } else if (j == 0) {
        area[0][0] = canal_input[(width * j) + (i - 1 + 0)];
        area[0][1] = canal_input[(width * j) + (i - 1 + 1)];
        area[0][2] = canal_input[(width * j) + (i - 1 + 2)];
        for (k = 1; k < 3; k++)
          for (l = 0; l < 3; l++)
            area[k][l] = canal_input[(width * (j - 1 + k)) + (i - 1 + l)];
      } else if (j == (height - 1)) {
        area[2][0] = canal_input[(width * j) + (i - 1 + 0)];
        area[2][1] = canal_input[(width * j) + (i - 1 + 1)];
        area[2][2] = canal_input[(width * j) + (i - 1 + 2)];
        for (k = 0; k < 2; k++)
          for (l = 0; l < 3; l++)
            area[k][l] = canal_input[(width * (j - 1 + k)) + (i - 1 + l)];
      } else {
        for (k = 0; k < 3; k++)
          for (l = 0; l < 3; l++)
            area[k][l] = canal_input[width * (j - 1 + k) + (i - 1 + l)];
      }
      canal_output[width * j + i] = pixel_resultante(m, area);
    }
  }
  {
    free(area[0]);
    free(area);
  };
}
```