// File: /workspace/github_cpp_makefile_star2_O3/acliusBackHome[P]kamaya/dist/ParseNode.cpp
// Function: std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>& ParseNode::get_field<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>(NodeKey) const
MapType &ParseNode::get_field(NodeKey key) const {
    const auto key_map_iter = tree.node_key2map.find(key);
    map<size_t, MapType> &the_map = *((map<size_t, MapType> *) (key_map_iter->second));
    typedef typename map<size_t, MapType>::iterator MapIter;
    if (keys & key) {
        // 当前节点标记中有该key记录
        // 找该key对应的map
        if (key_map_iter == tree.node_key2map.end()) {
            // 但是没有找到key对应的记录
            // 说明没有定义key对应的map, 有bug
            string info = "NodeKey:";
            info += get_key_name(key) + " not defined.";
            throw ParseException(EX_NODE_KEY_NOT_DEFINED, info);
        }
        const MapIter &iter = the_map.find(node_id);
        if (iter == the_map.end()) {
            // 该节点标记有该记录, 但是对应的map中找不到该节点id的记录, 数据一致性被破坏 有bug
            string info = "ParseNode::get_field(NodeKey key): key=";
            info += get_key_name(key) + ", node_id=";
            info += to_string(node_id);
            throw ParseException(EX_NODE_KEY_DEFINED_NOT_FOUND, info);
        }
        return iter->second;
    } else {
        // 当前节点没有该记录
        // 有些节点是需要收集子树的信息来生成自身节点的信息, 所以需要先做一些动作进行收集信息
        switch (type) {
            case N_PARAM_LIST: {
                if (key == K_PARAM_LIST) {
                    collect_parameters_list();
                    return the_map.find(node_id)->second;
                }
                break;
            }
            case N_DECLARATOR:
            case N_INIT_DECLARATOR: {
                if (key == K_INIT_DEC) {
                    collect_init_declarator();
                    return the_map.find(node_id)->second;
                }
                break;
            }
            default:
                break;
        }
        // 试图向下搜索节点
        for (const auto &child_id: tree.node_children[node_id]) {
            const auto &child = tree.nodes[child_id];
            auto iter = tree.search_able.find(HasNodeKey(key, type, child.type));
            if (iter != tree.search_able.end()) {
                // 找到了记录, 说明该子节点存在唯一的key记录, 返回之
                return child.get_field<MapType>(key);
            }
        }
        // 到这仍未返回, 表示该节点没有该key唯一信息,
        // 说明存在异常, 因为只有当节点一定有该key唯一信息时才会调用此函数
        string info = "ParseNode::get_field(NodeKey key): key=";
        info += get_key_name(key) + ", node_id=";
        info += to_string(node_id);
        throw ParseException(EX_NODE_NO_SUCH_KEY, info);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movl %esi, %r14d
movq %rdi, %rbx
movq 0x10(%rdi), %rdi
movq 0x568(%rdi), %rdx
leaq 0x560(%rdi), %rax
movq %rax, %rsi
testq %rdx, %rdx
je 0x20459
movq %rax, %rcx
xorl %esi, %esi
cmpl %r14d, 0x20(%rdx)
setl %sil
cmovgeq %rdx, %rcx
movq 0x10(%rdx,%rsi,8), %rdx
testq %rdx, %rdx
jne 0x2042e
movq %rax, %rsi
cmpq %rax, %rcx
je 0x20459
cmpl %r14d, 0x20(%rcx)
cmovgq %rax, %rcx
movq %rcx, %rsi
movq 0x28(%rsi), %r15
testl %r14d, 0x8(%rbx)
je 0x204b7
cmpq %rax, %rsi
je 0x20777
movq 0x10(%r15), %rcx
testq %rcx, %rcx
je 0x20659
addq $0x8, %r15
movq (%rbx), %rdx
movq %r15, %rax
xorl %esi, %esi
cmpq %rdx, 0x20(%rcx)
setb %sil
cmovaeq %rcx, %rax
movq 0x10(%rcx,%rsi,8), %rcx
testq %rcx, %rcx
jne 0x20483
cmpq %r15, %rax
je 0x20659
cmpq 0x20(%rax), %rdx
jb 0x20659
addq $0x28, %rax
jmp 0x20644
movl 0x18(%rbx), %eax
cmpl $0x6, %eax
je 0x2050f
cmpl $0xb, %eax
je 0x2050f
cmpl $0x8, %eax
jne 0x20561
cmpl $0x100000, %r14d        # imm = 0x100000
jne 0x20561
movq %rbx, %rdi
callq 0x1dfca
movq 0x10(%r15), %rax
addq $0x8, %r15
testq %rax, %rax
je 0x20558
movq (%rbx), %rcx
movq %r15, %rdx
xorl %esi, %esi
cmpq %rcx, 0x20(%rax)
setb %sil
cmovaeq %rax, %rdx
movq 0x10(%rax,%rsi,8), %rax
testq %rax, %rax
jne 0x204f5
jmp 0x2054b
cmpl $0x200000, %r14d        # imm = 0x200000
jne 0x20561
movq %rbx, %rdi
callq 0x1e1d8
movq 0x10(%r15), %rax
addq $0x8, %r15
testq %rax, %rax
je 0x20558
movq (%rbx), %rcx
movq %r15, %rdx
xorl %esi, %esi
cmpq %rcx, 0x20(%rax)
setb %sil
cmovaeq %rax, %rdx
movq 0x10(%rax,%rsi,8), %rax
testq %rax, %rax
jne 0x20533
cmpq %r15, %rdx
je 0x20558
cmpq 0x20(%rdx), %rcx
cmovaeq %rdx, %r15
addq $0x28, %r15
jmp 0x20647
movq (%rbx), %rax
movq 0x60(%rdi), %rcx
leaq (%rax,%rax,2), %rax
movq (%rcx,%rax,8), %r13
movq 0x8(%rcx,%rax,8), %rax
movq %rax, -0x90(%rbp)
cmpq %rax, %r13
je 0x205cb
movq (%r13), %r15
movq (%rdi), %r12
shlq $0x5, %r15
addq $0x588, %rdi            # imm = 0x588
movl 0x18(%r12,%r15), %eax
movl %eax, -0x68(%rbp)
movl 0x18(%rbx), %eax
movl %eax, -0x64(%rbp)
movl %r14d, -0x60(%rbp)
leaq -0x68(%rbp), %rsi
callq 0x26664
movq 0x10(%rbx), %rdi
leaq 0x590(%rdi), %rcx
cmpq %rcx, %rax
jne 0x20636
addq $0x8, %r13
cmpq -0x90(%rbp), %r13
jne 0x20581
leaq -0x58(%rbp), %r12
movq %r12, -0x10(%r12)
leaq 0x25801(%rip), %rsi     # 0x45ddc
leaq 0x25821(%rip), %rdx     # 0x45e03
leaq -0x68(%rbp), %rdi
callq 0xf868
leaq -0x88(%rbp), %r15
movq %r15, %rdi
movl %r14d, %esi
callq 0x1a516
leaq 0x25757(%rip), %rsi     # 0x45d5b
movq %r15, %rdi
callq 0x45c0
leaq -0x38(%rbp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rsi
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rsi
jne 0x206c4
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq %r14, %rsi
jmp 0x206cf
addq %r15, %r12
movq %r12, %rdi
movl %r14d, %esi
callq 0x203fa
movq %rax, %r15
movq %r15, %rax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq -0x58(%rbp), %r12
movq %r12, -0x10(%r12)
leaq 0x25773(%rip), %rsi     # 0x45ddc
leaq 0x25793(%rip), %rdx     # 0x45e03
leaq -0x68(%rbp), %rdi
callq 0xf868
leaq -0x88(%rbp), %r15
movq %r15, %rdi
movl %r14d, %esi
callq 0x1a516
leaq 0x256c9(%rip), %rsi     # 0x45d5b
movq %r15, %rdi
callq 0x45c0
leaq -0x38(%rbp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rsi
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rsi
jne 0x207e4
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq %r14, %rsi
jmp 0x207ef
movq %rsi, -0x48(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x38(%rbp)
movq 0x8(%rax), %rdx
movq %rdx, -0x40(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq -0x68(%rbp), %rdi
callq 0x4110
movq -0x48(%rbp), %rdi
cmpq %r14, %rdi
je 0x206fd
callq 0x42b0
leaq -0x78(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2070f
callq 0x42b0
movq (%rbx), %rsi
leaq -0x48(%rbp), %rdi
callq 0xe50f
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
leaq -0x68(%rbp), %rdi
callq 0x4110
leaq -0x38(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2073e
callq 0x42b0
movl $0x28, %edi
callq 0x4190
movq %rax, %r14
leaq -0x68(%rbp), %rdx
movq %rax, %rdi
movl $0x2, %esi
callq 0x333ee
leaq 0x3a60d(%rip), %rsi     # 0x5ad70
leaq -0x121ca(%rip), %rdx    # 0xe5a0
movq %r14, %rdi
callq 0x4540
jmp 0x20913
leaq -0x58(%rbp), %r15
movq %r15, -0x10(%r15)
movabsq $0x3a79654b65646f4e, %rax # imm = 0x3A79654B65646F4E
movq %rax, (%r15)
movq $0x8, -0x8(%r15)
movb $0x0, 0x8(%r15)
leaq -0x88(%rbp), %rbx
movq %rbx, %rdi
movl %r14d, %esi
callq 0x1a516
leaq 0x2561c(%rip), %rsi     # 0x45dce
movq %rbx, %rdi
callq 0x45c0
leaq -0x38(%rbp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rsi
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rsi
jne 0x20894
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq %r14, %rsi
jmp 0x2089f
movq %rsi, -0x48(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x38(%rbp)
movq 0x8(%rax), %rdx
movq %rdx, -0x40(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq -0x68(%rbp), %rdi
callq 0x4110
movq -0x48(%rbp), %rdi
cmpq %r14, %rdi
je 0x2081d
callq 0x42b0
leaq -0x78(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2082f
callq 0x42b0
movq (%rbx), %rsi
leaq -0x48(%rbp), %rdi
callq 0xe50f
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
leaq -0x68(%rbp), %rdi
callq 0x4110
leaq -0x38(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2085e
callq 0x42b0
movl $0x28, %edi
callq 0x4190
movq %rax, %r14
leaq -0x68(%rbp), %rdx
movq %rax, %rdi
movl $0x3, %esi
callq 0x333ee
leaq 0x3a4ed(%rip), %rsi     # 0x5ad70
leaq -0x122ea(%rip), %rdx    # 0xe5a0
movq %r14, %rdi
callq 0x4540
jmp 0x20913
movq %rsi, -0x48(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x38(%rbp)
movq 0x8(%rax), %rdx
movq %rdx, -0x40(%rbp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq -0x68(%rbp), %rdi
callq 0x4110
movq -0x48(%rbp), %rdi
cmpq %r14, %rdi
je 0x208cd
callq 0x42b0
leaq -0x78(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x208df
callq 0x42b0
movl $0x28, %edi
callq 0x4190
movq %rax, %r14
leaq -0x68(%rbp), %rdx
movq %rax, %rdi
movl $0x1, %esi
callq 0x333ee
leaq 0x3a46c(%rip), %rsi     # 0x5ad70
leaq -0x1236b(%rip), %rdx    # 0xe5a0
movq %r14, %rdi
callq 0x4540
jmp 0x2097a
jmp 0x2092d
jmp 0x2094f
movq %rax, %rbx
jmp 0x2096f
movq %rax, %rbx
movq %r14, %rdi
callq 0x4250
jmp 0x2096f
jmp 0x2097a
movq %rax, %rbx
movq %r14, %rdi
callq 0x4250
jmp 0x209ab
jmp 0x2097a
movq %rax, %rbx
movq -0x48(%rbp), %rdi
cmpq %r14, %rdi
je 0x2095d
callq 0x42b0
jmp 0x2095d
movq %rax, %rbx
leaq -0x38(%rbp), %rax
jmp 0x2099d
jmp 0x20981
movq %rax, %rbx
leaq -0x78(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2096f
callq 0x42b0
movq -0x68(%rbp), %rdi
cmpq %r15, %rdi
jne 0x209b4
jmp 0x209be
movq %rax, %rbx
jmp 0x209ab
jmp 0x20996
movq %rax, %rbx
movq -0x48(%rbp), %rdi
cmpq %r14, %rdi
je 0x20999
callq 0x42b0
jmp 0x20999
jmp 0x209bb
movq %rax, %rbx
leaq -0x78(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x209ab
callq 0x42b0
movq -0x68(%rbp), %rdi
cmpq %r12, %rdi
je 0x209be
callq 0x42b0
jmp 0x209be
movq %rax, %rbx
movq %rbx, %rdi
callq 0x4560