user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<cro_GenMipMapMinMaxI>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %esi,%ebx
  sub    $0xa8,%rsp
  mov    %rdi,0x68(%rsp)
  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     L42
  mov    %edx,%esi
  test   %edx,%edx
  je     L42
  lea    0x74(%rsp),%rcx
  lea    0x70(%rsp),%rdx
  mov    %ebx,%edi
  call   <cro_GetMipMapSize@plt>
  mov    0x74(%rsp),%r8d
  test   %r8d,%r8d
  je     L42
  lea    0x88(%rsp),%rcx
  movl   $0x0,0x5c(%rsp)
  mov    0x70(%rsp),%eax
  xor    %edx,%edx
  mov    %rcx,0x50(%rsp)
  nopl   0x0(%rax)
L36:
  mov    0x68(%rsp),%rdi
  mov    %edx,%ecx
  add    0x60(%rsp),%edx
  mov    %edx,0x64(%rsp)
  lea    (%rdi,%rcx,4),%r10
  lea    (%rdi,%rdx,4),%r15
  test   %eax,%eax
  je     L42
  lea    0x78(%rsp),%rax
  xor    %ebx,%ebx
  mov    %rax,0x18(%rsp)
  lea    0x8c(%rsp),%rax
  mov    %rax,0x38(%rsp)
  lea    0x7c(%rsp),%rax
  mov    %rax,0x20(%rsp)
  lea    0x90(%rsp),%rax
  mov    %rax,0x8(%rsp)
  lea    0x80(%rsp),%rax
  mov    %rax,0x28(%rsp)
  lea    0x94(%rsp),%rax
  mov    %rax,0x10(%rsp)
  lea    0x84(%rsp),%rax
  mov    %rax,0x30(%rsp)
  cs nopw 0x0(%rax,%rax,1)
L63:
  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   0x20(%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   0x28(%rsp)
  mov    $0x10,%r8d
  mov    0x48(%rsp),%r9
  mov    %r14d,%ecx
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <cro_MinMaxBits@plt>
  pop    %rdx
  push   0x30(%rsp)
  mov    $0x8,%r8d
  mov    0x18(%rsp),%r9
  mov    %r14d,%ecx
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <cro_MinMaxBits@plt>
  pop    %rcx
  push   0x38(%rsp)
  xor    %r8d,%r8d
  mov    0x20(%rsp),%r9
  mov    %r13d,%edx
  mov    %r12d,%esi
  mov    %ebp,%edi
  mov    %r14d,%ecx
  call   <cro_MinMaxBits@plt>
  mov    0x50(%rsp),%rdi
  mov    0x58(%rsp),%rsi
  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,(%rsi)
  mov    0x80(%rsp),%eax
  pop    %rsi
  pop    %rdi
  cmp    %ebx,%eax
  mov    (%rsp),%r10
  ja     L63
  addl   $0x1,0x5c(%rsp)
  mov    0x5c(%rsp),%ecx
  cmp    0x74(%rsp),%ecx
  jae    L42
  mov    0x64(%rsp),%edx
  add    0x60(%rsp),%edx
  jmp    L36
  nopl   0x0(%rax)
L42:
  mov    0x98(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L23
  add    $0xa8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L23:
  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);
    }
  }
}
```