// File: /workspace/github_cpp_makefile_star2_O2/phillip-h[P]fractal-gen/lodepng.cpp
// Function: lodepng_inflate(unsigned char**, unsigned long*, unsigned char const*, unsigned long, LodePNGDecompressSettings const*)
unsigned lodepng_inflate(unsigned char** out, size_t* outsize,
                         const unsigned char* in, size_t insize,
                         const LodePNGDecompressSettings* settings)
{
  unsigned error;
  ucvector v;
  ucvector_init_buffer(&v, *out, *outsize);
  error = lodepng_inflatev(&v, in, insize, settings);
  *out = v.data;
  *outsize = v.size;
  return error;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movq (%rdi), %rax
movq %rdi, 0x98(%rsp)
leaq 0x58(%rsp), %rdi
movq %rsi, 0xa0(%rsp)
movq (%rsi), %rsi
leaq 0x70(%rsp), %r12
movq %rcx, 0xb0(%rsp)
movq %rdx, 0x20(%rsp)
xorl %ebp, %ebp
movq %rax, (%rdi)
leaq 0x8(%rsp), %rax
movq %rsi, 0x8(%rdi)
movq %rsi, 0x10(%rdi)
andq $0x0, (%rax)
leaq (,%rcx,8), %rax
movq %rax, 0x28(%rsp)
leaq 0x4(%rdx), %rax
movq %rax, 0xa8(%rsp)
xorl %eax, %eax
testl %eax, %eax
jne 0x4b1e
movq 0x8(%rsp), %r13
leaq 0x2(%r13), %rcx
cmpq 0x28(%rsp), %rcx
jae 0x4b1a
movq 0x20(%rsp), %rsi
movq %r13, %rax
shrq $0x3, %rax
leaq 0x3(%r13), %rbx
movq %r13, 0xb8(%rsp)
movzbl (%rsi,%rax), %edi
leaq 0x1(%r13), %rax
movq %rax, %rdx
shrq $0x3, %rdx
andl $0x7, %eax
movzbl (%rsi,%rdx), %edx
movl %edi, 0x44(%rsp)
btl %eax, %edx
movq %rcx, %rax
setb %dl
shrq $0x3, %rax
andb $0x7, %cl
movb (%rsi,%rax), %al
movq %rbx, 0x8(%rsp)
shrb %cl, %al
addb %al, %al
andb $0x2, %al
orb %dl, %al
testb %al, %al
je 0x43e2
movzbl %al, %ecx
cmpl $0x3, %ecx
je 0x4b23
andq $0x0, 0x80(%rsp)
andq $0x0, 0xd0(%rsp)
vxorps %xmm0, %xmm0, %xmm0
vmovaps %xmm0, 0x70(%rsp)
vmovaps %xmm0, 0xc0(%rsp)
cmpb $0x2, %al
je 0x448f
xorl %r13d, %r13d
cmpl $0x1, %ecx
jne 0x4882
movq %r12, %rdi
callq 0xb1a2
leaq 0xc0(%rsp), %rdi
callq 0xb24a
jmp 0x4882
pushq $0x5
popq %rax
subl %r13d, %eax
movq 0xb0(%rsp), %r12
andl $0x7, %eax
addq %rax, %rbx
shrq $0x3, %rbx
leaq 0x4(%rbx), %r15
cmpq %r12, %r15
jae 0x4b1a
movq 0x20(%rsp), %rcx
movzwl (%rcx,%rbx), %eax
movzwl 0x2(%rcx,%rbx), %ecx
addl %eax, %ecx
cmpl $0xffff, %ecx           # imm = 0xFFFF
jne 0x4b27
movl %eax, %r14d
leaq (%rbp,%r14), %rsi
leaq 0x58(%rsp), %rdi
callq 0xb083
testl %eax, %eax
je 0x4b2b
addq %r14, %r15
cmpq %r12, %r15
ja 0x4b2f
leaq 0x20(,%rbx,8), %rax
movq 0x58(%rsp), %rcx
addq 0xa8(%rsp), %rbx
movl 0x44(%rsp), %edi
leaq 0x70(%rsp), %r12
xorl %edx, %edx
cmpl %edx, %r14d
je 0x4482
movb (%rbx,%rdx), %sil
addq $0x8, %rax
incq %rdx
movb %sil, (%rcx,%rbp)
incq %rbp
jmp 0x4469
movq %rax, 0x8(%rsp)
xorl %r13d, %r13d
jmp 0x4a64
leaq 0x11(%r13), %rax
pushq $0x31
popq %r13
cmpq 0x28(%rsp), %rax
ja 0x4882
movq 0x20(%rsp), %rbx
leaq 0x8(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rsi
pushq $0x5
popq %r15
movq %r15, %rdx
callq 0xb145
movq %rax, 0x38(%rsp)
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0xb145
movq %rax, 0x30(%rsp)
movq %r14, %rdi
movq %rbx, %rsi
pushq $0x4
popq %rdx
callq 0xb145
movl %eax, %ebx
addl $0x4, %ebx
leal (%rbx,%rbx,2), %eax
addq 0x8(%rsp), %rax
pushq $0x32
popq %r13
cmpq 0x28(%rsp), %rax
ja 0x4882
andq $0x0, 0xf0(%rsp)
vxorps %xmm0, %xmm0, %xmm0
vmovaps %xmm0, 0xe0(%rsp)
pushq $0x4c
popq %rdi
callq 0x21c0
movq %rax, %r14
testq %rax, %rax
je 0x45af
movq 0x38(%rsp), %rax
leaq 0xa5aa(%rip), %r15      # 0xeae0
movl %ebx, %ebx
xorl %r12d, %r12d
addl $0x101, %eax            # imm = 0x101
movl %eax, 0x40(%rsp)
movq 0x30(%rsp), %rax
incl %eax
movq %rax, 0x30(%rsp)
pushq $0x3
popq %r13
cmpq $0x13, %r12
je 0x4583
xorl %eax, %eax
cmpq %rbx, %r12
jae 0x4573
movq 0x20(%rsp), %rsi
leaq 0x8(%rsp), %rdi
movq %r13, %rdx
callq 0xb145
movl (%r15), %ecx
incq %r12
addq $0x4, %r15
movl %eax, (%r14,%rcx,4)
jmp 0x4554
leaq 0xe0(%rsp), %rdi
movq %r14, %rsi
pushq $0x13
popq %rdx
pushq $0x7
popq %rcx
callq 0xb29f
testl %eax, %eax
je 0x45bd
movl %eax, %r13d
xorl %ebx, %ebx
xorl %r15d, %r15d
leaq 0x70(%rsp), %r12
jmp 0x485d
pushq $0x53
popq %r13
xorl %ebx, %ebx
xorl %r15d, %r15d
jmp 0x485d
movl $0x480, %edi            # imm = 0x480
callq 0x21c0
movl $0x80, %edi
movq %rax, %rbx
callq 0x21c0
testq %rbx, %rbx
leaq 0x70(%rsp), %r12
sete %dl
testq %rax, %rax
sete %cl
orb %dl, %cl
jne 0x45fd
xorl %ecx, %ecx
cmpq $0x120, %rcx            # imm = 0x120
je 0x4609
andl $0x0, (%rbx,%rcx,4)
incq %rcx
jmp 0x45eb
pushq $0x53
popq %r13
movq %rax, %r15
jmp 0x485d
xorl %ecx, %ecx
cmpq $0x20, %rcx
je 0x461a
andl $0x0, (%rax,%rcx,4)
incq %rcx
jmp 0x460b
movq %rax, 0x10(%rsp)
movq 0x30(%rsp), %rax
movl 0x40(%rsp), %ecx
movq 0x38(%rsp), %rdx
xorl %r15d, %r15d
xorl %r13d, %r13d
movq %rbx, 0x18(%rsp)
addl %ecx, %eax
movq %rax, 0x30(%rsp)
leal 0x102(%rdx), %eax
movl %eax, 0x54(%rsp)
movl %ecx, %eax
movq %rax, 0x48(%rsp)
movl $0xfffffefe, %eax       # imm = 0xFFFFFEFE
subl %edx, %eax
movq %rax, 0x90(%rsp)
movl $0xfffffeff, %eax       # imm = 0xFFFFFEFF
subl %edx, %eax
movq %rax, 0x38(%rsp)
movl %r15d, %r15d
leaq (%rbx,%r15,4), %rbx
cmpl 0x30(%rsp), %r15d
jae 0x484a
movq 0x20(%rsp), %rdi
movq 0x28(%rsp), %rcx
leaq 0x8(%rsp), %rsi
leaq 0xe0(%rsp), %rdx
callq 0xb0f1
cmpl $0xf, %eax
ja 0x46c9
movl 0x40(%rsp), %ecx
movq 0x10(%rsp), %rdi
movl $0x0, %edx
movl %r15d, %esi
cmpl %ecx, %r15d
cmovbq 0x18(%rsp), %rdi
cmovbl %edx, %ecx
incq %r15
addq $0x4, %rbx
subl %ecx, %esi
movl %eax, (%rdi,%rsi,4)
jmp 0x4672
cmpl $0x10, %eax
je 0x4744
cmpl $0x11, %eax
je 0x47d8
cmpl $0x12, %eax
jne 0x4ae7
movq 0x8(%rsp), %rax
addq $0x7, %rax
cmpq 0x28(%rsp), %rax
ja 0x4ae3
movq 0x20(%rsp), %rsi
leaq 0x8(%rsp), %rdi
pushq $0x7
popq %rdx
callq 0xb145
movq 0x10(%rsp), %rdx
addl $0xb, %eax
subl $0x1, %eax
jb 0x4840
cmpq %r15, 0x30(%rsp)
je 0x4834
movq 0x38(%rsp), %rcx
cmpq 0x48(%rsp), %r15
leal (%rcx,%r15), %ecx
leaq (%rdx,%rcx,4), %rcx
cmovbq %rbx, %rcx
incq %r15
addq $0x4, %rbx
andl $0x0, (%rcx)
jmp 0x470e
testl %r15d, %r15d
je 0x4b11
movq 0x8(%rsp), %rax
addq $0x2, %rax
cmpq 0x28(%rsp), %rax
ja 0x4ae3
movq 0x20(%rsp), %rsi
leaq 0x8(%rsp), %rdi
pushq $0x2
popq %rdx
callq 0xb145
movq 0x18(%rsp), %rsi
leal -0x1(%r15), %ecx
movq 0x90(%rsp), %rdx
addl $0x3, %eax
cmpl 0x54(%rsp), %r15d
leaq (%rsi,%rcx,4), %rcx
movq 0x10(%rsp), %rsi
leal (%rdx,%r15), %edx
leaq (%rsi,%rdx,4), %rdx
cmovbq %rcx, %rdx
movl (%rdx), %ecx
subl $0x1, %eax
jb 0x4840
cmpq %r15, 0x30(%rsp)
je 0x483c
movq 0x38(%rsp), %rdx
cmpq 0x48(%rsp), %r15
leal (%rdx,%r15), %edx
leaq (%rsi,%rdx,4), %rdx
cmovbq %rbx, %rdx
incq %r15
addq $0x4, %rbx
movl %ecx, (%rdx)
jmp 0x47a3
movq 0x8(%rsp), %rax
addq $0x3, %rax
cmpq 0x28(%rsp), %rax
ja 0x4ae3
movq 0x20(%rsp), %rsi
leaq 0x8(%rsp), %rdi
pushq $0x3
popq %rdx
callq 0xb145
movq 0x10(%rsp), %rdx
addl $0x3, %eax
subl $0x1, %eax
jb 0x4840
cmpq %r15, 0x30(%rsp)
je 0x4838
movq 0x38(%rsp), %rcx
cmpq 0x48(%rsp), %r15
leal (%rcx,%r15), %ecx
leaq (%rdx,%rcx,4), %rcx
cmovbq %rbx, %rcx
incq %r15
addq $0x4, %rbx
andl $0x0, (%rcx)
jmp 0x4806
pushq $0xf
jmp 0x483e
pushq $0xe
jmp 0x483e
pushq $0xd
popq %r13
movq 0x18(%rsp), %rbx
jmp 0x466b
testl %r13d, %r13d
je 0x4a84
movq 0x18(%rsp), %rbx
movq 0x10(%rsp), %r15
movq %r14, %rdi
callq 0x2180
movq %rbx, %rdi
callq 0x2180
movq %r15, %rdi
callq 0x2180
leaq 0xe0(%rsp), %rdi
callq 0xb183
testl %r13d, %r13d
jne 0x4a4b
movq 0x28(%rsp), %r13
movq 0x20(%rsp), %rdi
leaq 0x8(%rsp), %rsi
movq %r12, %rdx
movq %r13, %rcx
callq 0xb0f1
movl %eax, %r14d
cmpl $0xff, %eax
ja 0x48d9
leaq 0x1(%rbp), %rbx
leaq 0x58(%rsp), %rdi
movq %rbx, %rsi
callq 0xb083
testl %eax, %eax
je 0x4a0c
movq 0x58(%rsp), %rax
xorl %r13d, %r13d
movb %r14b, (%rax,%rbp)
movq %rbx, %rbp
jmp 0x4882
cmpl $0x100, %r14d           # imm = 0x100
je 0x4a10
cmpl $0x11d, %r14d           # imm = 0x11D
ja 0x4a10
addl $0xfffffeff, %r14d      # imm = 0xFFFFFEFF
leaq 0xa05f(%rip), %rax      # 0xe960
movq 0x8(%rsp), %rcx
movl (%rax,%r14,4), %edx
addq %rdx, %rcx
cmpq %r13, %rcx
ja 0x4a30
leaq 0x9fc3(%rip), %rax      # 0xe8e0
movq 0x20(%rsp), %rbx
leaq 0x8(%rsp), %r15
movl (%rax,%r14,4), %r12d
movq %r15, %rdi
movq %rbx, %rsi
callq 0xb145
leaq 0xc0(%rsp), %rdx
movl %eax, %r14d
movq %rbx, %rdi
movq %r15, %rsi
movq %r13, %rcx
callq 0xb0f1
cmpl $0x1d, %eax
ja 0x4a36
leaq 0xa101(%rip), %rdx      # 0xea60
movl %eax, %r15d
movq 0x8(%rsp), %rcx
movl (%rdx,%r15,4), %edx
addq %rdx, %rcx
cmpq %r13, %rcx
ja 0x4a3a
movq 0x20(%rsp), %rsi
leaq 0x8(%rsp), %rdi
callq 0xb145
leaq 0xa053(%rip), %rcx      # 0xe9e0
movl %eax, %ebx
addl (%rcx,%r15,4), %ebx
movq %rbp, %r15
subq %rbx, %r15
jb 0x4a3e
movl %r14d, %r13d
addq %r12, %r13
leaq 0x58(%rsp), %rdi
leaq (%r13,%rbp), %r14
movq %r14, %rsi
callq 0xb083
testl %eax, %eax
je 0x4a42
movq 0x58(%rsp), %rax
leaq 0x70(%rsp), %r12
cmpq %rbx, %r13
jbe 0x49e5
movq %rax, %rcx
subq %rbx, %rcx
subq $0x1, %r13
jb 0x4a04
movb (%rcx,%rbp), %dl
movb %dl, (%rax,%rbp)
incq %rbp
jmp 0x49d4
addq %rax, %rbp
addq %rax, %r15
movq %r13, %rdx
movq %rbp, %rdi
movq %r15, %rsi
callq 0x20d0
xorl %r13d, %r13d
movq %r14, %rbp
jmp 0x4882
xorl %r13d, %r13d
jmp 0x4882
pushq $0x53
jmp 0x4a32
xorl %r13d, %r13d
cmpl $0x100, %r14d           # imm = 0x100
je 0x4a4b
movq 0x28(%rsp), %rax
cmpq 0x8(%rsp), %rax
pushq $0xb
popq %r13
sbbl $0x0, %r13d
jmp 0x4a4b
pushq $0x33
popq %r13
jmp 0x4a4b
pushq $0x12
jmp 0x4a44
pushq $0x33
jmp 0x4a44
pushq $0x34
jmp 0x4a44
pushq $0x53
popq %r13
leaq 0x70(%rsp), %r12
movq %r12, %rdi
callq 0xb183
leaq 0xc0(%rsp), %rdi
callq 0xb183
movl 0x44(%rsp), %edi
movq 0xb8(%rsp), %rax
andb $0x7, %al
shrxl %eax, %edi, %eax
andl $0x1, %eax
testl %r13d, %r13d
je 0x4311
jmp 0x4b33
movq 0x18(%rsp), %rbx
cmpl $0x0, 0x400(%rbx)
je 0x4ab3
movl $0x120, %edx            # imm = 0x120
movq %r12, %rdi
movq %rbx, %rsi
pushq $0xf
popq %rbx
movl %ebx, %ecx
callq 0xb29f
testl %eax, %eax
je 0x4abc
movl %eax, %r13d
jmp 0x4853
pushq $0x40
popq %r13
jmp 0x4858
movq 0x10(%rsp), %r15
leaq 0xc0(%rsp), %rdi
movq %r15, %rsi
pushq $0x20
popq %rdx
movl %ebx, %ecx
callq 0xb29f
movq 0x18(%rsp), %rbx
movl %eax, %r13d
jmp 0x485d
pushq $0x32
jmp 0x4b13
movq 0x18(%rsp), %rbx
cmpl $-0x1, %eax
jne 0x4b0d
movq 0x28(%rsp), %rax
cmpq 0x8(%rsp), %rax
pushq $0xb
popq %r13
movq 0x10(%rsp), %r15
sbbl $0x0, %r13d
jmp 0x485d
pushq $0x10
jmp 0x4ab5
pushq $0x36
popq %r13
jmp 0x4853
pushq $0x34
jmp 0x4b31
xorl %r13d, %r13d
jmp 0x4b33
pushq $0x14
jmp 0x4b31
pushq $0x15
jmp 0x4b31
pushq $0x53
jmp 0x4b31
pushq $0x17
popq %r13
movq 0x58(%rsp), %rax
movq 0x98(%rsp), %rcx
movq %rax, (%rcx)
movq 0xa0(%rsp), %rcx
movq 0x60(%rsp), %rax
movq %rax, (%rcx)
movl %r13d, %eax
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq