// File: millanek[P]Dsuite/D.cpp
// Function: TestTrioInfo::mergeABBA_BABA_SiteCoordsOverChoms()
void TestTrioInfo::mergeABBA_BABA_SiteCoordsOverChoms() {
    int totalNumABBAsites = 0;
    for(std::map<string,std::vector<int>>::iterator it = ABBAsitePositionsPerChomosome.begin(); it != ABBAsitePositionsPerChomosome.end(); it++) {
        totalNumABBAsites = totalNumABBAsites + (int)it->second.size();
    } linearABBApos.reserve(totalNumABBAsites);
    
    int linearPosSoFar = 0;
    for(std::map<string,std::vector<int>>::iterator it = ABBAsitePositionsPerChomosome.begin(); it != ABBAsitePositionsPerChomosome.end(); it++) {
        for (std::vector<int>::size_type i = 0; i < it->second.size(); i++) {
            linearABBApos.push_back(it->second[i] + linearPosSoFar);
        }
    }
    
    int totalNumBABAsites = 0;
    for(std::map<string,std::vector<int>>::iterator it = BABAsitePositionsPerChomosome.begin(); it != BABAsitePositionsPerChomosome.end(); it++) {
        totalNumBABAsites = totalNumBABAsites + (int)it->second.size();
    } linearBABApos.reserve(totalNumBABAsites);
    
    linearPosSoFar = 0;
    for(std::map<string,std::vector<int>>::iterator it = BABAsitePositionsPerChomosome.begin(); it != BABAsitePositionsPerChomosome.end(); it++) {
        for (std::vector<int>::size_type i = 0; i < it->second.size(); i++) {
            linearBABApos.push_back(it->second[i] + linearPosSoFar);
        }
    }
    
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xe0, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0xa8(%rbp)
movl $0x0, -0xc(%rbp)
callq 0x11a60
movq %rax, -0x18(%rbp)
movq -0xa8(%rbp), %rdi
callq 0x11ac0
movq %rax, -0x20(%rbp)
leaq -0x18(%rbp), %rdi
leaq -0x20(%rbp), %rsi
callq 0x11a90
testb $0x1, %al
jne 0x1ef4d
jmp 0x1ef8a
movl -0xc(%rbp), %eax
movl %eax, -0xac(%rbp)
leaq -0x18(%rbp), %rdi
callq 0x11af0
movq %rax, %rdi
addq $0x20, %rdi
callq 0x119e0
movq %rax, %rcx
movl -0xac(%rbp), %eax
addl %ecx, %eax
movl %eax, -0xc(%rbp)
leaq -0x18(%rbp), %rdi
xorl %esi, %esi
callq 0x21ec0
movq %rax, -0x28(%rbp)
jmp 0x1ef2a
movq -0xa8(%rbp), %rdi
addq $0x30, %rdi
movslq -0xc(%rbp), %rsi
callq 0x21f00
movq -0xa8(%rbp), %rdi
movl $0x0, -0x2c(%rbp)
callq 0x11a60
movq %rax, -0x38(%rbp)
movq -0xa8(%rbp), %rdi
callq 0x11ac0
movq %rax, -0x40(%rbp)
leaq -0x38(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x11a90
testb $0x1, %al
jne 0x1efdb
jmp 0x1f079
movq $0x0, -0x48(%rbp)
movq -0x48(%rbp), %rax
movq %rax, -0xb8(%rbp)
leaq -0x38(%rbp), %rdi
callq 0x11af0
movq %rax, %rdi
addq $0x20, %rdi
callq 0x119e0
movq %rax, %rcx
movq -0xb8(%rbp), %rax
cmpq %rcx, %rax
jae 0x1f063
movq -0xa8(%rbp), %rax
addq $0x30, %rax
movq %rax, -0xc0(%rbp)
leaq -0x38(%rbp), %rdi
callq 0x11af0
movq %rax, %rdi
addq $0x20, %rdi
movq -0x48(%rbp), %rsi
callq 0x115a0
movq -0xc0(%rbp), %rdi
movl (%rax), %eax
addl -0x2c(%rbp), %eax
movl %eax, -0x4c(%rbp)
leaq -0x4c(%rbp), %rsi
callq 0x11780
movq -0x48(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x48(%rbp)
jmp 0x1efe3
jmp 0x1f065
leaq -0x38(%rbp), %rdi
xorl %esi, %esi
callq 0x21ec0
movq %rax, -0x58(%rbp)
jmp 0x1efb5
movq -0xa8(%rbp), %rdi
movl $0x0, -0x5c(%rbp)
addq $0x48, %rdi
callq 0x11a60
movq %rax, -0x68(%rbp)
movq -0xa8(%rbp), %rdi
addq $0x48, %rdi
callq 0x11ac0
movq %rax, -0x70(%rbp)
leaq -0x68(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0x11a90
testb $0x1, %al
jne 0x1f0bb
jmp 0x1f0f8
movl -0x5c(%rbp), %eax
movl %eax, -0xc4(%rbp)
leaq -0x68(%rbp), %rdi
callq 0x11af0
movq %rax, %rdi
addq $0x20, %rdi
callq 0x119e0
movq %rax, %rcx
movl -0xc4(%rbp), %eax
addl %ecx, %eax
movl %eax, -0x5c(%rbp)
leaq -0x68(%rbp), %rdi
xorl %esi, %esi
callq 0x21ec0
movq %rax, -0x78(%rbp)
jmp 0x1f094
movq -0xa8(%rbp), %rdi
addq $0x78, %rdi
movslq -0x5c(%rbp), %rsi
callq 0x21f00
movq -0xa8(%rbp), %rdi
movl $0x0, -0x2c(%rbp)
addq $0x48, %rdi
callq 0x11a60
movq %rax, -0x80(%rbp)
movq -0xa8(%rbp), %rdi
addq $0x48, %rdi
callq 0x11ac0
movq %rax, -0x88(%rbp)
leaq -0x80(%rbp), %rdi
leaq -0x88(%rbp), %rsi
callq 0x11a90
testb $0x1, %al
jne 0x1f157
jmp 0x1f210
movq $0x0, -0x90(%rbp)
movq -0x90(%rbp), %rax
movq %rax, -0xd0(%rbp)
leaq -0x80(%rbp), %rdi
callq 0x11af0
movq %rax, %rdi
addq $0x20, %rdi
callq 0x119e0
movq %rax, %rcx
movq -0xd0(%rbp), %rax
cmpq %rcx, %rax
jae 0x1f1f7
movq -0xa8(%rbp), %rax
addq $0x78, %rax
movq %rax, -0xd8(%rbp)
leaq -0x80(%rbp), %rdi
callq 0x11af0
movq %rax, %rdi
addq $0x20, %rdi
movq -0x90(%rbp), %rsi
callq 0x115a0
movq -0xd8(%rbp), %rdi
movl (%rax), %eax
addl -0x2c(%rbp), %eax
movl %eax, -0x94(%rbp)
leaq -0x94(%rbp), %rsi
callq 0x11780
movq -0x90(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x90(%rbp)
jmp 0x1f162
jmp 0x1f1f9
leaq -0x80(%rbp), %rdi
xorl %esi, %esi
callq 0x21ec0
movq %rax, -0xa0(%rbp)
jmp 0x1f127
addq $0xe0, %rsp
popq %rbp
retq
nopl (%rax)