// File: /workspace/github_cpp_makefile_star2_O3/VanAndelInstitute[P]intent/src/seq_tools.cpp
// Function: format_barcode(ParsedBarcode, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, int)
FastqRead format_barcode(ParsedBarcode bc, 
                         std::string id, 
                         std::string direction,
                         int format) {
  FastqRead read;
  int length = bc.barcode1.length();
  if(format == FORMAT_V2) {
      read.read = bc.barcode2 + 
                  bc.barcode1.substr(length - 8) + 
                  bc.barcode2.substr(4,4) + bc.UMI;
      read.quality = bc.barcode2_quality + 
                     bc.barcode1_quality.substr(length - 8) +
                     bc.barcode2_quality.substr(4,4) + bc.UMI_quality;
      read.direction = direction;
      read.id = id;
  } else if(format == FORMAT_V3) {
      read.read = bc.barcode2 + 
                  bc.barcode1.substr(length - 8) + 
                  bc.barcode2.substr(2,6) + bc.UMI;
      read.quality = bc.barcode2_quality + 
                     bc.barcode1_quality.substr(length - 8) +
                     bc.barcode2_quality.substr(2,6) + bc.UMI_quality;
      read.direction = direction;
      read.id = id;
  } else if(format == FORMAT_EXTENDED) {
      std::string cb1 = bc.barcode1;
      std::string cb1_q = bc.barcode1_quality;
      if(cb1.length() < 12) {
              cb1.insert(cb1.begin(), 12 - cb1.length(), 'G');
              cb1_q.insert(cb1_q.begin(), 12 - cb1_q.length(), 'A');
      }
      read.read = cb1 + 
                  bc.barcode2 + 
                  bc.barcode2 +
                  bc.UMI;
      read.quality =cb1_q + 
                  bc.barcode2_quality + 
                  bc.barcode2_quality +
                  bc.UMI_quality;
      read.direction = direction;
      read.id = id;
  } else {
    std::cout << "Bad barcode format specified\n\n";
    exit(0);
  }
  return(read);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movl %r8d, %ebp
movq %rcx, %r15
movq %rdx, %r14
movq %rsi, %r12
movq %rdi, %rbx
callq 0x2fd04
leaq 0x8(%r12), %rsi
movq 0x10(%r12), %rdx
cmpl $0x2, %ebp
movq %r15, 0xa8(%rsp)
je 0x2ede6
cmpl $0x1, %ebp
movq %r14, 0xb0(%rsp)
je 0x2ed81
testl %ebp, %ebp
jne 0x2f8bd
addl $-0x8, %edx
movslq %edx, %rbp
leaq 0x68(%rsp), %rdi
movq %rbp, %rdx
movq $-0x1, %rcx
movq %rbx, (%rsp)
callq 0x63f0
movq 0x48(%r12), %rcx
movq 0x50(%r12), %r8
leaq 0x68(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x6430
leaq 0x48(%r12), %rsi
leaq 0x18(%rsp), %rdi
movq %rdi, -0x10(%rdi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x2ef5b
movq %rdi, %r13
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x2ef64
addl $-0x8, %edx
movslq %edx, %rbp
leaq 0x68(%rsp), %rdi
movq %rbp, %rdx
movq $-0x1, %rcx
callq 0x63f0
movq 0x48(%r12), %rcx
movq 0x50(%r12), %r8
leaq 0x68(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x6430
leaq 0x48(%r12), %rsi
leaq 0x18(%rsp), %rdi
movq %rdi, -0x10(%rdi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x2eecc
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x2eed2
leaq 0x98(%rsp), %rax
movq %rax, -0x10(%rax)
movq (%rsi), %rsi
addq %rsi, %rdx
leaq 0x88(%rsp), %rdi
callq 0x1c190
leaq 0x38(%rsp), %rax
movq %rax, -0x10(%rax)
movq 0x28(%r12), %rsi
movq 0x30(%r12), %rdx
addq %rsi, %rdx
leaq 0x28(%rsp), %rdi
callq 0x1c190
movq 0x90(%rsp), %rax
cmpq $0xb, %rax
ja 0x2ee73
movl $0xc, %r13d
movl $0xc, %ecx
subq %rax, %rcx
leaq 0x88(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
movl $0x47, %r8d
callq 0x66b0
leaq 0x28(%rsp), %rdi
subq 0x8(%rdi), %r13
xorl %esi, %esi
xorl %edx, %edx
movq %r13, %rcx
movl $0x41, %r8d
callq 0x66b0
leaq 0x48(%r12), %rdx
leaq 0x48(%rsp), %rdi
leaq 0x88(%rsp), %rsi
callq 0x2fde2
movq 0x48(%r12), %rsi
movq 0x50(%r12), %rdx
leaq 0x48(%rsp), %rdi
callq 0x6120
leaq 0x78(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x2efe8
movq %rdx, 0x68(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x78(%rsp)
jmp 0x2efef
movups (%rcx), %xmm0
movups %xmm0, (%rdi)
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x48(%rsp), %rdi
movl $0x2, %edx
movl $0x6, %ecx
callq 0x63f0
movq 0x8(%rsp), %rcx
movq 0x10(%rsp), %r8
movq 0x50(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
leaq 0x18(%rsp), %rsi
cmpq %rsi, %rcx
je 0x2ef25
movq 0x18(%rsp), %rdi
movq 0x48(%rsp), %rsi
cmpq %rdi, %rax
jbe 0x2ef4c
leaq 0x58(%rsp), %r9
movl $0xf, %edi
cmpq %r9, %rsi
je 0x2ef43
movq 0x58(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x2f244
leaq 0x8(%rsp), %rdi
callq 0x6120
jmp 0x2f252
movups (%rcx), %xmm0
movq %rdi, %r13
movups %xmm0, (%rdi)
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x48(%rsp), %rdi
movl $0x4, %edx
movl $0x4, %ecx
callq 0x63f0
movq 0x8(%rsp), %rcx
movq 0x10(%rsp), %r8
movq 0x50(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
cmpq %r13, %rcx
je 0x2efb2
movq 0x18(%rsp), %rdi
movq 0x48(%rsp), %rsi
cmpq %rdi, %rax
jbe 0x2efd9
leaq 0x58(%rsp), %r9
movl $0xf, %edi
cmpq %r9, %rsi
je 0x2efd0
movq 0x58(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x2f48e
leaq 0x8(%rsp), %rdi
callq 0x6120
jmp 0x2f49c
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq %r14, %rbp
movq 0x8(%rax), %rdx
leaq 0x68(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x88(%r12), %rsi
movq 0x90(%r12), %rdx
callq 0x6120
leaq 0x18(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x2f04a
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x2f051
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
leaq 0x8(%rsp), %r13
movq %rdx, 0x8(%r13)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x20(%rbx), %rdi
movq %r13, %rsi
callq 0x64d0
movq (%r13), %rdi
cmpq %r14, %rdi
je 0x2f08f
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x63c0
movq 0x68(%rsp), %rdi
cmpq %r15, %rdi
je 0x2f0a6
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x63c0
leaq 0x58(%rsp), %r13
movq -0x10(%r13), %rdi
cmpq %r13, %rdi
je 0x2f0c1
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x63c0
leaq 0x68(%r12), %rdx
leaq 0x48(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0x2fde2
movq 0x68(%r12), %rsi
movq 0x70(%r12), %rdx
leaq 0x48(%rsp), %rdi
callq 0x6120
movq %r15, 0x68(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x2f10c
movq %rdx, 0x68(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x78(%rsp)
jmp 0x2f113
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
leaq 0x68(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0xa8(%r12), %rsi
movq 0xb0(%r12), %rdx
callq 0x6120
movq %r14, 0x8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x2f167
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x2f16e
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
leaq 0x8(%rsp), %r12
movq %rdx, 0x8(%r12)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x60(%rbx), %rdi
movq %r12, %rsi
callq 0x64d0
movq (%r12), %rdi
cmpq %r14, %rdi
je 0x2f1ad
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x63c0
movq 0x68(%rsp), %rdi
cmpq %r15, %rdi
je 0x2f1c4
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x63c0
movq 0x48(%rsp), %rdi
cmpq %r13, %rdi
movq 0xa8(%rsp), %r15
je 0x2f1e3
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x63c0
leaq 0x40(%rbx), %rdi
movq %r15, %rsi
callq 0x6230
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x6230
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x2f216
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x63c0
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0x2f8a8
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x63c0
jmp 0x2f8a8
leaq 0x48(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x6430
leaq 0x38(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x2f276
movq %rsi, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x2f27c
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x30(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
movq 0x88(%r12), %rsi
movq 0x90(%r12), %rdx
leaq 0x28(%rsp), %rdi
callq 0x6120
leaq 0x98(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
movq %rbp, %r15
cmpq %rcx, %rdx
je 0x2f2e6
movq %rdx, 0x88(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x98(%rsp)
jmp 0x2f2ed
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
leaq 0x88(%rsp), %rbp
movq %rdx, 0x8(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x20(%rbx), %rdi
movq %rbp, %rsi
callq 0x64d0
movq (%rbp), %rdi
movq %r14, %rbp
cmpq %r14, %rdi
je 0x2f334
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x63c0
leaq 0x38(%rsp), %r14
movq -0x10(%r14), %rdi
cmpq %r14, %rdi
je 0x2f34f
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x63c0
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2f36a
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x63c0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x2f386
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x63c0
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2f3a1
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x63c0
leaq 0x28(%r12), %rsi
leaq 0x68(%rsp), %rdi
movq %r15, %rdx
movq $-0x1, %rcx
callq 0x63f0
movq 0x68(%r12), %rcx
movq 0x70(%r12), %r8
leaq 0x68(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x6430
leaq 0x18(%rsp), %r13
movq %rbp, %r15
leaq 0x68(%r12), %rsi
movq %r13, 0x8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
leaq 0x58(%rsp), %rbp
je 0x2f407
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x2f40f
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x48(%rsp), %rdi
movl $0x2, %edx
movl $0x6, %ecx
callq 0x63f0
movq 0x8(%rsp), %rcx
movq 0x10(%rsp), %r8
movq 0x50(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
cmpq %r13, %rcx
je 0x2f45d
movq 0x18(%rsp), %rdi
movq 0x48(%rsp), %rsi
cmpq %rdi, %rax
jbe 0x2f47f
movl $0xf, %edi
cmpq %rbp, %rsi
je 0x2f476
movq 0x58(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x2f6ce
leaq 0x8(%rsp), %rdi
callq 0x6120
jmp 0x2f6dc
leaq 0x48(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x6430
leaq 0x38(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x2f4c0
movq %rsi, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x2f4c6
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x30(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
movq 0x88(%r12), %rsi
movq 0x90(%r12), %rdx
leaq 0x28(%rsp), %rdi
callq 0x6120
leaq 0x98(%rsp), %rbx
movq %rbx, -0x10(%rbx)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
movq %rbp, %r15
cmpq %rcx, %rdx
je 0x2f530
movq %rdx, 0x88(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x98(%rsp)
jmp 0x2f536
movups (%rcx), %xmm0
movups %xmm0, (%rbx)
movq 0x8(%rax), %rdx
leaq 0x88(%rsp), %rbp
movq %rdx, 0x8(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq (%rsp), %rax
leaq 0x20(%rax), %rdi
movq %rbp, %rsi
callq 0x64d0
movq (%rbp), %rdi
movq %rbx, %rbp
cmpq %rbx, %rdi
je 0x2f581
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x63c0
leaq 0x38(%rsp), %r14
movq -0x10(%r14), %rdi
cmpq %r14, %rdi
je 0x2f59c
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x63c0
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
movq (%rsp), %rbx
je 0x2f5bb
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x63c0
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x2f5d2
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x63c0
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2f5ed
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x63c0
leaq 0x28(%r12), %rsi
leaq 0x68(%rsp), %rdi
movq %r15, %rdx
movq $-0x1, %rcx
callq 0x63f0
movq 0x68(%r12), %rcx
movq 0x70(%r12), %r8
leaq 0x68(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x6430
movq %rbp, %r15
leaq 0x68(%r12), %rsi
movq %r13, 0x8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
leaq 0x58(%rsp), %rbp
je 0x2f64e
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x2f656
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x48(%rsp), %rdi
movl $0x4, %edx
movl $0x4, %ecx
callq 0x63f0
movq 0x8(%rsp), %rcx
movq 0x10(%rsp), %r8
movq 0x50(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
cmpq %r13, %rcx
je 0x2f6a4
movq 0x18(%rsp), %rdi
movq 0x48(%rsp), %rsi
cmpq %rdi, %rax
jbe 0x2f6c2
movl $0xf, %edi
cmpq %rbp, %rsi
je 0x2f6bd
movq 0x58(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x2f73c
leaq 0x8(%rsp), %rdi
callq 0x6120
jmp 0x2f74a
leaq 0x48(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x6430
movq %r14, 0x28(%rsp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0x2f6fc
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x2f703
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x30(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
movq 0xa8(%r12), %rsi
movq 0xb0(%r12), %rdx
leaq 0x28(%rsp), %rdi
callq 0x6120
jmp 0x2f7a8
leaq 0x48(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x6430
movq %r14, 0x28(%rsp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0x2f76a
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x2f771
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x30(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
movq 0xa8(%r12), %rsi
movq 0xb0(%r12), %rdx
leaq 0x28(%rsp), %rdi
callq 0x6120
movq %r15, 0x88(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x2f7d4
movq %rdx, 0x88(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x98(%rsp)
jmp 0x2f7db
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
leaq 0x88(%rsp), %r12
movq %rdx, 0x8(%r12)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x60(%rbx), %rdi
movq %r12, %rsi
callq 0x64d0
movq (%r12), %rdi
cmpq %r15, %rdi
je 0x2f820
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x63c0
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
movq 0xa8(%rsp), %r15
je 0x2f83f
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x63c0
movq 0x48(%rsp), %rdi
cmpq %rbp, %rdi
movq 0xb0(%rsp), %r14
je 0x2f85e
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x63c0
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x2f875
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x63c0
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x2f891
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x63c0
leaq 0x40(%rbx), %rdi
movq %r15, %rsi
callq 0x6230
movq %rbx, %rdi
movq %r14, %rsi
callq 0x6230
movq %rbx, %rax
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x106f4(%rip), %rdi     # 0x3ffb8
leaq 0x3ecc(%rip), %rsi      # 0x33797
callq 0x63a0
xorl %edi, %edi
callq 0x64c0
jmp 0x2fae6
jmp 0x2fae6
jmp 0x2f8e7
movq %rbx, (%rsp)
movq %rax, %r12
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
je 0x2f92c
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x63c0
jmp 0x2f92c
jmp 0x2f929
movq %rbx, (%rsp)
movq %rax, %r12
movq 0x68(%rsp), %rdi
cmpq %r15, %rdi
je 0x2f953
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x63c0
jmp 0x2f953
movq %rbx, (%rsp)
movq %rax, %r12
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x2f96d
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x63c0
jmp 0x2f96d
jmp 0x2f96a
movq %rbx, (%rsp)
movq %rax, %r12
movq 0x48(%rsp), %rdi
cmpq %r13, %rdi
jne 0x2fa06
jmp 0x2faed
movq %rbx, (%rsp)
movq %rax, %r12
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x2f994
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x63c0
jmp 0x2f994
jmp 0x2f991
jmp 0x2fae6
movq %rbx, (%rsp)
movq %rax, %r12
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
jmp 0x2fad4
jmp 0x2fb34
movq %rbx, (%rsp)
movq %rax, %r12
movq 0x68(%rsp), %rdi
cmpq %r15, %rdi
je 0x2f9f4
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x63c0
jmp 0x2f9f4
jmp 0x2fb30
movq %rax, %r12
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2fa3f
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x63c0
jmp 0x2fa3f
movq %rbx, (%rsp)
movq %rax, %r12
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2faed
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x63c0
jmp 0x2faed
movq %rbx, (%rsp)
movq %rax, %r12
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2fa68
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x63c0
jmp 0x2fa68
movq %rax, %r12
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2fa88
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x63c0
jmp 0x2fa88
jmp 0x2fae6
movq %rbx, (%rsp)
movq %rax, %r12
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2fa9b
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x63c0
jmp 0x2fa9b
movq %rax, %r12
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
jne 0x2faaa
jmp 0x2facb
movq %rbx, (%rsp)
movq %rax, %r12
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x2facb
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x63c0
jmp 0x2facb
jmp 0x2fac8
movq %rbx, (%rsp)
movq %rax, %r12
jmp 0x2fb09
movq %rbx, (%rsp)
movq %rax, %r12
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2fb37
movq 0x78(%rsp), %rsi
jmp 0x2fb26
jmp 0x2fb34
jmp 0x2fb30
jmp 0x2fb30
movq %rbx, (%rsp)
movq %rax, %r12
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x2fb09
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x63c0
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0x2fb37
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x63c0
jmp 0x2fb37
movq %rbx, (%rsp)
movq %rax, %r12
movq (%rsp), %rdi
callq 0x1a846
movq %r12, %rdi
callq 0x6660