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

```asm
<cro_GenMipMapMinMaxI>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0xa8,%rsp
  mov    %rdi,0x68(%rsp)
  mov    %esi,%edi
  mov    %esi,0x60(%rsp)
  mov    %rcx,0x40(%rsp)
  mov    %r8,0x48(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x98(%rsp)
  xor    %eax,%eax
  test   %esi,%esi
  je     L54
  mov    %edx,%esi
  test   %edx,%edx
  je     L54
  lea    0x74(%rsp),%rcx
  lea    0x70(%rsp),%rdx
  call   <cro_GetMipMapSize@plt>
  mov    0x74(%rsp),%r9d
  test   %r9d,%r9d
  je     L54
  lea    0x88(%rsp),%rsi
  movl   $0x0,0x5c(%rsp)
  xor    %eax,%eax
  mov    %rsi,0x50(%rsp)
  nopl   0x0(%rax,%rax,1)
L49:
  mov    0x68(%rsp),%rsi
  mov    0x70(%rsp),%r8d
  mov    %eax,%edx
  add    0x60(%rsp),%eax
  mov    %eax,0x64(%rsp)
  lea    (%rsi,%rdx,4),%r10
  lea    (%rsi,%rax,4),%r15
  test   %r8d,%r8d
  je     L58
  lea    0x78(%rsp),%rax
  xor    %ebx,%ebx
  mov    %rax,0x30(%rsp)
  lea    0x8c(%rsp),%rax
  mov    %rax,0x18(%rsp)
  lea    0x7c(%rsp),%rax
  mov    %rax,0x38(%rsp)
  lea    0x90(%rsp),%rax
  mov    %rax,0x20(%rsp)
  lea    0x80(%rsp),%rax
  mov    %rax,0x8(%rsp)
  lea    0x94(%rsp),%rax
  mov    %rax,0x28(%rsp)
  lea    0x84(%rsp),%rax
  mov    %rax,0x10(%rsp)
  nopl   0x0(%rax)
L38:
  sub    $0x8,%rsp
  mov    %r10,0x8(%rsp)
  mov    (%r10,%rbx,8),%ebp
  mov    $0x18,%r8d
  mov    0x4(%r10,%rbx,8),%r13d
  mov    (%r15,%rbx,8),%r12d
  mov    0x4(%r15,%rbx,8),%r14d
  push   0x38(%rsp)
  mov    %ebp,%edi
  add    $0x1,%rbx
  mov    0x60(%rsp),%r9
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %r14d,%ecx
  call   <cro_MinMaxBits@plt>
  pop    %rax
  push   0x40(%rsp)
  mov    $0x10,%r8d
  mov    0x28(%rsp),%r9
  mov    %r14d,%ecx
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <cro_MinMaxBits@plt>
  pop    %rdx
  push   0x10(%rsp)
  mov    $0x8,%r8d
  mov    0x30(%rsp),%r9
  mov    %r14d,%ecx
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <cro_MinMaxBits@plt>
  pop    %rcx
  push   0x18(%rsp)
  xor    %r8d,%r8d
  mov    0x38(%rsp),%r9
  mov    %r14d,%ecx
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <cro_MinMaxBits@plt>
  mov    0x50(%rsp),%rdi
  mov    0x58(%rsp),%rcx
  mov    0x98(%rsp),%eax
  mov    0x9c(%rsp),%edx
  shl    $0x18,%eax
  shl    $0x10,%edx
  or     %edx,%eax
  mov    0xa0(%rsp),%edx
  or     0xa4(%rsp),%eax
  shl    $0x8,%edx
  or     %edx,%eax
  mov    0x8c(%rsp),%edx
  mov    %eax,(%rdi)
  mov    0x88(%rsp),%eax
  shl    $0x10,%edx
  shl    $0x18,%eax
  or     %edx,%eax
  mov    0x90(%rsp),%edx
  or     0x94(%rsp),%eax
  shl    $0x8,%edx
  or     %edx,%eax
  mov    %eax,(%rcx)
  pop    %rsi
  pop    %rdi
  cmp    %ebx,0x70(%rsp)
  mov    (%rsp),%r10
  ja     L38
L58:
  addl   $0x1,0x5c(%rsp)
  mov    0x64(%rsp),%eax
  mov    0x5c(%rsp),%esi
  add    0x60(%rsp),%eax
  cmp    %esi,0x74(%rsp)
  ja     L49
L54:
  mov    0x98(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L0
  add    $0xa8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L0:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void cro_GenMipMapMinMaxI(const int *image, unsigned int width, unsigned int height, int *minMip, int *maxMip) {
  if (width == 0 || height == 0)
    return;
  unsigned int newWidth, newHeight;
  int *minPixel = minMip;
  int *maxPixel = maxMip;
  cro_GetMipMapSize(width, height, &newWidth, &newHeight);
  for (unsigned int h = 0; h < newHeight; ++h) {
    const int *row1 = &image[width * (2 * h + 0)];
    const int *row2 = &image[width * (2 * h + 1)];
    for (unsigned int w = 0; w < newWidth; ++w, ++minPixel, ++maxPixel, row1 += 2, row2 += 2) {
      int p1 = row1[0];
      int p2 = row2[0];
      int p3 = row1[1];
      int p4 = row2[1];
      int max1, max2, max3, max4;
      int min1, min2, min3, min4;
      cro_MinMaxBits(p1, p2, p3, p4, 24, &min1, &max1);
      cro_MinMaxBits(p1, p2, p3, p4, 16, &min2, &max2);
      cro_MinMaxBits(p1, p2, p3, p4, 8, &min3, &max3);
      cro_MinMaxBits(p1, p2, p3, p4, 0, &min4, &max4);
      *minMip = (min1 << 24) | (min2 << 16) | (min3 << 8) | (min4 << 0);
      *maxMip = (max1 << 24) | (max2 << 16) | (max3 << 8) | (max4 << 0);
    }
  }
}
```