user: 请将以下的汇编代码转换成C语言代码：

```asm
<get_min_max_colors_inset_bbox>:
  endbr64
  push   %r15
  xor    %r10d,%r10d
  xor    %r11d,%r11d
  xor    %r15d,%r15d
  push   %r14
  mov    $0xff,%r8d
  xor    %r14d,%r14d
  mov    $0xff,%r9d
  push   %r13
  xor    %r13d,%r13d
  push   %r12
  xor    %r12d,%r12d
  push   %rbp
  push   %rbx
  xor    %ebx,%ebx
  sub    $0x38,%rsp
  mov    %rsi,0x10(%rsp)
  mov    %rdx,0x18(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  mov    %rdi,%rax
  movb   $0x0,0xe(%rsp)
  mov    $0xff,%edi
  movb   $0x0,0xf(%rsp)
  lea    0x40(%rax),%rbp
L112:
  movzbl (%rax),%esi
  cmp    %r9b,%sil
  jae    L94
  movb   $0x1,0xf(%rsp)
  movzbl %sil,%r9d
L94:
  movzbl 0x1(%rax),%ecx
  cmp    %r8b,%cl
  jae    L36
  movb   $0x1,0xe(%rsp)
  movzbl %cl,%r8d
L36:
  movzbl 0x2(%rax),%edx
  cmp    %dil,%dl
  jae    L31
  movzbl %dl,%edi
  mov    $0x1,%r15d
L31:
  cmp    %bl,%sil
  jbe    L65
  mov    %esi,%ebx
  mov    $0x1,%r14d
L65:
  cmp    %r11b,%cl
  jbe    L116
  mov    %ecx,%r11d
  mov    $0x1,%r13d
L116:
  cmp    %r10b,%dl
  jbe    L13
  mov    %edx,%r10d
  mov    $0x1,%r12d
L13:
  add    $0x4,%rax
  cmp    %rax,%rbp
  jne    L112
  movzbl %r10b,%eax
  test   %r12b,%r12b
  jne    L63
  xor    %eax,%eax
  xor    %r10d,%r10d
L63:
  movzbl %r11b,%edx
  test   %r13b,%r13b
  je     L80
L44:
  movzbl %bl,%ecx
  test   %r14b,%r14b
  jne    L7
  xor    %ecx,%ecx
  xor    %ebx,%ebx
L7:
  mov    $0xff,%esi
  test   %r15b,%r15b
  cmove  %esi,%edi
  cmpb   $0x0,0xe(%rsp)
  cmove  %esi,%r8d
  cmpb   $0x0,0xf(%rsp)
  cmove  %esi,%r9d
  sub    %edi,%eax
  xor    %ebp,%ebp
  sub    %r8d,%edx
  sar    $0x4,%eax
  sub    %r9d,%ecx
  sar    $0x4,%edx
  mov    %eax,%r14d
  sar    $0x4,%ecx
  mov    %edx,%r15d
  movzbl %cl,%esi
  add    %r9d,%esi
  mov    $0xff,%r9d
  cmp    %r9d,%esi
  cmovg  %r9d,%esi
  mov    %sil,%bpl
  movzbl %dl,%esi
  add    %r8d,%esi
  mov    $0xff,%r8d
  mov    %ebp,%eax
  cmp    %r8d,%esi
  cmovg  %r8d,%esi
  mov    %esi,%edx
  movzbl %r14b,%esi
  add    %edi,%esi
  mov    $0xff,%edi
  mov    %dl,%ah
  mov    %r10d,%edx
  cmp    %edi,%esi
  mov    %ax,0x24(%rsp)
  cmovg  %edi,%esi
  mov    %ebx,%edi
  sub    %ecx,%edi
  mov    %sil,0x26(%rsp)
  xor    %esi,%esi
  cmp    %cl,%bl
  mov    %r11d,%ecx
  cmovb  %esi,%edi
  sub    %r15d,%ecx
  cmp    %r15b,%r11b
  mov    %esi,%eax
  cmovb  %esi,%ecx
  sub    %r14d,%edx
  cmp    %r14b,%r10b
  cmovae %edx,%eax
  mov    %dil,0x20(%rsp)
  lea    0x24(%rsp),%rdi
  mov    %cl,0x21(%rsp)
  mov    %al,0x22(%rsp)
  call   <pack_rgb565@plt>
  mov    0x18(%rsp),%rbx
  lea    0x20(%rsp),%rdi
  mov    %ax,(%rbx)
  call   <pack_rgb565@plt>
  mov    0x10(%rsp),%rbx
  mov    %ax,(%rbx)
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L88
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L80:
  xor    %edx,%edx
  xor    %r11d,%r11d
  jmp    L44
L88:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void get_min_max_colors_inset_bbox(const unsigned char *block, unsigned short *max16, unsigned short *min16) {
  int i;
  unsigned char inset[3], mx[3], mn[3];
  mn[0] = mn[1] = mn[2] = 255;
  mx[0] = mx[1] = mx[2] = 0;
  for (i = 0; i < 16; ++i) {
    if (block[4 * i + 0] < mn[0])
      mn[0] = block[4 * i + 0];
    if (block[4 * i + 1] < mn[1])
      mn[1] = block[4 * i + 1];
    if (block[4 * i + 2] < mn[2])
      mn[2] = block[4 * i + 2];
    if (block[4 * i + 0] > mx[0])
      mx[0] = block[4 * i + 0];
    if (block[4 * i + 1] > mx[1])
      mx[1] = block[4 * i + 1];
    if (block[4 * i + 2] > mx[2])
      mx[2] = block[4 * i + 2];
  }
  inset[0] = (mx[0] - mn[0]) >> 4;
  inset[1] = (mx[1] - mn[1]) >> 4;
  inset[2] = (mx[2] - mn[2]) >> 4;
  mn[0] = (mn[0] + inset[0] <= 255) ? mn[0] + inset[0] : 255;
  mn[1] = (mn[1] + inset[1] <= 255) ? mn[1] + inset[1] : 255;
  mn[2] = (mn[2] + inset[2] <= 255) ? mn[2] + inset[2] : 255;
  mx[0] = (mx[0] >= inset[0]) ? mx[0] - inset[0] : 0;
  mx[1] = (mx[1] >= inset[1]) ? mx[1] - inset[1] : 0;
  mx[2] = (mx[2] >= inset[2]) ? mx[2] - inset[2] : 0;
  *min16 = pack_rgb565(mn);
  *max16 = pack_rgb565(mx);
}
```