// File: /workspace/github_cpp_makefile_star2_O1/attractivechaos[P]udb2/stb/./stb.h
// Function: stb_decompress
stb_uint stb_decompress(stb_uchar *output, stb_uchar *i, stb_uint length)
{
   stb_uint olen;
   if (stb__in4(0) != 0x57bC0000) return 0;
   if (stb__in4(4) != 0)          return 0; // error! stream is > 4GB
   olen = stb_decompress_length(i);
   stb__barrier2 = i;
   stb__barrier3 = i+length;
   stb__barrier = output + olen;
   stb__barrier4 = output;
   i += 16;

   stb__dout = output;
   while (1) {
      stb_uchar *old_i = i;
      i = stb_decompress_token(i);
      if (i == old_i) {
         if (*i == 0x05 && i[1] == 0xfa) {
            assert(stb__dout == output + olen);
            if (stb__dout != output + olen) return 0;
            if (stb_adler32(1, output, olen) != (stb_uint) stb__in4(2))
               return 0;
            return olen;
         } else {
            assert(0); /* NOTREACHED */
            return 0;
         }
      }
      assert(stb__dout <= output + olen); 
      if (stb__dout > output + olen)
         return 0;
   }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl (%rsi), %eax
bswapl %eax
xorl %ebp, %ebp
cmpl $0x57bc0000, %eax       # imm = 0x57BC0000
jne 0xee42
movq %rsi, %rbx
movl 0x4(%rsi), %eax
bswapl %eax
testl %eax, %eax
je 0xee53
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rdi, %r14
movl 0x8(%rbx), %r15d
bswapl %r15d
movq %rbx, 0x10fdc(%rip)     # 0x1fe40
movl %edx, %eax
addq %rbx, %rax
movq %rax, 0x10fd8(%rip)     # 0x1fe48
leaq (%rdi,%r15), %r12
movq %r12, 0x10fd5(%rip)     # 0x1fe50
movq %rdi, 0x10fd6(%rip)     # 0x1fe58
addq $0x10, %rbx
movq %rdi, 0x10fd3(%rip)     # 0x1fe60
movzbl (%rbx), %esi
cmpl $0x20, %esi
jb 0xeed4
testb %sil, %sil
js 0xef4e
cmpb $0x40, %sil
jb 0xef6a
movq 0x10fb1(%rip), %rdi     # 0x1fe60
shll $0x8, %esi
movzbl 0x1(%rbx), %eax
addl %esi, %eax
addl $0xffffc001, %eax       # imm = 0xFFFFC001
subq %rax, %rdi
movzbl 0x2(%rbx), %esi
incl %esi
callq 0x1163b
leaq 0x3(%rbx), %r13
jmp 0xefba
cmpb $0x18, %sil
jb 0xef0f
movq 0x10f7f(%rip), %rdi     # 0x1fe60
shll $0x10, %esi
movzbl 0x1(%rbx), %eax
shll $0x8, %eax
movzbl 0x2(%rbx), %ecx
orl %esi, %ecx
addl %ecx, %eax
addl $0xffe80001, %eax       # imm = 0xFFE80001
subq %rax, %rdi
movzbl 0x3(%rbx), %esi
incl %esi
callq 0x1163b
leaq 0x4(%rbx), %r13
jmp 0xefba
cmpb $0x10, %sil
jb 0xef83
movq 0x10f44(%rip), %rdi     # 0x1fe60
shll $0x10, %esi
movzbl 0x1(%rbx), %eax
shll $0x8, %eax
movzbl 0x2(%rbx), %ecx
orl %esi, %ecx
addl %ecx, %eax
addl $0xfff00001, %eax       # imm = 0xFFF00001
subq %rax, %rdi
movzwl 0x3(%rbx), %eax
rolw $0x8, %ax
movzwl %ax, %esi
incl %esi
callq 0x1163b
leaq 0x5(%rbx), %r13
jmp 0xefba
movzbl 0x1(%rbx), %edi
notq %rdi
addq 0x10f04(%rip), %rdi     # 0x1fe60
addl $-0x7f, %esi
callq 0x1163b
leaq 0x2(%rbx), %r13
jmp 0xefba
leaq 0x1(%rbx), %rdi
addl $-0x1f, %esi
callq 0x116a9
movzbl (%rbx), %eax
leaq (%rbx,%rax), %r13
addq $-0x1e, %r13
jmp 0xefba
cmpb $0x8, %sil
jb 0xf022
leaq 0x2(%rbx), %rdi
shll $0x8, %esi
movzbl 0x1(%rbx), %eax
addl %eax, %esi
addl $0xfffff801, %esi       # imm = 0xFFFFF801
callq 0x116a9
movzwl (%rbx), %eax
rolw $0x8, %ax
movzwl %ax, %eax
leaq (%rbx,%rax), %r13
addq $-0x7fd, %r13           # imm = 0xF803
cmpq %rbx, %r13
je 0xefcd
cmpq %r12, 0x10e9a(%rip)     # 0x1fe60
jbe 0xf011
jmp 0xf0e9
cmpb $0x5, (%r13)
jne 0xf0ca
cmpb $-0x6, 0x1(%r13)
jne 0xf0ca
cmpq %r12, 0x10e76(%rip)     # 0x1fe60
jne 0xf108
movl $0x1, %edi
movq %r14, %rsi
movl %r15d, %edx
callq 0xa30b
movl 0x2(%r13), %ecx
bswapl %ecx
cmpl %ecx, %eax
movl $0x0, %ebp
cmovel %r15d, %ebp
cmpq %rbx, %r13
movq %r13, %rbx
jne 0xee8d
jmp 0xee42
cmpl $0x4, %esi
je 0xf08d
cmpl $0x6, %esi
je 0xf062
movq %rbx, %r13
cmpl $0x7, %esi
jne 0xefba
leaq 0x3(%rbx), %rdi
movzwl 0x1(%rbx), %eax
rolw $0x8, %ax
movzwl %ax, %esi
incl %esi
callq 0x116a9
movzwl 0x1(%rbx), %eax
rolw $0x8, %ax
movzwl %ax, %eax
leaq (%rbx,%rax), %r13
addq $0x4, %r13
jmp 0xefba
movzbl 0x1(%rbx), %eax
shll $0x10, %eax
movzbl 0x2(%rbx), %ecx
shll $0x8, %ecx
movzbl 0x3(%rbx), %edi
orq %rax, %rdi
orq %rcx, %rdi
notq %rdi
addq 0x10ddc(%rip), %rdi     # 0x1fe60
movzbl 0x4(%rbx), %esi
jmp 0xef41
movzbl 0x1(%rbx), %eax
shll $0x10, %eax
movzbl 0x2(%rbx), %ecx
shll $0x8, %ecx
movzbl 0x3(%rbx), %edi
orq %rax, %rdi
orq %rcx, %rdi
notq %rdi
addq 0x10db1(%rip), %rdi     # 0x1fe60
movzwl 0x4(%rbx), %eax
rolw $0x8, %ax
movzwl %ax, %esi
incl %esi
callq 0x1163b
leaq 0x6(%rbx), %r13
jmp 0xefba
leaq 0x3755(%rip), %rdi      # 0x12826
leaq 0x3429(%rip), %rsi      # 0x12501
leaq 0x3d7a(%rip), %rcx      # 0x12e59
movl $0x27ff, %edx           # imm = 0x27FF
callq 0x2140
leaq 0x3da5(%rip), %rdi      # 0x12e95
leaq 0x340a(%rip), %rsi      # 0x12501
leaq 0x3d5b(%rip), %rcx      # 0x12e59
movl $0x2803, %edx           # imm = 0x2803
callq 0x2140
leaq 0x3d2f(%rip), %rdi      # 0x12e3e
leaq 0x33eb(%rip), %rsi      # 0x12501
leaq 0x3d3c(%rip), %rcx      # 0x12e59
movl $0x27f9, %edx           # imm = 0x27F9
callq 0x2140