// File: /workspace/github_cpp_makefile_star2_O1/lvandeve[P]lodepng/lodepng_unittest.cpp
// Function: doTestHuffmanCodeLengths(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, unsigned long)
void doTestHuffmanCodeLengths(const std::string& expectedstr, const std::string& counts, size_t bitlength) {
  std::vector<unsigned> expected = strtovector(expectedstr);
  std::vector<unsigned> count = strtovector(counts);
  std::cout << "doTestHuffmanCodeLengths: " << counts << std::endl;
  std::vector<unsigned> result(count.size());
  unsigned error = lodepng_huffman_code_lengths(&result[0], &count[0], count.size(), bitlength);
  ASSERT_NO_PNG_ERROR_MSG(error, "errorcode");
  std::stringstream ss1, ss2;
  for(size_t i = 0; i < count.size(); i++) {
    ss1 << expected[i] << " ";
    ss2 << result[i] << " ";
  }
  assertEquals(ss1.str(), ss2.str(), "value");
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x3d8, %rsp            # imm = 0x3D8
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %rsi
leaq 0x90(%rsp), %rdi
callq 0x202a5
movq %rsp, %rdi
movq %r14, %rsi
callq 0x202a5
movq 0x93c3b(%rip), %rdi     # 0xb3fd8
leaq 0x568b9(%rip), %rsi     # 0x76c5d
movl $0x1a, %edx
callq 0x2270
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq 0x93c1c(%rip), %rdi     # 0xb3fd8
callq 0x2270
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2210
movsbl %al, %esi
movq %r14, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2160
movq 0x8(%rsp), %rsi
subq (%rsp), %rsi
sarq $0x2, %rsi
leaq 0x250(%rsp), %rdx
movl $0x0, (%rdx)
leaq 0x78(%rsp), %rdi
leaq 0xc8(%rsp), %rcx
callq 0x70662
movq 0x78(%rsp), %rdi
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
subq %rsi, %rdx
sarq $0x2, %rdx
movl %ebx, %ecx
callq 0x2701
movl %eax, %ebx
leaq 0x28(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x55d16(%rip), %rsi     # 0x7615d
leaq 0x55d14(%rip), %rdx     # 0x76162
leaq 0x18(%rsp), %rdi
callq 0x1517a
leaq 0xd8(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0x18(%rsp), %rsi
movq 0x20(%rsp), %rdx
addq %rsi, %rdx
leaq 0xc8(%rsp), %rdi
callq 0x15390
leaq 0x567f3(%rip), %rsi     # 0x76c78
leaq 0xc8(%rsp), %rdi
callq 0x23d0
leaq 0x68(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x567db(%rip), %rsi     # 0x76c7d
leaq 0x567dd(%rip), %rdx     # 0x76c86
leaq 0x58(%rsp), %rdi
callq 0x1517a
movq 0x60(%rsp), %r15
testq %r15, %r15
setne %bpl
je 0x20503
leaq 0xb8(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x567a9(%rip), %rsi     # 0x76c7d
leaq 0x567ab(%rip), %rdx     # 0x76c86
leaq 0xa8(%rsp), %rdi
callq 0x1517a
leaq 0x59236(%rip), %rsi     # 0x79725
leaq 0x38(%rsp), %rdi
leaq 0xa8(%rsp), %rdx
callq 0x702b8
jmp 0x20520
leaq 0x48(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x57033(%rip), %rdx     # 0x77546
leaq 0x38(%rsp), %rdi
movq %rdx, %rsi
callq 0x1517a
leaq 0x250(%rsp), %rdi
leaq 0xc8(%rsp), %rsi
leaq 0x38(%rsp), %rdx
callq 0x6feec
leaq 0x250(%rsp), %rsi
movl %ebx, %edi
callq 0x16534
leaq 0x260(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2055f
callq 0x2200
leaq 0x48(%rsp), %rbp
movq -0x10(%rbp), %rdi
cmpq %rbp, %rdi
je 0x20572
callq 0x2200
testq %r15, %r15
je 0x2058d
leaq 0xb8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2058d
callq 0x2200
movq 0x58(%rsp), %rdi
cmpq %r13, %rdi
je 0x2059c
callq 0x2200
movq 0xc8(%rsp), %rdi
cmpq %r14, %rdi
je 0x205ae
callq 0x2200
movq 0x18(%rsp), %rdi
cmpq %r12, %rdi
je 0x205bd
callq 0x2200
leaq 0x250(%rsp), %rdi
callq 0x2180
leaq 0xc8(%rsp), %rdi
callq 0x2180
movq 0x8(%rsp), %rax
cmpq (%rsp), %rax
je 0x20656
leaq 0x260(%rsp), %rbx
leaq 0xd8(%rsp), %r14
xorl %r12d, %r12d
leaq 0x56f49(%rip), %r15     # 0x77545
movq 0x90(%rsp), %rax
movl (%rax,%r12,4), %esi
movq %rbx, %rdi
callq 0x2150
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x2270
movq 0x78(%rsp), %rax
movl (%rax,%r12,4), %esi
movq %r14, %rdi
callq 0x2150
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x2270
incq %r12
movq 0x8(%rsp), %rax
subq (%rsp), %rax
sarq $0x2, %rax
cmpq %rax, %r12
jb 0x205fc
leaq 0x268(%rsp), %rsi
leaq 0x18(%rsp), %rdi
callq 0x2310
leaq 0xe0(%rsp), %rsi
leaq 0x38(%rsp), %rdi
callq 0x2310
leaq 0x58(%rsp), %rdi
movq %r13, (%rdi)
leaq 0x565fe(%rip), %rsi     # 0x76c87
leaq 0x565fc(%rip), %rdx     # 0x76c8c
leaq 0x28(%rsp), %rbx
callq 0x1517a
leaq 0x18(%rsp), %rdi
leaq 0x38(%rsp), %rsi
leaq 0x58(%rsp), %rdx
callq 0x706df
movq 0x58(%rsp), %rdi
cmpq %r13, %rdi
je 0x206bd
callq 0x2200
movq 0x38(%rsp), %rdi
cmpq %rbp, %rdi
je 0x206cc
callq 0x2200
movq 0x18(%rsp), %rdi
cmpq %rbx, %rdi
je 0x206db
callq 0x2200
leaq 0xc8(%rsp), %rdi
callq 0x21a0
leaq 0x250(%rsp), %rdi
callq 0x21a0
movq 0x78(%rsp), %rdi
testq %rdi, %rdi
je 0x20704
callq 0x2200
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x20712
callq 0x2200
movq 0x90(%rsp), %rdi
testq %rdi, %rdi
je 0x20724
callq 0x2200
addq $0x3d8, %rsp            # imm = 0x3D8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x207f0
movq %rax, %rbx
movb $0x1, %bpl
jmp 0x207d2
movq %rax, %rbx
movb $0x1, %bpl
jmp 0x207ed
movq %rax, %rbx
movq 0x58(%rsp), %rdi
cmpq %r13, %rdi
je 0x2076b
callq 0x2200
jmp 0x2076b
movq %rax, %rbx
movq 0x38(%rsp), %rdi
cmpq %rbp, %rdi
je 0x2077f
callq 0x2200
jmp 0x2077f
movq %rax, %rbx
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0x2084b
callq 0x2200
jmp 0x2084b
jmp 0x20848
movq %rax, %rbx
leaq 0x260(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x207bf
callq 0x2200
jmp 0x207bf
movq %rax, %rbx
leaq 0x48(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x207d2
callq 0x2200
testb %bpl, %bpl
je 0x207ed
leaq 0xb8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x207ed
callq 0x2200
testb %bpl, %bpl
movq 0x58(%rsp), %rdi
cmpq %r13, %rdi
je 0x20806
callq 0x2200
jmp 0x20806
jmp 0x20803
movq %rax, %rbx
movq 0xc8(%rsp), %rdi
cmpq %r14, %rdi
je 0x2081d
callq 0x2200
jmp 0x2081d
movq %rax, %rbx
movq 0x18(%rsp), %rdi
cmpq %r12, %rdi
je 0x20865
callq 0x2200
jmp 0x20865
jmp 0x20839
jmp 0x20839
jmp 0x20843
movq %rax, %rbx
jmp 0x20882
movq %rax, %rbx
jmp 0x20865
movq %rax, %rbx
jmp 0x20858
movq %rax, %rbx
jmp 0x20874
movq %rax, %rbx
leaq 0xc8(%rsp), %rdi
callq 0x21a0
leaq 0x250(%rsp), %rdi
callq 0x21a0
movq 0x78(%rsp), %rdi
testq %rdi, %rdi
je 0x20874
callq 0x2200
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x20882
callq 0x2200
movq 0x90(%rsp), %rdi
testq %rdi, %rdi
je 0x20894
callq 0x2200
movq %rbx, %rdi
callq 0x23b0
movq %rax, %rdi
callq 0x14f59