user: What would the C source look like for the assembly code provided here:

```asm
<debed>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x58,%rsp
  mov    %rdi,0x20(%rsp)
  mov    %esi,%ebp
  mov    %rdx,0x40(%rsp)
  mov    %rcx,0x48(%rsp)
  mov    (%rcx),%r12d
  mov    (%rdx),%r13d
  mov    (%r8),%esi
  mov    %esi,%r15d
  mov    %esi,0x14(%rsp)
  lea    0x2(%rbp),%edi
  mov    %edi,0x2c(%rsp)
  mov    %r13d,%ebx
  sub    %edi,%ebx
  sub    %edi,%ebx
  mov    %r12d,%eax
  sub    %edi,%eax
  sub    %edi,%eax
  mov    %eax,%r14d
  mov    %eax,0xc(%rsp)
  mov    %eax,%edi
  imul   %ebx,%edi
  mov    %edi,0x10(%rsp)
  imul   %esi,%edi
  movslq %edi,%rdi
  mov    $0x4,%esi
  call   <calloc@plt>
  mov    %rax,0x18(%rsp)
  test   %r15d,%r15d
  jle    L48
  imul   %r12d,%r13d
  mov    %r13d,0x28(%rsp)
  lea    0x3(%rbp),%eax
  imul   %r12d,%eax
  cltq
  lea    0x2(%rbp),%edx
  movslq %edx,%rdx
  add    %rdx,%rax
  mov    %rax,0x38(%rsp)
  movslq %r12d,%rdi
  shl    $0x2,%rdi
  mov    %r14d,%eax
  movslq %r14d,%rsi
  mov    %rsi,0x30(%rsp)
  lea    0x0(,%rsi,4),%r8
  mov    $0x0,%r14d
  mov    $0x0,%r13d
  mov    $0x0,%r12d
  lea    0x1(%rax,%rbp,1),%r15d
  neg    %rsi
  mov    %rsi,%rbp
  jmp    L89
L68:
  mov    %r9,(%rsp)
L46:
  mov    (%rcx),%r9d
  mov    %r9d,(%rax)
  movl   $0xff,-0x4(%rax,%rsi,4)
  add    $0x1,%edx
  add    %rdi,%rcx
  add    %r8,%rax
  cmp    %edx,%ebx
  jne    L46
  mov    (%rsp),%r9
L50:
  movl   $0xff,(%r9,%rbp,4)
  add    $0x4,%r11
  add    $0x4,%r9
  add    $0x1,%r10d
  sub    $0x1,%rsi
  cmp    %r15d,%r10d
  je     L83
L42:
  mov    %r9,%rax
  mov    %r11,%rcx
  mov    $0x1,%edx
  cmp    $0x1,%ebx
  jg     L68
  jmp    L50
L83:
  add    $0x1,%r12d
  add    0x10(%rsp),%r13d
  add    0x28(%rsp),%r14d
  cmp    %r12d,0x14(%rsp)
  je     L48
L89:
  cmpl   $0x1,0xc(%rsp)
  jle    L83
  movslq %r14d,%rax
  add    0x38(%rsp),%rax
  mov    0x20(%rsp),%rsi
  lea    (%rsi,%rax,4),%r11
  movslq %r13d,%rax
  mov    0x30(%rsp),%rsi
  add    %rsi,%rax
  mov    0x18(%rsp),%rcx
  lea    (%rcx,%rax,4),%r9
  mov    0x2c(%rsp),%r10d
  jmp    L42
L48:
  mov    0x20(%rsp),%rdi
  call   <free@plt>
  mov    0x40(%rsp),%rax
  mov    %ebx,(%rax)
  mov    0x48(%rsp),%rax
  mov    0xc(%rsp),%edi
  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;
}
```