// File: /workspace/github_cpp_makefile_star2_O1/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 %r13
pushq %r12
pushq %rbx
subq $0x118, %rsp            # imm = 0x118
movl %esi, %ebx
movq %rdi, %r14
cmpq $0x1f3, 0x8(%rdi)       # imm = 0x1F3
ja 0x1ef3e
movq 0x950bf(%rip), %r15     # 0xb3fd8
leaq 0x57980(%rip), %rsi     # 0x768a0
movl $0x19, %edx
movq %r15, %rdi
callq 0x2270
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq %r15, %rdi
callq 0x2270
jmp 0x1ef65
movq 0x95093(%rip), %r15     # 0xb3fd8
leaq 0x5796e(%rip), %rsi     # 0x768ba
movl $0x20, %edx
movq %r15, %rdi
callq 0x2270
movq 0x8(%r14), %rsi
movq %r15, %rdi
callq 0x2150
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x2210
movsbl %al, %esi
movq %r15, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2160
movq 0x8(%r14), %rsi
leaq 0x20(%rsp), %rdx
movb $0x0, (%rdx)
leaq 0xa0(%rsp), %rdi
movq %rsp, %rcx
callq 0x70602
cmpq $0x0, 0x8(%r14)
je 0x1efce
xorl %eax, %eax
movq (%r14), %rcx
movb (%rcx,%rax), %cl
movq 0xa0(%rsp), %rdx
movb %cl, (%rdx,%rax)
incq %rax
cmpq 0x8(%r14), %rax
jb 0x1efb4
xorl %eax, %eax
leaq 0xd0(%rsp), %rdi
movq %rax, (%rdi)
leaq 0xc8(%rsp), %rsi
movq %rax, (%rsi)
movq 0xa0(%rsp), %rdx
movq 0xa8(%rsp), %rcx
subq %rdx, %rcx
cmoveq %rax, %rdx
leaq 0x53214(%rip), %r8      # 0x72218
callq 0x4b3d
movl %eax, %ebp
leaq 0x70(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x57141(%rip), %rsi     # 0x7615d
leaq 0x5713f(%rip), %rdx     # 0x76162
leaq 0x60(%rsp), %rdi
callq 0x1517a
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x60(%rsp), %rsi
movq 0x68(%rsp), %rdx
addq %rsi, %rdx
movq %rsp, %rdi
callq 0x15390
leaq 0x57889(%rip), %rsi     # 0x768db
movq %rsp, %rdi
callq 0x23d0
leaq 0x50(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x584dc(%rip), %rdx     # 0x77546
leaq 0x40(%rsp), %rdi
movq %rdx, %rsi
callq 0x1517a
movq 0x48(%rsp), %r14
testq %r14, %r14
setne %r13b
je 0x1f0c6
leaq 0x108(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x584ae(%rip), %rdx     # 0x77546
leaq 0xf8(%rsp), %rdi
movq %rdx, %rsi
callq 0x1517a
leaq 0x5a676(%rip), %rsi     # 0x79725
leaq 0x80(%rsp), %rdi
leaq 0xf8(%rsp), %rdx
callq 0x702b8
jmp 0x1f0e9
leaq 0x90(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x5846d(%rip), %rdx     # 0x77546
leaq 0x80(%rsp), %rdi
movq %rdx, %rsi
callq 0x1517a
leaq 0x20(%rsp), %rdi
movq %rsp, %rsi
leaq 0x80(%rsp), %rdx
callq 0x6feec
leaq 0x20(%rsp), %rsi
movl %ebp, %edi
callq 0x16534
leaq 0x30(%rsp), %r13
movq -0x10(%r13), %rdi
cmpq %r13, %rdi
je 0x1f11d
callq 0x2200
leaq 0x90(%rsp), %rbp
movq -0x10(%rbp), %rdi
cmpq %rbp, %rdi
je 0x1f133
callq 0x2200
testq %r14, %r14
je 0x1f14e
leaq 0x108(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1f14e
callq 0x2200
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x1f162
callq 0x2200
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x1f170
callq 0x2200
movq 0x60(%rsp), %rdi
cmpq %r12, %rdi
je 0x1f17f
callq 0x2200
testb %bl, %bl
je 0x1f1dc
movq 0xc8(%rsp), %rbx
movq 0xa0(%rsp), %r15
movq 0xa8(%rsp), %r14
leaq 0x20(%rsp), %rdi
movq %r13, (%rdi)
leaq 0x5839c(%rip), %rdx     # 0x77546
movq %rdx, %rsi
callq 0x1517a
subq %r15, %r14
xorl %edi, %edi
cmpq %r14, %rbx
setb %dil
leaq 0x20(%rsp), %rsi
callq 0x164c1
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
leaq 0x10(%rsp), %r15
je 0x1f1dc
callq 0x2200
xorl %eax, %eax
leaq 0xb8(%rsp), %rdi
movq %rax, (%rdi)
leaq 0xc0(%rsp), %rsi
movq %rax, (%rsi)
movq 0xd0(%rsp), %rdx
movq 0xc8(%rsp), %rcx
leaq 0x5303d(%rip), %r8      # 0x72248
callq 0x49ed
movl %eax, %ebx
leaq 0x60(%rsp), %rdi
movq %r12, (%rdi)
leaq 0x56f3c(%rip), %rsi     # 0x7615d
leaq 0x56f3a(%rip), %rdx     # 0x76162
callq 0x1517a
movq %rsp, %rdi
movq %r15, (%rdi)
movq 0x60(%rsp), %rsi
movq 0x68(%rsp), %rdx
addq %rsi, %rdx
callq 0x15390
leaq 0x57694(%rip), %rsi     # 0x768e0
movq %rsp, %rdi
callq 0x23d0
leaq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
movq %rax, (%rdi)
leaq 0x582de(%rip), %rdx     # 0x77546
movq %rdx, %rsi
callq 0x1517a
movq 0x48(%rsp), %r15
testq %r15, %r15
setne %r14b
je 0x1f2bf
leaq 0xe8(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x582b5(%rip), %rdx     # 0x77546
leaq 0xd8(%rsp), %rdi
movq %rdx, %rsi
callq 0x1517a
leaq 0x5a47d(%rip), %rsi     # 0x79725
leaq 0x80(%rsp), %rdi
leaq 0xd8(%rsp), %rdx
callq 0x702b8
jmp 0x1f2d9
leaq 0x80(%rsp), %rdi
movq %rbp, (%rdi)
leaq 0x58275(%rip), %rdx     # 0x77546
movq %rdx, %rsi
callq 0x1517a
leaq 0x20(%rsp), %rdi
movq %rsp, %rsi
leaq 0x80(%rsp), %rdx
callq 0x6feec
leaq 0x20(%rsp), %rsi
movl %ebx, %edi
callq 0x16534
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
je 0x1f309
callq 0x2200
movq 0x80(%rsp), %rdi
cmpq %rbp, %rdi
je 0x1f31b
callq 0x2200
testq %r15, %r15
leaq 0x10(%rsp), %rbx
je 0x1f33b
leaq 0xe8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1f33b
callq 0x2200
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x1f34f
callq 0x2200
movq (%rsp), %rdi
cmpq %rbx, %rdi
je 0x1f35d
callq 0x2200
movq 0x60(%rsp), %rdi
cmpq %r12, %rdi
je 0x1f36c
callq 0x2200
movq 0xa0(%rsp), %rax
movq 0xa8(%rsp), %rcx
movq %rcx, %rsi
subq %rax, %rsi
cmpq %rsi, 0xc0(%rsp)
jne 0x1f644
cmpq %rax, %rcx
je 0x1f3c2
movq 0xb8(%rsp), %rcx
xorl %ebx, %ebx
cmpq $0x1, %rsi
movl $0x0, %edx
sbbq %rsi, %rdx
xorl %esi, %esi
movb (%rax,%rsi), %dil
cmpb (%rcx,%rsi), %dil
jne 0x1f400
incq %rsi
decq %rbx
cmpq %rbx, %rdx
jne 0x1f3ad
movq 0xd0(%rsp), %rdi
callq 0x2290
movq 0xb8(%rsp), %rdi
callq 0x2290
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
je 0x1f3ee
callq 0x2200
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
movq %rax, (%rdi)
leaq 0x56d49(%rip), %rsi     # 0x7615d
leaq 0x56d47(%rip), %rdx     # 0x76162
callq 0x1517a
leaq 0x80(%rsp), %rdi
movq %rbp, (%rdi)
movq 0x40(%rsp), %rsi
movq 0x48(%rsp), %rdx
addq %rsi, %rdx
callq 0x15390
leaq 0x574b0(%rip), %rsi     # 0x768f4
leaq 0x80(%rsp), %rdi
callq 0x23d0
leaq 0x60(%rsp), %rdi
movq %r12, (%rdi)
movq 0x80(%rsp), %rsi
movq 0x88(%rsp), %rdx
addq %rsi, %rdx
callq 0x15390
leaq 0x5a2ad(%rip), %rsi     # 0x79725
leaq 0x60(%rsp), %rdi
callq 0x23d0
movq %rsp, %rdi
leaq 0x10(%rsp), %rax
movq %rax, (%rdi)
movq 0x60(%rsp), %rsi
movq 0x68(%rsp), %rdx
addq %rsi, %rdx
callq 0x15390
leaq 0x57453(%rip), %rsi     # 0x768f9
movq %rsp, %rdi
callq 0x23d0
leaq 0x20(%rsp), %rdi
movq %r13, (%rdi)
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
addq %rsi, %rdx
callq 0x15390
leaq 0x56cd7(%rip), %rsi     # 0x761a5
leaq 0x20(%rsp), %rdi
callq 0x23d0
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
movq 0x94aef(%rip), %rdi     # 0xb3fd8
callq 0x2270
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
je 0x1f4fd
callq 0x2200
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x1f510
callq 0x2200
movq 0x60(%rsp), %rdi
cmpq %r12, %rdi
je 0x1f51f
callq 0x2200
movq 0x80(%rsp), %rdi
cmpq %rbp, %rdi
je 0x1f531
callq 0x2200
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x1f545
callq 0x2200
movq 0x94a8c(%rip), %rdi     # 0xb3fd8
leaq 0x7f93a(%rip), %rsi     # 0x9ee8d
movl $0x9, %edx
callq 0x2270
movq 0xa0(%rsp), %rsi
subq %rbx, %rsi
leaq 0x20(%rsp), %rdi
callq 0x16452
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
movq 0x94a55(%rip), %rdi     # 0xb3fd8
callq 0x2270
movq %rax, %r15
leaq 0x56c2b(%rip), %rsi     # 0x761bd
movl $0x9, %edx
movq %rax, %rdi
callq 0x2270
movq 0xb8(%rsp), %rsi
subq %rbx, %rsi
movq %rsp, %rdi
callq 0x16452
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq %r15, %rdi
callq 0x2270
movq %rax, %rbx
leaq 0x56ad7(%rip), %rsi     # 0x760a4
movl $0x2, %edx
movq %rax, %rdi
callq 0x2270
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2210
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2160
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x1f614
callq 0x2200
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
je 0x1f623
callq 0x2200
movl $0x4, %edi
callq 0x2120
movl $0x1, (%rax)
movq 0x9497e(%rip), %rsi     # 0xb3fb8
movq %rax, %rdi
xorl %edx, %edx
callq 0x2380
leaq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
movq %rax, (%rdi)
leaq 0x56b05(%rip), %rsi     # 0x7615d
leaq 0x56b03(%rip), %rdx     # 0x76162
callq 0x1517a
leaq 0x80(%rsp), %rdi
movq %rbp, (%rdi)
movq 0x40(%rsp), %rsi
movq 0x48(%rsp), %rdx
addq %rsi, %rdx
callq 0x15390
leaq 0x5725d(%rip), %rsi     # 0x768e5
leaq 0x80(%rsp), %rdi
callq 0x23d0
leaq 0x60(%rsp), %rdi
movq %r12, (%rdi)
movq 0x80(%rsp), %rsi
movq 0x88(%rsp), %rdx
addq %rsi, %rdx
callq 0x15390
leaq 0x5a069(%rip), %rsi     # 0x79725
leaq 0x60(%rsp), %rdi
callq 0x23d0
movq %rsp, %rdi
leaq 0x10(%rsp), %rax
movq %rax, (%rdi)
movq 0x60(%rsp), %rsi
movq 0x68(%rsp), %rdx
addq %rsi, %rdx
callq 0x15390
leaq 0x57200(%rip), %rsi     # 0x768ea
movq %rsp, %rdi
callq 0x23d0
leaq 0x20(%rsp), %rdi
movq %r13, (%rdi)
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
addq %rsi, %rdx
callq 0x15390
leaq 0x56a93(%rip), %rsi     # 0x761a5
leaq 0x20(%rsp), %rdi
callq 0x23d0
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
movq 0x948ab(%rip), %rdi     # 0xb3fd8
callq 0x2270
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
je 0x1f741
callq 0x2200
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x1f754
callq 0x2200
movq 0x60(%rsp), %rdi
cmpq %r12, %rdi
je 0x1f763
callq 0x2200
movq 0x80(%rsp), %rdi
cmpq %rbp, %rdi
je 0x1f775
callq 0x2200
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x1f789
callq 0x2200
movq 0x94848(%rip), %rdi     # 0xb3fd8
leaq 0x7f6f6(%rip), %rsi     # 0x9ee8d
movl $0x9, %edx
callq 0x2270
leaq 0x20(%rsp), %rdi
leaq 0xc0(%rsp), %rsi
callq 0x7024a
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
movq 0x94814(%rip), %rdi     # 0xb3fd8
callq 0x2270
movq %rax, %rbx
leaq 0x569ea(%rip), %rsi     # 0x761bd
movl $0x9, %edx
movq %rax, %rdi
callq 0x2270
movq 0xa8(%rsp), %rax
subq 0xa0(%rsp), %rax
leaq 0x60(%rsp), %rsi
movq %rax, (%rsi)
movq %rsp, %rdi
callq 0x7024a
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq %rbx, %rdi
callq 0x2270
movq %rax, %rbx
leaq 0x56889(%rip), %rsi     # 0x760a4
movl $0x2, %edx
movq %rax, %rdi
callq 0x2270
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2210
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2160
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x1f862
callq 0x2200
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
je 0x1f871
callq 0x2200
movl $0x4, %edi
callq 0x2120
movl $0x1, (%rax)
movq 0x94730(%rip), %rsi     # 0xb3fb8
movq %rax, %rdi
xorl %edx, %edx
callq 0x2380
jmp 0x1f8a3
jmp 0x1f925
jmp 0x1f925
jmp 0x1faad
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x1f928
callq 0x2200
jmp 0x1f928
jmp 0x1f925
jmp 0x1f8d7
jmp 0x1f8d7
jmp 0x1f925
jmp 0x1f8f7
jmp 0x1faad
jmp 0x1f8f7
jmp 0x1faad
jmp 0x1f940
jmp 0x1f8d7
jmp 0x1f940
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
je 0x1f8fa
callq 0x2200
jmp 0x1f8fa
jmp 0x1fa7d
jmp 0x1f8f7
jmp 0x1fa7d
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x1f943
callq 0x2200
jmp 0x1f943
jmp 0x1fa94
jmp 0x1f940
jmp 0x1f918
movq %rax, %rbx
jmp 0x1fa2a
jmp 0x1faad
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
jne 0x1faa6
jmp 0x1fab0
jmp 0x1faad
movq %rax, %rbx
movq 0x60(%rsp), %rdi
cmpq %r12, %rdi
je 0x1fa80
callq 0x2200
jmp 0x1fa80
movq %rax, %rbx
movb $0x1, %r14b
jmp 0x1f9aa
movq %rax, %rbx
movb $0x1, %r14b
jmp 0x1f9c5
movq %rax, %rbx
movb $0x1, %r13b
jmp 0x1fa0c
movq %rax, %rbx
movb $0x1, %r13b
jmp 0x1fa27
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
je 0x1f998
callq 0x2200
jmp 0x1f998
movq %rax, %rbx
movq 0x80(%rsp), %rdi
cmpq %rbp, %rdi
je 0x1f9aa
callq 0x2200
testb %r14b, %r14b
je 0x1f9c5
leaq 0xe8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1f9c5
callq 0x2200
testb %r14b, %r14b
jmp 0x1fa2a
jmp 0x1fa40
jmp 0x1fa58
jmp 0x1fa66
jmp 0x1faad
movq %rax, %rbx
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1f9f6
callq 0x2200
jmp 0x1f9f6
movq %rax, %rbx
leaq 0x90(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1fa0c
callq 0x2200
testb %r13b, %r13b
je 0x1fa27
leaq 0x108(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1fa27
callq 0x2200
testb %r13b, %r13b
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x1fa43
callq 0x2200
jmp 0x1fa43
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x1fa69
callq 0x2200
jmp 0x1fa69
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r15, %rdi
jne 0x1fa51
jmp 0x1fa69
movq %rax, %rbx
movq 0x60(%rsp), %rdi
cmpq %r12, %rdi
jne 0x1faa6
jmp 0x1fab0
jmp 0x1faad
jmp 0x1faad
jmp 0x1faad
jmp 0x1fa7d
movq %rax, %rbx
movq 0x80(%rsp), %rdi
cmpq %rbp, %rdi
je 0x1fa97
callq 0x2200
jmp 0x1fa97
movq %rax, %rbx
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x1fab0
callq 0x2200
jmp 0x1fab0
movq %rax, %rbx
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
je 0x1fac2
callq 0x2200
movq %rbx, %rdi
callq 0x23b0