user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<stbi_decode_DXT_color_block>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    %rdi,0x10(%rsp)
  mov    %rsi,%rbx
  mov    %fs:0x28,%rax
  mov    %rax,0x38(%rsp)
  xor    %eax,%eax
  movzbl 0x3(%rsi),%eax
  shl    $0x8,%eax
  movzbl 0x2(%rsi),%edx
  add    %edx,%eax
  mov    %eax,0xc(%rsp)
  lea    0x28(%rsp),%r15
  lea    0x24(%rsp),%r14
  lea    0x20(%rsp),%r8
  movzbl 0x1(%rsi),%edi
  shl    $0x8,%edi
  movzbl (%rsi),%eax
  add    %eax,%edi
  mov    %r15,%rcx
  mov    %r14,%rdx
  mov    %r8,0x18(%rsp)
  mov    %r8,%rsi
  call   <stbi_rgb_888_from_565@plt>
  mov    0x20(%rsp),%r13d
  mov    %r13b,0x2c(%rsp)
  mov    0x24(%rsp),%r12d
  mov    %r12b,0x2d(%rsp)
  mov    0x28(%rsp),%ebp
  mov    %bpl,0x2e(%rsp)
  mov    %r15,%rcx
  mov    %r14,%rdx
  mov    0x18(%rsp),%rsi
  mov    0xc(%rsp),%edi
  call   <stbi_rgb_888_from_565@plt>
  mov    0x20(%rsp),%esi
  mov    %sil,0x2f(%rsp)
  mov    0x24(%rsp),%ecx
  mov    %cl,0x30(%rsp)
  mov    0x28(%rsp),%edx
  mov    %dl,0x31(%rsp)
  movzbl %r13b,%r13d
  movzbl %sil,%esi
  lea    (%rsi,%r13,2),%eax
  cltq
  imul   $0x55555556,%rax,%rax
  shr    $0x20,%rax
  mov    %al,0x32(%rsp)
  movzbl %r12b,%r12d
  movzbl %cl,%ecx
  lea    (%rcx,%r12,2),%eax
  cltq
  imul   $0x55555556,%rax,%rax
  shr    $0x20,%rax
  mov    %al,0x33(%rsp)
  movzbl %bpl,%ebp
  movzbl %dl,%edx
  lea    (%rdx,%rbp,2),%eax
  cltq
  imul   $0x55555556,%rax,%rax
  shr    $0x20,%rax
  mov    %al,0x34(%rsp)
  lea    0x0(%r13,%rsi,2),%eax
  cltq
  imul   $0x55555556,%rax,%rax
  shr    $0x20,%rax
  mov    %al,0x35(%rsp)
  lea    (%r12,%rcx,2),%eax
  cltq
  imul   $0x55555556,%rax,%rax
  shr    $0x20,%rax
  mov    %al,0x36(%rsp)
  lea    0x0(%rbp,%rdx,2),%eax
  cltq
  imul   $0x55555556,%rax,%rax
  shr    $0x20,%rax
  mov    %al,0x37(%rsp)
  mov    0x10(%rsp),%rsi
  mov    $0x20,%edx
L18:
  mov    %edx,%eax
  sar    $0x3,%eax
  cltq
  movzbl (%rbx,%rax,1),%eax
  mov    %edx,%ecx
  and    $0x7,%ecx
  sar    %cl,%eax
  and    $0x3,%eax
  lea    (%rax,%rax,2),%eax
  add    $0x2,%edx
  movslq %eax,%rcx
  movzbl 0x2c(%rsp,%rcx,1),%ecx
  mov    %cl,(%rsi)
  lea    0x1(%rax),%ecx
  movslq %ecx,%rcx
  movzbl 0x2c(%rsp,%rcx,1),%ecx
  mov    %cl,0x1(%rsi)
  add    $0x2,%eax
  cltq
  movzbl 0x2c(%rsp,%rax,1),%eax
  mov    %al,0x2(%rsi)
  add    $0x4,%rsi
  cmp    $0x40,%edx
  jne    L18
  mov    0x38(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L11
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L11:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void stbi_decode_DXT_color_block(unsigned char uncompressed[16 * 4], unsigned char compressed[8]) {
  int next_bit = 4 * 8;
  int i, r, g, b;
  int c0, c1;
  unsigned char decode_colors[4 * 3];
  c0 = compressed[0] + (compressed[1] << 8);
  c1 = compressed[2] + (compressed[3] << 8);
  stbi_rgb_888_from_565(c0, &r, &g, &b);
  decode_colors[0] = r;
  decode_colors[1] = g;
  decode_colors[2] = b;
  stbi_rgb_888_from_565(c1, &r, &g, &b);
  decode_colors[3] = r;
  decode_colors[4] = g;
  decode_colors[5] = b;
  decode_colors[6] = (2 * decode_colors[0] + decode_colors[3]) / 3;
  decode_colors[7] = (2 * decode_colors[1] + decode_colors[4]) / 3;
  decode_colors[8] = (2 * decode_colors[2] + decode_colors[5]) / 3;
  decode_colors[9] = (decode_colors[0] + 2 * decode_colors[3]) / 3;
  decode_colors[10] = (decode_colors[1] + 2 * decode_colors[4]) / 3;
  decode_colors[11] = (decode_colors[2] + 2 * decode_colors[5]) / 3;
  for (i = 0; i < 16 * 4; i += 4) {
    int idx = ((compressed[next_bit >> 3] >> (next_bit & 7)) & 3) * 3;
    next_bit += 2;
    uncompressed[i + 0] = decode_colors[idx + 0];
    uncompressed[i + 1] = decode_colors[idx + 1];
    uncompressed[i + 2] = decode_colors[idx + 2];
  }
}
```