// File: /workspace/github_cpp_makefile_star2_O3/lvandeve[P]lodepng/pngdetail.cpp
// Function: showExifIFD(unsigned char const*, unsigned long, unsigned long, bool, bool, bool)
void showExifIFD(const unsigned char* exif, size_t size, size_t ifd_pos, bool big_endian, bool is_thumbnail, bool is_sub) {
  size_t pos = ifd_pos;
  size_t sub_ifd = 0;
  if(pos + 2 > size) {
    std::cout << "EXIF IFD out of range: " << pos << std::endl;
    return;
  }
  size_t num_entries = readExifUint16(exif, size, pos, big_endian);
  if(is_sub) {
    std::cout << "EXIF Sub-IFD at " << pos << ", num entries: " << num_entries << std::endl;
  } else if(is_thumbnail) {
    std::cout << "EXIF Thumbnail IFD at " << pos << ", num entries: " << num_entries << std::endl;
  } else {
    std::cout << "EXIF IFD at " << pos << ", num entries: " << num_entries << std::endl;
  }
  pos += 2;
  for(size_t i = 0; i < num_entries; i++) {
    if(pos + 12 > size) {
      std::cout << "EXIF IFD entry out of range: " << pos << std::endl;
      return;
    }
    uint32_t tag_number = readExifUint16(exif, size, pos, big_endian);
    uint32_t format = readExifUint16(exif, size, pos + 2, big_endian);
    uint32_t num = readExifUint32(exif, size, pos + 4, big_endian);
    uint32_t offset = readExifUint32(exif, size, pos + 8, big_endian);
    uint32_t component_size = 1;
    if(format == 3 || format == 8) component_size = 2;
    else if(format == 4 || format == 9 || format == 11) component_size = 4;
    else if(format == 5 || format == 10 || format == 12) component_size = 8;
    size_t len = num * component_size;
    if(len <= 4) offset = pos + 8; // small value is stored in the offset itself
    pos += 12;

    if(format < 1 || format > 12) {
      std::cout << "EXIF unknown entry format" << std::endl;
      return;
    }
    if(is_thumbnail) std::cout << "EXIF tag (thumbnail): ";
    else std::cout << "EXIF tag: ";
    // Only show some common tags by full name
    if(tag_number == 256) std::cout << "Umage Width";
    else if(tag_number == 257) std::cout << "Image Height";
    else if(tag_number == 259) std::cout << "Compression";
    else if(tag_number == 269) std::cout << "Document Name";
    else if(tag_number == 270) std::cout << "Image Description";
    else if(tag_number == 274) std::cout << "Orientation";
    else if(tag_number == 282) std::cout << "X Resolution";
    else if(tag_number == 283) std::cout << "Y Resolution";
    else if(tag_number == 296) std::cout << "Resolution Unit";
    else if(tag_number == 513) std::cout << "Thumbnail Offset";
    else if(tag_number == 514) std::cout << "Thumbnail Size";
    else if(tag_number == 33434) std::cout << "Exposure Time";
    else if(tag_number == 33432) std::cout << "Copyright";
    else if(tag_number == 36864) std::cout << "Exif Version";
    else if(tag_number == 37510) std::cout << "User Comment";
    else std::cout << "#" << tag_number; // tag for which we don't show a name here
    std::cout << ": ";

    if(offset + len > size) {
      std::cout << "EXIF data out of range" << std::endl;
      return;
    }
    if(len == 0) {
      std::cout << "[empty]" << std::endl;
      continue;
    }

    if(format == 1) {
      std::cout << (uint32_t)exif[offset];
    } else if(format == 2) {
      for(size_t j = 0; j < len; j++) {
        if(!exif[offset + j]) break; // NULL terminator
        std::cout << exif[offset + j];
      }
    } else if(format == 3) {
      std::cout << readExifUint16(exif, size, offset, big_endian);
    } else if(format == 4) {
      if(tag_number == 34665) sub_ifd = readExifUint32(exif, size, offset, big_endian);
      else std::cout << readExifUint32(exif, size, offset, big_endian);
    } else if(format == 5) {
      double n = readExifUint32(exif, size, offset, big_endian);
      double d = readExifUint32(exif, size, offset + 4, big_endian);
      std::cout << (n / d);
    } else if(format == 7 && len > 8 && exif[offset + 0] == 'A' && exif[offset + 1] == 'S' &&
              exif[offset + 2] == 'C' && exif[offset + 3] == 'I' && exif[offset + 4] == 'I') {
      for(size_t j = 8; j < len; j++) std::cout << exif[offset + j];
    } else if(format == 7 && len == 4 && tag_number == 36864) {
      for(size_t j = 0; j < len; j++) std::cout << exif[offset + j];
    } else if(format == 8) {
      std::cout << (int32_t)readExifUint16(exif, size, offset, big_endian);
    } else if(format == 9) {
      std::cout << (int16_t)readExifUint32(exif, size, offset, big_endian);
    } else if(format == 10) {
      double n = (int32_t)readExifUint32(exif, size, offset, big_endian);
      double d = (int32_t)readExifUint32(exif, size, offset + 4, big_endian);
      std::cout << (n / d);
    } else {
      // Formats like double not handled here
      std::cout << "[format " << format << ", len " << len << "]";
    }
    std::cout << std::endl;
  }
  if(pos + 4 > size) {
    std::cout << "EXIF IFD footer out of range" << std::endl;
    return;
  }
  size_t next_ifd = readExifUint32(exif, size, pos, big_endian);

  // The > checks are to guarantee progress rather than infinity recursion, though it does mean
  // that an odd EXIF that places later parts earlier in the file won't be supported correctly
  if(sub_ifd && sub_ifd > ifd_pos && sub_ifd != next_ifd) {
    showExifIFD(exif, size, sub_ifd, big_endian, is_thumbnail, true);
  }
  if(next_ifd && next_ifd > ifd_pos) {
    showExifIFD(exif, size, sub_ifd, big_endian, true, is_sub);
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movl %r8d, 0x2c(%rsp)
movq %rdx, %r14
leaq 0x2(%rdx), %r12
cmpq %rsi, %r12
jbe 0x1c65e
movq 0xe9c9(%rip), %rbx      # 0x2afd0
leaq 0x7e61(%rip), %rsi      # 0x2446f
movl $0x17, %edx
movq %rbx, %rdi
callq 0x2290
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2160
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2220
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2170
movl %r9d, %ebx
movl %ecx, 0xc(%rsp)
testb %cl, %cl
je 0x1c677
movzwl (%rdi,%r14), %eax
rolw $0x8, %ax
movzwl %ax, %eax
jmp 0x1c67c
movzwl (%rdi,%r14), %eax
movq %rax, 0x48(%rsp)
testb %bl, %bl
movq %rsi, 0x30(%rsp)
movq %rdi, 0x10(%rsp)
je 0x1c6a4
movq 0xe93a(%rip), %rdi      # 0x2afd0
leaq 0x7dea(%rip), %rsi      # 0x24487
movl $0x10, %edx
jmp 0x1c6d3
cmpb $0x0, 0x2c(%rsp)
je 0x1c6c0
movq 0xe91e(%rip), %rdi      # 0x2afd0
leaq 0x7def(%rip), %rsi      # 0x244a8
movl $0x16, %edx
jmp 0x1c6d3
movq 0xe909(%rip), %rdi      # 0x2afd0
leaq 0x7df1(%rip), %rsi      # 0x244bf
movl $0xc, %edx
callq 0x2290
movl %ebx, 0x3c(%rsp)
movq 0xe8ed(%rip), %rdi      # 0x2afd0
movq %r14, 0x50(%rsp)
movq %r14, %rsi
callq 0x2160
movq %rax, %r13
leaq 0x7d9e(%rip), %rsi      # 0x24498
movl $0xf, %edx
movq %rax, %rdi
callq 0x2290
movq %r13, %rdi
movq 0x48(%rsp), %rbx
movq %rbx, %rsi
callq 0x2160
movq %rax, %r13
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x2220
movsbl %al, %esi
movq %r13, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2170
testq %rbx, %rbx
je 0x1d087
movq $0x0, 0x40(%rsp)
xorl %r15d, %r15d
movq 0x30(%rsp), %rsi
movq 0x10(%rsp), %rdi
movl 0xc(%rsp), %ebx
movq 0xe865(%rip), %r14      # 0x2afd0
movq %r12, %r13
leaq 0xc(%r12), %rdx
cmpq %rsi, %rdx
ja 0x1d0f2
leaq 0x2(%r13), %rax
cmpq %rsi, %rax
movq %rdx, 0x20(%rsp)
jbe 0x1c79c
leaq 0x4(%r13), %rcx
xorl %r12d, %r12d
cmpq %rsi, %rcx
ja 0x1c7d1
testb %bl, %bl
jne 0x1c7b6
jmp 0x1c7d5
testb %bl, %bl
je 0x1c7c3
movzwl (%rdi,%r13), %ecx
rolw $0x8, %cx
movzwl %cx, %r12d
leaq 0x4(%r13), %rcx
cmpq %rsi, %rcx
ja 0x1c7d1
movzwl (%rdi,%rax), %eax
rolw $0x8, %ax
movzwl %ax, %ebp
jmp 0x1c7d9
movzwl (%rdi,%r13), %r12d
leaq 0x4(%r13), %rcx
cmpq %rsi, %rcx
jbe 0x1c7d5
xorl %ebp, %ebp
jmp 0x1c7d9
movzwl (%rdi,%rax), %ebp
leaq 0x8(%r13), %rax
cmpq %rsi, %rax
jbe 0x1c7ea
xorl %ecx, %ecx
testb %bl, %bl
jne 0x1c7f5
jmp 0x1c801
testb %bl, %bl
je 0x1c7fc
movl 0x4(%rdi,%r13), %ecx
bswapl %ecx
movl (%rdi,%rax), %ebx
bswapl %ebx
jmp 0x1c804
movl 0x4(%rdi,%r13), %ecx
movl (%rdi,%rax), %ebx
movl $0x2, %edx
cmpl $0x3, %ebp
je 0x1c862
cmpl $0x8, %ebp
je 0x1c862
cmpl $0x4, %ebp
sete %dl
movl %ebp, %esi
andl $-0x3, %esi
cmpl $0x9, %esi
sete %sil
orb %dl, %sil
movl $0x4, %r13d
je 0x1c848
imull %ecx, %r13d
cmpl $0x5, %r13d
cmovbl %eax, %ebx
leal -0xd(%rbp), %eax
cmpl $-0xd, %eax
ja 0x1c86e
jmp 0x1d1d0
movl $0x1, %r13d
cmpl $0xc, %ebp
ja 0x1c830
movl $0x8, %edx
movl $0x1420, %esi           # imm = 0x1420
btl %ebp, %esi
jae 0x1c830
imull %ecx, %edx
cmpl $0x5, %edx
cmovbl %eax, %ebx
movl %edx, %r13d
cmpb $0x0, 0x2c(%rsp)
je 0x1c886
movl $0x16, %edx
movq %r14, %rdi
leaq 0x7c80(%rip), %rsi      # 0x24504
jmp 0x1c895
movl $0xa, %edx
movq %r14, %rdi
leaq 0x7c86(%rip), %rsi      # 0x2451b
callq 0x2290
cmpl $0x11a, %r12d           # imm = 0x11A
jle 0x1c8e7
cmpl $0x8297, %r12d          # imm = 0x8297
jg 0x1c92b
cmpl $0x200, %r12d           # imm = 0x200
jg 0x1c9cf
cmpl $0x11b, %r12d           # imm = 0x11B
je 0x1ca64
cmpl $0x128, %r12d           # imm = 0x128
jne 0x1caa8
movl $0xf, %edx
movq %r14, %rdi
leaq 0x7caf(%rip), %rsi      # 0x24591
jmp 0x1cad8
cmpl $0x10c, %r12d           # imm = 0x10C
jle 0x1c966
cmpl $0x111, %r12d           # imm = 0x111
jg 0x1c9a1
cmpl $0x10d, %r12d           # imm = 0x10D
je 0x1ca2b
cmpl $0x10e, %r12d           # imm = 0x10E
jne 0x1caa8
movl $0x11, %edx
movq %r14, %rdi
leaq 0x7c33(%rip), %rsi      # 0x24559
jmp 0x1cad8
cmpl $0x8fff, %r12d          # imm = 0x8FFF
jg 0x1c9fd
cmpl $0x8298, %r12d          # imm = 0x8298
je 0x1ca75
cmpl $0x829a, %r12d          # imm = 0x829A
jne 0x1caa8
movl $0xd, %edx
movq %r14, %rdi
leaq 0x7c60(%rip), %rsi      # 0x245c1
jmp 0x1cad8
cmpl $0x100, %r12d           # imm = 0x100
je 0x1cac9
cmpl $0x101, %r12d           # imm = 0x101
je 0x1ca53
cmpl $0x103, %r12d           # imm = 0x103
jne 0x1caa8
movl $0xb, %edx
movq %r14, %rdi
leaq 0x7ba3(%rip), %rsi      # 0x2453f
jmp 0x1cad8
cmpl $0x112, %r12d           # imm = 0x112
je 0x1ca3f
cmpl $0x11a, %r12d           # imm = 0x11A
jne 0x1caa8
movl $0xc, %edx
movq %r14, %rdi
leaq 0x7bad(%rip), %rsi      # 0x24577
jmp 0x1cad8
cmpl $0x201, %r12d           # imm = 0x201
je 0x1ca86
cmpl $0x202, %r12d           # imm = 0x202
jne 0x1caa8
movl $0xe, %edx
movq %r14, %rdi
leaq 0x7bba(%rip), %rsi      # 0x245b2
jmp 0x1cad8
cmpl $0x9000, %r12d          # imm = 0x9000
je 0x1ca97
cmpl $0x9286, %r12d          # imm = 0x9286
jne 0x1caa8
movl $0xc, %edx
movq %r14, %rdi
leaq 0x7bc0(%rip), %rsi      # 0x245e6
jmp 0x1cad8
movl $0xd, %edx
movq %r14, %rdi
leaq 0x7b11(%rip), %rsi      # 0x2454b
jmp 0x1cad8
movl $0xb, %edx
movq %r14, %rdi
leaq 0x7b1d(%rip), %rsi      # 0x2456b
jmp 0x1cad8
movl $0xc, %edx
movq %r14, %rdi
leaq 0x7ad0(%rip), %rsi      # 0x24532
jmp 0x1cad8
movl $0xc, %edx
movq %r14, %rdi
leaq 0x7b11(%rip), %rsi      # 0x24584
jmp 0x1cad8
movl $0x9, %edx
movq %r14, %rdi
leaq 0x7b4b(%rip), %rsi      # 0x245cf
jmp 0x1cad8
movl $0x10, %edx
movq %r14, %rdi
leaq 0x7b0c(%rip), %rsi      # 0x245a1
jmp 0x1cad8
movl $0xc, %edx
movq %r14, %rdi
leaq 0x7b33(%rip), %rsi      # 0x245d9
jmp 0x1cad8
movl $0x1, %edx
movq %r14, %rdi
leaq 0x6fdc(%rip), %rsi      # 0x23a93
callq 0x2290
movl %r12d, %esi
movq %r14, %rdi
callq 0x2160
jmp 0x1cadd
movl $0xb, %edx
movq %r14, %rdi
leaq 0x7a4e(%rip), %rsi      # 0x24526
callq 0x2290
movl %r13d, %r13d
movl $0x2, %edx
movq %r14, %rdi
leaq 0x7a29(%rip), %rsi      # 0x24518
callq 0x2290
movl %ebx, %r14d
leaq (%r14,%r13), %rax
movq 0x30(%rsp), %rdx
cmpq %rdx, %rax
ja 0x1d120
testq %r13, %r13
je 0x1cb45
leal -0x1(%rbp), %eax
cmpl $0x4, %eax
ja 0x1cc34
leaq 0x66cf(%rip), %rcx      # 0x231f0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x10(%rsp), %rax
movzbl (%rax,%r14), %esi
movq 0xe495(%rip), %r14      # 0x2afd0
movq %r14, %rdi
callq 0x2160
jmp 0x1cb60
movl $0x7, %edx
movq 0xe47f(%rip), %r14      # 0x2afd0
movq %r14, %rdi
leaq 0x7aaf(%rip), %rsi      # 0x2460a
callq 0x2290
movl 0xc(%rsp), %ebx
movq 0x20(%rsp), %r12
jmp 0x1cf2d
leaq 0x4(%r14), %rax
cmpq %rdx, %rax
movq 0x20(%rsp), %r12
jbe 0x1cce6
addl $0x4, %ebx
leaq 0x4(%rbx), %rax
cmpq %rdx, %rax
jbe 0x1cdce
xorl %eax, %eax
xorpd %xmm0, %xmm0
jmp 0x1ce12
leaq 0x2(%r14), %rax
cmpq %rdx, %rax
movq 0x20(%rsp), %r12
jbe 0x1cd20
xorl %esi, %esi
movl 0xc(%rsp), %ebx
jmp 0x1cf1e
leaq 0x4(%r14), %rcx
cmpl $0x8769, %r12d          # imm = 0x8769
movq 0x20(%rsp), %r12
jne 0x1cd42
xorl %eax, %eax
cmpq %rdx, %rcx
movl 0xc(%rsp), %ebx
ja 0x1cf03
testb %bl, %bl
je 0x1cefa
movq 0x10(%rsp), %rax
movl (%rax,%r14), %eax
bswapl %eax
jmp 0x1cf03
addq 0x10(%rsp), %r14
xorl %ebx, %ebx
movq 0x20(%rsp), %r12
movb (%r14,%rbx), %al
testb %al, %al
je 0x1cc2b
movb %al, 0x1d(%rsp)
movl $0x1, %edx
movq 0xe3b7(%rip), %rdi      # 0x2afd0
leaq 0x1d(%rsp), %rsi
callq 0x2290
incq %rbx
cmpq %rbx, %r13
jne 0x1cc01
movl 0xc(%rsp), %ebx
jmp 0x1cf0a
cmpl $0x7, %ebp
jne 0x1cd69
cmpl $0x9, %r13d
jb 0x1cd69
movq 0x10(%rsp), %rax
cmpb $0x41, (%rax,%r14)
jne 0x1ce7a
leal 0x1(%rbx), %eax
movq 0x10(%rsp), %rcx
cmpb $0x53, (%rcx,%rax)
jne 0x1ce7a
leal 0x2(%rbx), %eax
movq 0x10(%rsp), %rcx
cmpb $0x43, (%rcx,%rax)
jne 0x1ce7a
leal 0x3(%rbx), %eax
movq 0x10(%rsp), %rcx
cmpb $0x49, (%rcx,%rax)
jne 0x1ce7a
addl $0x4, %ebx
movq 0x10(%rsp), %rax
cmpb $0x49, (%rax,%rbx)
jne 0x1ce7a
addq 0x10(%rsp), %r14
movl $0x8, %ebx
movq 0xe320(%rip), %rbp      # 0x2afd0
leaq 0x1e(%rsp), %r12
movb (%r14,%rbx), %al
movb %al, 0x1e(%rsp)
movl $0x1, %edx
movq %rbp, %rdi
movq %r12, %rsi
callq 0x2290
incq %rbx
cmpq %rbx, %r13
jne 0x1ccb5
movl 0xc(%rsp), %ebx
movq 0x20(%rsp), %r12
movq %rbp, %r14
jmp 0x1cf2d
cmpb $0x0, 0xc(%rsp)
je 0x1cdf2
movq 0x10(%rsp), %rcx
movl (%rcx,%r14), %eax
bswapl %eax
cvtsi2sd %rax, %xmm0
addl $0x4, %ebx
leaq 0x4(%rbx), %rax
cmpq %rdx, %rax
ja 0x1ce10
addq %rcx, %rbx
movq 0xe2b5(%rip), %r14      # 0x2afd0
jmp 0x1cde9
movl 0xc(%rsp), %ebx
testb %bl, %bl
je 0x1ce1e
movq 0x10(%rsp), %rax
movzwl (%rax,%r14), %eax
rolw $0x8, %ax
movzwl %ax, %esi
jmp 0x1cf1e
xorl %eax, %eax
cmpq %rdx, %rcx
movl 0xc(%rsp), %ebx
ja 0x1cf1c
testb %bl, %bl
je 0x1cf13
movq 0x10(%rsp), %rax
movl (%rax,%r14), %eax
bswapl %eax
jmp 0x1cf1c
cmpl $0x7, %ebp
jne 0x1ce2d
cmpl $0x9000, %r12d          # imm = 0x9000
jne 0x1ce2d
cmpl $0x4, %r13d
jne 0x1ce2d
addq 0x10(%rsp), %r14
xorl %ebx, %ebx
movq 0xe239(%rip), %r13      # 0x2afd0
leaq 0x1f(%rsp), %r12
movb (%r14,%rbx), %al
movb %al, 0x1f(%rsp)
movl $0x1, %edx
movq %r13, %rdi
movq %r12, %rsi
callq 0x2290
incq %rbx
cmpq $0x4, %rbx
jne 0x1cd9c
movl 0xc(%rsp), %ebx
movq 0x20(%rsp), %r12
movq %r13, %r14
jmp 0x1cf2d
addq 0x10(%rsp), %rbx
xorpd %xmm0, %xmm0
cmpb $0x0, 0xc(%rsp)
movq 0xe1ed(%rip), %r14      # 0x2afd0
je 0x1cedf
movl (%rbx), %eax
bswapl %eax
jmp 0x1cee1
movq 0x10(%rsp), %rcx
movl (%rcx,%r14), %eax
cvtsi2sd %rax, %xmm0
addl $0x4, %ebx
leaq 0x4(%rbx), %rax
cmpq %rdx, %rax
jbe 0x1ced5
xorl %eax, %eax
movq 0xe1b7(%rip), %r14      # 0x2afd0
jmp 0x1cee1
movq 0x10(%rsp), %rax
movzwl (%rax,%r14), %esi
jmp 0x1cf1e
cmpl $0xa, %ebp
je 0x1cf9d
cmpl $0x9, %ebp
je 0x1cf71
cmpl $0x8, %ebp
jne 0x1ce7a
leaq 0x2(%r14), %rax
xorl %esi, %esi
cmpq %rdx, %rax
movl 0xc(%rsp), %ebx
movq 0x20(%rsp), %r12
ja 0x1d05e
testb %bl, %bl
je 0x1d054
movq 0x10(%rsp), %rax
movzwl (%rax,%r14), %eax
rolw $0x8, %ax
movzwl %ax, %esi
jmp 0x1d05e
movl $0x8, %edx
movq 0xe14a(%rip), %r14      # 0x2afd0
movq %r14, %rdi
leaq 0x7782(%rip), %rsi      # 0x24612
callq 0x2290
movl %ebp, %esi
movq %r14, %rdi
callq 0x2160
movq %rax, %rbx
movl $0x6, %edx
movq %rax, %rdi
leaq 0x776a(%rip), %rsi      # 0x2461b
callq 0x2290
movq %rbx, %rdi
movq %r13, %rsi
callq 0x2160
movl $0x1, %edx
movq %rax, %rdi
leaq 0x5da6(%rip), %rsi      # 0x22c76
jmp 0x1cb5b
addq %rcx, %rbx
movq 0xe0f1(%rip), %r14      # 0x2afd0
movl (%rbx), %eax
movl %eax, %eax
cvtsi2sd %rax, %xmm1
divsd %xmm1, %xmm0
movq %r14, %rdi
callq 0x2330
movl 0xc(%rsp), %ebx
jmp 0x1cf2d
movq 0x10(%rsp), %rax
movl (%rax,%r14), %eax
movl %eax, %eax
movq %rax, 0x40(%rsp)
movq 0xe0bf(%rip), %r14      # 0x2afd0
jmp 0x1cf2d
movq 0x10(%rsp), %rax
movl (%rax,%r14), %eax
movl %eax, %esi
movq 0xe0ab(%rip), %r14      # 0x2afd0
movq %r14, %rdi
callq 0x2160
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2220
movsbl %al, %esi
movq %r14, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2170
incq %r15
cmpq 0x48(%rsp), %r15
movq 0x30(%rsp), %rsi
movq 0x10(%rsp), %rdi
jne 0x1c76b
jmp 0x1d0a5
leaq 0x4(%r14), %rcx
xorl %eax, %eax
cmpq %rdx, %rcx
movl 0xc(%rsp), %ebx
movq 0x20(%rsp), %r12
ja 0x1cffe
testb %bl, %bl
je 0x1cff5
movq 0x10(%rsp), %rax
movzwl 0x2(%rax,%r14), %eax
rolw $0x8, %ax
movzwl %ax, %eax
jmp 0x1cffe
leaq 0x4(%r14), %rax
cmpq %rdx, %rax
jbe 0x1cfc2
addl $0x4, %ebx
leaq 0x4(%rbx), %rax
cmpq %rdx, %rax
movq 0x20(%rsp), %r12
jbe 0x1d015
xorl %eax, %eax
xorpd %xmm0, %xmm0
jmp 0x1d04b
cmpb $0x0, 0xc(%rsp)
movq 0x20(%rsp), %r12
je 0x1d032
movq 0x10(%rsp), %rcx
movl (%rcx,%r14), %eax
bswapl %eax
cvtsi2sd %eax, %xmm0
addl $0x4, %ebx
leaq 0x4(%rbx), %rax
cmpq %rdx, %rax
ja 0x1d049
addq %rcx, %rbx
movq 0xdfdd(%rip), %r14      # 0x2afd0
jmp 0x1d02c
movq 0x10(%rsp), %rax
movl (%rax,%r14), %eax
movswl %ax, %esi
movq 0xdfc8(%rip), %r14      # 0x2afd0
movq %r14, %rdi
callq 0x2200
jmp 0x1cf2d
addq 0x10(%rsp), %rbx
xorpd %xmm0, %xmm0
cmpb $0x0, 0xc(%rsp)
movq 0xdfa6(%rip), %r14      # 0x2afd0
je 0x1d07c
movl (%rbx), %eax
bswapl %eax
jmp 0x1d07e
movq 0x10(%rsp), %rcx
cvtsi2sdl (%rcx,%r14), %xmm0
addl $0x4, %ebx
leaq 0x4(%rbx), %rax
cmpq %rdx, %rax
jbe 0x1d072
xorl %eax, %eax
movq 0xdf7e(%rip), %r14      # 0x2afd0
jmp 0x1d07e
movq 0x10(%rsp), %rax
movzwl (%rax,%r14), %esi
movq 0xdf6b(%rip), %r14      # 0x2afd0
movq %r14, %rdi
callq 0x2390
jmp 0x1cf2d
addq %rcx, %rbx
movq 0xdf54(%rip), %r14      # 0x2afd0
movl (%rbx), %eax
cvtsi2sd %eax, %xmm1
jmp 0x1cee8
movq $0x0, 0x40(%rsp)
movq 0x30(%rsp), %rsi
movq 0x10(%rsp), %rdi
movl 0xc(%rsp), %ebx
movq 0xdf2b(%rip), %r14      # 0x2afd0
leaq 0x4(%r12), %rax
cmpq %rsi, %rax
jbe 0x1d0df
leaq 0x756c(%rip), %rsi      # 0x24622
movl $0x1c, %edx
movq %r14, %rdi
callq 0x2290
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2220
movsbl %al, %esi
movq %r14, %rdi
jmp 0x1d155
testb %bl, %bl
je 0x1d171
movl (%rdi,%r12), %eax
bswapl %eax
jmp 0x1d175
movq 0xded7(%rip), %rbx      # 0x2afd0
leaq 0x73cc(%rip), %rsi      # 0x244cc
movl $0x1d, %edx
movq %rbx, %rdi
callq 0x2290
movq %rbx, %rdi
movq %r13, %rsi
callq 0x2160
movq %rax, %rbx
movq (%rax), %rax
jmp 0x1d13e
leaq 0x74cc(%rip), %rsi      # 0x245f3
movl $0x16, %edx
movq 0xde9d(%rip), %rbx      # 0x2afd0
movq %rbx, %rdi
callq 0x2290
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2220
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2170
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl (%rdi,%r12), %eax
movq 0x50(%rsp), %r14
movl 0x3c(%rsp), %ebp
movq 0x40(%rsp), %r15
movl %eax, %ebx
cmpq %r14, %r15
jbe 0x1d1b2
cmpq %rbx, %r15
je 0x1d1b2
movzbl 0xc(%rsp), %ecx
movzbl 0x2c(%rsp), %r8d
movq %r15, %rdx
movl $0x1, %r9d
callq 0x1c5e1
movq 0x10(%rsp), %rdi
movq 0x30(%rsp), %rsi
cmpq %r14, %rbx
jbe 0x1d162
movzbl 0xc(%rsp), %ecx
movzbl %bpl, %r9d
movq %r15, %rdx
movl $0x1, %r8d
callq 0x1c5e1
jmp 0x1d162
leaq 0x7313(%rip), %rsi      # 0x244ea
movl $0x19, %edx
jmp 0x1d0bb