// File: /workspace/github_cpp_makefile_star2_O1/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 0x2f944
leaq 0x8(%r12), %rsi
movq 0x10(%r12), %rdx
cmpl $0x2, %ebp
movq %r15, 0xa8(%rsp)
je 0x2ea1f
cmpl $0x1, %ebp
movq %r14, 0xb0(%rsp)
je 0x2e9ba
testl %ebp, %ebp
jne 0x2f4fc
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 0x2eb95
movq %rdi, %r13
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x2eb9e
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 0x2eb05
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x2eb0b
leaq 0x98(%rsp), %rax
movq %rax, -0x10(%rax)
movq (%rsi), %rsi
addq %rsi, %rdx
leaq 0x88(%rsp), %rdi
callq 0x1c224
leaq 0x38(%rsp), %rax
movq %rax, -0x10(%rax)
movq 0x28(%r12), %rsi
movq 0x30(%r12), %rdx
addq %rsi, %rdx
leaq 0x28(%rsp), %rdi
callq 0x1c224
movq 0x90(%rsp), %rax
cmpq $0xb, %rax
ja 0x2eaac
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 0x2fa22
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 0x2ec23
movq %rdx, 0x68(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x78(%rsp)
jmp 0x2ec2a
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, %esi
leaq 0x18(%rsp), %rdi
cmpq %rdi, %rcx
je 0x2eb5e
movq 0x18(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x2eb81
leaq 0x58(%rsp), %rdi
movl $0xf, %esi
cmpq %rdi, -0x10(%rdi)
je 0x2eb78
movq 0x58(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x2ee7f
movq 0x48(%rsp), %rsi
leaq 0x8(%rsp), %rdi
callq 0x6120
jmp 0x2ee8d
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, %esi
cmpq %r13, %rcx
je 0x2ebec
movq 0x18(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x2ec0f
leaq 0x58(%rsp), %rdi
movl $0xf, %esi
cmpq %rdi, -0x10(%rdi)
je 0x2ec06
movq 0x58(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x2f0cb
movq 0x48(%rsp), %rsi
leaq 0x8(%rsp), %rdi
callq 0x6120
jmp 0x2f0d9
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 0x2ec85
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x2ec8c
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 0x2ecca
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x63c0
movq 0x68(%rsp), %rdi
cmpq %r15, %rdi
je 0x2ece1
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x63c0
leaq 0x58(%rsp), %r13
movq -0x10(%r13), %rdi
cmpq %r13, %rdi
je 0x2ecfc
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x63c0
leaq 0x68(%r12), %rdx
leaq 0x48(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0x2fa22
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 0x2ed47
movq %rdx, 0x68(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x78(%rsp)
jmp 0x2ed4e
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 0x2eda2
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x2eda9
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 0x2ede8
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x63c0
movq 0x68(%rsp), %rdi
cmpq %r15, %rdi
je 0x2edff
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x63c0
movq 0x48(%rsp), %rdi
cmpq %r13, %rdi
movq 0xa8(%rsp), %r15
je 0x2ee1e
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 0x2ee51
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x63c0
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0x2f4e7
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x63c0
jmp 0x2f4e7
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 0x2eeb1
movq %rsi, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x2eeb7
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 0x2ef21
movq %rdx, 0x88(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x98(%rsp)
jmp 0x2ef28
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 0x2ef6f
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x63c0
leaq 0x38(%rsp), %r14
movq -0x10(%r14), %rdi
cmpq %r14, %rdi
je 0x2ef8a
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x63c0
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2efa5
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x63c0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x2efc1
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x63c0
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2efdc
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 0x2f042
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x2f04a
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, %esi
cmpq %r13, %rcx
je 0x2f098
movq 0x18(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x2f0b7
movl $0xf, %esi
cmpq %rbp, 0x48(%rsp)
je 0x2f0ae
movq 0x58(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x2f30d
movq 0x48(%rsp), %rsi
leaq 0x8(%rsp), %rdi
callq 0x6120
jmp 0x2f31b
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 0x2f0fd
movq %rsi, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x2f103
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 0x2f16d
movq %rdx, 0x88(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x98(%rsp)
jmp 0x2f173
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 0x2f1be
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x63c0
leaq 0x38(%rsp), %r14
movq -0x10(%r14), %rdi
cmpq %r14, %rdi
je 0x2f1d9
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x63c0
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
movq (%rsp), %rbx
je 0x2f1f8
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x63c0
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x2f20f
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x63c0
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2f22a
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 0x2f28b
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x2f293
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, %esi
cmpq %r13, %rcx
je 0x2f2e1
movq 0x18(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x2f2fc
movl $0xf, %esi
cmpq %rbp, 0x48(%rsp)
je 0x2f2f7
movq 0x58(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x2f37b
movq 0x48(%rsp), %rsi
leaq 0x8(%rsp), %rdi
callq 0x6120
jmp 0x2f389
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 0x2f33b
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x2f342
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 0x2f3e7
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 0x2f3a9
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x2f3b0
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 0x2f413
movq %rdx, 0x88(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x98(%rsp)
jmp 0x2f41a
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 0x2f45f
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x63c0
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
movq 0xa8(%rsp), %r15
je 0x2f47e
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x63c0
movq 0x48(%rsp), %rdi
cmpq %rbp, %rdi
movq 0xb0(%rsp), %r14
je 0x2f49d
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x63c0
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x2f4b4
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x63c0
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x2f4d0
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 0xfab5(%rip), %rdi      # 0x3efb8
leaq 0x31d6(%rip), %rsi      # 0x326e0
callq 0x63a0
xorl %edi, %edi
callq 0x64c0
jmp 0x2f725
jmp 0x2f725
jmp 0x2f526
movq %rbx, (%rsp)
movq %rax, %r12
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
je 0x2f56b
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x63c0
jmp 0x2f56b
jmp 0x2f568
movq %rbx, (%rsp)
movq %rax, %r12
movq 0x68(%rsp), %rdi
cmpq %r15, %rdi
je 0x2f592
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x63c0
jmp 0x2f592
movq %rbx, (%rsp)
movq %rax, %r12
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x2f5ac
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x63c0
jmp 0x2f5ac
jmp 0x2f5a9
movq %rbx, (%rsp)
movq %rax, %r12
movq 0x48(%rsp), %rdi
cmpq %r13, %rdi
jne 0x2f645
jmp 0x2f72c
movq %rbx, (%rsp)
movq %rax, %r12
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x2f5d3
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x63c0
jmp 0x2f5d3
jmp 0x2f5d0
jmp 0x2f725
movq %rbx, (%rsp)
movq %rax, %r12
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
jmp 0x2f713
jmp 0x2f773
movq %rbx, (%rsp)
movq %rax, %r12
movq 0x68(%rsp), %rdi
cmpq %r15, %rdi
je 0x2f633
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x63c0
jmp 0x2f633
jmp 0x2f76f
movq %rax, %r12
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2f67e
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x63c0
jmp 0x2f67e
movq %rbx, (%rsp)
movq %rax, %r12
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2f72c
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x63c0
jmp 0x2f72c
movq %rbx, (%rsp)
movq %rax, %r12
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2f6a7
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x63c0
jmp 0x2f6a7
movq %rax, %r12
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2f6c7
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x63c0
jmp 0x2f6c7
jmp 0x2f725
movq %rbx, (%rsp)
movq %rax, %r12
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2f6da
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x63c0
jmp 0x2f6da
movq %rax, %r12
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
jne 0x2f6e9
jmp 0x2f70a
movq %rbx, (%rsp)
movq %rax, %r12
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x2f70a
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x63c0
jmp 0x2f70a
jmp 0x2f707
movq %rbx, (%rsp)
movq %rax, %r12
jmp 0x2f748
movq %rbx, (%rsp)
movq %rax, %r12
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2f776
movq 0x78(%rsp), %rsi
jmp 0x2f765
jmp 0x2f773
jmp 0x2f76f
jmp 0x2f76f
movq %rbx, (%rsp)
movq %rax, %r12
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x2f748
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x63c0
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0x2f776
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x63c0
jmp 0x2f776
movq %rbx, (%rsp)
movq %rax, %r12
movq (%rsp), %rdi
callq 0x1a8ec
movq %r12, %rdi
callq 0x6660
nop