// File: /workspace/github_cpp_makefile_star2_O2/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %r9, 0x10(%rsp)
movq %r8, 0x8(%rsp)
movq %rcx, %r13
movl %edx, %r14d
movl %esi, %r12d
movq %rdi, %rbx
movq 0xa0(%rsp), %r15
movq (%rdi), %rbp
movq 0x20(%rbp), %rdi
callq 0x86f0
movl %eax, 0x4(%rsp)
leaq 0x40(%rbp), %rdx
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x4ef54
testl %r12d, %r12d
je 0x5fa33
movsbl %r14b, %eax
cmpl $0x2d, %eax
je 0x5fa58
cmpl $0x2b, %eax
jne 0x5fb27
movq 0x7d5eb(%rip), %r14     # 0xdcfb8
movq %r14, %rdi
movq %r13, %rsi
callq 0x8430
leaq 0x3a43f(%rip), %r15     # 0x99e1e
movq %rax, %rdi
movq %r15, %rsi
callq 0x8480
movq 0x8(%rsp), %rcx
movl 0x4(%rsp), %esi
addl (%rcx), %esi
movq %rax, %rdi
callq 0x8840
movq %rax, %rdi
movq %r15, %rsi
callq 0x8480
leaq 0x30(%rsp), %r15
movq %r15, %rdi
movq %rbx, %rsi
callq 0x297dc
pushq $0x9
popq %rdx
pushq $0x1
popq %rcx
movq %r15, %rdi
movq %r14, %rsi
callq 0x2ea24
leaq 0x30(%rsp), %rdi
jmp 0x5fb22
movq 0x7d57e(%rip), %rdi     # 0xdcfb8
movq %r15, %rsi
callq 0x8430
movq %rax, %rdi
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x8230
movq 0x7d559(%rip), %r14     # 0xdcfb8
movq %r14, %rdi
movq %r13, %rsi
callq 0x8430
leaq 0x3a3ad(%rip), %r15     # 0x99e1e
movq %rax, %rdi
movq %r15, %rsi
callq 0x8480
movq 0x8(%rsp), %rcx
movl (%rcx), %ecx
movq 0x10(%rsp), %rdx
movl (%rdx), %edx
subl 0x4(%rsp), %ecx
leal (%rcx,%rdx), %esi
incl %esi
movq %rax, %rdi
callq 0x8840
movq %rax, %rdi
movq %r15, %rsi
callq 0x8480
movq (%rbx), %rsi
addq $0x20, %rsi
leaq 0x48(%rsp), %r15
movq %r15, %rdi
callq 0x465bc
movq (%rbx), %rdi
addq $0x20, %rdi
movq %r15, %rsi
callq 0x8550
movq %r15, %rdi
callq 0x8978
movq (%rbx), %rsi
addq $0x40, %rsi
leaq 0x48(%rsp), %r15
movq %r15, %rdi
callq 0x465bc
movq (%rbx), %rdi
addq $0x40, %rdi
movq %r15, %rsi
callq 0x8550
movq %r15, %rdi
callq 0x8978
leaq 0x18(%rsp), %r15
movq %r15, %rdi
movq %rbx, %rsi
callq 0x297dc
pushq $0x9
popq %rdx
pushq $0x1
popq %rcx
movq %r15, %rdi
movq %r14, %rsi
callq 0x2ea24
leaq 0x18(%rsp), %rdi
callq 0x28a08
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x5fb38
movq %rax, %rbx
movq %r15, %rdi
callq 0x28a08
movq %rbx, %rdi
callq 0x8870
nop