// File: /workspace/github_cpp_makefile_star2_O2/sighingnow[P]compile-pascal/pl0_allocator.cpp
// Function: SimpleAllocator::load(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
string SimpleAllocator::load(std::string name, std::string target) {
    std::string now = this->exist(name);
    if (now != target) {
        this->remap(target, name);
        if (now.length() == 0) {
            if (env.find(name, true)) {
                out.emit("    mov " + target + ", dword " + this->addr(name));
            }
            else {
                // DO NOTHING, JUST MAINTAIN MAPPING.
            }
        }
        else {
            out.emit("    mov " + target + ", " + now);
            this->release(now, true);
        }
    }
    return target;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x168, %rsp            # imm = 0x168
movq %rcx, %r15
movq %rdx, %r13
movq %rsi, %r12
movq %rdi, %r14
leaq 0x148(%rsp), %rbx
movq %rbx, %rdi
movq %rdx, %rsi
callq 0x5340
leaq 0x48(%rsp), %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x4f010
leaq 0x148(%rsp), %rdi
callq 0x5120
leaq 0x48(%rsp), %rbx
movq %rbx, %rdi
movq %r15, %rsi
callq 0xfd9a
testb %al, %al
je 0x4e12a
leaq 0x128(%rsp), %rdi
movq %r15, %rsi
callq 0x5340
leaq 0x108(%rsp), %rdi
movq %r13, %rsi
callq 0x5340
movq (%r12), %rax
leaq 0x128(%rsp), %rsi
leaq 0x108(%rsp), %rdx
movq %r12, %rdi
callq *0x8(%rax)
leaq 0x108(%rsp), %rdi
callq 0x5120
leaq 0x128(%rsp), %rdi
callq 0x5120
cmpq $0x0, 0x50(%rsp)
je 0x4e054
movq 0x10(%r12), %r13
leaq 0xcdad(%rip), %rsi      # 0x5ad68
leaq 0x8(%rsp), %rdi
movq %r15, %rdx
callq 0xfbb3
leaq 0xcdfe(%rip), %rdx      # 0x5adcd
leaq 0x28(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0xfd14
leaq 0x88(%rsp), %rdi
leaq 0x28(%rsp), %rsi
leaq 0x48(%rsp), %rdx
callq 0xfda4
leaq 0x88(%rsp), %rsi
movq %r13, %rdi
callq 0x4f2cc
leaq 0x88(%rsp), %rdi
callq 0x5120
leaq 0x28(%rsp), %rdi
callq 0x5120
leaq 0x8(%rsp), %rdi
callq 0x5120
leaq 0x68(%rsp), %rdi
leaq 0x48(%rsp), %r13
movq %r13, %rsi
callq 0x5340
movq (%r12), %rax
leaq 0x68(%rsp), %rsi
pushq $0x1
popq %rdx
movq %r12, %rdi
callq *0x10(%rax)
leaq 0x68(%rsp), %rdi
jmp 0x4e125
movq 0x8(%r12), %rdi
pushq $0x1
popq %rdx
movq %r13, %rsi
callq 0x4f1cc
testb %al, %al
je 0x4e12a
movq 0x10(%r12), %rbp
leaq 0xccf0(%rip), %rsi      # 0x5ad68
leaq 0x8(%rsp), %rdi
movq %r15, %rdx
callq 0xfbb3
leaq 0xcce5(%rip), %rdx      # 0x5ad71
leaq 0x28(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0xfd14
leaq 0xa8(%rsp), %rdi
movq %r13, %rsi
callq 0x5340
movq (%r12), %rax
leaq 0xc8(%rsp), %rdi
leaq 0xa8(%rsp), %rdx
movq %r12, %rsi
callq *0x48(%rax)
leaq 0xe8(%rsp), %rdi
leaq 0x28(%rsp), %rsi
leaq 0xc8(%rsp), %rdx
callq 0xfd33
leaq 0xe8(%rsp), %rsi
movq %rbp, %rdi
callq 0x4f2cc
leaq 0xe8(%rsp), %rdi
callq 0x5120
leaq 0xc8(%rsp), %rdi
callq 0x5120
leaq 0xa8(%rsp), %rdi
callq 0x5120
leaq 0x28(%rsp), %rdi
callq 0x5120
leaq 0x8(%rsp), %rdi
callq 0x5120
movq %r14, %rdi
movq %r15, %rsi
callq 0x5310
leaq 0x48(%rsp), %rdi
callq 0x5120
movq %r14, %rax
addq $0x168, %rsp            # imm = 0x168
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
leaq 0xe8(%rsp), %rdi
callq 0x5120
jmp 0x4e169
movq %rax, %r14
leaq 0xc8(%rsp), %rdi
callq 0x5120
jmp 0x4e17b
movq %rax, %r14
leaq 0xa8(%rsp), %rdi
jmp 0x4e1a8
jmp 0x4e1af
jmp 0x4e1be
jmp 0x4e1f0
movq %rax, %r14
leaq 0x68(%rsp), %rdi
callq 0x5120
movq %r13, %rbx
jmp 0x4e1f3
movq %rax, %r14
leaq 0x88(%rsp), %rdi
callq 0x5120
jmp 0x4e1b2
movq %rax, %r14
leaq 0x28(%rsp), %rdi
callq 0x5120
jmp 0x4e1c1
movq %rax, %r14
leaq 0x8(%rsp), %rdi
jmp 0x4e1e7
jmp 0x4e1f0
movq %rax, %r14
leaq 0x108(%rsp), %rdi
callq 0x5120
jmp 0x4e1df
movq %rax, %r14
leaq 0x128(%rsp), %rdi
callq 0x5120
jmp 0x4e1f3
jmp 0x4e1f0
movq %rax, %r14
movq %rbx, %rdi
callq 0x5120
movq %r14, %rdi
callq 0x53f0
nop