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

```asm
<get_min_max_colors_inset_bbox>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %rsi,0x10(%rsp)
  mov    %rdx,0x18(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  movb   $0xff,0x27(%rsp)
  movb   $0xff,0x26(%rsp)
  movb   $0xff,0x25(%rsp)
  movb   $0x0,0x24(%rsp)
  movb   $0x0,0x23(%rsp)
  movb   $0x0,0x22(%rsp)
  mov    %rdi,%rax
  lea    0x40(%rdi),%r12
  mov    $0x0,%r13d
  mov    $0x0,%r8d
  mov    $0x0,%r14d
  mov    $0x0,%r9d
  mov    $0x0,%r15d
  mov    $0x0,%r10d
  movb   $0x0,0xd(%rsp)
  mov    $0xffffffff,%r11d
  movb   $0x0,0xe(%rsp)
  mov    $0xffffffff,%ebx
  movb   $0x0,0xf(%rsp)
  mov    $0xffffffff,%ebp
  mov    $0x1,%edi
  jmp    L152
L110:
  add    $0x4,%rax
  cmp    %r12,%rax
  je     L32
L152:
  mov    %rax,%rdx
  movzbl (%rax),%esi
  cmp    %bpl,%sil
  jae    L104
  mov    %esi,%ebp
  mov    %dil,0xf(%rsp)
L104:
  movzbl 0x1(%rdx),%ecx
  cmp    %bl,%cl
  jae    L122
  mov    %ecx,%ebx
  mov    %dil,0xe(%rsp)
L122:
  movzbl 0x2(%rdx),%edx
  cmp    %r11b,%dl
  jae    L23
  mov    %edx,%r11d
  mov    %dil,0xd(%rsp)
L23:
  cmp    %r10b,%sil
  jbe    L134
  mov    %esi,%r10d
  mov    %edi,%r15d
L134:
  cmp    %r9b,%cl
  jbe    L74
  mov    %ecx,%r9d
  mov    %edi,%r14d
L74:
  cmp    %r8b,%dl
  jbe    L110
  mov    %edx,%r8d
  mov    %edi,%r13d
  jmp    L110
L32:
  test   %r13b,%r13b
  je     L116
  mov    %r8b,0x24(%rsp)
L116:
  test   %r14b,%r14b
  je     L8
  mov    %r9b,0x23(%rsp)
L8:
  test   %r15b,%r15b
  je     L136
  mov    %r10b,0x22(%rsp)
L136:
  cmpb   $0x0,0xd(%rsp)
  je     L155
  mov    %r11b,0x27(%rsp)
L155:
  cmpb   $0x0,0xe(%rsp)
  je     L61
  mov    %bl,0x26(%rsp)
L61:
  cmpb   $0x0,0xf(%rsp)
  je     L48
  mov    %bpl,0x25(%rsp)
L48:
  movzbl 0x22(%rsp),%r9d
  movzbl 0x25(%rsp),%ebx
  movzbl %r9b,%ecx
  sub    %ebx,%ecx
  sar    $0x4,%ecx
  movzbl 0x23(%rsp),%r8d
  movzbl 0x26(%rsp),%r11d
  movzbl %r8b,%edx
  sub    %r11d,%edx
  sar    $0x4,%edx
  movzbl 0x24(%rsp),%edi
  movzbl 0x27(%rsp),%r10d
  movzbl %dil,%eax
  sub    %r10d,%eax
  sar    $0x4,%eax
  movzbl %cl,%esi
  add    %ebx,%esi
  mov    $0xff,%ebx
  cmp    %ebx,%esi
  cmovg  %ebx,%esi
  mov    %sil,0x25(%rsp)
  movzbl %dl,%esi
  add    %r11d,%esi
  mov    $0xff,%r11d
  cmp    %r11d,%esi
  cmovg  %r11d,%esi
  mov    %sil,0x26(%rsp)
  movzbl %al,%esi
  add    %r10d,%esi
  mov    $0xff,%r10d
  cmp    %r10d,%esi
  cmovg  %r10d,%esi
  mov    %sil,0x27(%rsp)
  mov    %r9d,%esi
  sub    %ecx,%esi
  cmp    %cl,%r9b
  mov    $0x0,%ecx
  cmovae %esi,%ecx
  mov    %cl,0x22(%rsp)
  mov    %r8d,%ecx
  sub    %edx,%ecx
  cmp    %dl,%r8b
  mov    $0x0,%edx
  cmovae %ecx,%edx
  mov    %dl,0x23(%rsp)
  mov    %edi,%edx
  sub    %eax,%edx
  cmp    %al,%dil
  mov    $0x0,%eax
  cmovae %edx,%eax
  mov    %al,0x24(%rsp)
  lea    0x25(%rsp),%rdi
  call   <pack_rgb565@plt>
  mov    0x18(%rsp),%rbx
  mov    %ax,(%rbx)
  lea    0x22(%rsp),%rdi
  call   <pack_rgb565@plt>
  mov    0x10(%rsp),%rbx
  mov    %ax,(%rbx)
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L153
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L153:
  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);
}
```