// File: aalto-speech[P]ftk/src/Bigrams.cc
// Function: Bigrams::reverse_transitions(std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, double, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, double>>>, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, double, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, double>>>>>> const&, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, double, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, double>>>, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, double, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, double>>>>>>&)
void
Bigrams::reverse_transitions(const transitions_t &transitions,
                             transitions_t &reverse_transitions)
{
    reverse_transitions.clear();
    for (auto srcit = transitions.cbegin(); srcit != transitions.cend(); ++srcit)
        for (auto tgtit = srcit->second.cbegin(); tgtit != srcit->second.cend(); ++tgtit)
            reverse_transitions[tgtit->first][srcit->first] = tgtit->second;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x10(%rbp), %rdi
callq 0x48490
movq -0x8(%rbp), %rdi
callq 0x60750
movq %rax, -0x18(%rbp)
movq -0x8(%rbp), %rdi
callq 0x607b0
movq %rax, -0x20(%rbp)
leaq -0x18(%rbp), %rdi
leaq -0x20(%rbp), %rsi
callq 0x60780
testb $0x1, %al
jne 0x5f259
jmp 0x5f30e
leaq -0x18(%rbp), %rdi
callq 0x607e0
movq %rax, %rdi
addq $0x20, %rdi
callq 0x1b260
movq %rax, -0x28(%rbp)
leaq -0x18(%rbp), %rdi
callq 0x607e0
movq %rax, %rdi
addq $0x20, %rdi
callq 0x1b2c0
movq %rax, -0x30(%rbp)
leaq -0x28(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0x1b290
testb $0x1, %al
jne 0x5f29e
jmp 0x5f2fe
leaq -0x28(%rbp), %rdi
callq 0x1b2f0
movsd 0x20(%rax), %xmm0
movsd %xmm0, -0x38(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x48(%rbp)
leaq -0x28(%rbp), %rdi
callq 0x1b2f0
movq -0x48(%rbp), %rdi
movq %rax, %rsi
callq 0x48700
movq %rax, -0x40(%rbp)
leaq -0x18(%rbp), %rdi
callq 0x607e0
movq -0x40(%rbp), %rdi
movq %rax, %rsi
callq 0x47db0
movsd -0x38(%rbp), %xmm0
movsd %xmm0, (%rax)
leaq -0x28(%rbp), %rdi
callq 0x1b320
jmp 0x5f272
jmp 0x5f300
leaq -0x18(%rbp), %rdi
callq 0x60810
jmp 0x5f236
addq $0x50, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)