// File: /workspace/github_cpp_makefile_star2_O2/acliusBackHome[P]kamaya/dist/ParseDeclaration.cpp
// Function: ParseScope::assign(ParseScope&, ParseScope const&)
void ParseScope::assign(ParseScope &scope, const ParseScope &from_scope) {
    scope.parent_scope = from_scope.parent_scope;
    scope.this_scope = from_scope.this_scope;
    for (const auto &each : from_scope.symbol2dec_ptr) {
        const auto &symbol = each.first;
        const auto &type = each.second.first;
        const auto &from_ptr = each.second.second;
        vector<size_t> ptr_list;
        switch (type) {
            case D_FUNCTION:
                for (const auto &each_ptr: from_ptr) {
                    ptr_list.emplace_back((size_t) new ParseFunction(*(ParseFunction *) each_ptr));
                }
                scope.symbol2dec_ptr[symbol] = pair<DeclarationType, vector<size_t> >(type, ptr_list);
                break;
            case D_VARIABLE:
                for (const auto &each_ptr: from_ptr) {
                    ptr_list.emplace_back((size_t) new ParseVariable(*(ParseVariable *) each_ptr));
                }
                scope.symbol2dec_ptr[symbol] = pair<DeclarationType, vector<size_t> >(type, ptr_list);
                break;
            case D_TYPE:
                for (const auto &each_ptr: from_ptr) {
                    ptr_list.emplace_back(each_ptr);
                }
                scope.symbol2dec_ptr[symbol] = pair<DeclarationType, vector<size_t> >(type, ptr_list);
                break;
            case D_UNKNOWN:
                scope.symbol2dec_ptr[symbol] = pair<DeclarationType, vector<size_t> >(type, ptr_list);
                break;

        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq (%rsi), %rax
movq %rax, (%rdi)
movq 0x8(%rsi), %rax
movq %rax, 0x8(%rdi)
movq 0x28(%rsi), %r12
addq $0x18, %rsi
movq %rsi, -0x70(%rbp)
addq $0x10, %rdi
movq %rdi, -0x38(%rbp)
leaq -0x90(%rbp), %r13
leaq -0x68(%rbp), %r15
cmpq -0x70(%rbp), %r12
je 0x282d9
andq $0x0, -0x80(%rbp)
xorps %xmm0, %xmm0
movaps %xmm0, -0x90(%rbp)
movl 0x40(%r12), %eax
cmpq $0x3, %rax
ja 0x282c1
leaq 0x20(%r12), %rcx
movq %rcx, -0x40(%rbp)
leaq 0x40(%r12), %rcx
movq %rcx, -0x48(%rbp)
leaq 0x135c1(%rip), %rcx     # 0x3b730
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq %r15, %rdi
movq -0x48(%rbp), %rsi
movq %r13, %rdx
callq 0x2983a
movq -0x38(%rbp), %rdi
movq -0x40(%rbp), %rsi
callq 0x29554
movq %rax, %rdi
movq %r15, %rsi
callq 0x295be
leaq -0x60(%rbp), %rdi
callq 0xd238
jmp 0x282c1
movq 0x48(%r12), %rbx
movq %r12, -0x30(%rbp)
movq 0x50(%r12), %r12
cmpq %r12, %rbx
je 0x2826f
pushq $0x68
popq %rdi
callq 0x42a0
movq %rax, %r14
movq (%rbx), %rsi
movq %rax, %rdi
callq 0x2761e
movq %r14, -0x68(%rbp)
movq %r13, %rdi
movq %r15, %rsi
callq 0x1679a
addq $0x8, %rbx
jmp 0x281bb
movq 0x48(%r12), %r14
movq %r12, -0x30(%rbp)
movq 0x50(%r12), %rbx
cmpq %rbx, %r14
je 0x28251
movq %r13, %rdi
movq %r14, %rsi
callq 0x22b56
addq $0x8, %r14
jmp 0x281fd
movq 0x48(%r12), %rbx
movq %r12, -0x30(%rbp)
movq 0x50(%r12), %r12
cmpq %r12, %rbx
je 0x2828d
pushq $0x78
popq %rdi
callq 0x42a0
movq %rax, %r14
movq (%rbx), %rsi
movq %rax, %rdi
callq 0x1f2ba
movq %r14, -0x68(%rbp)
movq %r13, %rdi
movq %r15, %rsi
callq 0x1679a
addq $0x8, %rbx
jmp 0x28221
movq %r15, %rdi
movq -0x48(%rbp), %rsi
movq %r13, %rdx
callq 0x2983a
movq -0x38(%rbp), %rdi
movq -0x40(%rbp), %rsi
callq 0x29554
jmp 0x282a9
movq %r15, %rdi
movq -0x48(%rbp), %rsi
movq %r13, %rdx
callq 0x2983a
movq -0x38(%rbp), %rdi
movq -0x40(%rbp), %rsi
callq 0x29554
jmp 0x282a9
movq %r15, %rdi
movq -0x48(%rbp), %rsi
movq %r13, %rdx
callq 0x2983a
movq -0x38(%rbp), %rdi
movq -0x40(%rbp), %rsi
callq 0x29554
movq %rax, %rdi
movq %r15, %rsi
callq 0x295be
leaq -0x60(%rbp), %rdi
callq 0xd238
movq -0x30(%rbp), %r12
movq %r13, %rdi
callq 0xd238
movq %r12, %rdi
callq 0x42f0
movq %rax, %r12
jmp 0x2812e
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x282f6
jmp 0x28317
jmp 0x282f6
jmp 0x28317
jmp 0x28317
jmp 0x282f6
jmp 0x28317
movq %rax, %rbx
leaq -0x60(%rbp), %rdi
callq 0xd238
jmp 0x2831a
jmp 0x28306
movq %rax, %rbx
movq %r14, %rdi
callq 0x4270
jmp 0x2831a
jmp 0x28317
jmp 0x28317
movq %rax, %rbx
leaq -0x90(%rbp), %rdi
callq 0xd238
movq %rbx, %rdi
callq 0x4500