// File: /workspace/github_cpp_makefile_star2_O1/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 0x30196
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 0x30174
leaq 0x20(%r15), %r12
leaq 0x177fc(%rip), %rdx     # 0x47798
movslq (%rdx,%rax,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
movl %eax, -0x48(%rbp)
leaq -0x40(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x26102
movq -0x68(%rbp), %rdi
movq %r12, %rsi
callq 0x3196c
jmp 0x3011d
movq 0x48(%r15), %r14
movq 0x50(%r15), %r13
cmpq %r13, %r14
je 0x300d3
movl $0x68, %edi
callq 0x42e0
movq %rax, %rbx
movq (%r14), %rsi
movq %rax, %rdi
callq 0x2f138
movq %rbx, -0x48(%rbp)
movq -0x58(%rbp), %rsi
cmpq -0x50(%rbp), %rsi
je 0x3000a
movq %rbx, (%rsi)
addq $0x8, %rsi
movq %rsi, -0x58(%rbp)
jmp 0x30017
leaq -0x60(%rbp), %rdi
leaq -0x48(%rbp), %rdx
callq 0x19282
addq $0x8, %r14
jmp 0x2ffce
movq 0x48(%r15), %rbx
movq 0x50(%r15), %r14
cmpq %r14, %rbx
je 0x300b1
movq -0x58(%rbp), %rsi
cmpq -0x50(%rbp), %rsi
je 0x30048
movq (%rbx), %rax
movq %rax, (%rsi)
addq $0x8, %rsi
movq %rsi, -0x58(%rbp)
jmp 0x30054
leaq -0x60(%rbp), %rdi
movq %rbx, %rdx
callq 0x19b5e
addq $0x8, %rbx
jmp 0x30025
movq 0x48(%r15), %r14
movq 0x50(%r15), %r13
cmpq %r13, %r14
je 0x300f9
movl $0x78, %edi
callq 0x42e0
movq %rax, %rbx
movq (%r14), %rsi
movq %rax, %rdi
callq 0x25b74
movq %rbx, -0x48(%rbp)
movq -0x58(%rbp), %rsi
cmpq -0x50(%rbp), %rsi
je 0x3009e
movq %rbx, (%rsi)
addq $0x8, %rsi
movq %rsi, -0x58(%rbp)
jmp 0x300ab
leaq -0x60(%rbp), %rdi
leaq -0x48(%rbp), %rdx
callq 0x19282
addq $0x8, %r14
jmp 0x30062
movl 0x40(%r15), %eax
movl %eax, -0x48(%rbp)
leaq -0x40(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x26102
movq -0x68(%rbp), %rdi
movq %r12, %rsi
callq 0x3196c
jmp 0x3011d
movl 0x40(%r15), %eax
movl %eax, -0x48(%rbp)
leaq -0x40(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x26102
movq -0x68(%rbp), %rdi
movq %r12, %rsi
callq 0x3196c
movq -0x70(%rbp), %r13
jmp 0x3011d
movl 0x40(%r15), %eax
movl %eax, -0x48(%rbp)
leaq -0x40(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x26102
movq -0x68(%rbp), %rdi
movq %r12, %rsi
callq 0x3196c
movq -0x70(%rbp), %r13
movl -0x48(%rbp), %ecx
movl %ecx, (%rax)
movq 0x8(%rax), %rdi
movups 0x10(%rax), %xmm0
movq -0x40(%rbp), %rcx
movq %rcx, 0x8(%rax)
movq -0x38(%rbp), %rcx
movq %rcx, 0x10(%rax)
movq -0x30(%rbp), %rcx
movq %rcx, 0x18(%rax)
movq %rdi, -0x40(%rbp)
movups %xmm0, -0x38(%rbp)
leaq -0x40(%rbp), %rax
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movq $0x0, 0x10(%rax)
testq %rdi, %rdi
je 0x30166
callq 0x42b0
movq -0x40(%rbp), %rdi
testq %rdi, %rdi
je 0x30174
callq 0x42b0
movq -0x60(%rbp), %rdi
testq %rdi, %rdi
je 0x30182
callq 0x42b0
movq %r15, %rdi
callq 0x4350
movq %rax, %r15
cmpq %r13, %rax
jne 0x2ff74
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x301af
jmp 0x301af
jmp 0x301d4
jmp 0x301d4
jmp 0x301af
movq %rax, %r14
movq -0x40(%rbp), %rdi
testq %rdi, %rdi
jne 0x301cb
jmp 0x301d7
jmp 0x301d4
jmp 0x301d4
jmp 0x301d4
jmp 0x301c5
movq %rax, %r14
movq %rbx, %rdi
callq 0x42b0
jmp 0x301d7
jmp 0x301d4
movq %rax, %r14
movq -0x60(%rbp), %rdi
testq %rdi, %rdi
je 0x301e5
callq 0x42b0
movq %r14, %rdi
callq 0x4560
nop