user: Demonstrate the C code that generates the assembly output below:

```asm
<debed>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x60,%rsp
  mov    %rdi,-0x38(%rbp)
  mov    %esi,-0x3c(%rbp)
  mov    %rdx,-0x48(%rbp)
  mov    %rcx,-0x50(%rbp)
  mov    %r8,-0x58(%rbp)
  mov    -0x50(%rbp),%rax
  mov    (%rax),%eax
  mov    %eax,-0x1c(%rbp)
  mov    -0x48(%rbp),%rax
  mov    (%rax),%eax
  mov    %eax,-0x18(%rbp)
  mov    -0x58(%rbp),%rax
  mov    (%rax),%eax
  mov    %eax,-0x14(%rbp)
  addl   $0x2,-0x3c(%rbp)
  mov    -0x18(%rbp),%eax
  sub    -0x3c(%rbp),%eax
  sub    -0x3c(%rbp),%eax
  mov    %eax,-0x10(%rbp)
  mov    -0x1c(%rbp),%eax
  sub    -0x3c(%rbp),%eax
  sub    -0x3c(%rbp),%eax
  mov    %eax,-0xc(%rbp)
  mov    -0x10(%rbp),%eax
  imul   -0xc(%rbp),%eax
  imul   -0x14(%rbp),%eax
  cltq
  mov    $0x4,%esi
  mov    %rax,%rdi
  call   <calloc@plt>
  mov    %rax,-0x8(%rbp)
  movl   $0x0,-0x20(%rbp)
  jmp    L0
L55:
  movl   $0x0,-0x28(%rbp)
  jmp    L23
L25:
  movl   $0x1,-0x24(%rbp)
  jmp    L5
L36:
  mov    -0x24(%rbp),%edx
  mov    -0x3c(%rbp),%eax
  add    %edx,%eax
  imul   -0x1c(%rbp),%eax
  mov    -0x28(%rbp),%ecx
  mov    -0x3c(%rbp),%edx
  add    %ecx,%edx
  add    %eax,%edx
  mov    -0x18(%rbp),%eax
  imul   -0x1c(%rbp),%eax
  imul   -0x20(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x38(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0xc(%rbp),%eax
  imul   -0x24(%rbp),%eax
  mov    %eax,%edx
  mov    -0x28(%rbp),%eax
  add    %eax,%edx
  mov    -0x10(%rbp),%eax
  imul   -0xc(%rbp),%eax
  imul   -0x20(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x8(%rbp),%rax
  add    %rax,%rdx
  mov    (%rcx),%eax
  mov    %eax,(%rdx)
  mov    -0xc(%rbp),%eax
  imul   -0x24(%rbp),%eax
  mov    %eax,%edx
  mov    -0xc(%rbp),%eax
  sub    $0x1,%eax
  add    %eax,%edx
  mov    -0x10(%rbp),%eax
  imul   -0xc(%rbp),%eax
  imul   -0x20(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movl   $0xff,(%rax)
  addl   $0x1,-0x24(%rbp)
L5:
  mov    -0x24(%rbp),%eax
  cmp    -0x10(%rbp),%eax
  jl     L36
  mov    -0x10(%rbp),%eax
  imul   -0xc(%rbp),%eax
  imul   -0x20(%rbp),%eax
  mov    %eax,%edx
  mov    -0x28(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movl   $0xff,(%rax)
  addl   $0x1,-0x28(%rbp)
L23:
  mov    -0xc(%rbp),%eax
  sub    $0x1,%eax
  cmp    %eax,-0x28(%rbp)
  jl     L25
  addl   $0x1,-0x20(%rbp)
L0:
  mov    -0x20(%rbp),%eax
  cmp    -0x14(%rbp),%eax
  jl     L55
  mov    -0x38(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    -0x8(%rbp),%rax
  mov    %rax,-0x38(%rbp)
  mov    -0x48(%rbp),%rax
  mov    -0x10(%rbp),%edx
  mov    %edx,(%rax)
  mov    -0x50(%rbp),%rax
  mov    -0xc(%rbp),%edx
  mov    %edx,(%rax)
  mov    -0x38(%rbp),%rax
  leave
  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;
}
```