// File: /workspace/github_cpp_makefile_star2_O1/lvandeve[P]lodepng/pngdetail.cpp
// Function: displayChunkNames(Data&, Options const&)
void displayChunkNames(Data& data, const Options& options) {
  data.loadInspect();
  if(!data.is_png) return;
  data.loadFile();
  if(data.error) return;
  std::cout << (options.use_hex ? std::hex: std::dec);
  const std::vector<unsigned char>& buffer = data.buffer;
  std::vector<std::string> names;
  std::vector<size_t> sizes;
  unsigned error = lodepng::getChunkInfo(names, sizes, buffer);
  if(error) {
    if(!names.empty() && names.back() == "IEND" && sizes.back() == 0) {
      std::cout << "Corruption or superfluous data detected after the IEND chunk" << std::endl;
    } else {
      std::cout << "Error while identifying chunks. Listing identified chunks anyway." << std::endl;
    }
  }

  if(options.show_chunks2) {
    std::cout << "Chunk types: ";
    for(size_t i = 0; i < names.size(); i++) std::cout << names[i] << " ";
    std::cout << std::endl;
    std::cout << "Chunk sizes: ";
    for(size_t i = 0; i < sizes.size(); i++) std::cout << sizes[i] << " ";
    std::cout << std::endl;
  } else {
    std::cout << "Chunks (type: lengths):";
    std::string last_type;
    for(size_t i = 0; i < names.size(); i++) {
      if(last_type != names[i]) {
        std::cout << std::endl;
        std::cout << " " << names[i] << ": ";
      }
      last_type = names[i];

      std::cout << sizes[i] << " ";
    }
    std::cout << std::endl;
  }

  std::map<std::string, bool> typedict;
  for(size_t i = 0; i < names.size(); i++) {
    typedict[names[i]] = true;
  }

  if(!error) {
    if(!typedict["IHDR"]) std::cout << "Error: no IHDR chunk" << std::endl;
    if(!typedict["IDAT"]) std::cout << "Error: no IDAT chunk" << std::endl;
    if(!typedict["IEND"]) std::cout << "Error: no IEND chunk" << std::endl;
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rsi, %r14
movq %rdi, %r15
callq 0x1e094
cmpb $0x1, 0x2dd(%r15)
jne 0x16bdd
leaq 0x20(%r15), %rbx
movq 0x20(%r15), %rcx
xorl %eax, %eax
cmpq 0x28(%r15), %rcx
jne 0x16635
movq %rbx, %rdi
movq %r15, %rsi
callq 0xce6c
movl %eax, 0x2d8(%r15)
testl %eax, %eax
jne 0x16bdd
leaq 0x7cb4(%rip), %rax      # 0x1e2ff
leaq 0x7cbd(%rip), %rcx      # 0x1e30f
cmpb $0x0, 0x24(%r14)
cmovneq %rax, %rcx
movq 0x1496e(%rip), %rdi     # 0x2afd0
movq (%rdi), %rax
addq -0x18(%rax), %rdi
callq *%rcx
xorl %eax, %eax
movq %rsp, %rdi
movq %rax, 0x10(%rdi)
xorps %xmm0, %xmm0
movaps %xmm0, (%rdi)
leaq 0x40(%rsp), %rsi
movq %rax, 0x10(%rsi)
movaps %xmm0, (%rsi)
movq %rbx, %rdx
callq 0x10f05
movl %eax, %ebp
testl %eax, %eax
je 0x16709
movq 0x8(%rsp), %rdi
cmpq %rdi, (%rsp)
je 0x166c3
addq $-0x20, %rdi
leaq 0xc4fd(%rip), %rsi      # 0x22ba7
callq 0x2090
testl %eax, %eax
jne 0x166c3
movq 0x48(%rsp), %rax
cmpq $0x0, -0x8(%rax)
je 0x16bef
movq 0x14906(%rip), %r15     # 0x2afd0
leaq 0xd0b8(%rip), %rsi      # 0x23789
movl $0x41, %edx
movq %r15, %rdi
callq 0x2280
movq (%r15), %rax
addq -0x18(%rax), %r15
movq %r15, %rdi
movl $0xa, %esi
callq 0x2210
movsbl %al, %esi
movq 0x148d4(%rip), %rdi     # 0x2afd0
callq 0x2040
movq %rax, %rdi
callq 0x2160
cmpb $0x1, 0x21(%r14)
jne 0x16854
movq 0x148b5(%rip), %r14     # 0x2afd0
leaq 0xd0a9(%rip), %rsi      # 0x237cb
movl $0xd, %edx
movq %r14, %rdi
callq 0x2280
movq (%rsp), %rax
cmpq %rax, 0x8(%rsp)
je 0x1678d
movl $0x8, %ebx
xorl %r13d, %r13d
movq 0x14887(%rip), %r15     # 0x2afd0
leaq 0xd9d2(%rip), %r12      # 0x24122
movq -0x8(%rax,%rbx), %rsi
movq (%rax,%rbx), %rdx
movq %r15, %rdi
callq 0x2280
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x2280
incq %r13
movq (%rsp), %rax
movq 0x8(%rsp), %rcx
subq %rax, %rcx
sarq $0x5, %rcx
addq $0x20, %rbx
cmpq %rcx, %r13
jb 0x16750
movq (%r14), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x2210
movsbl %al, %esi
movq 0x14825(%rip), %rdi     # 0x2afd0
callq 0x2040
movq %rax, %rdi
callq 0x2160
movq 0x14811(%rip), %r14     # 0x2afd0
leaq 0xd013(%rip), %rsi      # 0x237d9
movl $0xd, %edx
movq %r14, %rdi
callq 0x2280
movq 0x40(%rsp), %rax
cmpq %rax, 0x48(%rsp)
je 0x16824
xorl %ebx, %ebx
movq 0x147e8(%rip), %r15     # 0x2afd0
leaq 0xd933(%rip), %r12      # 0x24122
movq (%rax,%rbx,8), %rsi
movq %r15, %rdi
callq 0x2150
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x2280
incq %rbx
movq 0x40(%rsp), %rax
movq 0x48(%rsp), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
cmpq %rcx, %rbx
jb 0x167ef
movq (%r14), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x2210
movsbl %al, %esi
movq 0x1478e(%rip), %rdi     # 0x2afd0
callq 0x2040
movq %rax, %rdi
callq 0x2160
jmp 0x169bf
movq 0x14775(%rip), %r14     # 0x2afd0
leaq 0xcf85(%rip), %rsi      # 0x237e7
movl $0x17, %edx
movq %r14, %rdi
callq 0x2280
movl %ebp, 0x1c(%rsp)
leaq 0x68(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq (%rsp), %rax
cmpq %rax, 0x8(%rsp)
je 0x1697c
xorl %ebx, %ebx
leaq 0x58(%rsp), %r15
leaq 0xd87e(%rip), %r12      # 0x24122
leaq 0xda83(%rip), %r13      # 0x2432e
xorl %ebp, %ebp
movq 0x60(%rsp), %rdx
cmpq 0x8(%rax,%rbx), %rdx
jne 0x168d0
testq %rdx, %rdx
je 0x1692c
movq (%rax,%rbx), %rsi
movq 0x58(%rsp), %rdi
callq 0x2240
testl %eax, %eax
je 0x1692c
movq (%r14), %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
movl $0x1, %edx
movq %r14, %rdi
movq %r12, %rsi
callq 0x2280
movq (%rsp), %rax
movq (%rax,%rbx), %rsi
movq 0x8(%rax,%rbx), %rdx
movq %r14, %rdi
callq 0x2280
movl $0x2, %edx
movq %rax, %rdi
movq %r13, %rsi
callq 0x2280
movq (%rsp), %rsi
addq %rbx, %rsi
movq %r15, %rdi
callq 0x2120
movq 0x40(%rsp), %rax
movq (%rax,%rbp,8), %rsi
movq %r14, %rdi
callq 0x2150
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x2280
incq %rbp
movq (%rsp), %rax
movq 0x8(%rsp), %rcx
subq %rax, %rcx
sarq $0x5, %rcx
addq $0x20, %rbx
cmpq %rcx, %rbp
jb 0x168ad
movq (%r14), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x2210
movsbl %al, %esi
movq 0x14636(%rip), %rdi     # 0x2afd0
callq 0x2040
movq %rax, %rdi
callq 0x2160
movq 0x58(%rsp), %rdi
leaq 0x68(%rsp), %rax
cmpq %rax, %rdi
movl 0x1c(%rsp), %ebp
je 0x169bf
callq 0x2200
leaq 0x60(%rsp), %rax
movl $0x0, (%rax)
xorl %ecx, %ecx
movq %rcx, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
movq %rcx, 0x20(%rax)
movq (%rsp), %rsi
cmpq %rsi, 0x8(%rsp)
je 0x16a1b
xorl %ebx, %ebx
leaq 0x58(%rsp), %r14
xorl %r15d, %r15d
addq %rbx, %rsi
movq %r14, %rdi
callq 0x1e320
movb $0x1, (%rax)
incq %r15
movq (%rsp), %rsi
movq 0x8(%rsp), %rax
subq %rsi, %rax
sarq $0x5, %rax
addq $0x20, %rbx
cmpq %rax, %r15
jb 0x169f1
testl %ebp, %ebp
jne 0x16bb8
leaq 0x30(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0xad20(%rip), %rsi      # 0x21753
leaq 0xad1d(%rip), %rdx      # 0x21757
leaq 0x20(%rsp), %rdi
callq 0x150da
leaq 0x58(%rsp), %rdi
leaq 0x20(%rsp), %rsi
callq 0x1e320
movb (%rax), %bl
movq 0x20(%rsp), %rdi
cmpq %r14, %rdi
je 0x16a64
callq 0x2200
testb %bl, %bl
jne 0x16aae
movq 0x14561(%rip), %rbx     # 0x2afd0
leaq 0xcd89(%rip), %rsi      # 0x237ff
movl $0x14, %edx
movq %rbx, %rdi
callq 0x2280
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x2210
movsbl %al, %esi
movq 0x1452f(%rip), %rdi     # 0x2afd0
callq 0x2040
movq %rax, %rdi
callq 0x2160
leaq 0x20(%rsp), %rdi
movq %r14, (%rdi)
leaq 0xc0e5(%rip), %rsi      # 0x22ba2
leaq 0xc0e2(%rip), %rdx      # 0x22ba6
callq 0x150da
leaq 0x58(%rsp), %rdi
leaq 0x20(%rsp), %rsi
callq 0x1e320
movb (%rax), %bl
movq 0x20(%rsp), %rdi
cmpq %r14, %rdi
je 0x16ae9
callq 0x2200
testb %bl, %bl
jne 0x16b33
movq 0x144dc(%rip), %rbx     # 0x2afd0
leaq 0xcd19(%rip), %rsi      # 0x23814
movl $0x14, %edx
movq %rbx, %rdi
callq 0x2280
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x2210
movsbl %al, %esi
movq 0x144aa(%rip), %rdi     # 0x2afd0
callq 0x2040
movq %rax, %rdi
callq 0x2160
leaq 0x20(%rsp), %rdi
movq %r14, (%rdi)
leaq 0xc065(%rip), %rsi      # 0x22ba7
leaq 0xc062(%rip), %rdx      # 0x22bab
callq 0x150da
leaq 0x58(%rsp), %rdi
leaq 0x20(%rsp), %rsi
callq 0x1e320
movb (%rax), %bl
movq 0x20(%rsp), %rdi
cmpq %r14, %rdi
je 0x16b6e
callq 0x2200
testb %bl, %bl
jne 0x16bb8
movq 0x14457(%rip), %rbx     # 0x2afd0
leaq 0xcca9(%rip), %rsi      # 0x23829
movl $0x14, %edx
movq %rbx, %rdi
callq 0x2280
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x2210
movsbl %al, %esi
movq 0x14425(%rip), %rdi     # 0x2afd0
callq 0x2040
movq %rax, %rdi
callq 0x2160
leaq 0x58(%rsp), %rdi
movq 0x10(%rdi), %rsi
callq 0x1e87c
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x16bd5
callq 0x2200
movq %rsp, %rdi
callq 0x1e3f6
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x143da(%rip), %rdi     # 0x2afd0
leaq 0xcb4f(%rip), %rsi      # 0x2374c
movl $0x3c, %edx
callq 0x2280
movq 0x143c2(%rip), %rdi     # 0x2afd0
callq 0x2100
jmp 0x16709
jmp 0x16c20
jmp 0x16c3e
jmp 0x16c20
jmp 0x16c3e
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r14, %rdi
je 0x16c41
callq 0x2200
jmp 0x16c41
jmp 0x16c3e
jmp 0x16c53
jmp 0x16c58
jmp 0x16c3e
jmp 0x16c53
movq %rax, %rbx
leaq 0x58(%rsp), %rdi
movq 0x10(%rdi), %rsi
callq 0x1e87c
jmp 0x16c6f
jmp 0x16c53
movq %rax, %rbx
jmp 0x16c6f
movq %rax, %rbx
movq 0x58(%rsp), %rdi
leaq 0x68(%rsp), %rax
cmpq %rax, %rdi
je 0x16c6f
callq 0x2200
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x16c7e
callq 0x2200
movq %rsp, %rdi
callq 0x1e3f6
movq %rbx, %rdi
callq 0x2390
movq %rax, %rdi
callq 0x14eb9