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

```asm
<imgLoad>:
  endbr64
  push   %r15
  mov    %esi,%r15d
  push   %r14
  mov    %rdx,%r14
  push   %r13
  push   %r12
  mov    %rcx,%r12
  push   %rbp
  mov    %r8,%rbp
  push   %rbx
  lea    (%r15,%r15,1),%ebx
  sub    $0x38,%rsp
  mov    %r9,(%rsp)
  lea    0x24(%rsp),%rcx
  lea    0x20(%rsp),%rdx
  lea    0x1c(%rsp),%rsi
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  call   <read_texture@plt>
  mov    0x1c(%rsp),%r13d
  mov    $0x4,%esi
  mov    %rax,0x8(%rsp)
  add    %ebx,%r13d
  add    0x20(%rsp),%ebx
  mov    %r13d,%edi
  imul   %ebx,%edi
  call   <calloc@plt>
  mov    0x20(%rsp),%edx
  mov    %r15d,%r11d
  mov    0x8(%rsp),%r8
  neg    %r11d
  mov    %rax,%r9
  lea    (%r15,%rdx,1),%ecx
  mov    %r11d,%edi
  cmp    %ecx,%r11d
  jge    L47
  nopl   (%rax)
L7:
  mov    0x1c(%rsp),%esi
  mov    %r11d,%ecx
  lea    (%r15,%rsi,1),%r10d
  cmp    %r10d,%r11d
  jl     L43
  jmp    L71
  nopl   (%rax)
L77:
  mov    (%r14),%esi
  add    $0x1,%ecx
  add    $0x10,%rax
  mov    %esi,%edx
  shl    $0x8,%edx
  sub    %esi,%edx
  mov    %edx,-0x10(%rax)
  mov    0x4(%r14),%esi
  mov    %esi,%edx
  shl    $0x8,%edx
  sub    %esi,%edx
  mov    %edx,-0xc(%rax)
  mov    0x8(%r14),%esi
  mov    %esi,%edx
  shl    $0x8,%edx
  sub    %esi,%edx
  mov    %edx,-0x8(%rax)
  mov    0xc(%r14),%esi
  mov    %esi,%edx
  shl    $0x8,%edx
  sub    %esi,%edx
  mov    %edx,-0x4(%rax)
  mov    0x1c(%rsp),%esi
  lea    (%rsi,%r15,1),%edx
  cmp    %ecx,%edx
  jle    L39
L43:
  mov    %ecx,%edx
  or     %edi,%edx
  not    %edx
  shr    $0x1f,%edx
  cmp    %edi,0x20(%rsp)
  setg   %r10b
  test   %dl,%r10b
  je     L77
  cmp    %ecx,%esi
  jle    L77
  imul   %edi,%esi
  add    $0x10,%rax
  lea    (%rsi,%rcx,1),%edx
  shl    $0x2,%edx
  movslq %edx,%rdx
  mov    (%r8,%rdx,4),%edx
  mov    %edx,-0x10(%rax)
  mov    0x1c(%rsp),%esi
  mov    %esi,%edx
  imul   %edi,%edx
  add    %ecx,%edx
  add    $0x1,%ecx
  shl    $0x2,%edx
  movslq %edx,%rdx
  add    $0x1,%rdx
  mov    (%r8,%rdx,4),%r10d
  mov    %r10d,-0xc(%rax)
  mov    0x4(%r8,%rdx,4),%edx
  movl   $0xff,-0x4(%rax)
  mov    %edx,-0x8(%rax)
  lea    (%rsi,%r15,1),%edx
  cmp    %ecx,%edx
  jg     L43
  nopw   0x0(%rax,%rax,1)
L39:
  mov    0x20(%rsp),%edx
L71:
  add    $0x1,%edi
  lea    (%r15,%rdx,1),%ecx
  cmp    %edi,%ecx
  jg     L7
L47:
  mov    %r8,%rdi
  mov    %r9,0x8(%rsp)
  call   <free@plt>
  mov    (%rsp),%rax
  mov    0x8(%rsp),%r9
  mov    %r13d,(%r12)
  mov    %ebx,0x0(%rbp)
  mov    %r9,(%rax)
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L40
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L40:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void imgLoad(char *filenameIn, int borderIn, GLfloat borderColorIn[4], int *wOut, int *hOut, GLubyte **imgOut) {
  int border = borderIn;
  int width, height;
  int w, h;
  GLubyte *image, *img, *p;
  int i, j, components;
  image = (GLubyte *)read_texture(filenameIn, &width, &height, &components);
  w = width + 2 * border;
  h = height + 2 * border;
  img = (GLubyte *)calloc(w * h, 4 * sizeof(unsigned char));
  p = img;
  for (j = -border; j < height + border; ++j) {
    for (i = -border; i < width + border; ++i) {
      if (0 <= j && j <= height - 1 && 0 <= i && i <= width - 1) {
        p[0] = image[4 * (j * width + i) + 0];
        p[1] = image[4 * (j * width + i) + 1];
        p[2] = image[4 * (j * width + i) + 2];
        p[3] = 0xff;
      } else {
        p[0] = borderColorIn[0] * 0xff;
        p[1] = borderColorIn[1] * 0xff;
        p[2] = borderColorIn[2] * 0xff;
        p[3] = borderColorIn[3] * 0xff;
      }
      p += 4;
    }
  }
  free(image);
  *wOut = w;
  *hOut = h;
  *imgOut = img;
}
```