// File: millanek[P]evo/process_vcf_use_map.cpp
// Function: printProcessedVCFline(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>&, bool, char, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, int const&, int const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void printProcessedVCFline(std::vector<string>& vcfFields, const bool bInLG, const char thisScaffoldOrientation, const std::string& thisLG, const int& LGsizeUpToHere, const int& thisScaffoldSize, const std::string& line) {
    int pos = atoi(vcfFields[1].c_str());
    vcfFields.erase(vcfFields.begin(), vcfFields.begin()+2);
    if (bInLG) {
        if (thisScaffoldOrientation == '+') {
            std::cout << thisLG << "\t" << LGsizeUpToHere + pos << "\t";
            print_vector(vcfFields, std::cout);
        } else if (thisScaffoldOrientation == '-') {
            std::cout << thisLG << "\t" << LGsizeUpToHere + (thisScaffoldSize - pos + 1) << "\t";
            vcfFields[1] = reverseComplementIUPAC(vcfFields[1]);
            vcfFields[2] = reverseComplementIUPAC(vcfFields[2]);
            print_vector(vcfFields, std::cout);
        }
    } else {
        std::cout << line << std::endl;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x140, %rsp            # imm = 0x140
movb %dl, %al
movb %sil, %dl
movq 0x10(%rbp), %rsi
movq %rdi, -0x8(%rbp)
andb $0x1, %dl
movb %dl, -0x9(%rbp)
movb %al, -0xa(%rbp)
movq %rcx, -0x18(%rbp)
movq %r8, -0x20(%rbp)
movq %r9, -0x28(%rbp)
movq -0x8(%rbp), %rdi
movl $0x1, %esi
callq 0x3d940
movq %rax, %rdi
callq 0xa220
movq %rax, %rdi
callq 0xa970
movl %eax, -0x2c(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0xe8(%rbp)
movq -0x8(%rbp), %rdi
callq 0x44030
movq %rax, -0x40(%rbp)
leaq -0x38(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x6b2e0
movq -0x8(%rbp), %rdi
callq 0x44030
movq %rax, -0x58(%rbp)
leaq -0x58(%rbp), %rdi
movl $0x2, %esi
callq 0x44390
movq %rax, -0x50(%rbp)
leaq -0x48(%rbp), %rdi
leaq -0x50(%rbp), %rsi
callq 0x6b2e0
movq -0xe8(%rbp), %rdi
movq -0x38(%rbp), %rsi
movq -0x48(%rbp), %rdx
callq 0xa22b0
movq %rax, -0x60(%rbp)
testb $0x1, -0x9(%rbp)
je 0xc3d56
movsbl -0xa(%rbp), %eax
cmpl $0x2b, %eax
jne 0xc3bdb
movq -0x18(%rbp), %rsi
movq 0xd547f(%rip), %rdi     # 0x198fb8
movq %rdi, -0xf0(%rbp)
callq 0xa520
movq %rax, %rdi
leaq 0x7238f(%rip), %rsi     # 0x135ede
movq %rsi, -0x100(%rbp)
callq 0xa5c0
movq %rax, %rdi
movq -0x20(%rbp), %rax
movl (%rax), %esi
movl -0x2c(%rbp), %eax
addl %eax, %esi
callq 0xab20
movq -0x100(%rbp), %rsi
movq %rax, %rdi
callq 0xa5c0
movq -0x8(%rbp), %rsi
leaq -0x78(%rbp), %rdi
movq %rdi, -0xf8(%rbp)
callq 0x3fee0
movq -0xf8(%rbp), %rdi
movq -0xf0(%rbp), %rsi
movl $0x9, %edx
movl $0x1, %ecx
callq 0x50da0
jmp 0xc3bb0
leaq -0x78(%rbp), %rdi
callq 0x3dfa0
jmp 0xc3d54
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
leaq -0x78(%rbp), %rdi
callq 0x3dfa0
jmp 0xc3d7e
movsbl -0xa(%rbp), %eax
cmpl $0x2d, %eax
jne 0xc3d52
movq -0x18(%rbp), %rsi
movq 0xd53c5(%rip), %rdi     # 0x198fb8
movq %rdi, -0x108(%rbp)
callq 0xa520
movq %rax, %rdi
leaq 0x722d5(%rip), %rsi     # 0x135ede
movq %rsi, -0x138(%rbp)
callq 0xa5c0
movq %rax, %rdi
movq -0x20(%rbp), %rax
movl (%rax), %eax
movq -0x28(%rbp), %rcx
movl (%rcx), %edx
movl -0x2c(%rbp), %ecx
subl %ecx, %edx
movl %eax, %ecx
movl %edx, %eax
leal 0x1(%rax,%rcx), %esi
callq 0xab20
movq -0x138(%rbp), %rsi
movq %rax, %rdi
callq 0xa5c0
movq -0x8(%rbp), %rdi
movl $0x1, %esi
movq %rsi, -0x130(%rbp)
callq 0x3d940
movq %rax, %rsi
leaq -0xa8(%rbp), %rdi
movq %rdi, -0x128(%rbp)
callq 0x8e790
movq -0x130(%rbp), %rsi
movq -0x8(%rbp), %rdi
callq 0x3d940
movq -0x128(%rbp), %rsi
movq %rax, %rdi
callq 0xa710
movq -0x128(%rbp), %rdi
callq 0xac88
movq -0x8(%rbp), %rdi
movl $0x2, %esi
movq %rsi, -0x120(%rbp)
callq 0x3d940
movq %rax, %rsi
leaq -0xc8(%rbp), %rdi
movq %rdi, -0x118(%rbp)
callq 0x8e790
movq -0x120(%rbp), %rsi
movq -0x8(%rbp), %rdi
callq 0x3d940
movq -0x118(%rbp), %rsi
movq %rax, %rdi
callq 0xa710
movq -0x118(%rbp), %rdi
callq 0xac88
movq -0x8(%rbp), %rsi
leaq -0xe0(%rbp), %rdi
movq %rdi, -0x110(%rbp)
callq 0x3fee0
movq -0x110(%rbp), %rdi
movq -0x108(%rbp), %rsi
movl $0x9, %edx
movl $0x1, %ecx
callq 0x50da0
jmp 0xc3d27
leaq -0xe0(%rbp), %rdi
callq 0x3dfa0
jmp 0xc3d52
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
leaq -0xe0(%rbp), %rdi
callq 0x3dfa0
jmp 0xc3d7e
jmp 0xc3d54
jmp 0xc3d75
movq 0x10(%rbp), %rsi
movq 0xd5257(%rip), %rdi     # 0x198fb8
callq 0xa520
movq %rax, %rdi
movq 0xd5218(%rip), %rsi     # 0x198f88
callq 0xa610
addq $0x140, %rsp            # imm = 0x140
popq %rbp
retq
movq -0x80(%rbp), %rdi
callq 0xab50
nopw (%rax,%rax)