user: 请从给定的汇编指令推导出C源代码:

```asm
<convert_image_to_DXT5>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %esi,%ebx
  sub    $0x1e8,%rsp
  mov    %esi,0x38(%rsp)
  mov    %edx,%esi
  mov    %edx,0x168(%rsp)
  mov    %ecx,0x110(%rsp)
  mov    %fs:0x28,%rdx
  mov    %rdx,0x1d8(%rsp)
  xor    %edx,%edx
  movl   $0x0,(%r8)
  test   %ebx,%ebx
  jle    L33
  test   %esi,%esi
  jle    L33
  lea    -0x1(%rcx),%edx
  mov    %ecx,%r15d
  cmp    $0x3,%edx
  ja     L33
  mov    %rdi,%r12
  test   %rdi,%rdi
  je     L33
  lea    0x3(%rbx),%edi
  lea    0x3(%rsi),%edx
  sar    $0x2,%edx
  sar    $0x2,%edi
  imul   %edx,%edi
  shl    $0x4,%edi
  mov    %edi,(%r8)
  call   <malloc@plt>
  lea    0x0(,%r15,4),%edi
  mov    %r15d,%ecx
  mov    %r15d,%edx
  mov    %rax,0x160(%rsp)
  and    $0x1,%edx
  movdqa D11(%rip),%xmm4
  mov    %rax,0x148(%rsp)
  mov    %ebx,%eax
  imul   %edi,%ebx
  mov    %edx,%r14d
  mov    %edi,0x100(%rsp)
  movl   $0x0,0x130(%rsp)
  mov    %ebx,0x16c(%rsp)
  mov    %eax,%ebx
  lea    0x0(,%rax,4),%eax
  mov    %eax,0x174(%rsp)
  mov    %ebx,%eax
  imul   %r15d,%eax
  movl   $0x0,0x154(%rsp)
  movl   $0x0,0x150(%rsp)
  movl   $0x0,0x144(%rsp)
  mov    %eax,0xc8(%rsp)
  mov    %r15d,%eax
  xor    %r15d,%r15d
  not    %eax
  mov    %r12,0x178(%rsp)
  and    $0x1,%eax
  cmp    $0x2,%ecx
  setg   %r15b
  movd   %eax,%xmm0
  mov    %eax,%ebp
  punpcklbw %xmm0,%xmm0
  lea    (%r15,%r15,1),%rax
  mov    %r15,0x68(%rsp)
  mov    %ebp,%r13d
  punpcklwd %xmm0,%xmm0
  mov    %rax,0x138(%rsp)
  lea    -0x4(,%rbx,4),%eax
  and    $0xfffffff0,%eax
  pshufd $0x0,%xmm0,%xmm8
  movd   %edx,%xmm0
  xor    %edx,%edx
  test   %ebx,%ebx
  punpcklbw %xmm0,%xmm0
  cmovg  %eax,%edx
  lea    0x190(%rsp),%rax
  punpcklwd %xmm0,%xmm0
  mov    %rax,0x10(%rsp)
  lea    0x188(%rsp),%rax
  pshufd $0x0,%xmm0,%xmm5
  mov    %rax,0xf8(%rsp)
  movslq %ecx,%rax
  mov    %edx,0x170(%rsp)
  mov    %rax,0x158(%rsp)
L282:
  mov    0x150(%rsp),%ebx
  mov    0x168(%rsp),%ecx
  movq   $0x0,0x18(%rsp)
  mov    0x178(%rsp),%r12
  movaps %xmm5,0x120(%rsp)
  mov    %ebx,%edx
  mov    %ecx,%eax
  add    $0x4,%ebx
  sub    %edx,%eax
  mov    %ebx,0x150(%rsp)
  cmp    %ebx,%ecx
  mov    $0x4,%ebx
  cmovg  %ebx,%eax
  mov    %eax,%ebx
  mov    %eax,0x2c(%rsp)
  movslq 0x144(%rsp),%rax
  add    0x160(%rsp),%rax
  mov    %rax,0xb0(%rsp)
  lea    0x1(%rbx),%eax
  mov    %eax,0x104(%rsp)
  lea    0x2(%rbx),%eax
  mov    %eax,0x134(%rsp)
  lea    0x3(%rbx),%eax
  mov    %eax,0x140(%rsp)
  mov    0x154(%rsp),%eax
  mov    %eax,0xe8(%rsp)
L95:
  mov    0x18(%rsp),%rcx
  mov    0x38(%rsp),%ebx
  mov    %ecx,%eax
  mov    %ebx,%r10d
  add    $0x4,%eax
  sub    %ecx,%r10d
  cmp    %eax,%ebx
  mov    $0x4,%eax
  cmovg  %eax,%r10d
  mov    0x2c(%rsp),%eax
  test   %eax,%eax
  jle    L263
  cmpl   $0x1,0x110(%rsp)
  jne    L821
  mov    %r10d,%eax
  lea    -0x1(%r10),%ebx
  movdqa %xmm8,%xmm7
  xor    %r8d,%r8d
  and    $0xfffffff0,%eax
  mov    %ebx,0x48(%rsp)
  movdqa %xmm8,%xmm6
  xor    %r15d,%r15d
  mov    %eax,0x74(%rsp)
  shl    $0x2,%eax
  punpcklbw %xmm8,%xmm7
  punpckhbw %xmm8,%xmm6
  mov    %eax,0x78(%rsp)
  lea    0x0(,%rbx,4),%eax
  mov    $0x4,%ebx
  mov    %eax,0x40(%rsp)
  mov    $0x3,%eax
  sub    %r10d,%ebx
  sub    %r10d,%eax
  mov    %ebx,0x7c(%rsp)
  mov    %eax,0x70(%rsp)
  mov    %eax,%ecx
  mov    %ebx,%eax
  and    $0xfffffff0,%ebx
  shl    $0x2,%rax
  mov    %ebx,0x80(%rsp)
  mov    %rax,0x30(%rsp)
  lea    (%rbx,%r10,1),%eax
  shl    $0x2,%ebx
  mov    %ebx,0x84(%rsp)
  lea    0x1(%rax),%ebx
  mov    %ebx,0x88(%rsp)
  lea    0x2(%rax),%ebx
  mov    %ebx,0x8c(%rsp)
  lea    0x3(%rax),%ebx
  mov    %ebx,0x90(%rsp)
  lea    0x4(%rax),%ebx
  mov    %ebx,0x94(%rsp)
  lea    0x5(%rax),%ebx
  mov    %ebx,0x98(%rsp)
  lea    0x6(%rax),%ebx
  mov    %ebx,0x9c(%rsp)
  lea    0x7(%rax),%ebx
  mov    %ebx,0xa0(%rsp)
  lea    0x8(%rax),%ebx
  mov    %ebx,0xa4(%rsp)
  lea    0x9(%rax),%ebx
  mov    %ebx,0xa8(%rsp)
  lea    0xa(%rax),%ebx
  mov    %ebx,0xac(%rsp)
  lea    0xb(%rax),%ebx
  mov    %ebx,0xb8(%rsp)
  lea    0xc(%rax),%ebx
  mov    %ebx,0xbc(%rsp)
  lea    0xd(%rax),%ebx
  add    $0xe,%eax
  mov    %eax,0xd4(%rsp)
  lea    0x1(%r10),%eax
  mov    %eax,0xc0(%rsp)
  lea    0x2(%r10),%eax
  mov    %eax,0xcc(%rsp)
  lea    0x3(%r10),%eax
  mov    %eax,0xd0(%rsp)
  lea    0x4(%r10),%eax
  mov    %eax,0xd8(%rsp)
  lea    0x5(%r10),%eax
  mov    %eax,0xdc(%rsp)
  lea    0x6(%r10),%eax
  mov    %eax,0xe0(%rsp)
  lea    0x7(%r10),%eax
  mov    %eax,0xe4(%rsp)
  lea    0x8(%r10),%eax
  mov    %eax,0xec(%rsp)
  lea    0x9(%r10),%eax
  mov    %eax,0xf0(%rsp)
  lea    0xa(%r10),%eax
  mov    %ebx,0xc4(%rsp)
  mov    %eax,0xf4(%rsp)
  lea    0xb(%r10),%eax
  mov    0x138(%rsp),%rbx
  movdqa 0x120(%rsp),%xmm5
  mov    %eax,0x108(%rsp)
  lea    0xc(%r10),%eax
  mov    %eax,0x10c(%rsp)
  lea    0xd(%r10),%eax
  mov    %eax,0x114(%rsp)
  lea    0xe(%r10),%eax
  mov    %eax,0x118(%rsp)
  lea    0xf(%r10),%eax
  mov    %eax,0x11c(%rsp)
  lea    0x0(,%rcx,4),%eax
  mov    %eax,0x3c(%rsp)
  mov    0x130(%rsp),%eax
  mov    %eax,0x20(%rsp)
  lea    0x194(%rsp),%rax
  mov    %rax,0x50(%rsp)
  mov    0x18(%rsp),%rax
  add    %rax,%rbx
  mov    %rbx,0x58(%rsp)
  mov    0x68(%rsp),%rbx
  add    %rbx,%rax
  mov    %rax,0x60(%rsp)
  nopl   0x0(%rax,%rax,1)
L453:
  test   %r10d,%r10d
  jle    L858
  cmpl   $0xe,0x48(%rsp)
  jbe    L804
  mov    0x18(%rsp),%rax
  movslq 0x20(%rsp),%r9
  mov    0x68(%rsp),%rbx
  lea    (%r9,%rax,1),%rcx
  movslq %r8d,%rax
  add    0x10(%rsp),%rax
  movdqu (%r12,%rcx,1),%xmm0
  lea    (%rcx,%rbx,1),%rdx
  movdqu (%r12,%rdx,1),%xmm2
  add    %r12,%rdx
  movdqa %xmm0,%xmm1
  movdqa %xmm0,%xmm3
  movdqu (%rdx,%rbx,1),%xmm9
  mov    0x74(%rsp),%ebx
  punpcklbw %xmm0,%xmm1
  punpckhbw %xmm0,%xmm3
  pmullw %xmm7,%xmm1
  pmullw %xmm6,%xmm3
  pand   %xmm4,%xmm1
  pand   %xmm4,%xmm3
  packuswb %xmm3,%xmm1
  movdqa %xmm0,%xmm3
  punpckhbw %xmm9,%xmm0
  psubb  %xmm5,%xmm1
  punpcklbw %xmm9,%xmm3
  movdqa %xmm2,%xmm9
  punpcklbw %xmm1,%xmm9
  punpckhbw %xmm1,%xmm2
  movdqa %xmm3,%xmm1
  punpcklbw %xmm9,%xmm1
  punpckhbw %xmm9,%xmm3
  movups %xmm1,(%rax)
  movdqa %xmm0,%xmm1
  punpckhbw %xmm2,%xmm0
  punpcklbw %xmm2,%xmm1
  movups %xmm3,0x10(%rax)
  movups %xmm1,0x20(%rax)
  movups %xmm0,0x30(%rax)
  mov    0x78(%rsp),%eax
  add    %r8d,%eax
  cmp    %ebx,%r10d
  je     L704
  movslq %ebx,%rsi
L903:
  mov    0x58(%rsp),%rbx
  mov    %rsi,%rdx
  cltq
  neg    %rdx
  lea    (%rbx,%r9,1),%rbp
  lea    (%rax,%rdx,4),%rbx
  mov    0x18(%rsp),%rax
  add    0x10(%rsp),%rbx
  add    %r12,%rbp
  lea    (%rax,%r9,1),%r11
  add    0x60(%rsp),%r9
  add    %r12,%r11
  add    %r12,%r9
  nopl   0x0(%rax)
L316:
  movzbl (%r11,%rsi,1),%ecx
  movzbl (%r9,%rsi,1),%eax
  xor    %edx,%edx
  movzbl 0x0(%rbp,%rsi,1),%edi
  mov    %cl,%dl
  mov    %al,%dh
  mov    %ecx,%eax
  shl    $0x10,%edi
  imul   %r13d,%eax
  movzwl %dx,%edx
  or     %edi,%edx
  sub    %r14d,%eax
  shl    $0x18,%eax
  or     %eax,%edx
  mov    %edx,(%rbx,%rsi,4)
  add    $0x1,%rsi
  cmp    %esi,%r10d
  jg     L316
L704:
  mov    0x40(%rsp),%eax
  lea    0x4(%r8,%rax,1),%r8d
  cmp    $0x3,%r10d
  jg     L4
L858:
  mov    0x10(%rsp),%rbx
  movslq %r8d,%rax
  lea    (%rbx,%rax,1),%rdx
  mov    0x30(%rsp),%rbx
  lea    (%rbx,%rax,1),%rcx
  test   %rcx,%rcx
  setle  %sil
  cmp    0x50(%rsp),%rdx
  setae  %cl
  or     %sil,%cl
  je     L189
  cmpl   $0xe,0x70(%rsp)
  jbe    L189
  movzbl 0x192(%rsp),%edi
  movzbl 0x191(%rsp),%esi
  movzbl 0x193(%rsp),%r9d
  movzbl 0x190(%rsp),%ecx
  mov    %r9,%rax
  shl    $0x8,%rax
  or     %rdi,%rax
  shl    $0x8,%rax
  or     %rsi,%rax
  shl    $0x8,%rax
  or     %rcx,%rax
  shl    $0x8,%rax
  or     %r9,%rax
  shl    $0x8,%rax
  or     %rdi,%rax
  shl    $0x8,%rax
  or     %rsi,%rax
  shl    $0x8,%rax
  or     %rcx,%rax
  mov    0x80(%rsp),%ecx
  mov    %rax,(%rsp)
  mov    %rax,0x8(%rsp)
  mov    0x84(%rsp),%eax
  movdqa (%rsp),%xmm2
  add    %r8d,%eax
  movups %xmm2,(%rdx)
  movups %xmm2,0x10(%rdx)
  movups %xmm2,0x20(%rdx)
  movups %xmm2,0x30(%rdx)
  cmp    %ecx,0x7c(%rsp)
  je     L722
  movzbl 0x190(%rsp),%ecx
  movslq %eax,%rdx
  cmpl   $0x3,0x88(%rsp)
  mov    %cl,0x190(%rsp,%rdx,1)
  lea    0x1(%rax),%edx
  movzbl 0x191(%rsp),%ecx
  movslq %edx,%rdx
  mov    %cl,0x190(%rsp,%rdx,1)
  lea    0x2(%rax),%edx
  movzbl 0x192(%rsp),%esi
  movslq %edx,%rdx
  mov    %sil,0x190(%rsp,%rdx,1)
  lea    0x3(%rax),%esi
  lea    0x4(%rax),%edx
  movzbl 0x193(%rsp),%edi
  movslq %esi,%rsi
  mov    %dil,0x190(%rsp,%rsi,1)
  jg     L722
  movzbl 0x190(%rsp),%esi
  movslq %edx,%rdx
  lea    0x7(%rax),%edi
  cmpl   $0x3,0x8c(%rsp)
  movslq %edi,%rdi
  lea    0x8(%rax),%r9d
  mov    %sil,0x190(%rsp,%rdx,1)
  lea    0x5(%rax),%edx
  movslq %edx,%rdx
  mov    %cl,0x190(%rsp,%rdx,1)
  movzbl 0x192(%rsp),%ecx
  lea    0x6(%rax),%edx
  movslq %edx,%rdx
  mov    %cl,0x190(%rsp,%rdx,1)
  movzbl 0x193(%rsp),%edx
  mov    %dl,0x190(%rsp,%rdi,1)
  jg     L722
  movslq %r9d,%r9
  movzbl 0x191(%rsp),%edi
  cmpl   $0x3,0x90(%rsp)
  lea    0xc(%rax),%r11d
  mov    %sil,0x190(%rsp,%r9,1)
  lea    0x9(%rax),%r9d
  movslq %r9d,%r9
  mov    %dil,0x190(%rsp,%r9,1)
  lea    0xa(%rax),%r9d
  movslq %r9d,%r9
  mov    %cl,0x190(%rsp,%r9,1)
  lea    0xb(%rax),%r9d
  movslq %r9d,%r9
  mov    %dl,0x190(%rsp,%r9,1)
  jg     L722
  lea    0xd(%rax),%r9d
  movslq %r11d,%r11
  cmpl   $0x3,0x94(%rsp)
  movslq %r9d,%r9
  mov    %sil,0x190(%rsp,%r11,1)
  lea    0x10(%rax),%r11d
  mov    %dil,0x190(%rsp,%r9,1)
  lea    0xe(%rax),%r9d
  movslq %r9d,%r9
  mov    %cl,0x190(%rsp,%r9,1)
  lea    0xf(%rax),%r9d
  movslq %r9d,%r9
  mov    %dl,0x190(%rsp,%r9,1)
  jg     L722
  lea    0x11(%rax),%r9d
  movslq %r11d,%r11
  cmpl   $0x3,0x98(%rsp)
  movslq %r9d,%r9
  mov    %sil,0x190(%rsp,%r11,1)
  lea    0x14(%rax),%r11d
  mov    %dil,0x190(%rsp,%r9,1)
  lea    0x12(%rax),%r9d
  movslq %r9d,%r9
  mov    %cl,0x190(%rsp,%r9,1)
  lea    0x13(%rax),%r9d
  movslq %r9d,%r9
  mov    %dl,0x190(%rsp,%r9,1)
  jg     L722
  lea    0x15(%rax),%r9d
  movslq %r11d,%r11
  cmpl   $0x3,0x9c(%rsp)
  movslq %r9d,%r9
  mov    %sil,0x190(%rsp,%r11,1)
  lea    0x18(%rax),%r11d
  mov    %dil,0x190(%rsp,%r9,1)
  lea    0x16(%rax),%r9d
  movslq %r9d,%r9
  mov    %cl,0x190(%rsp,%r9,1)
  lea    0x17(%rax),%r9d
  movslq %r9d,%r9
  mov    %dl,0x190(%rsp,%r9,1)
  jg     L722
  lea    0x19(%rax),%r9d
  movslq %r11d,%r11
  cmpl   $0x3,0xa0(%rsp)
  movslq %r9d,%r9
  mov    %sil,0x190(%rsp,%r11,1)
  lea    0x1c(%rax),%r11d
  mov    %dil,0x190(%rsp,%r9,1)
  lea    0x1a(%rax),%r9d
  movslq %r9d,%r9
  mov    %cl,0x190(%rsp,%r9,1)
  lea    0x1b(%rax),%r9d
  movslq %r9d,%r9
  mov    %dl,0x190(%rsp,%r9,1)
  jg     L722
  lea    0x1d(%rax),%r9d
  movslq %r11d,%r11
  cmpl   $0x3,0xa4(%rsp)
  movslq %r9d,%r9
  mov    %sil,0x190(%rsp,%r11,1)
  lea    0x20(%rax),%r11d
  mov    %dil,0x190(%rsp,%r9,1)
  lea    0x1e(%rax),%r9d
  movslq %r9d,%r9
  mov    %cl,0x190(%rsp,%r9,1)
  lea    0x1f(%rax),%r9d
  movslq %r9d,%r9
  mov    %dl,0x190(%rsp,%r9,1)
  jg     L722
  lea    0x21(%rax),%r9d
  movslq %r11d,%r11
  cmpl   $0x3,0xa8(%rsp)
  movslq %r9d,%r9
  mov    %sil,0x190(%rsp,%r11,1)
  lea    0x24(%rax),%r11d
  mov    %dil,0x190(%rsp,%r9,1)
  lea    0x22(%rax),%r9d
  movslq %r9d,%r9
  mov    %cl,0x190(%rsp,%r9,1)
  lea    0x23(%rax),%r9d
  movslq %r9d,%r9
  mov    %dl,0x190(%rsp,%r9,1)
  jg     L722
  lea    0x25(%rax),%r9d
  movslq %r11d,%r11
  cmpl   $0x3,0xac(%rsp)
  movslq %r9d,%r9
  mov    %sil,0x190(%rsp,%r11,1)
  lea    0x28(%rax),%r11d
  mov    %dil,0x190(%rsp,%r9,1)
  lea    0x26(%rax),%r9d
  movslq %r9d,%r9
  mov    %cl,0x190(%rsp,%r9,1)
  lea    0x27(%rax),%r9d
  movslq %r9d,%r9
  mov    %dl,0x190(%rsp,%r9,1)
  jg     L722
  lea    0x29(%rax),%r9d
  movslq %r11d,%r11
  cmpl   $0x3,0xb8(%rsp)
  movslq %r9d,%r9
  mov    %sil,0x190(%rsp,%r11,1)
  lea    0x2c(%rax),%r11d
  mov    %dil,0x190(%rsp,%r9,1)
  lea    0x2a(%rax),%r9d
  movslq %r9d,%r9
  mov    %cl,0x190(%rsp,%r9,1)
  lea    0x2b(%rax),%r9d
  movslq %r9d,%r9
  mov    %dl,0x190(%rsp,%r9,1)
  jg     L722
  lea    0x2d(%rax),%r9d
  movslq %r11d,%r11
  cmpl   $0x3,0xbc(%rsp)
  movslq %r9d,%r9
  mov    %sil,0x190(%rsp,%r11,1)
  lea    0x30(%rax),%r11d
  mov    %dil,0x190(%rsp,%r9,1)
  lea    0x2e(%rax),%r9d
  movslq %r9d,%r9
  mov    %cl,0x190(%rsp,%r9,1)
  lea    0x2f(%rax),%r9d
  movslq %r9d,%r9
  mov    %dl,0x190(%rsp,%r9,1)
  jg     L722
  lea    0x31(%rax),%r9d
  movslq %r11d,%r11
  cmpl   $0x3,0xc4(%rsp)
  movslq %r9d,%r9
  mov    %sil,0x190(%rsp,%r11,1)
  lea    0x34(%rax),%r11d
  mov    %dil,0x190(%rsp,%r9,1)
  lea    0x32(%rax),%r9d
  movslq %r9d,%r9
  mov    %cl,0x190(%rsp,%r9,1)
  lea    0x33(%rax),%r9d
  movslq %r9d,%r9
  mov    %dl,0x190(%rsp,%r9,1)
  jg     L722
  lea    0x35(%rax),%r9d
  movslq %r11d,%r11
  cmpl   $0x3,0xd4(%rsp)
  movslq %r9d,%r9
  mov    %sil,0x190(%rsp,%r11,1)
  lea    0x38(%rax),%r11d
  mov    %dil,0x190(%rsp,%r9,1)
  lea    0x36(%rax),%r9d
  movslq %r9d,%r9
  mov    %cl,0x190(%rsp,%r9,1)
  lea    0x37(%rax),%r9d
  movslq %r9d,%r9
  mov    %dl,0x190(%rsp,%r9,1)
  jg     L722
  movslq %r11d,%r11
  mov    %sil,0x190(%rsp,%r11,1)
  lea    0x39(%rax),%esi
  movslq %esi,%rsi
  mov    %dil,0x190(%rsp,%rsi,1)
  lea    0x3a(%rax),%esi
  add    $0x3b,%eax
  movslq %esi,%rsi
  cltq
  mov    %cl,0x190(%rsp,%rsi,1)
  mov    %dl,0x190(%rsp,%rax,1)
  nopl   0x0(%rax)
L722:
  lea    0x4(%r8),%eax
L224:
  mov    0x3c(%rsp),%ebx
  lea    (%rbx,%rax,1),%r8d
L4:
  mov    0x38(%rsp),%ebx
  add    $0x1,%r15d
  add    %ebx,0x20(%rsp)
  cmp    %r15d,0x2c(%rsp)
  jne    L453
L646:
  cmpl   $0x3,0x2c(%rsp)
  jg     L842
L497:
  movzbl 0x190(%rsp),%eax
  movslq %r8d,%rdx
  lea    0x3(%r8),%edi
  cmpl   $0x3,0x104(%rsp)
  movslq %edi,%rdi
  mov    %al,0x190(%rsp,%rdx,1)
  lea    0x1(%r8),%edx
  movzbl 0x191(%rsp),%esi
  movslq %edx,%rdx
  mov    %sil,0x190(%rsp,%rdx,1)
  lea    0x2(%r8),%edx
  movzbl 0x192(%rsp),%ecx
  movslq %edx,%rdx
  mov    %cl,0x190(%rsp,%rdx,1)
  movzbl 0x193(%rsp),%edx
  mov    %dl,0x190(%rsp,%rdi,1)
  lea    0x4(%r8),%edi
  movslq %edi,%rdi
  mov    %al,0x190(%rsp,%rdi,1)
  lea    0x5(%r8),%edi
  movslq %edi,%rdi
  mov    %sil,0x190(%rsp,%rdi,1)
  lea    0x6(%r8),%edi
  movslq %edi,%rdi
  mov    %cl,0x190(%rsp,%rdi,1)
  lea    0x7(%r8),%edi
  movslq %edi,%rdi
  mov    %dl,0x190(%rsp,%rdi,1)
  lea    0x8(%r8),%edi
  movslq %edi,%rdi
  mov    %al,0x190(%rsp,%rdi,1)
  lea    0x9(%r8),%edi
  movslq %edi,%rdi
  mov    %sil,0x190(%rsp,%rdi,1)
  lea    0xa(%r8),%edi
  movslq %edi,%rdi
  mov    %cl,0x190(%rsp,%rdi,1)
  lea    0xb(%r8),%edi
  movslq %edi,%rdi
  mov    %dl,0x190(%rsp,%rdi,1)
  lea    0xc(%r8),%edi
  movslq %edi,%rdi
  mov    %al,0x190(%rsp,%rdi,1)
  lea    0xd(%r8),%edi
  movslq %edi,%rdi
  mov    %sil,0x190(%rsp,%rdi,1)
  lea    0xe(%r8),%edi
  movslq %edi,%rdi
  mov    %cl,0x190(%rsp,%rdi,1)
  lea    0xf(%r8),%ecx
  lea    0x10(%r8),%edi
  movslq %ecx,%rcx
  mov    %dl,0x190(%rsp,%rcx,1)
  jg     L842
  lea    0x11(%r8),%edx
  movslq %edi,%rdi
  movzbl 0x192(%rsp),%ecx
  cmpl   $0x3,0x134(%rsp)
  movslq %edx,%rdx
  mov    %al,0x190(%rsp,%rdi,1)
  lea    0x13(%r8),%edi
  mov    %sil,0x190(%rsp,%rdx,1)
  lea    0x12(%r8),%edx
  movslq %edi,%rdi
  movslq %edx,%rdx
  mov    %cl,0x190(%rsp,%rdx,1)
  movzbl 0x193(%rsp),%edx
  mov    %dl,0x190(%rsp,%rdi,1)
  lea    0x14(%r8),%edi
  movslq %edi,%rdi
  mov    %al,0x190(%rsp,%rdi,1)
  lea    0x15(%r8),%edi
  movslq %edi,%rdi
  mov    %sil,0x190(%rsp,%rdi,1)
  lea    0x16(%r8),%edi
  movslq %edi,%rdi
  mov    %cl,0x190(%rsp,%rdi,1)
  lea    0x17(%r8),%edi
  movslq %edi,%rdi
  mov    %dl,0x190(%rsp,%rdi,1)
  lea    0x18(%r8),%edi
  movslq %edi,%rdi
  mov    %al,0x190(%rsp,%rdi,1)
  lea    0x19(%r8),%edi
  movslq %edi,%rdi
  mov    %sil,0x190(%rsp,%rdi,1)
  lea    0x1a(%r8),%edi
  movslq %edi,%rdi
  mov    %cl,0x190(%rsp,%rdi,1)
  lea    0x1b(%r8),%edi
  movslq %edi,%rdi
  mov    %dl,0x190(%rsp,%rdi,1)
  lea    0x1c(%r8),%edi
  movslq %edi,%rdi
  mov    %al,0x190(%rsp,%rdi,1)
  lea    0x1d(%r8),%edi
  movslq %edi,%rdi
  mov    %sil,0x190(%rsp,%rdi,1)
  lea    0x1e(%r8),%esi
  lea    0x20(%r8),%edi
  movslq %esi,%rsi
  mov    %cl,0x190(%rsp,%rsi,1)
  lea    0x1f(%r8),%esi
  movslq %esi,%rsi
  mov    %dl,0x190(%rsp,%rsi,1)
  jg     L842
  movslq %edi,%rdi
  movzbl 0x191(%rsp),%esi
  cmpl   $0x3,0x140(%rsp)
  lea    0x30(%r8),%r9d
  mov    %al,0x190(%rsp,%rdi,1)
  lea    0x21(%r8),%edi
  movslq %edi,%rdi
  mov    %sil,0x190(%rsp,%rdi,1)
  lea    0x22(%r8),%edi
  movslq %edi,%rdi
  mov    %cl,0x190(%rsp,%rdi,1)
  lea    0x23(%r8),%edi
  movslq %edi,%rdi
  mov    %dl,0x190(%rsp,%rdi,1)
  lea    0x24(%r8),%edi
  movslq %edi,%rdi
  mov    %al,0x190(%rsp,%rdi,1)
  lea    0x25(%r8),%edi
  movslq %edi,%rdi
  mov    %sil,0x190(%rsp,%rdi,1)
  lea    0x26(%r8),%edi
  movslq %edi,%rdi
  mov    %cl,0x190(%rsp,%rdi,1)
  lea    0x27(%r8),%edi
  movslq %edi,%rdi
  mov    %dl,0x190(%rsp,%rdi,1)
  lea    0x28(%r8),%edi
  movslq %edi,%rdi
  mov    %al,0x190(%rsp,%rdi,1)
  lea    0x29(%r8),%edi
  movslq %edi,%rdi
  mov    %sil,0x190(%rsp,%rdi,1)
  lea    0x2a(%r8),%edi
  movslq %edi,%rdi
  mov    %cl,0x190(%rsp,%rdi,1)
  lea    0x2b(%r8),%edi
  movslq %edi,%rdi
  mov    %dl,0x190(%rsp,%rdi,1)
  lea    0x2c(%r8),%edi
  movslq %edi,%rdi
  mov    %al,0x190(%rsp,%rdi,1)
  lea    0x2d(%r8),%edi
  movslq %edi,%rdi
  mov    %sil,0x190(%rsp,%rdi,1)
  lea    0x2e(%r8),%edi
  movslq %edi,%rdi
  mov    %cl,0x190(%rsp,%rdi,1)
  lea    0x2f(%r8),%edi
  movslq %edi,%rdi
  mov    %dl,0x190(%rsp,%rdi,1)
  jg     L842
  lea    0x31(%r8),%edi
  movslq %r9d,%r9
  movslq %edi,%rdi
  mov    %al,0x190(%rsp,%r9,1)
  mov    %sil,0x190(%rsp,%rdi,1)
  lea    0x32(%r8),%edi
  movslq %edi,%rdi
  mov    %cl,0x190(%rsp,%rdi,1)
  lea    0x33(%r8),%edi
  movslq %edi,%rdi
  mov    %dl,0x190(%rsp,%rdi,1)
  lea    0x34(%r8),%edi
  movslq %edi,%rdi
  mov    %al,0x190(%rsp,%rdi,1)
  lea    0x35(%r8),%edi
  movslq %edi,%rdi
  mov    %sil,0x190(%rsp,%rdi,1)
  lea    0x36(%r8),%edi
  movslq %edi,%rdi
  mov    %cl,0x190(%rsp,%rdi,1)
  lea    0x37(%r8),%edi
  movslq %edi,%rdi
  mov    %dl,0x190(%rsp,%rdi,1)
  lea    0x38(%r8),%edi
  movslq %edi,%rdi
  mov    %al,0x190(%rsp,%rdi,1)
  lea    0x39(%r8),%edi
  movslq %edi,%rdi
  mov    %sil,0x190(%rsp,%rdi,1)
  lea    0x3a(%r8),%edi
  movslq %edi,%rdi
  mov    %cl,0x190(%rsp,%rdi,1)
  lea    0x3b(%r8),%edi
  movslq %edi,%rdi
  mov    %dl,0x190(%rsp,%rdi,1)
  lea    0x3c(%r8),%edi
  movslq %edi,%rdi
  mov    %al,0x190(%rsp,%rdi,1)
  lea    0x3d(%r8),%eax
  cltq
  mov    %sil,0x190(%rsp,%rax,1)
  lea    0x3e(%r8),%eax
  cltq
  mov    %cl,0x190(%rsp,%rax,1)
  lea    0x3f(%r8),%eax
  cltq
  mov    %dl,0x190(%rsp,%rax,1)
L842:
  mov    0xf8(%rsp),%rbp
  mov    0x10(%rsp),%r15
  movaps %xmm8,(%rsp)
  mov    %rbp,%rsi
  mov    %r15,%rdi
  call   <compress_DDS_alpha_block@plt>
  mov    %rbp,%rdx
  mov    %r15,%rsi
  mov    $0x4,%edi
  mov    0xb0(%rsp),%rbx
  movzbl 0x188(%rsp),%eax
  mov    %al,(%rbx)
  movzbl 0x189(%rsp),%eax
  add    $0x10,%rbx
  mov    %al,-0xf(%rbx)
  movzbl 0x18a(%rsp),%eax
  mov    %al,-0xe(%rbx)
  movzbl 0x18b(%rsp),%eax
  mov    %al,-0xd(%rbx)
  movzbl 0x18c(%rsp),%eax
  mov    %al,-0xc(%rbx)
  movzbl 0x18d(%rsp),%eax
  mov    %al,-0xb(%rbx)
  movzbl 0x18e(%rsp),%eax
  mov    %al,-0xa(%rbx)
  movzbl 0x18f(%rsp),%eax
  mov    %al,-0x9(%rbx)
  call   <compress_DDS_color_block@plt>
  movzbl 0x188(%rsp),%eax
  addq   $0x4,0x18(%rsp)
  mov    0x100(%rsp),%ecx
  add    %ecx,0xe8(%rsp)
  mov    %al,-0x8(%rbx)
  movzbl 0x189(%rsp),%eax
  movdqa (%rsp),%xmm8
  movdqa D11(%rip),%xmm4
  mov    %al,-0x7(%rbx)
  movzbl 0x18a(%rsp),%eax
  mov    %al,-0x6(%rbx)
  movzbl 0x18b(%rsp),%eax
  mov    %al,-0x5(%rbx)
  movzbl 0x18c(%rsp),%eax
  mov    %al,-0x4(%rbx)
  movzbl 0x18d(%rsp),%eax
  mov    %al,-0x3(%rbx)
  movzbl 0x18e(%rsp),%eax
  mov    %al,-0x2(%rbx)
  movzbl 0x18f(%rsp),%eax
  mov    %al,-0x1(%rbx)
  mov    0x18(%rsp),%rax
  cmp    %eax,0x38(%rsp)
  mov    %rbx,0xb0(%rsp)
  jg     L95
  mov    0x144(%rsp),%eax
  mov    0x170(%rsp),%ebx
  movdqa 0x120(%rsp),%xmm5
  lea    0x10(%rax,%rbx,1),%eax
  mov    0x16c(%rsp),%ebx
  add    %ebx,0x154(%rsp)
  mov    %eax,0x144(%rsp)
  mov    0x174(%rsp),%ebx
  add    %ebx,0x130(%rsp)
  mov    0x150(%rsp),%ebx
  cmp    %ebx,0x168(%rsp)
  jg     L282
L862:
  mov    0x1d8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L476
  mov    0x148(%rsp),%rax
  add    $0x1e8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  cs nopw 0x0(%rax,%rax,1)
L189:
  movzbl 0x190(%rsp),%edx
  cmpl   $0x3,0xc0(%rsp)
  mov    %dl,0x190(%rsp,%rax,1)
  lea    0x1(%r8),%eax
  movzbl 0x191(%rsp),%esi
  cltq
  mov    %sil,0x190(%rsp,%rax,1)
  lea    0x2(%r8),%eax
  movzbl 0x192(%rsp),%ecx
  cltq
  mov    %cl,0x190(%rsp,%rax,1)
  lea    0x3(%r8),%ecx
  lea    0x4(%r8),%eax
  movzbl 0x193(%rsp),%edi
  movslq %ecx,%rcx
  mov    %dil,0x190(%rsp,%rcx,1)
  jg     L224
  movslq %eax,%rcx
  lea    0x7(%r8),%edi
  cmpl   $0x3,0xcc(%rsp)
  mov    %dl,0x190(%rsp,%rcx,1)
  lea    0x5(%r8),%ecx
  movslq %edi,%rdi
  lea    0x8(%r8),%r9d
  movslq %ecx,%rcx
  mov    %sil,0x190(%rsp,%rcx,1)
  movzbl 0x192(%rsp),%esi
  lea    0x6(%r8),%ecx
  movslq %ecx,%rcx
  mov    %sil,0x190(%rsp,%rcx,1)
  movzbl 0x193(%rsp),%ecx
  mov    %cl,0x190(%rsp,%rdi,1)
  jg     L224
  movslq %r9d,%r9
  movzbl 0x191(%rsp),%edi
  cmpl   $0x3,0xd0(%rsp)
  lea    0xc(%r8),%r11d
  mov    %dl,0x190(%rsp,%r9,1)
  lea    0x9(%r8),%r9d
  movslq %r9d,%r9
  mov    %dil,0x190(%rsp,%r9,1)
  lea    0xa(%r8),%r9d
  movslq %r9d,%r9
  mov    %sil,0x190(%rsp,%r9,1)
  lea    0xb(%r8),%r9d
  movslq %r9d,%r9
  mov    %cl,0x190(%rsp,%r9,1)
  jg     L224
  lea    0xd(%r8),%r9d
  movslq %r11d,%r11
  cmpl   $0x3,0xd8(%rsp)
  movslq %r9d,%r9
  mov    %dl,0x190(%rsp,%r11,1)
  lea    0x10(%r8),%r11d
  mov    %dil,0x190(%rsp,%r9,1)
  lea    0xe(%r8),%r9d
  movslq %r9d,%r9
  mov    %sil,0x190(%rsp,%r9,1)
  lea    0xf(%r8),%r9d
  movslq %r9d,%r9
  mov    %cl,0x190(%rsp,%r9,1)
  jg     L224
  lea    0x11(%r8),%r9d
  movslq %r11d,%r11
  cmpl   $0x3,0xdc(%rsp)
  movslq %r9d,%r9
  mov    %dl,0x190(%rsp,%r11,1)
  lea    0x14(%r8),%r11d
  mov    %dil,0x190(%rsp,%r9,1)
  lea    0x12(%r8),%r9d
  movslq %r9d,%r9
  mov    %sil,0x190(%rsp,%r9,1)
  lea    0x13(%r8),%r9d
  movslq %r9d,%r9
  mov    %cl,0x190(%rsp,%r9,1)
  jg     L224
  lea    0x15(%r8),%r9d
  movslq %r11d,%r11
  cmpl   $0x3,0xe0(%rsp)
  movslq %r9d,%r9
  mov    %dl,0x190(%rsp,%r11,1)
  lea    0x18(%r8),%r11d
  mov    %dil,0x190(%rsp,%r9,1)
  lea    0x16(%r8),%r9d
  movslq %r9d,%r9
  mov    %sil,0x190(%rsp,%r9,1)
  lea    0x17(%r8),%r9d
  movslq %r9d,%r9
  mov    %cl,0x190(%rsp,%r9,1)
  jg     L224
  lea    0x19(%r8),%r9d
  movslq %r11d,%r11
  cmpl   $0x3,0xe4(%rsp)
  movslq %r9d,%r9
  mov    %dl,0x190(%rsp,%r11,1)
  lea    0x1c(%r8),%r11d
  mov    %dil,0x190(%rsp,%r9,1)
  lea    0x1a(%r8),%r9d
  movslq %r9d,%r9
  mov    %sil,0x190(%rsp,%r9,1)
  lea    0x1b(%r8),%r9d
  movslq %r9d,%r9
  mov    %cl,0x190(%rsp,%r9,1)
  jg     L224
  lea    0x1d(%r8),%r9d
  movslq %r11d,%r11
  cmpl   $0x3,0xec(%rsp)
  movslq %r9d,%r9
  mov    %dl,0x190(%rsp,%r11,1)
  lea    0x1f(%r8),%r11d
  mov    %dil,0x190(%rsp,%r9,1)
  lea    0x1e(%r8),%r9d
  movslq %r11d,%r11
  movslq %r9d,%r9
  mov    %sil,0x190(%rsp,%r9,1)
  lea    0x20(%r8),%r9d
  mov    %cl,0x190(%rsp,%r11,1)
  jg     L224
  movslq %r9d,%r9
  cmpl   $0x3,0xf0(%rsp)
  lea    0x24(%r8),%r11d
  mov    %dl,0x190(%rsp,%r9,1)
  lea    0x21(%r8),%r9d
  movslq %r9d,%r9
  mov    %dil,0x190(%rsp,%r9,1)
  lea    0x22(%r8),%r9d
  movslq %r9d,%r9
  mov    %sil,0x190(%rsp,%r9,1)
  lea    0x23(%r8),%r9d
  movslq %r9d,%r9
  mov    %cl,0x190(%rsp,%r9,1)
  jg     L224
  lea    0x25(%r8),%r9d
  movslq %r11d,%r11
  cmpl   $0x3,0xf4(%rsp)
  movslq %r9d,%r9
  mov    %dl,0x190(%rsp,%r11,1)
  lea    0x28(%r8),%r11d
  mov    %dil,0x190(%rsp,%r9,1)
  lea    0x26(%r8),%r9d
  movslq %r9d,%r9
  mov    %sil,0x190(%rsp,%r9,1)
  lea    0x27(%r8),%r9d
  movslq %r9d,%r9
  mov    %cl,0x190(%rsp,%r9,1)
  jg     L224
  lea    0x29(%r8),%r9d
  movslq %r11d,%r11
  cmpl   $0x3,0x108(%rsp)
  movslq %r9d,%r9
  mov    %dl,0x190(%rsp,%r11,1)
  lea    0x2b(%r8),%r11d
  mov    %dil,0x190(%rsp,%r9,1)
  lea    0x2a(%r8),%r9d
  movslq %r11d,%r11
  movslq %r9d,%r9
  mov    %sil,0x190(%rsp,%r9,1)
  lea    0x2c(%r8),%r9d
  mov    %cl,0x190(%rsp,%r11,1)
  jg     L224
  movslq %r9d,%r9
  cmpl   $0x3,0x10c(%rsp)
  lea    0x30(%r8),%r11d
  mov    %dl,0x190(%rsp,%r9,1)
  lea    0x2d(%r8),%r9d
  movslq %r9d,%r9
  mov    %dil,0x190(%rsp,%r9,1)
  lea    0x2e(%r8),%r9d
  movslq %r9d,%r9
  mov    %sil,0x190(%rsp,%r9,1)
  lea    0x2f(%r8),%r9d
  movslq %r9d,%r9
  mov    %cl,0x190(%rsp,%r9,1)
  jg     L224
  lea    0x31(%r8),%r9d
  movslq %r11d,%r11
  cmpl   $0x3,0x114(%rsp)
  movslq %r9d,%r9
  mov    %dl,0x190(%rsp,%r11,1)
  lea    0x33(%r8),%r11d
  mov    %dil,0x190(%rsp,%r9,1)
  lea    0x32(%r8),%r9d
  movslq %r11d,%r11
  movslq %r9d,%r9
  mov    %sil,0x190(%rsp,%r9,1)
  lea    0x34(%r8),%r9d
  mov    %cl,0x190(%rsp,%r11,1)
  jg     L224
  movslq %r9d,%r9
  lea    0x37(%r8),%r11d
  cmpl   $0x3,0x118(%rsp)
  mov    %dl,0x190(%rsp,%r9,1)
  lea    0x35(%r8),%r9d
  movslq %r11d,%r11
  movslq %r9d,%r9
  mov    %dil,0x190(%rsp,%r9,1)
  lea    0x36(%r8),%r9d
  movslq %r9d,%r9
  mov    %sil,0x190(%rsp,%r9,1)
  lea    0x38(%r8),%r9d
  mov    %cl,0x190(%rsp,%r11,1)
  jg     L224
  movslq %r9d,%r9
  cmpl   $0x3,0x11c(%rsp)
  lea    0x3c(%r8),%r11d
  mov    %dl,0x190(%rsp,%r9,1)
  lea    0x39(%r8),%r9d
  movslq %r9d,%r9
  mov    %dil,0x190(%rsp,%r9,1)
  lea    0x3a(%r8),%r9d
  movslq %r9d,%r9
  mov    %sil,0x190(%rsp,%r9,1)
  lea    0x3b(%r8),%r9d
  movslq %r9d,%r9
  mov    %cl,0x190(%rsp,%r9,1)
  jg     L224
  movslq %r11d,%r11
  mov    %dl,0x190(%rsp,%r11,1)
  lea    0x3d(%r8),%edx
  movslq %edx,%rdx
  mov    %dil,0x190(%rsp,%rdx,1)
  lea    0x3e(%r8),%edx
  movslq %edx,%rdx
  mov    %sil,0x190(%rsp,%rdx,1)
  lea    0x3f(%r8),%edx
  movslq %edx,%rdx
  mov    %cl,0x190(%rsp,%rdx,1)
  jmp    L224
L804:
  movslq 0x20(%rsp),%r9
  mov    %r8d,%eax
  xor    %esi,%esi
  jmp    L903
L821:
  lea    -0x1(%r10),%edx
  mov    $0x4,%ebx
  xor    %r8d,%r8d
  mov    %rdx,%rax
  sub    %r10d,%ebx
  shl    $0x2,%eax
  mov    %ebx,0x60(%rsp)
  mov    %eax,0x30(%rsp)
  mov    $0x3,%eax
  sub    %r10d,%eax
  mov    %eax,0x58(%rsp)
  mov    %eax,%ecx
  mov    %ebx,%eax
  and    $0xfffffff0,%ebx
  shl    $0x2,%rax
  mov    %ebx,0x70(%rsp)
  mov    %rax,0x40(%rsp)
  lea    (%r10,%rbx,1),%eax
  shl    $0x2,%ebx
  mov    %ebx,0x74(%rsp)
  lea    0x1(%rax),%ebx
  mov    %ebx,0x78(%rsp)
  lea    0x2(%rax),%ebx
  mov    %ebx,0x7c(%rsp)
  lea    0x3(%rax),%ebx
  mov    %ebx,0x80(%rsp)
  lea    0x4(%rax),%ebx
  mov    %ebx,0x84(%rsp)
  lea    0x5(%rax),%ebx
  mov    %ebx,0x88(%rsp)
  lea    0x6(%rax),%ebx
  mov    %ebx,0x8c(%rsp)
  lea    0x7(%rax),%ebx
  mov    %ebx,0x90(%rsp)
  lea    0x8(%rax),%ebx
  mov    %ebx,0x94(%rsp)
  lea    0x9(%rax),%ebx
  mov    %ebx,0x98(%rsp)
  lea    0xa(%rax),%ebx
  mov    %ebx,0x9c(%rsp)
  lea    0xb(%rax),%ebx
  mov    %ebx,0xa0(%rsp)
  lea    0xc(%rax),%ebx
  mov    %ebx,0xa4(%rsp)
  lea    0xd(%rax),%ebx
  add    $0xe,%eax
  mov    %eax,0xc0(%rsp)
  lea    0x1(%r10),%eax
  mov    %eax,0xa8(%rsp)
  lea    0x2(%r10),%eax
  mov    %eax,0xac(%rsp)
  lea    0x3(%r10),%eax
  mov    %eax,0xb8(%rsp)
  lea    0x4(%r10),%eax
  mov    %eax,0xc4(%rsp)
  lea    0x5(%r10),%eax
  mov    %eax,0xcc(%rsp)
  lea    0x6(%r10),%eax
  mov    %eax,0xd0(%rsp)
  lea    0x7(%r10),%eax
  mov    %eax,0xd4(%rsp)
  lea    0x8(%r10),%eax
  mov    %eax,0xd8(%rsp)
  lea    0x9(%r10),%eax
  mov    %eax,0xdc(%rsp)
  lea    0xa(%r10),%eax
  mov    %eax,0xe0(%rsp)
  lea    0xb(%r10),%eax
  mov    %eax,0xe4(%rsp)
  lea    0xc(%r10),%eax
  mov    %eax,0xec(%rsp)
  lea    0xd(%r10),%eax
  mov    %ebx,0xbc(%rsp)
  xor    %ebx,%ebx
  mov    %eax,0xf0(%rsp)
  lea    0xe(%r10),%eax
  mov    0xe8(%rsp),%ebp
  mov    %eax,0xf4(%rsp)
  lea    0xf(%r10),%eax
  mov    0x68(%rsp),%r15
  mov    %eax,0x108(%rsp)
  lea    0x0(,%rcx,4),%eax
  mov    %eax,0x3c(%rsp)
  lea    0x194(%rsp),%rax
  mov    %rax,0x48(%rsp)
  lea    (%rax,%rdx,4),%rax
  mov    0x158(%rsp),%rdx
  mov    %rax,0x50(%rsp)
  mov    %r12,0x20(%rsp)
  nop
L650:
  test   %r10d,%r10d
  jle    L294
  mov    0x10(%rsp),%rax
  movslq %r8d,%r11
  movslq %ebp,%rsi
  add    0x20(%rsp),%rsi
  lea    (%rax,%r11,1),%rdi
  add    0x50(%rsp),%r11
  xchg   %ax,%ax
L919:
  movzbl (%rsi,%r15,1),%eax
  xor    %ecx,%ecx
  mov    (%rsi),%cl
  add    $0x4,%rdi
  movzbl (%rsi,%r15,2),%r9d
  mov    %al,%ch
  movzbl -0x1(%rsi,%rdx,1),%eax
  add    %rdx,%rsi
  shl    $0x10,%r9d
  movzwl %cx,%ecx
  imul   %r13d,%eax
  or     %r9d,%ecx
  sub    %r14d,%eax
  shl    $0x18,%eax
  or     %eax,%ecx
  mov    %ecx,-0x4(%rdi)
  cmp    %rdi,%r11
  jne    L919
  mov    0x30(%rsp),%eax
  lea    0x4(%r8,%rax,1),%r8d
  cmp    $0x3,%r10d
  jg     L49
L294:
  mov    0x40(%rsp),%rdi
  movslq %r8d,%rax
  mov    0x10(%rsp),%rcx
  lea    (%rax,%rdi,1),%rsi
  add    %rax,%rcx
  test   %rsi,%rsi
  setle  %dil
  cmp    0x48(%rsp),%rcx
  setae  %sil
  or     %dil,%sil
  je     L438
  cmpl   $0xe,0x58(%rsp)
  jbe    L438
  movzbl 0x191(%rsp),%edi
  movzbl 0x190(%rsp),%esi
  movzbl 0x193(%rsp),%r11d
  movzbl 0x192(%rsp),%r9d
  mov    %r11,%rax
  shl    $0x8,%rax
  or     %r9,%rax
  shl    $0x8,%rax
  or     %rdi,%rax
  shl    $0x8,%rax
  or     %rsi,%rax
  shl    $0x8,%rax
  or     %r11,%rax
  shl    $0x8,%rax
  or     %r9,%rax
  shl    $0x8,%rax
  or     %rdi,%rax
  mov    0x70(%rsp),%edi
  shl    $0x8,%rax
  or     %rsi,%rax
  mov    %rax,(%rsp)
  mov    %rax,0x8(%rsp)
  mov    0x74(%rsp),%eax
  movdqa (%rsp),%xmm6
  add    %r8d,%eax
  movups %xmm6,(%rcx)
  movups %xmm6,0x10(%rcx)
  movups %xmm6,0x20(%rcx)
  movups %xmm6,0x30(%rcx)
  cmp    %edi,0x60(%rsp)
  je     L836
  movzbl 0x190(%rsp),%esi
  movslq %eax,%rcx
  cmpl   $0x3,0x78(%rsp)
  mov    %sil,0x190(%rsp,%rcx,1)
  lea    0x1(%rax),%ecx
  movzbl 0x191(%rsp),%esi
  movslq %ecx,%rcx
  mov    %sil,0x190(%rsp,%rcx,1)
  lea    0x2(%rax),%ecx
  movzbl 0x192(%rsp),%edi
  movslq %ecx,%rcx
  mov    %dil,0x190(%rsp,%rcx,1)
  lea    0x3(%rax),%edi
  lea    0x4(%rax),%ecx
  movzbl 0x193(%rsp),%r9d
  movslq %edi,%rdi
  mov    %r9b,0x190(%rsp,%rdi,1)
  jg     L836
  movslq %ecx,%rcx
  lea    0x7(%rax),%r9d
  lea    0x8(%rax),%r11d
  cmpl   $0x3,0x7c(%rsp)
  movzbl 0x190(%rsp),%edi
  movslq %r9d,%r9
  mov    %dil,0x190(%rsp,%rcx,1)
  lea    0x5(%rax),%ecx
  movslq %ecx,%rcx
  mov    %sil,0x190(%rsp,%rcx,1)
  movzbl 0x192(%rsp),%esi
  lea    0x6(%rax),%ecx
  movslq %ecx,%rcx
  mov    %sil,0x190(%rsp,%rcx,1)
  movzbl 0x193(%rsp),%ecx
  mov    %cl,0x190(%rsp,%r9,1)
  jg     L836
  movslq %r11d,%r11
  cmpl   $0x3,0x80(%rsp)
  lea    0xc(%rax),%r12d
  movzbl 0x191(%rsp),%r9d
  mov    %dil,0x190(%rsp,%r11,1)
  lea    0x9(%rax),%r11d
  movslq %r11d,%r11
  mov    %r9b,0x190(%rsp,%r11,1)
  lea    0xa(%rax),%r11d
  movslq %r11d,%r11
  mov    %sil,0x190(%rsp,%r11,1)
  lea    0xb(%rax),%r11d
  movslq %r11d,%r11
  mov    %cl,0x190(%rsp,%r11,1)
  jg     L836
  lea    0xd(%rax),%r11d
  movslq %r12d,%r12
  cmpl   $0x3,0x84(%rsp)
  movslq %r11d,%r11
  mov    %dil,0x190(%rsp,%r12,1)
  lea    0x10(%rax),%r12d
  mov    %r9b,0x190(%rsp,%r11,1)
  lea    0xe(%rax),%r11d
  movslq %r11d,%r11
  mov    %sil,0x190(%rsp,%r11,1)
  lea    0xf(%rax),%r11d
  movslq %r11d,%r11
  mov    %cl,0x190(%rsp,%r11,1)
  jg     L836
  lea    0x11(%rax),%r11d
  movslq %r12d,%r12
  cmpl   $0x3,0x88(%rsp)
  movslq %r11d,%r11
  mov    %dil,0x190(%rsp,%r12,1)
  lea    0x14(%rax),%r12d
  mov    %r9b,0x190(%rsp,%r11,1)
  lea    0x12(%rax),%r11d
  movslq %r11d,%r11
  mov    %sil,0x190(%rsp,%r11,1)
  lea    0x13(%rax),%r11d
  movslq %r11d,%r11
  mov    %cl,0x190(%rsp,%r11,1)
  jg     L836
  lea    0x15(%rax),%r11d
  movslq %r12d,%r12
  cmpl   $0x3,0x8c(%rsp)
  movslq %r11d,%r11
  mov    %dil,0x190(%rsp,%r12,1)
  lea    0x18(%rax),%r12d
  mov    %r9b,0x190(%rsp,%r11,1)
  lea    0x16(%rax),%r11d
  movslq %r11d,%r11
  mov    %sil,0x190(%rsp,%r11,1)
  lea    0x17(%rax),%r11d
  movslq %r11d,%r11
  mov    %cl,0x190(%rsp,%r11,1)
  jg     L836
  lea    0x19(%rax),%r11d
  movslq %r12d,%r12
  cmpl   $0x3,0x90(%rsp)
  movslq %r11d,%r11
  mov    %dil,0x190(%rsp,%r12,1)
  lea    0x1c(%rax),%r12d
  mov    %r9b,0x190(%rsp,%r11,1)
  lea    0x1a(%rax),%r11d
  movslq %r11d,%r11
  mov    %sil,0x190(%rsp,%r11,1)
  lea    0x1b(%rax),%r11d
  movslq %r11d,%r11
  mov    %cl,0x190(%rsp,%r11,1)
  jg     L836
  lea    0x1d(%rax),%r11d
  movslq %r12d,%r12
  cmpl   $0x3,0x94(%rsp)
  movslq %r11d,%r11
  mov    %dil,0x190(%rsp,%r12,1)
  lea    0x20(%rax),%r12d
  mov    %r9b,0x190(%rsp,%r11,1)
  lea    0x1e(%rax),%r11d
  movslq %r11d,%r11
  mov    %sil,0x190(%rsp,%r11,1)
  lea    0x1f(%rax),%r11d
  movslq %r11d,%r11
  mov    %cl,0x190(%rsp,%r11,1)
  jg     L836
  lea    0x21(%rax),%r11d
  movslq %r12d,%r12
  cmpl   $0x3,0x98(%rsp)
  movslq %r11d,%r11
  mov    %dil,0x190(%rsp,%r12,1)
  lea    0x23(%rax),%r12d
  mov    %r9b,0x190(%rsp,%r11,1)
  lea    0x22(%rax),%r11d
  movslq %r12d,%r12
  movslq %r11d,%r11
  mov    %sil,0x190(%rsp,%r11,1)
  lea    0x24(%rax),%r11d
  mov    %cl,0x190(%rsp,%r12,1)
  jg     L836
  movslq %r11d,%r11
  cmpl   $0x3,0x9c(%rsp)
  lea    0x28(%rax),%r12d
  mov    %dil,0x190(%rsp,%r11,1)
  lea    0x25(%rax),%r11d
  movslq %r11d,%r11
  mov    %r9b,0x190(%rsp,%r11,1)
  lea    0x26(%rax),%r11d
  movslq %r11d,%r11
  mov    %sil,0x190(%rsp,%r11,1)
  lea    0x27(%rax),%r11d
  movslq %r11d,%r11
  mov    %cl,0x190(%rsp,%r11,1)
  jg     L836
  lea    0x29(%rax),%r11d
  movslq %r12d,%r12
  cmpl   $0x3,0xa0(%rsp)
  movslq %r11d,%r11
  mov    %dil,0x190(%rsp,%r12,1)
  lea    0x2b(%rax),%r12d
  mov    %r9b,0x190(%rsp,%r11,1)
  lea    0x2a(%rax),%r11d
  movslq %r12d,%r12
  movslq %r11d,%r11
  mov    %sil,0x190(%rsp,%r11,1)
  lea    0x2c(%rax),%r11d
  mov    %cl,0x190(%rsp,%r12,1)
  jg     L836
  movslq %r11d,%r11
  cmpl   $0x3,0xa4(%rsp)
  lea    0x30(%rax),%r12d
  mov    %dil,0x190(%rsp,%r11,1)
  lea    0x2d(%rax),%r11d
  movslq %r11d,%r11
  mov    %r9b,0x190(%rsp,%r11,1)
  lea    0x2e(%rax),%r11d
  movslq %r11d,%r11
  mov    %sil,0x190(%rsp,%r11,1)
  lea    0x2f(%rax),%r11d
  movslq %r11d,%r11
  mov    %cl,0x190(%rsp,%r11,1)
  jg     L836
  lea    0x31(%rax),%r11d
  movslq %r12d,%r12
  cmpl   $0x3,0xbc(%rsp)
  movslq %r11d,%r11
  mov    %dil,0x190(%rsp,%r12,1)
  lea    0x33(%rax),%r12d
  mov    %r9b,0x190(%rsp,%r11,1)
  lea    0x32(%rax),%r11d
  movslq %r12d,%r12
  movslq %r11d,%r11
  mov    %sil,0x190(%rsp,%r11,1)
  lea    0x34(%rax),%r11d
  mov    %cl,0x190(%rsp,%r12,1)
  jg     L836
  movslq %r11d,%r11
  cmpl   $0x3,0xc0(%rsp)
  lea    0x38(%rax),%r12d
  mov    %dil,0x190(%rsp,%r11,1)
  lea    0x35(%rax),%r11d
  movslq %r11d,%r11
  mov    %r9b,0x190(%rsp,%r11,1)
  lea    0x36(%rax),%r11d
  movslq %r11d,%r11
  mov    %sil,0x190(%rsp,%r11,1)
  lea    0x37(%rax),%r11d
  movslq %r11d,%r11
  mov    %cl,0x190(%rsp,%r11,1)
  jg     L836
  movslq %r12d,%r12
  mov    %dil,0x190(%rsp,%r12,1)
  lea    0x39(%rax),%edi
  movslq %edi,%rdi
  mov    %r9b,0x190(%rsp,%rdi,1)
  lea    0x3a(%rax),%edi
  add    $0x3b,%eax
  cltq
  movslq %edi,%rdi
  mov    %sil,0x190(%rsp,%rdi,1)
  mov    %cl,0x190(%rsp,%rax,1)
  lea    0x4(%r8),%eax
  nopw   0x0(%rax,%rax,1)
L698:
  mov    0x3c(%rsp),%ecx
  lea    (%rcx,%rax,1),%r8d
L49:
  add    $0x1,%ebx
  add    0xc8(%rsp),%ebp
  cmp    %ebx,0x2c(%rsp)
  jne    L650
  mov    0x20(%rsp),%r12
  jmp    L646
  xchg   %ax,%ax
L836:
  lea    0x4(%r8),%eax
  jmp    L698
L438:
  movzbl 0x190(%rsp),%ecx
  cmpl   $0x3,0xa8(%rsp)
  mov    %cl,0x190(%rsp,%rax,1)
  lea    0x1(%r8),%eax
  movzbl 0x191(%rsp),%edi
  cltq
  mov    %dil,0x190(%rsp,%rax,1)
  lea    0x2(%r8),%eax
  movzbl 0x192(%rsp),%esi
  cltq
  mov    %sil,0x190(%rsp,%rax,1)
  lea    0x3(%r8),%esi
  lea    0x4(%r8),%eax
  movzbl 0x193(%rsp),%r9d
  movslq %esi,%rsi
  mov    %r9b,0x190(%rsp,%rsi,1)
  jg     L698
  movslq %eax,%rsi
  lea    0x7(%r8),%r9d
  movzbl 0x193(%rsp),%r11d
  cmpl   $0x3,0xac(%rsp)
  mov    %cl,0x190(%rsp,%rsi,1)
  lea    0x5(%r8),%esi
  movslq %r9d,%r9
  movslq %esi,%rsi
  mov    %dil,0x190(%rsp,%rsi,1)
  movzbl 0x192(%rsp),%esi
  lea    0x6(%r8),%edi
  movslq %edi,%rdi
  mov    %sil,0x190(%rsp,%rdi,1)
  lea    0x8(%r8),%edi
  mov    %r11b,0x190(%rsp,%r9,1)
  jg     L698
  movslq %edi,%rdi
  cmpl   $0x3,0xb8(%rsp)
  lea    0xc(%r8),%r9d
  movzbl 0x191(%rsp),%r12d
  mov    %cl,0x190(%rsp,%rdi,1)
  lea    0x9(%r8),%edi
  movslq %edi,%rdi
  mov    %r12b,0x190(%rsp,%rdi,1)
  lea    0xa(%r8),%edi
  movslq %edi,%rdi
  mov    %sil,0x190(%rsp,%rdi,1)
  lea    0xb(%r8),%edi
  movslq %edi,%rdi
  mov    %r11b,0x190(%rsp,%rdi,1)
  jg     L698
  lea    0xd(%r8),%edi
  movslq %r9d,%r9
  cmpl   $0x3,0xc4(%rsp)
  movslq %edi,%rdi
  mov    %cl,0x190(%rsp,%r9,1)
  lea    0xf(%r8),%r9d
  mov    %r12b,0x190(%rsp,%rdi,1)
  lea    0xe(%r8),%edi
  movslq %r9d,%r9
  movslq %edi,%rdi
  mov    %sil,0x190(%rsp,%rdi,1)
  lea    0x10(%r8),%edi
  mov    %r11b,0x190(%rsp,%r9,1)
  jg     L698
  movslq %edi,%rdi
  lea    0x13(%r8),%r9d
  cmpl   $0x3,0xcc(%rsp)
  mov    %cl,0x190(%rsp,%rdi,1)
  lea    0x11(%r8),%edi
  movslq %r9d,%r9
  movslq %edi,%rdi
  mov    %r12b,0x190(%rsp,%rdi,1)
  lea    0x12(%r8),%edi
  movslq %edi,%rdi
  mov    %sil,0x190(%rsp,%rdi,1)
  lea    0x14(%r8),%edi
  mov    %r11b,0x190(%rsp,%r9,1)
  jg     L698
  movslq %edi,%rdi
  cmpl   $0x3,0xd0(%rsp)
  lea    0x18(%r8),%r9d
  mov    %cl,0x190(%rsp,%rdi,1)
  lea    0x15(%r8),%edi
  movslq %edi,%rdi
  mov    %r12b,0x190(%rsp,%rdi,1)
  lea    0x16(%r8),%edi
  movslq %edi,%rdi
  mov    %sil,0x190(%rsp,%rdi,1)
  lea    0x17(%r8),%edi
  movslq %edi,%rdi
  mov    %r11b,0x190(%rsp,%rdi,1)
  jg     L698
  lea    0x19(%r8),%edi
  movslq %r9d,%r9
  cmpl   $0x3,0xd4(%rsp)
  movslq %edi,%rdi
  mov    %cl,0x190(%rsp,%r9,1)
  lea    0x1c(%r8),%r9d
  mov    %r12b,0x190(%rsp,%rdi,1)
  lea    0x1a(%r8),%edi
  movslq %edi,%rdi
  mov    %sil,0x190(%rsp,%rdi,1)
  lea    0x1b(%r8),%edi
  movslq %edi,%rdi
  mov    %r11b,0x190(%rsp,%rdi,1)
  jg     L698
  movslq %r9d,%rdi
  cmpl   $0x3,0xd8(%rsp)
  lea    0x20(%r8),%r9d
  mov    %cl,0x190(%rsp,%rdi,1)
  lea    0x1d(%r8),%edi
  movslq %edi,%rdi
  mov    %r12b,0x190(%rsp,%rdi,1)
  lea    0x1e(%r8),%edi
  movslq %edi,%rdi
  mov    %sil,0x190(%rsp,%rdi,1)
  lea    0x1f(%r8),%edi
  movslq %edi,%rdi
  mov    %r11b,0x190(%rsp,%rdi,1)
  jg     L698
  movslq %r9d,%rdi
  cmpl   $0x3,0xdc(%rsp)
  lea    0x24(%r8),%r9d
  mov    %cl,0x190(%rsp,%rdi,1)
  lea    0x21(%r8),%edi
  movslq %edi,%rdi
  mov    %r12b,0x190(%rsp,%rdi,1)
  lea    0x22(%r8),%edi
  movslq %edi,%rdi
  mov    %sil,0x190(%rsp,%rdi,1)
  lea    0x23(%r8),%edi
  movslq %edi,%rdi
  mov    %r11b,0x190(%rsp,%rdi,1)
  jg     L698
  movslq %r9d,%rdi
  cmpl   $0x3,0xe0(%rsp)
  lea    0x28(%r8),%r9d
  mov    %cl,0x190(%rsp,%rdi,1)
  lea    0x25(%r8),%edi
  movslq %edi,%rdi
  mov    %r12b,0x190(%rsp,%rdi,1)
  lea    0x26(%r8),%edi
  movslq %edi,%rdi
  mov    %sil,0x190(%rsp,%rdi,1)
  lea    0x27(%r8),%edi
  movslq %edi,%rdi
  mov    %r11b,0x190(%rsp,%rdi,1)
  jg     L698
  movslq %r9d,%rdi
  cmpl   $0x3,0xe4(%rsp)
  lea    0x2c(%r8),%r9d
  mov    %cl,0x190(%rsp,%rdi,1)
  lea    0x29(%r8),%edi
  movslq %edi,%rdi
  mov    %r12b,0x190(%rsp,%rdi,1)
  lea    0x2a(%r8),%edi
  movslq %edi,%rdi
  mov    %sil,0x190(%rsp,%rdi,1)
  lea    0x2b(%r8),%edi
  movslq %edi,%rdi
  mov    %r11b,0x190(%rsp,%rdi,1)
  jg     L698
  movslq %r9d,%rdi
  cmpl   $0x3,0xec(%rsp)
  lea    0x30(%r8),%r9d
  mov    %cl,0x190(%rsp,%rdi,1)
  lea    0x2d(%r8),%edi
  movslq %edi,%rdi
  mov    %r12b,0x190(%rsp,%rdi,1)
  lea    0x2e(%r8),%edi
  movslq %edi,%rdi
  mov    %sil,0x190(%rsp,%rdi,1)
  lea    0x2f(%r8),%edi
  movslq %edi,%rdi
  mov    %r11b,0x190(%rsp,%rdi,1)
  jg     L698
  movslq %r9d,%rdi
  cmpl   $0x3,0xf0(%rsp)
  lea    0x34(%r8),%r9d
  mov    %cl,0x190(%rsp,%rdi,1)
  lea    0x31(%r8),%edi
  movslq %edi,%rdi
  mov    %r12b,0x190(%rsp,%rdi,1)
  lea    0x32(%r8),%edi
  movslq %edi,%rdi
  mov    %sil,0x190(%rsp,%rdi,1)
  lea    0x33(%r8),%edi
  movslq %edi,%rdi
  mov    %r11b,0x190(%rsp,%rdi,1)
  jg     L698
  movslq %r9d,%rdi
  cmpl   $0x3,0xf4(%rsp)
  lea    0x38(%r8),%r9d
  mov    %cl,0x190(%rsp,%rdi,1)
  lea    0x35(%r8),%edi
  movslq %edi,%rdi
  mov    %r12b,0x190(%rsp,%rdi,1)
  lea    0x36(%r8),%edi
  movslq %edi,%rdi
  mov    %sil,0x190(%rsp,%rdi,1)
  lea    0x37(%r8),%edi
  movslq %edi,%rdi
  mov    %r11b,0x190(%rsp,%rdi,1)
  jg     L698
  movslq %r9d,%rdi
  cmpl   $0x3,0x108(%rsp)
  lea    0x3c(%r8),%r9d
  mov    %cl,0x190(%rsp,%rdi,1)
  lea    0x39(%r8),%edi
  movslq %edi,%rdi
  mov    %r12b,0x190(%rsp,%rdi,1)
  lea    0x3a(%r8),%edi
  movslq %edi,%rdi
  mov    %sil,0x190(%rsp,%rdi,1)
  lea    0x3b(%r8),%edi
  movslq %edi,%rdi
  mov    %r11b,0x190(%rsp,%rdi,1)
  jg     L698
  movslq %r9d,%rdi
  mov    %cl,0x190(%rsp,%rdi,1)
  lea    0x3d(%r8),%ecx
  movslq %ecx,%rcx
  mov    %r12b,0x190(%rsp,%rcx,1)
  lea    0x3e(%r8),%ecx
  movslq %ecx,%rcx
  mov    %sil,0x190(%rsp,%rcx,1)
  lea    0x3f(%r8),%ecx
  movslq %ecx,%rcx
  mov    %r11b,0x190(%rsp,%rcx,1)
  jmp    L698
L263:
  xor    %r8d,%r8d
  jmp    L497
L33:
  movq   $0x0,0x148(%rsp)
  jmp    L862
L476:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: data_tag: D11
type: byte[16]

tool: {"D11": [0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00]}

assistant: ```c
unsigned char *convert_image_to_DXT5(const unsigned char *const uncompressed, int width, int height, int channels, int *out_size) {
  unsigned char *compressed;
  int i, j, x, y;
  unsigned char ublock[16 * 4];
  unsigned char cblock[8];
  int index = 0, chan_step = 1;
  int block_count = 0, has_alpha;
  *out_size = 0;
  if ((width < 1) || (height < 1) || (NULL == uncompressed) || (channels < 1) || (channels > 4)) {
    return NULL;
  }
  if (channels < 3) {
    chan_step = 0;
  }
  has_alpha = 1 - (channels & 1);
  *out_size = ((width + 3) >> 2) * ((height + 3) >> 2) * 16;
  compressed = (unsigned char *)malloc(*out_size);
  for (j = 0; j < height; j += 4) {
    for (i = 0; i < width; i += 4) {
      int idx = 0;
      int mx = 4, my = 4;
      if (j + 4 >= height) {
        my = height - j;
      }
      if (i + 4 >= width) {
        mx = width - i;
      }
      for (y = 0; y < my; ++y) {
        for (x = 0; x < mx; ++x) {
          ublock[idx++] = uncompressed[(j + y) * width * channels + (i + x) * channels];
          ublock[idx++] = uncompressed[(j + y) * width * channels + (i + x) * channels + chan_step];
          ublock[idx++] = uncompressed[(j + y) * width * channels + (i + x) * channels + chan_step + chan_step];
          ublock[idx++] = has_alpha * uncompressed[(j + y) * width * channels + (i + x) * channels + channels - 1] + (1 - has_alpha) * 255;
        }
        for (x = mx; x < 4; ++x) {
          ublock[idx++] = ublock[0];
          ublock[idx++] = ublock[1];
          ublock[idx++] = ublock[2];
          ublock[idx++] = ublock[3];
        }
      }
      for (y = my; y < 4; ++y) {
        for (x = 0; x < 4; ++x) {
          ublock[idx++] = ublock[0];
          ublock[idx++] = ublock[1];
          ublock[idx++] = ublock[2];
          ublock[idx++] = ublock[3];
        }
      }
      compress_DDS_alpha_block(ublock, cblock);
      for (x = 0; x < 8; ++x) {
        compressed[index++] = cblock[x];
      }
      ++block_count;
      compress_DDS_color_block(4, ublock, cblock);
      for (x = 0; x < 8; ++x) {
        compressed[index++] = cblock[x];
      }
    }
  }
  return compressed;
}
```