// File: /workspace/github_c_makefile_star2_O2/Joy-Division[P]tools-mgs/lodepng/lodepng.c
// Function: lodepng_inflate
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, 0xa0(%rsp)
movq (%rdi), %rax
movq %rsi, 0xa8(%rsp)
movq (%rsi), %rsi
leaq 0x58(%rsp), %rdi
movq %rax, (%rdi)
movq %rsi, 0x8(%rdi)
movq %rsi, 0x10(%rdi)
movq %rsp, %rax
andq $0x0, (%rax)
movq %rcx, 0xb8(%rsp)
leaq (,%rcx,8), %rax
movq %rax, 0x28(%rsp)
movq %rdx, 0x20(%rsp)
leaq 0x4(%rdx), %rax
movq %rax, 0xb0(%rsp)
leaq 0x70(%rsp), %r12
xorl %ebp, %ebp
xorl %edi, %edi
testl %edi, %edi
jne 0x2185
movq (%rsp), %rax
leaq 0x2(%rax), %rcx
cmpq 0x28(%rsp), %rcx
jae 0x2181
movq %rax, %rdx
shrq $0x3, %rdx
movq 0x20(%rsp), %rdi
movzbl (%rdi,%rdx), %edx
movl %eax, %esi
andl $0x7, %esi
btl %esi, %edx
setb %r13b
leaq 0x1(%rax), %rdx
movq %rdx, %rsi
shrq $0x3, %rsi
movzbl (%rdi,%rsi), %esi
andl $0x7, %edx
btl %edx, %esi
setb %sil
movq %rcx, %rdx
shrq $0x3, %rdx
movb (%rdi,%rdx), %dl
andb $0x7, %cl
shrb %cl, %dl
leaq 0x3(%rax), %rbx
movq %rbx, (%rsp)
addb %dl, %dl
andb $0x2, %dl
orb %sil, %dl
testb %dl, %dl
movb %r13b, 0xf(%rsp)
je 0x1a7a
movzbl %dl, %ecx
cmpl $0x3, %ecx
je 0x218a
xorps %xmm0, %xmm0
movaps %xmm0, 0x70(%rsp)
andq $0x0, 0x80(%rsp)
movaps %xmm0, 0xc0(%rsp)
andq $0x0, 0xd0(%rsp)
cmpb $0x2, %dl
je 0x1b22
xorl %r13d, %r13d
cmpl $0x1, %ecx
jne 0x1eff
movq %r12, %rdi
callq 0x81a5
leaq 0xc0(%rsp), %rdi
callq 0x824d
jmp 0x1eff
pushq $0x5
popq %rcx
subl %eax, %ecx
andl $0x7, %ecx
addq %rcx, %rbx
shrq $0x3, %rbx
leaq 0x4(%rbx), %r15
movq 0xb8(%rsp), %r12
cmpq %r12, %r15
jae 0x2181
movq 0x20(%rsp), %rcx
movzwl (%rcx,%rbx), %eax
movzwl 0x2(%rcx,%rbx), %ecx
addl %eax, %ecx
cmpl $0xffff, %ecx           # imm = 0xFFFF
jne 0x218e
movl %eax, %r14d
leaq (%r14,%rbp), %rsi
leaq 0x58(%rsp), %rdi
callq 0x8080
testl %eax, %eax
je 0x2192
addq %r14, %r15
cmpq %r12, %r15
ja 0x2196
movq 0x58(%rsp), %rcx
leaq 0x20(,%rbx,8), %rax
addq 0xb0(%rsp), %rbx
xorl %edx, %edx
leaq 0x70(%rsp), %r12
xorl %edi, %edi
cmpl %edx, %r14d
je 0x1b16
movb (%rbx,%rdx), %sil
movb %sil, (%rcx,%rbp)
incq %rbp
addq $0x8, %rax
incq %rdx
jmp 0x1afd
movq %rax, (%rsp)
xorl %r13d, %r13d
jmp 0x20d7
addq $0x11, %rax
pushq $0x31
popq %r13
cmpq 0x28(%rsp), %rax
ja 0x1eff
movq %rsp, %r14
movq %r14, %rdi
movq 0x20(%rsp), %rbx
movq %rbx, %rsi
pushq $0x5
popq %r15
movq %r15, %rdx
callq 0x8148
movq %rax, 0x38(%rsp)
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x8148
movq %rax, 0x30(%rsp)
movq %r14, %rdi
movq %rbx, %rsi
pushq $0x4
popq %rdx
callq 0x8148
movl %eax, %ebx
addl $0x4, %ebx
leal (%rbx,%rbx,2), %eax
addq (%rsp), %rax
pushq $0x32
popq %r13
cmpq 0x28(%rsp), %rax
ja 0x1eff
xorps %xmm0, %xmm0
movaps %xmm0, 0xe0(%rsp)
andq $0x0, 0xf0(%rsp)
pushq $0x4c
popq %rdi
callq 0x10f0
movq %rax, %r14
testq %rax, %rax
je 0x1c3b
movq 0x38(%rsp), %rax
addl $0x101, %eax            # imm = 0x101
movl %eax, 0x44(%rsp)
movq 0x30(%rsp), %rax
incl %eax
movq %rax, 0x30(%rsp)
movl %ebx, %ebx
leaq 0x9be5(%rip), %r15      # 0xb7c0
xorl %r12d, %r12d
pushq $0x3
popq %r13
cmpq $0x13, %r12
je 0x1c0f
xorl %eax, %eax
cmpq %rbx, %r12
jae 0x1bff
movq %rsp, %rdi
movq 0x20(%rsp), %rsi
movq %r13, %rdx
callq 0x8148
movl (%r15), %ecx
movl %eax, (%r14,%rcx,4)
incq %r12
addq $0x4, %r15
jmp 0x1be2
leaq 0xe0(%rsp), %rdi
movq %r14, %rsi
pushq $0x13
popq %rdx
pushq $0x7
popq %rcx
callq 0x82a2
testl %eax, %eax
je 0x1c49
movl %eax, %r13d
xorl %ebx, %ebx
xorl %r15d, %r15d
leaq 0x70(%rsp), %r12
jmp 0x1eda
pushq $0x53
popq %r13
xorl %ebx, %ebx
xorl %r15d, %r15d
jmp 0x1eda
movl $0x480, %edi            # imm = 0x480
callq 0x10f0
movq %rax, %rbx
movl $0x80, %edi
callq 0x10f0
testq %rbx, %rbx
sete %dl
testq %rax, %rax
sete %cl
orb %dl, %cl
leaq 0x70(%rsp), %r12
jne 0x1c89
xorl %ecx, %ecx
cmpq $0x120, %rcx            # imm = 0x120
je 0x1c95
andl $0x0, (%rbx,%rcx,4)
incq %rcx
jmp 0x1c77
pushq $0x53
popq %r13
movq %rax, %r15
jmp 0x1eda
xorl %ecx, %ecx
cmpq $0x20, %rcx
je 0x1ca6
andl $0x0, (%rax,%rcx,4)
incq %rcx
jmp 0x1c97
movq %rax, 0x10(%rsp)
movq 0x30(%rsp), %rax
movl 0x44(%rsp), %ecx
addl %ecx, %eax
movq %rax, 0x30(%rsp)
movq 0x38(%rsp), %rdx
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, 0x98(%rsp)
movl $0xfffffeff, %eax       # imm = 0xFFFFFEFF
subl %edx, %eax
movq %rax, 0x38(%rsp)
xorl %r15d, %r15d
xorl %r13d, %r13d
movq %rbx, 0x18(%rsp)
movl %r15d, %r15d
leaq (%rbx,%r15,4), %rbx
cmpl 0x30(%rsp), %r15d
jae 0x1ec7
movq 0x20(%rsp), %rdi
movq %rsp, %rsi
leaq 0xe0(%rsp), %rdx
movq 0x28(%rsp), %rcx
callq 0x80ee
cmpl $0xf, %eax
ja 0x1d53
movl 0x44(%rsp), %ecx
cmpl %ecx, %r15d
movl $0x0, %edx
cmovbl %edx, %ecx
movq 0x10(%rsp), %rdx
cmovbq 0x18(%rsp), %rdx
movl %r15d, %esi
subl %ecx, %esi
movl %eax, (%rdx,%rsi,4)
incq %r15
addq $0x4, %rbx
jmp 0x1cfe
cmpl $0x10, %eax
je 0x1dca
cmpl $0x11, %eax
je 0x1e59
cmpl $0x12, %eax
jne 0x214f
movq (%rsp), %rax
addq $0x7, %rax
cmpq 0x28(%rsp), %rax
ja 0x214b
movq %rsp, %rdi
movq 0x20(%rsp), %rsi
pushq $0x7
popq %rdx
callq 0x8148
addl $0xb, %eax
movq 0x10(%rsp), %rdx
subl $0x1, %eax
jb 0x1ebd
cmpq %r15, 0x30(%rsp)
je 0x1eb1
movq 0x38(%rsp), %rcx
addl %r15d, %ecx
cmpq 0x48(%rsp), %r15
leaq (%rdx,%rcx,4), %rcx
cmovbq %rbx, %rcx
andl $0x0, (%rcx)
incq %r15
addq $0x4, %rbx
jmp 0x1d95
testl %r15d, %r15d
je 0x2178
movq (%rsp), %rax
addq $0x2, %rax
cmpq 0x28(%rsp), %rax
ja 0x214b
movq %rsp, %rdi
movq 0x20(%rsp), %rsi
pushq $0x2
popq %rdx
callq 0x8148
addl $0x3, %eax
leal -0x1(%r15), %ecx
movq 0x98(%rsp), %rdx
addl %r15d, %edx
cmpl 0x54(%rsp), %r15d
movq 0x18(%rsp), %rsi
leaq (%rsi,%rcx,4), %rcx
movq 0x10(%rsp), %rsi
leaq (%rsi,%rdx,4), %rdx
cmovbq %rcx, %rdx
movl (%rdx), %ecx
subl $0x1, %eax
jb 0x1ebd
cmpq %r15, 0x30(%rsp)
je 0x1eb9
movq 0x38(%rsp), %rdx
addl %r15d, %edx
cmpq 0x48(%rsp), %r15
leaq (%rsi,%rdx,4), %rdx
cmovbq %rbx, %rdx
movl %ecx, (%rdx)
incq %r15
addq $0x4, %rbx
jmp 0x1e25
movq (%rsp), %rax
addq $0x3, %rax
cmpq 0x28(%rsp), %rax
ja 0x214b
movq %rsp, %rdi
movq 0x20(%rsp), %rsi
pushq $0x3
popq %rdx
callq 0x8148
addl $0x3, %eax
movq 0x10(%rsp), %rdx
subl $0x1, %eax
jb 0x1ebd
cmpq %r15, 0x30(%rsp)
je 0x1eb5
movq 0x38(%rsp), %rcx
addl %r15d, %ecx
cmpq 0x48(%rsp), %r15
leaq (%rdx,%rcx,4), %rcx
cmovbq %rbx, %rcx
andl $0x0, (%rcx)
incq %r15
addq $0x4, %rbx
jmp 0x1e84
pushq $0xf
jmp 0x1ebb
pushq $0xe
jmp 0x1ebb
pushq $0xd
popq %r13
movq 0x18(%rsp), %rbx
jmp 0x1cf7
testl %r13d, %r13d
je 0x20ec
movq 0x18(%rsp), %rbx
movq 0x10(%rsp), %r15
movq %r14, %rdi
callq 0x1030
movq %rbx, %rdi
callq 0x1030
movq %r15, %rdi
callq 0x1030
leaq 0xe0(%rsp), %rdi
callq 0x8186
testl %r13d, %r13d
jne 0x20c0
movq 0x20(%rsp), %rdi
movq %rsp, %rsi
movq %r12, %rdx
movq 0x28(%rsp), %r13
movq %r13, %rcx
callq 0x80ee
movl %eax, %r14d
cmpl $0xff, %eax
ja 0x1f54
leaq 0x1(%rbp), %rbx
leaq 0x58(%rsp), %rdi
movq %rbx, %rsi
callq 0x8080
testl %eax, %eax
je 0x2082
movq 0x58(%rsp), %rax
movb %r14b, (%rax,%rbp)
xorl %r13d, %r13d
movq %rbx, %rbp
jmp 0x1eff
cmpl $0x100, %r14d           # imm = 0x100
je 0x2086
cmpl $0x11d, %r14d           # imm = 0x11D
ja 0x2086
addl $0xfffffeff, %r14d      # imm = 0xFFFFFEFF
leaq 0x96c4(%rip), %rax      # 0xb640
movl (%rax,%r14,4), %edx
movq (%rsp), %rax
addq %rdx, %rax
cmpq %r13, %rax
ja 0x20a5
leaq 0x9629(%rip), %rax      # 0xb5c0
movl (%rax,%r14,4), %r12d
movq %rsp, %r15
movq %r15, %rdi
movq 0x20(%rsp), %rbx
movq %rbx, %rsi
callq 0x8148
movl %eax, %r14d
movq %rbx, %rdi
movq %r15, %rsi
leaq 0xc0(%rsp), %rdx
movq %r13, %rcx
callq 0x80ee
cmpl $0x1d, %eax
ja 0x20ab
movl %eax, %r15d
leaq 0x9766(%rip), %rax      # 0xb740
movl (%rax,%r15,4), %edx
movq (%rsp), %rax
addq %rdx, %rax
cmpq %r13, %rax
ja 0x20af
movq %rsp, %rdi
movq 0x20(%rsp), %rsi
callq 0x8148
movl %eax, %ebx
leaq 0x96bc(%rip), %rax      # 0xb6c0
addl (%rax,%r15,4), %ebx
movq %rbp, %r15
subq %rbx, %r15
jb 0x20b3
movl %r14d, %r13d
addq %r12, %r13
movq %r13, %r14
addq %rbp, %r14
leaq 0x58(%rsp), %rdi
movq %r14, %rsi
callq 0x8080
testl %eax, %eax
je 0x20b7
movq 0x58(%rsp), %rax
cmpq %rbx, %r13
leaq 0x70(%rsp), %r12
jbe 0x205b
movq %rax, %rcx
subq %rbx, %rcx
subq $0x1, %r13
jb 0x207a
movb (%rcx,%rbp), %dl
movb %dl, (%rax,%rbp)
incq %rbp
jmp 0x204a
addq %rax, %rbp
addq %rax, %r15
movq %rbp, %rdi
movq %r15, %rsi
movq %r13, %rdx
callq 0x10e0
xorl %r13d, %r13d
movq %r14, %rbp
jmp 0x1eff
xorl %r13d, %r13d
jmp 0x1eff
pushq $0x53
jmp 0x20a7
xorl %r13d, %r13d
cmpl $0x100, %r14d           # imm = 0x100
je 0x20c0
movq 0x28(%rsp), %rax
cmpq (%rsp), %rax
pushq $0xb
popq %r13
sbbl $0x0, %r13d
jmp 0x20c0
pushq $0x33
popq %r13
jmp 0x20c0
pushq $0x12
jmp 0x20b9
pushq $0x33
jmp 0x20b9
pushq $0x34
jmp 0x20b9
pushq $0x53
popq %r13
leaq 0x70(%rsp), %r12
movq %r12, %rdi
callq 0x8186
leaq 0xc0(%rsp), %rdi
callq 0x8186
xorl %edi, %edi
movb 0xf(%rsp), %al
movb %al, %dil
testl %r13d, %r13d
je 0x19a5
jmp 0x219a
movq 0x18(%rsp), %rsi
cmpl $0x0, 0x400(%rsi)
pushq $0xf
popq %rbx
je 0x2118
movl $0x120, %edx            # imm = 0x120
movq %r12, %rdi
movl %ebx, %ecx
callq 0x82a2
testl %eax, %eax
je 0x2124
movl %eax, %r13d
jmp 0x1ed0
pushq $0x40
popq %r13
movq %rsi, %rbx
jmp 0x1ed5
leaq 0xc0(%rsp), %rdi
movq 0x10(%rsp), %r15
movq %r15, %rsi
pushq $0x20
popq %rdx
movl %ebx, %ecx
callq 0x82a2
movl %eax, %r13d
movq 0x18(%rsp), %rbx
jmp 0x1eda
pushq $0x32
jmp 0x217a
cmpl $-0x1, %eax
movq 0x18(%rsp), %rbx
jne 0x216f
movq 0x28(%rsp), %rax
cmpq (%rsp), %rax
pushq $0xb
popq %r13
sbbl $0x0, %r13d
jmp 0x1ed5
pushq $0x10
popq %r13
jmp 0x1ed5
pushq $0x36
popq %r13
jmp 0x1ed0
pushq $0x34
jmp 0x2198
xorl %r13d, %r13d
jmp 0x219a
pushq $0x14
jmp 0x2198
pushq $0x15
jmp 0x2198
pushq $0x53
jmp 0x2198
pushq $0x17
popq %r13
movq 0x58(%rsp), %rax
movq 0xa0(%rsp), %rcx
movq %rax, (%rcx)
movq 0x60(%rsp), %rax
movq 0xa8(%rsp), %rcx
movq %rax, (%rcx)
movl %r13d, %eax
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq