// File: killwing[P]PTree/./PTree.cpp
// Function: void PTree<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>::push<int>(PTree<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>::Path, int const&)
void
PTree<Key>::push(Path path, const T& value) {
    if (path.empty()) {
        return;
    }

    std::string p = path.pop();
    boost::any& a = data_[p];
    if (path.empty()) {
        std::vector<T>* v = boost::any_cast<std::vector<T> >(&a);
        if (v) {
            v->push_back(value);
        } else {
            a = std::vector<T>(1, value); // make a new vector
        }
    } else {
        PTree* child = boost::any_cast<PTree>(&a);
        if (!child) {
            a = PTree(); // make a new tree
            child = boost::any_cast<PTree>(&a); // update
        }
        assert(child);
        child->push(path, value);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x150, %rsp            # imm = 0x150
movq %rsi, -0x118(%rbp)
movq %rdi, %rax
movq -0x118(%rbp), %rdi
movq %rdi, -0x110(%rbp)
movq %rax, -0x8(%rbp)
movq %rdi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x108(%rbp)
callq 0x72a0
testb $0x1, %al
jne 0x5ef5
jmp 0x5efa
jmp 0x6141
movq -0x110(%rbp), %rsi
leaq -0x38(%rbp), %rdi
movq %rdi, -0x128(%rbp)
callq 0x72c0
movq -0x108(%rbp), %rdi
movq -0x128(%rbp), %rsi
callq 0x7360
movq %rax, -0x120(%rbp)
jmp 0x5f2d
movq -0x110(%rbp), %rdi
movq -0x120(%rbp), %rax
movq %rax, -0x40(%rbp)
callq 0x72a0
movb %al, -0x129(%rbp)
jmp 0x5f4c
movb -0x129(%rbp), %al
testb $0x1, %al
jne 0x5f5b
jmp 0x6026
movq -0x40(%rbp), %rdi
callq 0xc650
movq %rax, -0x58(%rbp)
cmpq $0x0, -0x58(%rbp)
je 0x5f94
movq -0x58(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0xc6c0
jmp 0x5f7e
jmp 0x6021
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x614a
movq -0x18(%rbp), %rax
movq %rax, -0x140(%rbp)
leaq -0x71(%rbp), %rdi
movq %rdi, -0x138(%rbp)
callq 0xc730
movq -0x140(%rbp), %rdx
movq -0x138(%rbp), %rcx
leaq -0x70(%rbp), %rdi
movl $0x1, %esi
callq 0xc750
jmp 0x5fcd
movq -0x40(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0xc7d0
jmp 0x5fdc
leaq -0x70(%rbp), %rdi
callq 0xc820
leaq -0x71(%rbp), %rdi
callq 0xc880
jmp 0x6021
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x6013
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x70(%rbp), %rdi
callq 0xc820
leaq -0x71(%rbp), %rdi
callq 0xc880
jmp 0x614a
jmp 0x6138
movq -0x40(%rbp), %rdi
callq 0x7490
movq %rax, -0x80(%rbp)
cmpq $0x0, -0x80(%rbp)
jne 0x60af
xorps %xmm0, %xmm0
movaps %xmm0, -0x90(%rbp)
movaps %xmm0, -0xa0(%rbp)
movaps %xmm0, -0xb0(%rbp)
leaq -0xb0(%rbp), %rdi
movq %rdi, -0x148(%rbp)
callq 0x4510
movq -0x148(%rbp), %rsi
movq -0x40(%rbp), %rdi
callq 0x7500
jmp 0x6077
leaq -0xb0(%rbp), %rdi
callq 0x6420
movq -0x40(%rbp), %rdi
callq 0x7490
movq %rax, -0x80(%rbp)
jmp 0x60af
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0xb0(%rbp), %rdi
callq 0x6420
jmp 0x614a
cmpq $0x0, -0x80(%rbp)
je 0x60b8
jmp 0x60d7
leaq 0x80ef(%rip), %rdi      # 0xe1ae
leaq 0x80ee(%rip), %rsi      # 0xe1b4
movl $0xaa, %edx
leaq 0x82ef(%rip), %rcx      # 0xe3c1
callq 0x3130
movq -0x110(%rbp), %rsi
movq -0x80(%rbp), %rax
movq %rax, -0x150(%rbp)
leaq -0x100(%rbp), %rdi
callq 0x7550
jmp 0x60f7
movq -0x150(%rbp), %rdi
movq -0x18(%rbp), %rdx
leaq -0x100(%rbp), %rsi
callq 0x5eb0
jmp 0x6110
leaq -0x100(%rbp), %rdi
callq 0x48e0
jmp 0x6138
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x100(%rbp), %rdi
callq 0x48e0
jmp 0x614a
leaq -0x38(%rbp), %rdi
callq 0x3120
addq $0x150, %rsp            # imm = 0x150
popq %rbp
retq
leaq -0x38(%rbp), %rdi
callq 0x3120
movq -0x48(%rbp), %rdi
callq 0x3360
nopl (%rax)