user: What is the c source code of the assembly code below?

```asm
<imgLoad>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    %esi,%ebp
  mov    %rdx,%rbx
  mov    %rcx,0x8(%rsp)
  mov    %r8,0x10(%rsp)
  mov    %r9,0x18(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x38(%rsp)
  xor    %eax,%eax
  lea    0x34(%rsp),%rcx
  lea    0x30(%rsp),%rdx
  lea    0x2c(%rsp),%rsi
  call   <read_texture@plt>
  mov    %rax,%r12
  lea    0x0(%rbp,%rbp,1),%r13d
  mov    %r13d,%r15d
  add    0x2c(%rsp),%r15d
  add    0x30(%rsp),%r13d
  mov    %r15d,%edi
  imul   %r13d,%edi
  mov    $0x4,%esi
  call   <calloc@plt>
  mov    %rax,%r14
  mov    %ebp,%edi
  neg    %edi
  mov    %ebp,%edx
  add    0x30(%rsp),%edx
  mov    %edi,%esi
  mov    $0xff,%r8d
  cmp    %edx,%edi
  jl     L21
L31:
  mov    %r12,%rdi
  call   <free@plt>
  mov    0x8(%rsp),%rax
  mov    %r15d,(%rax)
  mov    0x10(%rsp),%rax
  mov    %r13d,(%rax)
  mov    0x18(%rsp),%rax
  mov    %r14,(%rax)
  mov    0x38(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L88
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L4:
  mov    (%rbx),%r9d
  mov    %r9d,%edx
  shl    $0x8,%edx
  sub    %r9d,%edx
  mov    %edx,(%rax)
  mov    0x4(%rbx),%r9d
  mov    %r9d,%edx
  shl    $0x8,%edx
  sub    %r9d,%edx
  mov    %edx,0x4(%rax)
  mov    0x8(%rbx),%r9d
  mov    %r9d,%edx
  shl    $0x8,%edx
  sub    %r9d,%edx
  mov    %edx,0x8(%rax)
  mov    0xc(%rbx),%r9d
  mov    %r9d,%edx
  shl    $0x8,%edx
  sub    %r9d,%edx
L30:
  mov    %edx,0xc(%rax)
  add    $0x10,%rax
  add    $0x1,%ecx
  mov    0x2c(%rsp),%r9d
  lea    (%r9,%rbp,1),%edx
  cmp    %ecx,%edx
  jle    L52
L14:
  mov    %ecx,%edx
  or     %esi,%edx
  not    %edx
  shr    $0x1f,%edx
  cmp    %esi,0x30(%rsp)
  setg   %r10b
  test   %dl,%r10b
  je     L4
  cmp    %ecx,%r9d
  jle    L4
  imul   %esi,%r9d
  lea    (%r9,%rcx,1),%edx
  shl    $0x2,%edx
  movslq %edx,%rdx
  mov    (%r12,%rdx,4),%edx
  mov    %edx,(%rax)
  mov    %esi,%edx
  imul   0x2c(%rsp),%edx
  add    %ecx,%edx
  shl    $0x2,%edx
  movslq %edx,%rdx
  add    $0x1,%rdx
  mov    (%r12,%rdx,4),%r9d
  mov    %r9d,0x4(%rax)
  mov    0x4(%r12,%rdx,4),%edx
  mov    %edx,0x8(%rax)
  mov    %r8d,%edx
  jmp    L30
L52:
  add    $0x1,%esi
  mov    %ebp,%edx
  add    0x30(%rsp),%edx
  cmp    %esi,%edx
  jle    L31
L21:
  mov    0x2c(%rsp),%r9d
  lea    0x0(%rbp,%r9,1),%edx
  mov    %edi,%ecx
  cmp    %edx,%edi
  jl     L14
  jmp    L52
L88:
  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;
}
```