user: Converte this assembly snippet into its equivalent C code:

```asm
<fastBlur4>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x28(%rbp)
  mov    %esi,-0x2c(%rbp)
  mov    %edx,-0x30(%rbp)
  mov    %ecx,-0x34(%rbp)
  mov    -0x34(%rbp),%eax
  mov    %eax,-0x4(%rbp)
  movl   $0x0,-0x14(%rbp)
  movl   $0x0,-0x10(%rbp)
  cmpl   $0x1,-0x34(%rbp)
  jne    L221
  movl   $0x1,-0x14(%rbp)
  movl   $0x1,-0x10(%rbp)
L221:
  cmpl   $0x3,-0x34(%rbp)
  jne    L136
  movl   $0x2,-0x14(%rbp)
  movl   $0x1,-0x10(%rbp)
L136:
  cmpl   $0x7,-0x34(%rbp)
  jne    L343
  movl   $0x3,-0x14(%rbp)
  movl   $0x1,-0x10(%rbp)
L343:
  cmpl   $0xf,-0x34(%rbp)
  jne    L106
  movl   $0x4,-0x14(%rbp)
  movl   $0x1,-0x10(%rbp)
L106:
  cmpl   $0x1f,-0x34(%rbp)
  jne    L325
  movl   $0x5,-0x14(%rbp)
  movl   $0x1,-0x10(%rbp)
L325:
  cmpl   $0x3f,-0x34(%rbp)
  jne    L312
  movl   $0x6,-0x14(%rbp)
  movl   $0x1,-0x10(%rbp)
L312:
  cmpl   $0x7f,-0x34(%rbp)
  jne    L24
  movl   $0x7,-0x14(%rbp)
  movl   $0x1,-0x10(%rbp)
L24:
  cmpl   $0x0,-0x10(%rbp)
  je     L299
  movl   $0x0,-0xc(%rbp)
  jmp    L214
L202:
  movl   $0x1,-0x1c(%rbp)
  jmp    L261
L256:
  movl   $0x0,-0x18(%rbp)
  jmp    L429
L237:
  mov    -0x1c(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    -0x2c(%rbp),%eax
  imul   -0x18(%rbp),%eax
  add    %edx,%eax
  lea    0x0(,%rax,4),%edx
  mov    -0xc(%rbp),%eax
  add    %edx,%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  imul   -0x4(%rbp),%eax
  mov    %eax,%edx
  mov    -0x2c(%rbp),%eax
  imul   -0x18(%rbp),%eax
  mov    %eax,%ecx
  mov    -0x1c(%rbp),%eax
  add    %ecx,%eax
  lea    0x0(,%rax,4),%ecx
  mov    -0xc(%rbp),%eax
  add    %ecx,%eax
  movslq %eax,%rcx
  mov    -0x28(%rbp),%rax
  add    %rcx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  add    %eax,%edx
  mov    -0x14(%rbp),%eax
  mov    %eax,%ecx
  sar    %cl,%edx
  mov    %edx,%ecx
  mov    -0x2c(%rbp),%eax
  imul   -0x18(%rbp),%eax
  mov    %eax,%edx
  mov    -0x1c(%rbp),%eax
  add    %edx,%eax
  lea    0x0(,%rax,4),%edx
  mov    -0xc(%rbp),%eax
  add    %edx,%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    %ecx,%edx
  mov    %dl,(%rax)
  addl   $0x1,-0x18(%rbp)
L429:
  mov    -0x18(%rbp),%eax
  cmp    -0x30(%rbp),%eax
  jl     L237
  addl   $0x1,-0x1c(%rbp)
L261:
  mov    -0x1c(%rbp),%eax
  cmp    -0x2c(%rbp),%eax
  jl     L256
  mov    -0x2c(%rbp),%eax
  sub    $0x2,%eax
  mov    %eax,-0x1c(%rbp)
  jmp    L449
L166:
  movl   $0x0,-0x18(%rbp)
  jmp    L34
L260:
  mov    -0x1c(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    -0x2c(%rbp),%eax
  imul   -0x18(%rbp),%eax
  add    %edx,%eax
  lea    0x0(,%rax,4),%edx
  mov    -0xc(%rbp),%eax
  add    %edx,%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  imul   -0x4(%rbp),%eax
  mov    %eax,%edx
  mov    -0x2c(%rbp),%eax
  imul   -0x18(%rbp),%eax
  mov    %eax,%ecx
  mov    -0x1c(%rbp),%eax
  add    %ecx,%eax
  lea    0x0(,%rax,4),%ecx
  mov    -0xc(%rbp),%eax
  add    %ecx,%eax
  movslq %eax,%rcx
  mov    -0x28(%rbp),%rax
  add    %rcx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  add    %eax,%edx
  mov    -0x14(%rbp),%eax
  mov    %eax,%ecx
  sar    %cl,%edx
  mov    %edx,%ecx
  mov    -0x2c(%rbp),%eax
  imul   -0x18(%rbp),%eax
  mov    %eax,%edx
  mov    -0x1c(%rbp),%eax
  add    %edx,%eax
  lea    0x0(,%rax,4),%edx
  mov    -0xc(%rbp),%eax
  add    %edx,%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    %ecx,%edx
  mov    %dl,(%rax)
  addl   $0x1,-0x18(%rbp)
L34:
  mov    -0x18(%rbp),%eax
  cmp    -0x30(%rbp),%eax
  jl     L260
  subl   $0x1,-0x1c(%rbp)
L449:
  cmpl   $0x0,-0x1c(%rbp)
  jns    L166
  movl   $0x0,-0x1c(%rbp)
  jmp    L318
L352:
  movl   $0x1,-0x18(%rbp)
  jmp    L200
L187:
  mov    -0x1c(%rbp),%eax
  sub    -0x2c(%rbp),%eax
  mov    %eax,%edx
  mov    -0x2c(%rbp),%eax
  imul   -0x18(%rbp),%eax
  add    %edx,%eax
  lea    0x0(,%rax,4),%edx
  mov    -0xc(%rbp),%eax
  add    %edx,%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  imul   -0x4(%rbp),%eax
  mov    %eax,%edx
  mov    -0x2c(%rbp),%eax
  imul   -0x18(%rbp),%eax
  mov    %eax,%ecx
  mov    -0x1c(%rbp),%eax
  add    %ecx,%eax
  lea    0x0(,%rax,4),%ecx
  mov    -0xc(%rbp),%eax
  add    %ecx,%eax
  movslq %eax,%rcx
  mov    -0x28(%rbp),%rax
  add    %rcx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  add    %eax,%edx
  mov    -0x14(%rbp),%eax
  mov    %eax,%ecx
  sar    %cl,%edx
  mov    %edx,%ecx
  mov    -0x2c(%rbp),%eax
  imul   -0x18(%rbp),%eax
  mov    %eax,%edx
  mov    -0x1c(%rbp),%eax
  add    %edx,%eax
  lea    0x0(,%rax,4),%edx
  mov    -0xc(%rbp),%eax
  add    %edx,%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    %ecx,%edx
  mov    %dl,(%rax)
  addl   $0x1,-0x18(%rbp)
L200:
  mov    -0x18(%rbp),%eax
  cmp    -0x30(%rbp),%eax
  jl     L187
  addl   $0x1,-0x1c(%rbp)
L318:
  mov    -0x1c(%rbp),%eax
  cmp    -0x2c(%rbp),%eax
  jl     L352
  mov    -0x30(%rbp),%eax
  sub    $0x2,%eax
  mov    %eax,-0x18(%rbp)
  jmp    L82
L265:
  movl   $0x0,-0x1c(%rbp)
  jmp    L3
L15:
  mov    -0x1c(%rbp),%edx
  mov    -0x2c(%rbp),%eax
  add    %eax,%edx
  mov    -0x2c(%rbp),%eax
  imul   -0x18(%rbp),%eax
  add    %edx,%eax
  lea    0x0(,%rax,4),%edx
  mov    -0xc(%rbp),%eax
  add    %edx,%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  imul   -0x4(%rbp),%eax
  mov    %eax,%edx
  mov    -0x2c(%rbp),%eax
  imul   -0x18(%rbp),%eax
  mov    %eax,%ecx
  mov    -0x1c(%rbp),%eax
  add    %ecx,%eax
  lea    0x0(,%rax,4),%ecx
  mov    -0xc(%rbp),%eax
  add    %ecx,%eax
  movslq %eax,%rcx
  mov    -0x28(%rbp),%rax
  add    %rcx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  add    %eax,%edx
  mov    -0x14(%rbp),%eax
  mov    %eax,%ecx
  sar    %cl,%edx
  mov    %edx,%ecx
  mov    -0x2c(%rbp),%eax
  imul   -0x18(%rbp),%eax
  mov    %eax,%edx
  mov    -0x1c(%rbp),%eax
  add    %edx,%eax
  lea    0x0(,%rax,4),%edx
  mov    -0xc(%rbp),%eax
  add    %edx,%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    %ecx,%edx
  mov    %dl,(%rax)
  addl   $0x1,-0x1c(%rbp)
L3:
  mov    -0x1c(%rbp),%eax
  cmp    -0x2c(%rbp),%eax
  jl     L15
  subl   $0x1,-0x18(%rbp)
L82:
  cmpl   $0x0,-0x18(%rbp)
  jns    L265
  addl   $0x1,-0xc(%rbp)
L214:
  cmpl   $0x2,-0xc(%rbp)
  jle    L202
  jmp    L359
L299:
  movl   $0x0,-0x8(%rbp)
  jmp    L443
L142:
  movl   $0x1,-0x1c(%rbp)
  jmp    L58
L116:
  movl   $0x0,-0x18(%rbp)
  jmp    L220
L128:
  mov    -0x1c(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    -0x2c(%rbp),%eax
  imul   -0x18(%rbp),%eax
  add    %edx,%eax
  lea    0x0(,%rax,4),%edx
  mov    -0x8(%rbp),%eax
  add    %edx,%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  imul   -0x4(%rbp),%eax
  mov    %eax,%edx
  mov    -0x2c(%rbp),%eax
  imul   -0x18(%rbp),%eax
  mov    %eax,%ecx
  mov    -0x1c(%rbp),%eax
  add    %ecx,%eax
  lea    0x0(,%rax,4),%ecx
  mov    -0x8(%rbp),%eax
  add    %ecx,%eax
  movslq %eax,%rcx
  mov    -0x28(%rbp),%rax
  add    %rcx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  add    %edx,%eax
  mov    -0x4(%rbp),%edx
  lea    0x1(%rdx),%esi
  cltd
  idiv   %esi
  mov    %eax,%ecx
  mov    -0x2c(%rbp),%eax
  imul   -0x18(%rbp),%eax
  mov    %eax,%edx
  mov    -0x1c(%rbp),%eax
  add    %edx,%eax
  lea    0x0(,%rax,4),%edx
  mov    -0x8(%rbp),%eax
  add    %edx,%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    %ecx,%edx
  mov    %dl,(%rax)
  addl   $0x1,-0x18(%rbp)
L220:
  mov    -0x18(%rbp),%eax
  cmp    -0x30(%rbp),%eax
  jl     L128
  addl   $0x1,-0x1c(%rbp)
L58:
  mov    -0x1c(%rbp),%eax
  cmp    -0x2c(%rbp),%eax
  jl     L116
  mov    -0x2c(%rbp),%eax
  sub    $0x2,%eax
  mov    %eax,-0x1c(%rbp)
  jmp    L257
L242:
  movl   $0x0,-0x18(%rbp)
  jmp    L290
L52:
  mov    -0x1c(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    -0x2c(%rbp),%eax
  imul   -0x18(%rbp),%eax
  add    %edx,%eax
  lea    0x0(,%rax,4),%edx
  mov    -0x8(%rbp),%eax
  add    %edx,%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  imul   -0x4(%rbp),%eax
  mov    %eax,%edx
  mov    -0x2c(%rbp),%eax
  imul   -0x18(%rbp),%eax
  mov    %eax,%ecx
  mov    -0x1c(%rbp),%eax
  add    %ecx,%eax
  lea    0x0(,%rax,4),%ecx
  mov    -0x8(%rbp),%eax
  add    %ecx,%eax
  movslq %eax,%rcx
  mov    -0x28(%rbp),%rax
  add    %rcx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  add    %edx,%eax
  mov    -0x4(%rbp),%edx
  lea    0x1(%rdx),%edi
  cltd
  idiv   %edi
  mov    %eax,%ecx
  mov    -0x2c(%rbp),%eax
  imul   -0x18(%rbp),%eax
  mov    %eax,%edx
  mov    -0x1c(%rbp),%eax
  add    %edx,%eax
  lea    0x0(,%rax,4),%edx
  mov    -0x8(%rbp),%eax
  add    %edx,%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    %ecx,%edx
  mov    %dl,(%rax)
  addl   $0x1,-0x18(%rbp)
L290:
  mov    -0x18(%rbp),%eax
  cmp    -0x30(%rbp),%eax
  jl     L52
  subl   $0x1,-0x1c(%rbp)
L257:
  cmpl   $0x0,-0x1c(%rbp)
  jns    L242
  movl   $0x0,-0x1c(%rbp)
  jmp    L77
L103:
  movl   $0x1,-0x18(%rbp)
  jmp    L10
L272:
  mov    -0x1c(%rbp),%eax
  sub    -0x2c(%rbp),%eax
  mov    %eax,%edx
  mov    -0x2c(%rbp),%eax
  imul   -0x18(%rbp),%eax
  add    %edx,%eax
  lea    0x0(,%rax,4),%edx
  mov    -0x8(%rbp),%eax
  add    %edx,%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  imul   -0x4(%rbp),%eax
  mov    %eax,%edx
  mov    -0x2c(%rbp),%eax
  imul   -0x18(%rbp),%eax
  mov    %eax,%ecx
  mov    -0x1c(%rbp),%eax
  add    %ecx,%eax
  lea    0x0(,%rax,4),%ecx
  mov    -0x8(%rbp),%eax
  add    %ecx,%eax
  movslq %eax,%rcx
  mov    -0x28(%rbp),%rax
  add    %rcx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  add    %edx,%eax
  mov    -0x4(%rbp),%edx
  lea    0x1(%rdx),%esi
  cltd
  idiv   %esi
  mov    %eax,%ecx
  mov    -0x2c(%rbp),%eax
  imul   -0x18(%rbp),%eax
  mov    %eax,%edx
  mov    -0x1c(%rbp),%eax
  add    %edx,%eax
  lea    0x0(,%rax,4),%edx
  mov    -0x8(%rbp),%eax
  add    %edx,%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    %ecx,%edx
  mov    %dl,(%rax)
  addl   $0x1,-0x18(%rbp)
L10:
  mov    -0x18(%rbp),%eax
  cmp    -0x30(%rbp),%eax
  jl     L272
  addl   $0x1,-0x1c(%rbp)
L77:
  mov    -0x1c(%rbp),%eax
  cmp    -0x2c(%rbp),%eax
  jl     L103
  mov    -0x30(%rbp),%eax
  sub    $0x2,%eax
  mov    %eax,-0x18(%rbp)
  jmp    L252
L244:
  movl   $0x0,-0x1c(%rbp)
  jmp    L230
L289:
  mov    -0x1c(%rbp),%edx
  mov    -0x2c(%rbp),%eax
  add    %eax,%edx
  mov    -0x2c(%rbp),%eax
  imul   -0x18(%rbp),%eax
  add    %edx,%eax
  lea    0x0(,%rax,4),%edx
  mov    -0x8(%rbp),%eax
  add    %edx,%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  imul   -0x4(%rbp),%eax
  mov    %eax,%edx
  mov    -0x2c(%rbp),%eax
  imul   -0x18(%rbp),%eax
  mov    %eax,%ecx
  mov    -0x1c(%rbp),%eax
  add    %ecx,%eax
  lea    0x0(,%rax,4),%ecx
  mov    -0x8(%rbp),%eax
  add    %ecx,%eax
  movslq %eax,%rcx
  mov    -0x28(%rbp),%rax
  add    %rcx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  add    %edx,%eax
  mov    -0x4(%rbp),%edx
  lea    0x1(%rdx),%edi
  cltd
  idiv   %edi
  mov    %eax,%ecx
  mov    -0x2c(%rbp),%eax
  imul   -0x18(%rbp),%eax
  mov    %eax,%edx
  mov    -0x1c(%rbp),%eax
  add    %edx,%eax
  lea    0x0(,%rax,4),%edx
  mov    -0x8(%rbp),%eax
  add    %edx,%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    %ecx,%edx
  mov    %dl,(%rax)
  addl   $0x1,-0x1c(%rbp)
L230:
  mov    -0x1c(%rbp),%eax
  cmp    -0x2c(%rbp),%eax
  jl     L289
  subl   $0x1,-0x18(%rbp)
L252:
  cmpl   $0x0,-0x18(%rbp)
  jns    L244
  addl   $0x1,-0x8(%rbp)
L443:
  cmpl   $0x2,-0x8(%rbp)
  jle    L142
L359:
  pop    %rbp
  ret
```

