// File: /workspace/github_cpp_makefile_star2_O3/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, %r12
movl %edx, %r13d
movl %esi, %r14d
movq %rdi, %rbx
movq 0xa0(%rsp), %rbp
movq (%rdi), %r15
movq 0x20(%r15), %rdi
callq 0x86e0
movl %eax, 0x4(%rsp)
leaq 0x40(%r15), %rdx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x63bea
testl %r14d, %r14d
je 0x7cefb
movsbl %r13b, %eax
cmpl $0x2d, %eax
je 0x7cf47
cmpl $0x2b, %eax
jne 0x7d04d
movq (%r12), %rsi
movq 0x8(%r12), %rdx
movq 0x85131(%rip), %r15     # 0x101fb8
movq %r15, %rdi
callq 0x84e0
movq %rax, %r14
leaq 0x50b31(%rip), %r12     # 0xcd9ca
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x84e0
movq 0x8(%rsp), %rax
movl 0x4(%rsp), %esi
addl (%rax), %esi
movq %r14, %rdi
callq 0x8810
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x84e0
leaq 0x50(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2fc8e
movq %r14, %rdi
movq %r15, %rsi
movl $0x9, %edx
movl $0x1, %ecx
callq 0x36ba0
leaq 0x50(%rsp), %rdi
jmp 0x7d048
movq (%rbp), %rsi
movq 0x8(%rbp), %rdx
movq 0x850ae(%rip), %rdi     # 0x101fb8
callq 0x84e0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x8450
movsbl %al, %esi
movq %rbx, %rdi
callq 0x8040
movq %rax, %rdi
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x8300
movq (%r12), %rsi
movq 0x8(%r12), %rdx
movq 0x85061(%rip), %rdi     # 0x101fb8
callq 0x84e0
movq %rax, %r14
leaq 0x50a64(%rip), %r15     # 0xcd9ca
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x84e0
movq 0x8(%rsp), %rax
movl (%rax), %eax
movq 0x10(%rsp), %rcx
movl (%rcx), %ecx
subl 0x4(%rsp), %eax
leal (%rax,%rcx), %esi
incl %esi
movq %r14, %rdi
callq 0x8810
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x84e0
movq (%rbx), %rsi
addq $0x20, %rsi
leaq 0x18(%rsp), %r14
movq %r14, %rdi
callq 0x579a4
movq (%rbx), %rdi
addq $0x20, %rdi
movq %r14, %rsi
callq 0x8540
movq (%r14), %rdi
leaq 0x28(%rsp), %r15
cmpq %r15, %rdi
je 0x7cfe2
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x8480
movq (%rbx), %rsi
addq $0x40, %rsi
leaq 0x18(%rsp), %r14
movq %r14, %rdi
callq 0x579a4
movq (%rbx), %rdi
addq $0x40, %rdi
movq %r14, %rsi
callq 0x8540
movq (%r14), %rdi
cmpq %r15, %rdi
je 0x7d01a
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x8480
leaq 0x38(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2fc8e
movq 0x84f87(%rip), %rsi     # 0x101fb8
movq %r14, %rdi
movl $0x9, %edx
movl $0x1, %ecx
callq 0x36ba0
leaq 0x38(%rsp), %rdi
callq 0x2e784
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x7d05e
movq %rax, %rbx
movq %r14, %rdi
callq 0x2e784
movq %rbx, %rdi
callq 0x8840
nopl (%rax)