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

```asm
<debed>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  lea    0x2(%rsi),%r13d
  push   %r12
  mov    %esi,%r12d
  mov    $0x4,%esi
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  sub    $0x58,%rsp
  mov    (%rcx),%r14d
  mov    (%rdx),%r15d
  mov    %rcx,0x48(%rsp)
  mov    (%r8),%ecx
  mov    %r15d,%ebx
  mov    %r14d,%eax
  mov    %rdx,0x40(%rsp)
  sub    %r13d,%ebx
  sub    %r13d,%eax
  mov    %ecx,0x20(%rsp)
  sub    %r13d,%eax
  sub    %r13d,%ebx
  mov    %eax,0x3c(%rsp)
  imul   %ebx,%eax
  mov    %eax,%edi
  mov    %eax,0x24(%rsp)
  imul   %ecx,%edi
  movslq %edi,%rdi
  call   <calloc@plt>
  mov    %rax,0x18(%rsp)
  mov    0x20(%rsp),%eax
  test   %eax,%eax
  jle    L27
  imul   %r14d,%r15d
  mov    0x3c(%rsp),%esi
  mov    %r15d,0x38(%rsp)
  cmp    $0x1,%esi
  jle    L27
  lea    0x3(%r12),%eax
  movslq %esi,%rsi
  movslq %r14d,%rdi
  xor    %r15d,%r15d
  imul   %r14d,%eax
  mov    %rsi,0x28(%rsp)
  lea    -0x1(%rsi),%r11
  xor    %r14d,%r14d
  lea    0x0(,%rsi,4),%r8
  movl   $0x0,0x14(%rsp)
  shl    $0x2,%rdi
  add    %esi,%r13d
  mov    %r8,%r12
  cltq
  neg    %r12
  mov    %rax,0x30(%rsp)
  mov    %rsi,%rax
  sub    $0x2,%eax
  sub    %rax,%r11
  nopl   0x0(%rax)
L37:
  mov    0x28(%rsp),%rsi
  mov    0x18(%rsp),%rdx
  movslq %r14d,%rax
  movslq %r15d,%r10
  add    0x30(%rsp),%r10
  add    %rsi,%rax
  lea    (%rdx,%rax,4),%r9
  nopl   0x0(%rax)
L57:
  cmp    $0x1,%ebx
  jle    L6
  mov    %r13d,%eax
  mov    %r9,0x8(%rsp)
  mov    $0x1,%edx
  sub    %esi,%eax
  cltq
  add    %r10,%rax
  lea    0x0(%rbp,%rax,4),%rcx
  mov    %r9,%rax
  nopl   0x0(%rax)
L34:
  mov    (%rcx),%r9d
  add    $0x1,%edx
  add    %rdi,%rcx
  mov    %r9d,(%rax)
  movl   $0xff,-0x4(%rax,%rsi,4)
  add    %r8,%rax
  cmp    %edx,%ebx
  jne    L34
  mov    0x8(%rsp),%r9
L6:
  sub    $0x1,%rsi
  movl   $0xff,(%r9,%r12,1)
  add    $0x4,%r9
  cmp    %rsi,%r11
  jne    L57
  addl   $0x1,0x14(%rsp)
  add    0x24(%rsp),%r14d
  mov    0x14(%rsp),%eax
  add    0x38(%rsp),%r15d
  cmp    %eax,0x20(%rsp)
  jne    L37
L27:
  mov    %rbp,%rdi
  call   <free@plt>
  mov    0x40(%rsp),%rax
  mov    0x3c(%rsp),%edi
  mov    %ebx,(%rax)
  mov    0x48(%rsp),%rax
  mov    %edi,(%rax)
  mov    0x18(%rsp),%rax
  add    $0x58,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
int *debed(int *im, int outline, int *width, int *height, int *depth) {
  int i, j, d;
  int *new;
  int h = *height, w = *width, k = *depth;
  int new_width, new_height;
  outline = outline + 2;
  new_width = w - outline - outline;
  new_height = h - outline - outline;
  new = (int *)calloc(new_width * new_height * k, sizeof(int));
  for (d = 0; d < k; d++) {
    for (i = 0; i < new_height - 1; i++) {
      for (j = 1; j < new_width; j++) {
        new[((new_height) * (j) + (i) + (new_width) * (new_height) * (d))] = im[((h) * (j + outline) + (i + outline) + (w) * (h) * (d))];
        new[((new_height) * (j) + (new_height - 1) + (new_width) * (new_height) * (d))] = 255;
      }
      new[((new_height) * (0) + (i) + (new_width) * (new_height) * (d))] = 255;
    }
  }
  free(im);
  im = new;
  *width = new_width;
  *height = new_height;
  return im;
}
```