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

```asm
<augmentImage>:
  endbr64
  push   %r15
  lea    0x2(%rdx),%r8d
  push   %r14
  push   %r13
  mov    %esi,%r13d
  push   %r12
  mov    %rdi,%r12
  lea    0x2(%rsi),%edi
  push   %rbp
  mov    %rcx,%rbp
  push   %rbx
  mov    %edx,%ebx
  sub    $0x38,%rsp
  test   %edi,%edi
  jle    L178
  movslq %r8d,%rax
  lea    0x1(%r13),%edx
  lea    -0x4(,%rax,4),%rsi
  mov    %rcx,%rax
  lea    0x8(%rcx,%rdx,8),%rcx
  nop
L3:
  mov    (%rax),%rdx
  add    $0x8,%rax
  movl   $0x0,(%rdx)
  movl   $0x0,(%rdx,%rsi,1)
  cmp    %rcx,%rax
  jne    L3
L178:
  test   %r8d,%r8d
  jle    L41
  movslq %edi,%rdi
  lea    0x1(%rbx),%edx
  mov    0x0(%rbp),%r8
  mov    -0x8(%rbp,%rdi,8),%r14
  lea    0x4(,%rdx,4),%r15
  lea    (%r14,%r15,1),%rax
  cmp    %rax,%r8
  jae    L13
  lea    (%r8,%r15,1),%rax
  cmp    %rax,%r14
  jb     L165
L13:
  mov    %r15,%rdx
  xor    %esi,%esi
  mov    %r8,%rdi
  call   <memset@plt>
  mov    %r15,%rdx
  xor    %esi,%esi
  mov    %r14,%rdi
  call   <memset@plt>
L41:
  test   %r13d,%r13d
  jle    L0
  test   %ebx,%ebx
  jle    L0
  mov    %ebx,%eax
  mov    %ebx,%r11d
  movslq %r13d,%r8
  xor    %edi,%edi
  and    $0xfffffffc,%r11d
  shr    $0x2,%eax
  mov    %ebx,%r9d
  lea    -0x1(%rax),%esi
  lea    0x1(%r11),%eax
  shl    $0x2,%rax
  add    $0x1,%rsi
  mov    %rax,0x10(%rsp)
  lea    -0x4(%rax),%r13
  lea    0x2(%r11),%eax
  shl    $0x4,%rsi
  mov    %eax,0x18(%rsp)
  shl    $0x2,%rax
  mov    %rax,0x20(%rsp)
  lea    -0x4(%rax),%r14
  lea    0x3(%r11),%eax
  mov    %eax,0x1c(%rsp)
  shl    $0x2,%rax
  mov    %rax,0x28(%rsp)
  lea    -0x4(%rax),%r15
  lea    -0x1(%rbx),%eax
  mov    %eax,0xc(%rsp)
  nopw   0x0(%rax,%rax,1)
L91:
  cmpl   $0x2,0xc(%rsp)
  mov    (%r12,%rdi,8),%rdx
  mov    0x8(%rbp,%rdi,8),%rcx
  jbe    L125
  mov    %rcx,%r10
  xor    %eax,%eax
  sub    %rdx,%r10
  cmp    $0x8,%r10
  jbe    L125
  xchg   %ax,%ax
L22:
  movdqu (%rdx,%rax,1),%xmm0
  movups %xmm0,0x4(%rcx,%rax,1)
  add    $0x10,%rax
  cmp    %rsi,%rax
  jne    L22
  cmp    %r11d,%ebx
  je     L57
  mov    (%rdx,%r13,1),%eax
  mov    0x10(%rsp),%r10
  mov    %eax,(%rcx,%r10,1)
  cmp    0x18(%rsp),%ebx
  jl     L57
  mov    (%rdx,%r14,1),%eax
  mov    0x20(%rsp),%r10
  mov    %eax,(%rcx,%r10,1)
  cmp    0x1c(%rsp),%ebx
  jl     L57
  mov    (%rdx,%r15,1),%eax
  mov    0x28(%rsp),%rdx
  mov    %eax,(%rcx,%rdx,1)
L57:
  add    $0x1,%rdi
  cmp    %r8,%rdi
  jne    L91
L0:
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L125:
  xor    %eax,%eax
  nopw   0x0(%rax,%rax,1)
L46:
  mov    (%rdx,%rax,4),%r10d
  mov    %r10d,0x4(%rcx,%rax,4)
  add    $0x1,%rax
  cmp    %r9,%rax
  jne    L46
  jmp    L57
L165:
  xor    %eax,%eax
  cs nopw 0x0(%rax,%rax,1)
L30:
  mov    %rax,%rcx
  movl   $0x0,(%r8,%rax,4)
  movl   $0x0,(%r14,%rax,4)
  add    $0x1,%rax
  cmp    %rcx,%rdx
  jne    L30
  jmp    L41
```

assistant: ```c
void augmentImage(int **image, int rows, int cols, int **augimage) {
  int row, col;
  int rowsaug = rows + 2;
  int colsaug = cols + 2;
  for (row = 0; row < rowsaug; row++) {
    augimage[row][0] = 0;
    augimage[row][colsaug - 1] = 0;
  }
  for (col = 0; col < colsaug; col++) {
    augimage[0][col] = 0;
    augimage[rowsaug - 1][col] = 0;
  }
  for (row = 1; row < rowsaug - 1; row++)
    for (col = 1; col < colsaug - 1; col++)
      augimage[row][col] = image[row - 1][col - 1];
}
```