// File: /workspace/github_c_makefile_star2_O1/zhiyb[P]png2tlg/./stb_image.h
// Function: stbi__do_zlib(stbi__zbuf*, char*, int, int, int)
static int stbi__do_zlib(stbi__zbuf *a, char *obuf, int olen, int exp, int parse_header)
{
   a->zout_start = obuf;
   a->zout       = obuf;
   a->zout_end   = obuf + olen;
   a->z_expandable = exp;

   return stbi__parse_zlib(a, parse_header);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa08, %rsp            # imm = 0xA08
movq %rdi, %rbx
movq %rsi, 0x20(%rdi)
movq %rsi, 0x18(%rdi)
movslq %edx, %rax
addq %rsi, %rax
movq %rax, 0x28(%rdi)
movl %ecx, 0x30(%rdi)
testl %r8d, %r8d
je 0x333b
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
xorl %ecx, %ecx
movl $0x0, %eax
cmpq %rdx, %rsi
jae 0x32f3
leaq 0x1(%rsi), %rax
movq %rax, (%rbx)
movzbl (%rsi), %eax
movq (%rbx), %rsi
cmpq %rdx, %rsi
jae 0x3305
leaq 0x1(%rsi), %rcx
movq %rcx, (%rbx)
movzbl (%rsi), %ecx
movl %eax, %edx
shll $0x8, %edx
orl %ecx, %edx
imull $0xbdef7bdf, %edx, %edx # imm = 0xBDEF7BDF
cmpl $0x8421085, %edx        # imm = 0x8421085
jb 0x3326
leaq 0x14ffa(%rip), %rax     # 0x1831b
jmp 0x3c17
testb $0x20, %cl
jne 0x3bf5
andl $0xf, %eax
cmpl $0x8, %eax
jne 0x3bfe
movq $0x0, 0x10(%rbx)
leaq 0x34(%rbx), %rax
movq %rax, 0x20(%rsp)
leaq 0x818(%rbx), %rax
movq %rax, 0x18(%rsp)
leaq 0x13e21(%rip), %r14     # 0x17180
leaq 0x1439a(%rip), %r13     # 0x17700
cmpl $0x0, 0x10(%rbx)
jg 0x3374
movq %rbx, %rdi
callq 0x15595
movl 0x10(%rbx), %eax
movl 0x14(%rbx), %ebp
movl %ebp, %ecx
shrl %ecx
movl %ecx, 0x14(%rbx)
leal -0x1(%rax), %ecx
movl %ecx, 0x10(%rbx)
cmpl $0x2, %eax
jg 0x3394
movq %rbx, %rdi
callq 0x15595
movl 0x10(%rbx), %eax
movl 0x14(%rbx), %ecx
movl %ecx, %edx
andl $0x3, %edx
shrl $0x2, %ecx
movl %ecx, 0x14(%rbx)
leal -0x2(%rax), %r12d
movl %r12d, 0x10(%rbx)
xorl %r15d, %r15d
movslq (%r14,%rdx,4), %rcx
addq %r14, %rcx
jmpq *%rcx
andl $0x7, %r12d
je 0x33d6
cmpl $0x1, %eax
jg 0x33cc
movq %rbx, %rdi
callq 0x15595
movl %r12d, %ecx
shrl %cl, 0x14(%rbx)
subl %r12d, 0x10(%rbx)
movl 0x10(%rbx), %ecx
testl %ecx, %ecx
jle 0x3b4c
movl 0x14(%rbx), %edx
xorl %eax, %eax
movl %ecx, %esi
movb %dl, 0x224(%rsp,%rax)
incq %rax
shrl $0x8, %edx
leal -0x8(%rsi), %ecx
cmpl $0x8, %esi
jg 0x33e6
movl %edx, 0x14(%rbx)
movl %ecx, 0x10(%rbx)
jmp 0x3b4e
movq 0x20(%rsp), %rdi
leaq 0x141ac(%rip), %rsi     # 0x175c0
movl $0x120, %edx            # imm = 0x120
callq 0x15396
testl %eax, %eax
je 0x3c21
movl %ebp, 0xc(%rsp)
movq 0x18(%rsp), %rdi
leaq 0x142aa(%rip), %rsi     # 0x176e0
movl $0x20, %edx
callq 0x15396
testl %eax, %eax
movl $0xf0f, %r14d           # imm = 0xF0F
jne 0x37a5
jmp 0x3c1e
cmpl $0x6, %eax
jg 0x3460
movq %rbx, %rdi
callq 0x15595
movl 0x10(%rbx), %eax
movl 0x14(%rbx), %r14d
movl %r14d, %ecx
shrl $0x5, %ecx
movl %ecx, 0x14(%rbx)
leal -0x5(%rax), %ecx
movl %ecx, 0x10(%rbx)
cmpl $0x9, %eax
jg 0x3483
movq %rbx, %rdi
callq 0x15595
movl %ebp, 0xc(%rsp)
movl 0x10(%rbx), %eax
movl 0x14(%rbx), %r15d
movl %r15d, %ecx
shrl $0x5, %ecx
movl %ecx, 0x14(%rbx)
leal -0x5(%rax), %ecx
movl %ecx, 0x10(%rbx)
cmpl $0x8, %eax
jg 0x34aa
movq %rbx, %rdi
callq 0x15595
andl $0x1f, %r14d
addq $0x101, %r14            # imm = 0x101
movq %r14, 0x10(%rsp)
andl $0x1f, %r15d
incl %r15d
movq %r15, 0x28(%rsp)
movl 0x14(%rbx), %eax
movl %eax, %r14d
andl $0xf, %r14d
shrl $0x4, %eax
movl %eax, 0x14(%rbx)
addl $-0x4, 0x10(%rbx)
addq $0x4, %r14
xorps %xmm0, %xmm0
movaps %xmm0, 0x30(%rsp)
movl $0x0, 0x3f(%rsp)
xorl %r15d, %r15d
cmpl $0x2, 0x10(%rbx)
jg 0x34ff
movq %rbx, %rdi
callq 0x15595
movl 0x14(%rbx), %eax
movl %eax, %ecx
shrl $0x3, %ecx
movl %ecx, 0x14(%rbx)
addl $-0x3, 0x10(%rbx)
andb $0x7, %al
movzbl (%r15,%r13), %ecx
movb %al, 0x30(%rsp,%rcx)
incq %r15
cmpq %r15, %r14
jne 0x34f1
leaq 0x224(%rsp), %rdi
leaq 0x30(%rsp), %rsi
movl $0x13, %edx
callq 0x15396
testl %eax, %eax
movl $0xf0f, %r14d           # imm = 0xF0F
leaq 0x14eb9(%rip), %r13     # 0x18400
je 0x3c1e
movq 0x10(%rsp), %rax
movq 0x28(%rsp), %rcx
leal (%rcx,%rax), %r12d
xorl %r15d, %r15d
movl %r12d, %ebp
subl %r15d, %ebp
jle 0x375f
cmpl $0xf, 0x10(%rbx)
jg 0x3578
movq %rbx, %rdi
callq 0x15595
movl 0x14(%rbx), %eax
movl %eax, %ecx
andl $0x1ff, %ecx            # imm = 0x1FF
movzwl 0x224(%rsp,%rcx,2), %esi
testl %esi, %esi
je 0x35a7
movl %esi, %ecx
shrl $0x9, %ecx
shrl %cl, %eax
movl %eax, 0x14(%rbx)
subl %ecx, 0x10(%rbx)
andl $0x1ff, %esi            # imm = 0x1FF
jmp 0x3647
movl %eax, %ecx
rolw $0x8, %cx
movl %ecx, %edx
shrl $0x4, %edx
andl %r14d, %edx
andl %r14d, %ecx
shll $0x4, %ecx
orl %edx, %ecx
movl %ecx, %edx
movl $0x3333, %esi           # imm = 0x3333
andl %esi, %edx
shrl $0x2, %ecx
andl %esi, %ecx
leal (%rcx,%rdx,4), %ecx
movl %ecx, %edx
movl $0x5555, %esi           # imm = 0x5555
andl %esi, %edx
shrl %ecx
andl %esi, %ecx
leal (%rcx,%rdx,2), %edi
xorl %edx, %edx
movq %rdx, %rcx
incq %rdx
cmpl %edi, 0x66c(%rsp,%rcx,4)
jle 0x35e0
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
cmpq $0x7, %rdx
je 0x3647
movb $0x7, %cl
subb %dl, %cl
shrl %cl, %edi
movzwl 0x636(%rsp,%rdx,2), %ecx
subq %rcx, %rdi
movzwl 0x69a(%rsp,%rdx,2), %esi
addq %rdi, %rsi
movzbl 0x6a8(%rsp,%rsi), %ecx
addq $-0x9, %rcx
cmpq %rdx, %rcx
jne 0x3c3f
leaq 0x9(%rdx), %rcx
shrl %cl, %eax
movl %eax, 0x14(%rbx)
movl 0x10(%rbx), %eax
subl %edx, %eax
addl $-0x9, %eax
movl %eax, 0x10(%rbx)
movzwl 0x7c8(%rsp,%rsi,2), %esi
cmpl $0x13, %esi
jb 0x365a
movq %r13, 0x18bd5(%rip)     # 0x1c228
xorl %eax, %eax
jmp 0x373c
cmpl $0xf, %esi
jg 0x3671
movslq %r15d, %rax
incl %r15d
movb %sil, 0x50(%rsp,%rax)
movb $0x1, %al
jmp 0x373c
movl 0x10(%rbx), %eax
cmpl $0x11, %esi
je 0x36bb
cmpl $0x10, %esi
jne 0x36e2
cmpl $0x1, %eax
jg 0x368b
movq %rbx, %rdi
callq 0x15595
movl 0x14(%rbx), %r13d
movl %r13d, %eax
shrl $0x2, %eax
movl %eax, 0x14(%rbx)
addl $-0x2, 0x10(%rbx)
testl %r15d, %r15d
je 0x3749
andl $0x3, %r13d
addl $0x3, %r13d
movslq %r15d, %rax
leaq 0x50(%rsp), %rcx
movb -0x1(%rax,%rcx), %al
jmp 0x3709
cmpl $0x2, %eax
jg 0x36c8
movq %rbx, %rdi
callq 0x15595
movl 0x14(%rbx), %eax
movl %eax, %r13d
shrl $0x3, %eax
movl %eax, 0x14(%rbx)
addl $-0x3, 0x10(%rbx)
andl $0x7, %r13d
addl $0x3, %r13d
jmp 0x3707
cmpl $0x6, %eax
jg 0x36ef
movq %rbx, %rdi
callq 0x15595
movl 0x14(%rbx), %eax
movl %eax, %r13d
shrl $0x7, %eax
movl %eax, 0x14(%rbx)
addl $-0x7, 0x10(%rbx)
andl $0x7f, %r13d
addl $0xb, %r13d
xorl %eax, %eax
cmpl %r13d, %ebp
jge 0x371a
leaq 0x14ceb(%rip), %r13     # 0x18400
jmp 0x364c
movslq %r15d, %rcx
leaq (%rsp,%rcx), %rdi
addq $0x50, %rdi
movl %r13d, %edx
movzbl %al, %esi
callq 0x20f0
addl %r13d, %r15d
movb $0x1, %al
leaq 0x14cc4(%rip), %r13     # 0x18400
testb %al, %al
jne 0x355e
jmp 0x3c1e
leaq 0x14cb0(%rip), %r13     # 0x18400
movq %r13, 0x18ad1(%rip)     # 0x1c228
xorl %r15d, %r15d
jmp 0x3653
jne 0x3c36
movq 0x20(%rsp), %rdi
leaq 0x50(%rsp), %rsi
movq 0x10(%rsp), %rdx
callq 0x15396
testl %eax, %eax
je 0x3c1e
movq 0x10(%rsp), %rax
leaq (%rsp,%rax), %rsi
addq $0x50, %rsi
movq 0x18(%rsp), %rdi
movq 0x28(%rsp), %rdx
callq 0x15396
testl %eax, %eax
je 0x3c1e
movq 0x18(%rbx), %r13
cmpl $0xf, 0x10(%rbx)
jg 0x37b7
movq %rbx, %rdi
callq 0x15595
movl 0x14(%rbx), %eax
movl %eax, %ecx
andl $0x1ff, %ecx            # imm = 0x1FF
movzwl 0x34(%rbx,%rcx,2), %r15d
testl %r15d, %r15d
je 0x37e7
movl %r15d, %ecx
shrl $0x9, %ecx
shrl %cl, %eax
movl %eax, 0x14(%rbx)
subl %ecx, 0x10(%rbx)
andl $0x1ff, %r15d           # imm = 0x1FF
jmp 0x3889
movl %eax, %ecx
rolw $0x8, %cx
movl %ecx, %edx
shrl $0x4, %edx
andl %r14d, %edx
andl %r14d, %ecx
shll $0x4, %ecx
orl %edx, %ecx
movl %ecx, %edx
movl $0x3333, %esi           # imm = 0x3333
andl %esi, %edx
shrl $0x2, %ecx
andl %esi, %ecx
leal (%rcx,%rdx,4), %ecx
movl %ecx, %edx
movl $0x5555, %esi           # imm = 0x5555
andl %esi, %edx
shrl %ecx
andl %esi, %ecx
leal (%rcx,%rdx,2), %esi
xorl %edx, %edx
movq %rdx, %rcx
incq %rdx
cmpl %esi, 0x47c(%rbx,%rcx,4)
jle 0x3820
movl $0xffffffff, %r15d      # imm = 0xFFFFFFFF
cmpq $0x7, %rdx
je 0x3889
movb $0x7, %cl
subb %dl, %cl
shrl %cl, %esi
movzwl 0x446(%rbx,%rdx,2), %ecx
subq %rcx, %rsi
movzwl 0x4aa(%rbx,%rdx,2), %edi
addq %rsi, %rdi
movzbl 0x4b8(%rbx,%rdi), %ecx
addq $-0x9, %rcx
cmpq %rdx, %rcx
jne 0x3c3f
leaq 0x9(%rdx), %rcx
shrl %cl, %eax
movl %eax, 0x14(%rbx)
movl 0x10(%rbx), %eax
subl %edx, %eax
addl $-0x9, %eax
movl %eax, 0x10(%rbx)
movzwl 0x5d8(%rbx,%rdi,2), %r15d
cmpl $0xff, %r15d
jg 0x38cc
testl %r15d, %r15d
js 0x3a90
cmpq 0x28(%rbx), %r13
jb 0x38bd
movq %rbx, %rdi
movq %r13, %rsi
movl $0x1, %edx
callq 0x155ee
testl %eax, %eax
je 0x3a9e
movq 0x18(%rbx), %r13
movb %r15b, (%r13)
incq %r13
movb $0x1, %r15b
jmp 0x3aa3
cmpl $0x100, %r15d           # imm = 0x100
jne 0x38e6
movq %r13, 0x18(%rbx)
movl $0x1, %ebp
xorl %r15d, %r15d
jmp 0x3aa3
addl $0xfffffeff, %r15d      # imm = 0xFFFFFEFF
leaq 0x13e2c(%rip), %rax     # 0x17720
movl (%rax,%r15,4), %r12d
leaq -0x1c(%r15), %rax
cmpq $-0x14, %rax
jb 0x3938
leaq 0x13e97(%rip), %rax     # 0x177a0
movl (%rax,%r15,4), %r15d
cmpl %r15d, 0x10(%rbx)
jge 0x391b
movq %rbx, %rdi
callq 0x15595
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl %r15d, %ecx
shll %cl, %eax
movl 0x14(%rbx), %edx
notl %eax
andl %edx, %eax
shrl %cl, %edx
movl %edx, 0x14(%rbx)
subl %r15d, 0x10(%rbx)
addl %eax, %r12d
cmpl $0xf, 0x10(%rbx)
jg 0x3946
movq %rbx, %rdi
callq 0x15595
movl 0x14(%rbx), %eax
movl %eax, %ecx
andl $0x1ff, %ecx            # imm = 0x1FF
movzwl 0x818(%rbx,%rcx,2), %edi
testl %edi, %edi
je 0x3975
movl %edi, %ecx
shrl $0x9, %ecx
shrl %cl, %eax
movl %eax, 0x14(%rbx)
subl %ecx, 0x10(%rbx)
andl $0x1ff, %edi            # imm = 0x1FF
jmp 0x3a15
movl %eax, %ecx
rolw $0x8, %cx
movl %ecx, %edx
shrl $0x4, %edx
andl %r14d, %edx
andl %r14d, %ecx
shll $0x4, %ecx
orl %edx, %ecx
movl %ecx, %edx
movl $0x3333, %esi           # imm = 0x3333
andl %esi, %edx
shrl $0x2, %ecx
andl %esi, %ecx
leal (%rcx,%rdx,4), %ecx
movl %ecx, %edx
movl $0x5555, %esi           # imm = 0x5555
andl %esi, %edx
shrl %ecx
andl %esi, %ecx
leal (%rcx,%rdx,2), %esi
xorl %edx, %edx
movq %rdx, %rcx
incq %rdx
cmpl %esi, 0xc60(%rbx,%rcx,4)
jle 0x39ae
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
cmpq $0x7, %rdx
je 0x3a15
movb $0x7, %cl
subb %dl, %cl
shrl %cl, %esi
movzwl 0xc2a(%rbx,%rdx,2), %ecx
subq %rcx, %rsi
movzwl 0xc8e(%rbx,%rdx,2), %edi
addq %rsi, %rdi
movzbl 0xc9c(%rbx,%rdi), %ecx
addq $-0x9, %rcx
cmpq %rdx, %rcx
jne 0x3c3f
leaq 0x9(%rdx), %rcx
shrl %cl, %eax
movl %eax, 0x14(%rbx)
movl 0x10(%rbx), %eax
subl %edx, %eax
addl $-0x9, %eax
movl %eax, 0x10(%rbx)
movzwl 0xdbc(%rbx,%rdi,2), %edi
testl %edi, %edi
js 0x3a90
movl %edi, %eax
leaq 0x13dfe(%rip), %rcx     # 0x17820
movl (%rcx,%rax,4), %r14d
leaq -0x1e(%rax), %rcx
cmpq $-0x1a, %rcx
jb 0x3a66
leaq 0x13e69(%rip), %rcx     # 0x178a0
movl (%rcx,%rax,4), %r15d
cmpl %r15d, 0x10(%rbx)
jge 0x3a49
movq %rbx, %rdi
callq 0x15595
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl %r15d, %ecx
shll %cl, %eax
movl 0x14(%rbx), %edx
notl %eax
andl %edx, %eax
shrl %cl, %edx
movl %edx, 0x14(%rbx)
subl %r15d, 0x10(%rbx)
addl %eax, %r14d
movq %r13, %rax
subq 0x20(%rbx), %rax
movslq %r14d, %r14
cmpq %r14, %rax
jge 0x3aae
leaq 0x149e7(%rip), %rax     # 0x18463
movq %rax, 0x187a5(%rip)     # 0x1c228
xorl %r15d, %r15d
xorl %ebp, %ebp
movl $0xf0f, %r14d           # imm = 0xF0F
jmp 0x3aa3
leaq 0x140d7(%rip), %rax     # 0x17b6e
movq %rax, 0x1878a(%rip)     # 0x1c228
xorl %r15d, %r15d
xorl %ebp, %ebp
testb %r15b, %r15b
jne 0x37a9
jmp 0x3b27
movslq %r12d, %rax
addq %r13, %rax
cmpq 0x28(%rbx), %rax
jbe 0x3ad0
movq %rbx, %rdi
movq %r13, %rsi
movl %r12d, %edx
callq 0x155ee
testl %eax, %eax
je 0x3a83
movq 0x18(%rbx), %r13
movq %r14, %rax
negq %rax
movb $0x1, %r15b
cmpl $0x1, %r14d
jne 0x3b06
testl %r12d, %r12d
movl $0xf0f, %r14d           # imm = 0xF0F
je 0x3aa3
movl %r12d, %edx
movzbl (%r13,%rax), %esi
movq %r13, %rdi
callq 0x20f0
decl %r12d
addq %r12, %r13
incq %r13
jmp 0x3aa3
testl %r12d, %r12d
movl $0xf0f, %r14d           # imm = 0xF0F
je 0x3aa3
movb (%r13,%rax), %cl
movb %cl, (%r13)
incq %r13
decl %r12d
jne 0x3b11
jmp 0x3aa3
testl %ebp, %ebp
leaq 0x13650(%rip), %r14     # 0x17180
leaq 0x13bc9(%rip), %r13     # 0x17700
movl 0xc(%rsp), %ebp
movl $0x0, %r15d
jne 0x3be3
jmp 0x3c21
xorl %eax, %eax
testl %ecx, %ecx
jne 0x3c5e
cmpl $0x3, %eax
ja 0x3b8b
movq (%rbx), %rdx
movq 0x8(%rbx), %rcx
movl %eax, %eax
cmpq %rcx, %rdx
jae 0x3b78
leaq 0x1(%rdx), %rdi
movq %rdi, (%rbx)
movb (%rdx), %sil
movq %rdi, %rdx
jmp 0x3b7a
xorl %esi, %esi
movb %sil, 0x224(%rsp,%rax)
incq %rax
cmpq $0x4, %rax
jne 0x3b64
movzwl 0x224(%rsp), %edx
movzwl 0x226(%rsp), %eax
xorl %edx, %eax
cmpl $0xffff, %eax           # imm = 0xFFFF
jne 0x3c07
movl %edx, %r12d
movq (%rbx), %rax
addq %r12, %rax
cmpq 0x8(%rbx), %rax
ja 0x3c10
movq 0x18(%rbx), %rsi
leaq (%rsi,%r12), %rax
cmpq 0x28(%rbx), %rax
jbe 0x3bcd
movq %rbx, %rdi
callq 0x155ee
testl %eax, %eax
je 0x3c1e
movq (%rbx), %rsi
movq 0x18(%rbx), %rdi
movq %r12, %rdx
callq 0x2150
addq %r12, (%rbx)
addq %r12, 0x18(%rbx)
testb $0x1, %bpl
je 0x3366
movl $0x1, %r15d
jmp 0x3c21
leaq 0x1472f(%rip), %rax     # 0x1832b
jmp 0x3c17
leaq 0x1456b(%rip), %rax     # 0x18170
jmp 0x3c17
leaq 0x147b6(%rip), %rax     # 0x183c4
jmp 0x3c17
leaq 0x147ba(%rip), %rax     # 0x183d1
movq %rax, 0x1860a(%rip)     # 0x1c228
xorl %r15d, %r15d
movl %r15d, %eax
addq $0xa08, %rsp            # imm = 0xA08
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r13, 0x185eb(%rip)     # 0x1c228
jmp 0x3c1e
leaq 0x147ca(%rip), %rdi     # 0x18410
leaq 0x13d39(%rip), %rsi     # 0x17986
leaq 0x147cc(%rip), %rcx     # 0x18420
movl $0xf97, %edx            # imm = 0xF97
callq 0x2100
leaq 0x1471d(%rip), %rdi     # 0x18382
leaq 0x13d1a(%rip), %rsi     # 0x17986
leaq 0x14720(%rip), %rcx     # 0x18393
movl $0x1034, %edx           # imm = 0x1034
callq 0x2100