user: Translate the below assembly code into C programming language:

```asm
<resize_imatrix>:
  endbr64
  push   %r15
  mov    %edx,%r15d
  mov    %ecx,%eax
  mov    %rdi,%rcx
  push   %r14
  sub    %eax,%r8d
  push   %r13
  lea    0x1(%r8),%r14d
  mov    %r8d,%r13d
  push   %r12
  movslq %esi,%r12
  push   %rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    %edx,0x2c(%rsp)
  lea    0x0(,%r12,8),%rdx
  mov    %rdi,0x10(%rsp)
  add    %rdx,%rdi
  mov    0x8(%rcx,%rdx,1),%rdx
  movslq %eax,%rcx
  mov    %rdi,0x20(%rsp)
  mov    (%rdi),%rdi
  mov    %r8d,0x28(%rsp)
  sub    %rdi,%rdx
  mov    %rdi,0x8(%rsp)
  sar    $0x2,%rdx
  mov    %rdx,0x38(%rsp)
  lea    0x0(,%rcx,4),%rdx
  mov    %r15d,%ecx
  sub    %r12d,%ecx
  add    %rdx,%rdi
  mov    %rdx,0x18(%rsp)
  lea    0x1(%rcx),%esi
  mov    %ecx,0x30(%rsp)
  imul   %r14d,%esi
  shl    $0x2,%esi
  call   <realloc@plt>
  mov    %rax,%rdi
  mov    %rax,%rbp
  call   <assert@plt>
  cmp    %r15d,%r12d
  jge    L11
  mov    0x38(%rsp),%rdx
  mov    0x30(%rsp),%ecx
  mov    %r14d,%r8d
  mov    %r12,%rbx
  not    %r13d
  mov    %r15d,%eax
  mov    %rbp,0x30(%rsp)
  mov    %edx,%r12d
  imul   %ecx,%r8d
  movslq %r13d,%r13
  neg    %r12d
  imul   %edx,%ecx
  lea    0x0(,%r13,4),%rdi
  movslq %r12d,%r12
  lea    0x0(,%rdx,4),%r15d
  lea    0x0(,%r12,4),%rsi
  movslq %r8d,%r8
  mov    %eax,%r12d
  mov    %rsi,0x8(%rsp)
  lea    0x0(%rbp,%r8,4),%r14
  movslq %ecx,%rcx
  lea    0x0(%rbp,%rcx,4),%r13
  mov    %r14,%rbp
  mov    %rdi,%r14
  nopl   0x0(%rax)
L12:
  mov    %r13,%rsi
  mov    %rbp,%rdi
  mov    %r15d,%edx
  sub    $0x1,%r12d
  call   <memmove@plt>
  add    %r14,%rbp
  add    0x8(%rsp),%r13
  cmp    %r12d,%ebx
  jne    L12
  mov    0x2c(%rsp),%esi
  movslq 0x28(%rsp),%rax
  mov    0x18(%rsp),%rdx
  mov    0x30(%rsp),%rbp
  lea    0x1(%rsi),%ecx
  add    $0x1,%rax
  neg    %rdx
  sub    %ebx,%ecx
  cmp    %esi,%ebx
  mov    $0x1,%esi
  cmovg  %esi,%ecx
  movq   %rbp,%xmm2
  movq   %rdx,%xmm3
  lea    0x0(,%rax,4),%rdi
  shl    $0x3,%rax
  punpcklqdq %xmm3,%xmm3
  lea    0x0(%rbp,%rdi,1),%rsi
  movq   %rax,%xmm1
  mov    0x20(%rsp),%rax
  movq   %rsi,%xmm4
  mov    %ecx,%esi
  punpcklqdq %xmm1,%xmm1
  shr    %esi
  punpcklqdq %xmm4,%xmm2
  sub    $0x1,%esi
  shl    $0x4,%rsi
  lea    0x10(%rax,%rsi,1),%rsi
  cs nopw 0x0(%rax,%rax,1)
L14:
  movdqa %xmm2,%xmm0
  add    $0x10,%rax
  paddq  %xmm1,%xmm2
  paddq  %xmm3,%xmm0
  movups %xmm0,-0x10(%rax)
  cmp    %rax,%rsi
  jne    L14
  mov    %ecx,%eax
  and    $0xfffffffe,%eax
  mov    %eax,%esi
  add    %eax,%ebx
  imul   %rdi,%rsi
  add    %rsi,%rbp
  cmp    %ecx,%eax
  je     L54
  movslq %ebx,%r12
L37:
  mov    0x10(%rsp),%rdi
  lea    0x0(%rbp,%rdx,1),%rax
  mov    %rax,(%rdi,%r12,8)
L54:
  mov    0x10(%rsp),%rax
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L11:
  jne    L54
  mov    0x18(%rsp),%rdx
  neg    %rdx
  jmp    L37
```

assistant: ```c
int **resize_imatrix(int **m, int minx, int maxx, int miny, int maxy) {
  int i, isize;
  int *p, *p1, *p2;
  p1 = m[minx];
  p2 = m[minx + 1];
  isize = (int)(p2 - p1);
  p = (m + minx)[0] + miny;
  p = (int *)realloc(p, (maxx - minx + 1) * (maxy - miny + 1) * sizeof(int));
  assert(p);
  for (i = maxx; i > minx; i--) {
    p2 = p + (i - minx) * isize;
    p1 = p + (i - minx) * (maxy - miny + 1);
    memmove(p1, p2, isize * sizeof(int));
  }
  for (i = minx; i <= maxx; i++) {
    m[i] = p - miny;
    p += (maxy - miny + 1);
  }
  return m;
}
```