// File: /workspace/github_cpp_makefile_star2_O3/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 $0x48, %rsp
movq %rsi, %r13
movq (%rsi), %rax
movq %rax, (%rdi)
movq 0x8(%rsi), %rax
movq %rdi, -0x68(%rbp)
movq %rax, 0x8(%rdi)
movq 0x28(%rsi), %r15
addq $0x18, %r13
cmpq %r13, %r15
je 0x2f8ea
leaq -0x40(%rbp), %rbx
addq $0x10, -0x68(%rbp)
movq %r13, -0x70(%rbp)
xorps %xmm0, %xmm0
movaps %xmm0, -0x60(%rbp)
movq $0x0, -0x50(%rbp)
movl 0x40(%r15), %eax
cmpq $0x3, %rax
ja 0x2f8d6
leaq 0x20(%r15), %r12
leaq 0x170c8(%rip), %rcx     # 0x46798
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl $0x0, -0x48(%rbp)
movq %rbx, %rdi
leaq -0x60(%rbp), %rsi
callq 0x25a6a
movq -0x68(%rbp), %rdi
movq %r12, %rsi
callq 0x3106c
jmp 0x2f881
movq 0x48(%r15), %r14
movq 0x50(%r15), %r13
cmpq %r13, %r14
je 0x2f809
movl $0x68, %edi
callq 0x42e0
movq %rax, %rbx
movq (%r14), %rsi
movq %rax, %rdi
callq 0x2e874
movq %rbx, -0x48(%rbp)
movq -0x58(%rbp), %rsi
cmpq -0x50(%rbp), %rsi
je 0x2f741
movq %rbx, (%rsi)
addq $0x8, %rsi
movq %rsi, -0x58(%rbp)
jmp 0x2f74e
leaq -0x60(%rbp), %rdi
leaq -0x48(%rbp), %rdx
callq 0x19328
addq $0x8, %r14
cmpq %r13, %r14
jne 0x2f70e
movl 0x40(%r15), %eax
jmp 0x2f80e
movq 0x48(%r15), %rbx
movq 0x50(%r15), %r14
cmpq %r14, %rbx
je 0x2f833
movq -0x58(%rbp), %rsi
cmpq -0x50(%rbp), %rsi
je 0x2f78b
movq (%rbx), %rax
movq %rax, (%rsi)
addq $0x8, %rsi
movq %rsi, -0x58(%rbp)
jmp 0x2f797
leaq -0x60(%rbp), %rdi
movq %rbx, %rdx
callq 0x19bda
addq $0x8, %rbx
cmpq %r14, %rbx
jne 0x2f771
movl 0x40(%r15), %eax
jmp 0x2f838
movq 0x48(%r15), %r14
movq 0x50(%r15), %r13
cmpq %r13, %r14
je 0x2f859
movl $0x78, %edi
callq 0x42e0
movq %rax, %rbx
movq (%r14), %rsi
movq %rax, %rdi
callq 0x254f0
movq %rbx, -0x48(%rbp)
movq -0x58(%rbp), %rsi
cmpq -0x50(%rbp), %rsi
je 0x2f7ed
movq %rbx, (%rsi)
addq $0x8, %rsi
movq %rsi, -0x58(%rbp)
jmp 0x2f7fa
leaq -0x60(%rbp), %rdi
leaq -0x48(%rbp), %rdx
callq 0x19328
addq $0x8, %r14
cmpq %r13, %r14
jne 0x2f7ba
movl 0x40(%r15), %eax
jmp 0x2f85e
movl $0x2, %eax
movl %eax, -0x48(%rbp)
leaq -0x40(%rbp), %rbx
movq %rbx, %rdi
leaq -0x60(%rbp), %rsi
callq 0x25a6a
movq -0x70(%rbp), %r13
movq -0x68(%rbp), %rdi
movq %r12, %rsi
callq 0x3106c
jmp 0x2f881
movl $0x3, %eax
movl %eax, -0x48(%rbp)
leaq -0x40(%rbp), %rbx
movq %rbx, %rdi
leaq -0x60(%rbp), %rsi
callq 0x25a6a
movq -0x68(%rbp), %rdi
movq %r12, %rsi
callq 0x3106c
jmp 0x2f881
movl $0x1, %eax
movl %eax, -0x48(%rbp)
leaq -0x40(%rbp), %rbx
movq %rbx, %rdi
leaq -0x60(%rbp), %rsi
callq 0x25a6a
movq -0x70(%rbp), %r13
movq -0x68(%rbp), %rdi
movq %r12, %rsi
callq 0x3106c
movl -0x48(%rbp), %ecx
movl %ecx, (%rax)
movq 0x8(%rax), %rdi
movq -0x40(%rbp), %rcx
movq %rcx, 0x8(%rax)
movq -0x38(%rbp), %rcx
movq %rcx, 0x10(%rax)
movq -0x30(%rbp), %rcx
movq %rcx, 0x18(%rax)
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movq $0x0, 0x10(%rbx)
testq %rdi, %rdi
je 0x2f8c8
callq 0x42b0
movq -0x40(%rbp), %rdi
testq %rdi, %rdi
je 0x2f8c8
callq 0x42b0
movq -0x60(%rbp), %rdi
testq %rdi, %rdi
je 0x2f8d6
callq 0x42b0
movq %r15, %rdi
callq 0x4350
movq %rax, %r15
cmpq %r13, %rax
jne 0x2f6a8
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2f903
jmp 0x2f903
jmp 0x2f928
jmp 0x2f928
jmp 0x2f903
movq %rax, %r14
movq -0x40(%rbp), %rdi
testq %rdi, %rdi
jne 0x2f91f
jmp 0x2f92b
jmp 0x2f928
jmp 0x2f928
jmp 0x2f928
jmp 0x2f919
movq %rax, %r14
movq %rbx, %rdi
callq 0x42b0
jmp 0x2f92b
jmp 0x2f928
movq %rax, %r14
movq -0x60(%rbp), %rdi
testq %rdi, %rdi
je 0x2f939
callq 0x42b0
movq %r14, %rdi
callq 0x4560
nop