assistant: ```c
void fastBlur4(unsigned char *img, int w, int h, int size) {
  int x, y;
  int m = size;
  int divZ = 0;
  int canFastDiv = 0;
  if (size == 1)
    divZ = 1, canFastDiv = 1;
  if (size == 3)
    divZ = 2, canFastDiv = 1;
  if (size == 7)
    divZ = 3, canFastDiv = 1;
  if (size == 15)
    divZ = 4, canFastDiv = 1;
  if (size == 31)
    divZ = 5, canFastDiv = 1;
  if (size == 63)
    divZ = 6, canFastDiv = 1;
  if (size == 127)
    divZ = 7, canFastDiv = 1;
  if (canFastDiv) {
    for (int N = 0; N < 3; ++N) {
      for (x = 1; x < w; x++)
        for (y = 0; y < h; y++)
          img[((x + w * y) << 2) + N] = (m * img[((x - 1 + w * y) << 2) + N] + img[((x + w * y) << 2) + N]) >> divZ;
      for (x = w - 2; x >= 0; x--)
        for (y = 0; y < h; y++)
          img[((x + w * y) << 2) + N] = (m * img[((x + 1 + w * y) << 2) + N] + img[((x + w * y) << 2) + N]) >> divZ;
      for (x = 0; x < w; x++)
        for (y = 1; y < h; y++)
          img[((x + w * y) << 2) + N] = (m * img[((x - w + w * y) << 2) + N] + img[((x + w * y) << 2) + N]) >> divZ;
      for (y = h - 2; y >= 0; y--)
        for (x = 0; x < w; x++)
          img[((x + w * y) << 2) + N] = (m * img[((x + w + w * y) << 2) + N] + img[((x + w * y) << 2) + N]) >> divZ;
    }
    return;
  }
  for (int N = 0; N < 3; ++N) {
    for (x = 1; x < w; x++)
      for (y = 0; y < h; y++)
        img[((x + w * y) << 2) + N] = (m * img[((x - 1 + w * y) << 2) + N] + img[((x + w * y) << 2) + N]) / (m + 1);
    for (x = w - 2; x >= 0; x--)
      for (y = 0; y < h; y++)
        img[((x + w * y) << 2) + N] = (m * img[((x + 1 + w * y) << 2) + N] + img[((x + w * y) << 2) + N]) / (m + 1);
    for (x = 0; x < w; x++)
      for (y = 1; y < h; y++)
        img[((x + w * y) << 2) + N] = (m * img[((x - w + w * y) << 2) + N] + img[((x + w * y) << 2) + N]) / (m + 1);
    for (y = h - 2; y >= 0; y--)
      for (x = 0; x < w; x++)
        img[((x + w * y) << 2) + N] = (m * img[((x + w + w * y) << 2) + N] + img[((x + w * y) << 2) + N]) / (m + 1);
  }
}
```