// File: /workspace/github_cpp_makefile_star2_O2/lvandeve[P]lodepng/lodepng_unittest.cpp
// Function: testCompressStringZlib(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, bool)
void testCompressStringZlib(const std::string& text, bool compressible) {
  if(text.size() < 500) std::cout << "compress test with text: " << text << std::endl;
  else std::cout << "compress test with text length: " << text.size() << std::endl;

  std::vector<unsigned char> in(text.size());
  for(size_t i = 0; i < text.size(); i++) in[i] = (unsigned char)text[i];
  unsigned char* out = 0;
  size_t outsize = 0;
  unsigned error = 0;

  error = lodepng_zlib_compress(&out, &outsize, in.empty() ? 0 : &in[0], in.size(), &lodepng_default_compress_settings);
  ASSERT_NO_PNG_ERROR(error);
  if(compressible) assertTrue(outsize < in.size());

  unsigned char* out2 = 0;
  size_t outsize2 = 0;

  error = lodepng_zlib_decompress(&out2, &outsize2, out, outsize, &lodepng_default_decompress_settings);
  ASSERT_NO_PNG_ERROR(error);
  ASSERT_EQUALS(outsize2, in.size());
  for(size_t i = 0; i < in.size(); i++) ASSERT_EQUALS(in[i], out2[i]);

  free(out);
  free(out2);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x128, %rsp            # imm = 0x128
movl %esi, %ebx
movq %rdi, %r14
cmpq $0x1f3, 0x8(%rdi)       # imm = 0x1F3
ja 0x1a39a
movq 0x88c57(%rip), %rdi     # 0xa2fd8
leaq 0x46598(%rip), %rsi     # 0x60920
callq 0x21f0
movq %rax, %rdi
movq %r14, %rsi
callq 0x21d0
jmp 0x1a3b9
movq 0x88c37(%rip), %rdi     # 0xa2fd8
leaq 0x46592(%rip), %rsi     # 0x6093a
callq 0x21f0
movq 0x8(%r14), %rsi
movq %rax, %rdi
callq 0x2140
movq %rax, %rdi
callq 0x2100
movq 0x8(%r14), %rsi
leaq 0x10(%rsp), %rdx
movb $0x0, (%rdx)
leaq 0x78(%rsp), %rdi
leaq 0x30(%rsp), %rcx
callq 0x5ab3a
xorl %eax, %eax
cmpq 0x8(%r14), %rax
jae 0x1a3f7
movq (%r14), %rcx
movb (%rcx,%rax), %cl
movq 0x78(%rsp), %rdx
movb %cl, (%rdx,%rax)
incq %rax
jmp 0x1a3de
leaq 0xe0(%rsp), %rdi
andq $0x0, (%rdi)
leaq 0xd8(%rsp), %rsi
andq $0x0, (%rsi)
movq 0x78(%rsp), %rax
movq 0x80(%rsp), %rcx
xorl %edx, %edx
subq %rax, %rcx
cmovneq %rax, %rdx
leaq 0x41e04(%rip), %r8      # 0x5c230
callq 0x4315
movl %eax, %ebp
leaq 0x45da3(%rip), %rsi     # 0x601dd
leaq 0x90(%rsp), %rdi
leaq 0xe8(%rsp), %rdx
callq 0x20c0
leaq 0x46505(%rip), %rdx     # 0x6095b
leaq 0x30(%rsp), %rdi
leaq 0x90(%rsp), %rsi
callq 0x5a5df
leaq 0x47157(%rip), %rsi     # 0x615c6
leaq 0xb0(%rsp), %rdi
leaq 0x50(%rsp), %rdx
callq 0x20c0
movq 0xb8(%rsp), %r14
testq %r14, %r14
je 0x1a4c2
leaq 0x47131(%rip), %rsi     # 0x615c6
leaq 0x108(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x20c0
leaq 0x492f7(%rip), %rsi     # 0x637a5
leaq 0x58(%rsp), %rdi
leaq 0x108(%rsp), %rdx
callq 0x5a8d9
jmp 0x1a4db
leaq 0x470fd(%rip), %rsi     # 0x615c6
leaq 0x58(%rsp), %rdi
leaq 0x108(%rsp), %rdx
callq 0x20c0
leaq 0x10(%rsp), %rdi
leaq 0x30(%rsp), %rsi
leaq 0x58(%rsp), %rdx
callq 0x5a61f
leaq 0x10(%rsp), %rsi
movl %ebp, %edi
callq 0x13352
leaq 0x10(%rsp), %rdi
callq 0x2270
leaq 0x58(%rsp), %rdi
callq 0x2270
testq %r14, %r14
je 0x1a521
leaq 0x108(%rsp), %rdi
callq 0x2270
leaq 0xb0(%rsp), %rdi
callq 0x2270
leaq 0x30(%rsp), %rdi
callq 0x2270
leaq 0x90(%rsp), %rdi
callq 0x2270
testb %bl, %bl
je 0x1a594
movq 0xd8(%rsp), %rbx
movq 0x78(%rsp), %r15
movq 0x80(%rsp), %r14
leaq 0x47061(%rip), %rsi     # 0x615c6
leaq 0x10(%rsp), %rdi
leaq 0x30(%rsp), %rdx
callq 0x20c0
subq %r15, %r14
xorl %edi, %edi
cmpq %r14, %rbx
setb %dil
leaq 0x10(%rsp), %rsi
callq 0x1330f
leaq 0x10(%rsp), %rdi
callq 0x2270
leaq 0x50(%rsp), %rdi
andq $0x0, (%rdi)
leaq 0xd0(%rsp), %rsi
andq $0x0, (%rsi)
movq 0xe0(%rsp), %rdx
movq 0xd8(%rsp), %rcx
leaq 0x41ca0(%rip), %r8      # 0x5c260
callq 0x41da
movl %eax, %ebx
leaq 0x45c0f(%rip), %rsi     # 0x601dd
leaq 0x90(%rsp), %rdi
leaq 0xc(%rsp), %rdx
callq 0x20c0
leaq 0x46379(%rip), %rdx     # 0x60960
leaq 0x30(%rsp), %rdi
leaq 0x90(%rsp), %rsi
callq 0x5a5df
leaq 0x46fc6(%rip), %rsi     # 0x615c6
leaq 0xb0(%rsp), %rdi
leaq 0xe(%rsp), %rdx
callq 0x20c0
movq 0xb8(%rsp), %r14
testq %r14, %r14
je 0x1a653
leaq 0x46fa0(%rip), %rsi     # 0x615c6
leaq 0xe8(%rsp), %rdi
leaq 0xd(%rsp), %rdx
callq 0x20c0
leaq 0x49166(%rip), %rsi     # 0x637a5
leaq 0x58(%rsp), %rdi
leaq 0xe8(%rsp), %rdx
callq 0x5a8d9
jmp 0x1a66c
leaq 0x46f6c(%rip), %rsi     # 0x615c6
leaq 0x58(%rsp), %rdi
leaq 0xe8(%rsp), %rdx
callq 0x20c0
leaq 0x10(%rsp), %rdi
leaq 0x30(%rsp), %rsi
leaq 0x58(%rsp), %rdx
callq 0x5a61f
leaq 0x10(%rsp), %rsi
movl %ebx, %edi
callq 0x13352
leaq 0x10(%rsp), %rdi
callq 0x2270
leaq 0x58(%rsp), %rdi
callq 0x2270
testq %r14, %r14
je 0x1a6b2
leaq 0xe8(%rsp), %rdi
callq 0x2270
leaq 0xb0(%rsp), %rdi
callq 0x2270
leaq 0x30(%rsp), %rdi
callq 0x2270
leaq 0x90(%rsp), %rdi
callq 0x2270
movq 0xd0(%rsp), %rax
movq 0x78(%rsp), %rcx
movq 0x80(%rsp), %rdx
subq %rcx, %rdx
cmpq %rdx, %rax
jne 0x1a8a3
movq 0x50(%rsp), %rdx
negq %rax
xorl %r14d, %r14d
xorl %esi, %esi
cmpq %r14, %rax
je 0x1a71b
movb (%rcx,%rsi), %dil
cmpb (%rdx,%rsi), %dil
jne 0x1a74a
incq %rsi
decq %r14
jmp 0x1a704
movq 0xe0(%rsp), %rdi
callq 0x2260
movq 0x50(%rsp), %rdi
callq 0x2260
leaq 0x78(%rsp), %rdi
callq 0xea7c
addq $0x128, %rsp            # imm = 0x128
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x45a8c(%rip), %rsi     # 0x601dd
leaq 0xb0(%rsp), %rdi
leaq 0xc(%rsp), %rdx
callq 0x20c0
leaq 0x4620a(%rip), %rdx     # 0x60974
leaq 0x58(%rsp), %rdi
leaq 0xb0(%rsp), %rsi
callq 0x5a5df
leaq 0x49022(%rip), %rdx     # 0x637a5
leaq 0x90(%rsp), %rdi
leaq 0x58(%rsp), %rsi
callq 0x5a5df
leaq 0x461dd(%rip), %rdx     # 0x60979
leaq 0x30(%rsp), %rdi
leaq 0x90(%rsp), %rsi
callq 0x5a5df
leaq 0x45a70(%rip), %rdx     # 0x60225
leaq 0x10(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0x5a5df
movq 0x8880d(%rip), %rdi     # 0xa2fd8
leaq 0x10(%rsp), %rsi
callq 0x21d0
leaq 0x10(%rsp), %rdi
callq 0x2270
leaq 0x30(%rsp), %rdi
callq 0x2270
leaq 0x90(%rsp), %rdi
callq 0x2270
leaq 0x58(%rsp), %rdi
callq 0x2270
leaq 0xb0(%rsp), %rdi
callq 0x2270
movq 0x887c4(%rip), %rdi     # 0xa2fd8
leaq 0x6e6f2(%rip), %rsi     # 0x88f0d
callq 0x21f0
movq %rax, %rbx
movq 0x78(%rsp), %rsi
subq %r14, %rsi
leaq 0x10(%rsp), %rdi
callq 0x132a0
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0x21d0
leaq 0x459f4(%rip), %rsi     # 0x6023d
movq %rax, %rdi
callq 0x21f0
movq %rax, %rbx
movq 0x50(%rsp), %rsi
subq %r14, %rsi
leaq 0x30(%rsp), %rdi
callq 0x132a0
leaq 0x30(%rsp), %rsi
movq %rbx, %rdi
callq 0x21d0
leaq 0x458aa(%rip), %rsi     # 0x60124
movq %rax, %rdi
callq 0x21f0
movq %rax, %rdi
callq 0x2100
leaq 0x30(%rsp), %rdi
callq 0x2270
leaq 0x10(%rsp), %rdi
callq 0x2270
callq 0x13280
leaq 0x45933(%rip), %rsi     # 0x601dd
leaq 0xb0(%rsp), %rdi
leaq 0xc(%rsp), %rdx
callq 0x20c0
leaq 0x460a2(%rip), %rdx     # 0x60965
leaq 0x58(%rsp), %rdi
leaq 0xb0(%rsp), %rsi
callq 0x5a5df
leaq 0x48ec9(%rip), %rdx     # 0x637a5
leaq 0x90(%rsp), %rdi
leaq 0x58(%rsp), %rsi
callq 0x5a5df
leaq 0x46075(%rip), %rdx     # 0x6096a
leaq 0x30(%rsp), %rdi
leaq 0x90(%rsp), %rsi
callq 0x5a5df
leaq 0x45917(%rip), %rdx     # 0x60225
leaq 0x10(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0x5a5df
movq 0x886b4(%rip), %rdi     # 0xa2fd8
leaq 0x10(%rsp), %rsi
callq 0x21d0
leaq 0x10(%rsp), %rdi
callq 0x2270
leaq 0x30(%rsp), %rdi
callq 0x2270
leaq 0x90(%rsp), %rdi
callq 0x2270
leaq 0x58(%rsp), %rdi
callq 0x2270
leaq 0xb0(%rsp), %rdi
callq 0x2270
movq 0x8866b(%rip), %rdi     # 0xa2fd8
leaq 0x6e599(%rip), %rsi     # 0x88f0d
callq 0x21f0
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
leaq 0xd0(%rsp), %rsi
callq 0x5a86b
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0x21d0
leaq 0x4589b(%rip), %rsi     # 0x6023d
movq %rax, %rdi
callq 0x21f0
movq %rax, %rbx
movq 0x80(%rsp), %rax
subq 0x78(%rsp), %rax
leaq 0x90(%rsp), %rsi
movq %rax, (%rsi)
leaq 0x30(%rsp), %rdi
callq 0x5a86b
leaq 0x30(%rsp), %rsi
movq %rbx, %rdi
callq 0x21d0
leaq 0x45741(%rip), %rsi     # 0x60124
movq %rax, %rdi
callq 0x21f0
movq %rax, %rdi
callq 0x2100
leaq 0x30(%rsp), %rdi
callq 0x2270
leaq 0x10(%rsp), %rdi
callq 0x2270
callq 0x13280
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x2270
jmp 0x1aa20
jmp 0x1aa1d
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x2270
jmp 0x1ac32
jmp 0x1ac2f
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x2270
jmp 0x1aa48
jmp 0x1aa45
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x2270
jmp 0x1ac32
jmp 0x1ac2f
jmp 0x1ac2f
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x2270
jmp 0x1aa73
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x2270
jmp 0x1aa82
movq %rax, %rbx
leaq 0x90(%rsp), %rdi
callq 0x2270
jmp 0x1aa94
movq %rax, %rbx
leaq 0x58(%rsp), %rdi
callq 0x2270
jmp 0x1aaa3
movq %rax, %rbx
leaq 0xb0(%rsp), %rdi
callq 0x2270
jmp 0x1ac32
jmp 0x1ab44
jmp 0x1ab49
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x2270
jmp 0x1ab35
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x2270
jmp 0x1ac32
jmp 0x1ac2f
movq %rax, %rbx
jmp 0x1ab72
movq %rax, %rbx
jmp 0x1abc9
movq %rax, %rbx
jmp 0x1ab6d
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x2270
jmp 0x1ab63
jmp 0x1ac2f
movq %rax, %rbx
jmp 0x1abc4
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x2270
jmp 0x1abba
jmp 0x1ac2f
jmp 0x1ac2f
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x2270
jmp 0x1abff
movq %rax, %rbx
jmp 0x1ab7f
movq %rax, %rbx
jmp 0x1abd6
jmp 0x1ac2f
movq %rax, %rbx
jmp 0x1ab96
movq %rax, %rbx
jmp 0x1ab8c
movq %rax, %rbx
leaq 0x58(%rsp), %rdi
callq 0x2270
testq %r14, %r14
je 0x1ab7f
leaq 0xe8(%rsp), %rdi
callq 0x2270
leaq 0xb0(%rsp), %rdi
callq 0x2270
leaq 0x30(%rsp), %rdi
callq 0x2270
leaq 0x90(%rsp), %rdi
callq 0x2270
jmp 0x1ac32
jmp 0x1ac2f
movq %rax, %rbx
jmp 0x1abed
movq %rax, %rbx
jmp 0x1abe3
movq %rax, %rbx
leaq 0x58(%rsp), %rdi
callq 0x2270
testq %r14, %r14
je 0x1abd6
leaq 0x108(%rsp), %rdi
callq 0x2270
leaq 0xb0(%rsp), %rdi
callq 0x2270
leaq 0x30(%rsp), %rdi
callq 0x2270
leaq 0x90(%rsp), %rdi
callq 0x2270
jmp 0x1ac32
movq %rax, %rbx
leaq 0x90(%rsp), %rdi
callq 0x2270
jmp 0x1ac11
movq %rax, %rbx
leaq 0x58(%rsp), %rdi
callq 0x2270
jmp 0x1ac20
movq %rax, %rbx
leaq 0xb0(%rsp), %rdi
callq 0x2270
jmp 0x1ac32
movq %rax, %rbx
leaq 0x78(%rsp), %rdi
callq 0xea7c
movq %rbx, %rdi
callq 0x2380
movq %rax, %rdi
callq 0xe6cc