// File: /workspace/github_cpp_makefile_star2_O1/acliusBackHome[P]kamaya/dist/ParseNode.cpp
// Function: ParseNode::collect_parameters_list() const
void ParseNode::collect_parameters_list() const {
    auto &the_map = tree.node_param_list;
    // 结果
    vector<ParseVariable> res;
    switch (type) {
        case N_PARAM_LIST: {
            // 允许此操作的节点
            // 收集所有对应子节点类型的信息
            for (const auto &each : tree.node_children[node_id]) {
                const ParseNode &node = tree.nodes[each];
                if (node.type == N_PARAM_DECLARATION) {
                    res.emplace_back(node.get_variable());
                }
            }
            break;
        }
        default: {
            // 不允许此操作的节点
            string info = "ParseNode::collect_parameters_list(): node_type=";
            info += get_node_type_name(type);
            info += " node_id=" + to_string(node_id);
            throw ParseException(EX_NODE_NOT_ALLOW_OP, info);
        }
    }
    // 这里强制转换成非常量指针来改变keys表示该节点拥有这个键值
    ((ParseNode *) this)->keys |= K_PARAM_LIST;
    the_map[node_id] = res;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rdi, %rbx
movq 0x10(%rdi), %r14
xorps %xmm0, %xmm0
movaps %xmm0, -0x40(%rbp)
movq $0x0, -0x30(%rbp)
cmpl $0x8, 0x18(%rdi)
jne 0x1e025
movq (%rbx), %rax
movq 0x60(%r14), %rcx
leaq (%rax,%rax,2), %rax
movq (%rcx,%rax,8), %r12
movq 0x8(%rcx,%rax,8), %r13
cmpq %r13, %r12
je 0x1dfeb
leaq -0x40(%rbp), %r15
movq 0x10(%rbx), %rcx
movq (%r12), %rax
movq (%rcx), %rdi
shlq $0x5, %rax
cmpl $0x9, 0x18(%rdi,%rax)
jne 0x1dfe2
addq %rax, %rdi
movl $0x4, %esi
callq 0x217c2
movq %r15, %rdi
movq %rax, %rsi
callq 0x24b92
addq $0x8, %r12
cmpq %r13, %r12
jne 0x1dfb4
addq $0x498, %r14            # imm = 0x498
orb $0x10, 0xa(%rbx)
movq %r14, %rdi
movq %rbx, %rsi
callq 0x24bce
leaq -0x40(%rbp), %rsi
movq %rax, %rdi
callq 0x24c38
leaq -0x40(%rbp), %rdi
callq 0xe800
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq -0x70(%rbp), %r15
movq %r15, -0x10(%r15)
leaq 0x28c76(%rip), %rsi     # 0x46caa
leaq 0x28c9f(%rip), %rdx     # 0x46cda
leaq -0x80(%rbp), %rdi
callq 0xf65c
movl 0x18(%rbx), %esi
leaq -0x60(%rbp), %r14
movq %r14, %rdi
callq 0x1a7b2
movq (%r14), %rsi
movq 0x8(%r14), %rdx
leaq -0x80(%rbp), %rdi
callq 0x4110
leaq -0x50(%rbp), %r14
movq -0x10(%r14), %rdi
cmpq %r14, %rdi
je 0x1e075
callq 0x42b0
movq (%rbx), %rsi
leaq -0xa0(%rbp), %rdi
callq 0xe329
leaq 0x28659(%rip), %rsi     # 0x466e4
leaq -0x60(%rbp), %rdi
leaq -0xa0(%rbp), %rdx
callq 0xe2af
movq -0x60(%rbp), %rsi
movq -0x58(%rbp), %rdx
leaq -0x80(%rbp), %rdi
callq 0x4110
movq -0x60(%rbp), %rdi
cmpq %r14, %rdi
je 0x1e0ba
callq 0x42b0
leaq -0x90(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1e0cf
callq 0x42b0
movl $0x28, %edi
callq 0x4190
movq %rax, %r14
leaq -0x80(%rbp), %rdx
movq %rax, %rdi
movl $0x4, %esi
callq 0x33d12
leaq 0x3dc7c(%rip), %rsi     # 0x5bd70
leaq -0xfd41(%rip), %rdx     # 0xe3ba
movq %r14, %rdi
callq 0x4540
jmp 0x1e131
movq %rax, %rbx
movq %r14, %rdi
callq 0x4250
jmp 0x1e14b
movq %rax, %rbx
movq -0x60(%rbp), %rdi
cmpq %r14, %rdi
je 0x1e128
callq 0x42b0
jmp 0x1e128
movq %rax, %rbx
leaq -0x90(%rbp), %rax
jmp 0x1e13d
movq %rax, %rbx
jmp 0x1e14b
movq %rax, %rbx
leaq -0x50(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1e14b
callq 0x42b0
movq -0x80(%rbp), %rdi
cmpq %r15, %rdi
je 0x1e162
callq 0x42b0
jmp 0x1e162
jmp 0x1e15f
jmp 0x1e15f
movq %rax, %rbx
leaq -0x40(%rbp), %rdi
callq 0xe800
movq %rbx, %rdi
callq 0x4560
nop