// 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>>)
string SimpleAllocator::load(std::string name) {
    std::string now, target;
    if ((now = exist(name)).length() != 0) {
        return now;
    }
    else {
        LOC loc;
        if (env.find(name, true, loc)) {
            if (loc.is_ref) {
                target = this->alloc(name, true);
            }
            else {
                target = this->alloc(name);
            }
            out.emit("    mov " + target + ", dword " + this->addr(name));
        }
        else {
            target = this->alloc(name);
        }
        return target;
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1a8, %rsp            # imm = 0x1A8
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x50(%rsp), %rbp
movq %rbp, -0x10(%rbp)
andq $0x0, -0x8(%rbp)
xorl %eax, %eax
movb %al, (%rbp)
leaq 0x10(%rsp), %rcx
movq %rcx, -0x10(%rcx)
andq $0x0, -0x8(%rcx)
movb %al, (%rcx)
leaq 0x140(%rsp), %rdi
movq %rdx, %rsi
callq 0x5340
leaq 0x160(%rsp), %rdi
leaq 0x140(%rsp), %rdx
movq %r14, %rsi
callq 0x4f010
leaq 0x40(%rsp), %rdi
leaq 0x160(%rsp), %r12
movq %r12, %rsi
callq 0x52f0
movq 0x8(%rax), %r13
movq %r12, %rdi
callq 0x5120
leaq 0x140(%rsp), %rdi
callq 0x5120
testq %r13, %r13
je 0x4e2c2
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
movq 0x40(%rsp), %rcx
cmpq %rbp, %rcx
je 0x4e349
movq %rcx, (%rbx)
movq 0x50(%rsp), %rax
movq %rax, 0x10(%rbx)
jmp 0x4e350
leaq 0x160(%rsp), %rdi
callq 0x4f086
movq 0x8(%r14), %rdi
pushq $0x1
popq %rdx
leaq 0x160(%rsp), %rcx
movq %r15, %rsi
callq 0x4f2e2
testb %al, %al
je 0x4e36e
cmpb $0x1, 0x1a0(%rsp)
jne 0x4e3b2
leaq 0x120(%rsp), %rdi
movq %r15, %rsi
callq 0x5340
movq (%r14), %rax
leaq 0x20(%rsp), %rdi
leaq 0x120(%rsp), %rdx
pushq $0x1
popq %rcx
movq %r14, %rsi
callq *(%rax)
movq %rsp, %rdi
leaq 0x20(%rsp), %r12
movq %r12, %rsi
callq 0x52f0
movq %r12, %rdi
callq 0x5120
leaq 0x120(%rsp), %rdi
jmp 0x4e3fa
movups (%rbp), %xmm0
movups %xmm0, (%rax)
movq 0x48(%rsp), %rax
movq %rax, 0x8(%rbx)
movq %rbp, 0x40(%rsp)
andq $0x0, 0x48(%rsp)
movb $0x0, 0x50(%rsp)
jmp 0x4e512
leaq 0x60(%rsp), %rdi
movq %r15, %rsi
callq 0x5340
movq (%r14), %rax
leaq 0x20(%rsp), %rdi
leaq 0x60(%rsp), %rdx
pushq $0x1
popq %rcx
movq %r14, %rsi
callq *(%rax)
movq %rsp, %rdi
leaq 0x20(%rsp), %r14
movq %r14, %rsi
callq 0x52f0
movq %r14, %rdi
callq 0x5120
leaq 0x60(%rsp), %rdi
jmp 0x4e4bf
leaq 0x100(%rsp), %rdi
movq %r15, %rsi
callq 0x5340
movq (%r14), %rax
leaq 0x20(%rsp), %rdi
leaq 0x100(%rsp), %rdx
pushq $0x1
popq %rcx
movq %r14, %rsi
callq *(%rax)
movq %rsp, %rdi
leaq 0x20(%rsp), %r12
movq %r12, %rsi
callq 0x52f0
movq %r12, %rdi
callq 0x5120
leaq 0x100(%rsp), %rdi
callq 0x5120
movq 0x10(%r14), %r12
leaq 0xc95e(%rip), %rsi      # 0x5ad68
leaq 0xc0(%rsp), %rdi
movq %rsp, %rdx
callq 0xfbb3
leaq 0xc950(%rip), %rdx      # 0x5ad71
leaq 0x20(%rsp), %rdi
leaq 0xc0(%rsp), %rsi
callq 0xfd14
leaq 0x80(%rsp), %rdi
movq %r15, %rsi
callq 0x5340
movq (%r14), %rax
leaq 0xa0(%rsp), %rdi
leaq 0x80(%rsp), %rdx
movq %r14, %rsi
callq *0x48(%rax)
leaq 0xe0(%rsp), %rdi
leaq 0x20(%rsp), %rsi
leaq 0xa0(%rsp), %rdx
callq 0xfd33
leaq 0xe0(%rsp), %rsi
movq %r12, %rdi
callq 0x4f2cc
leaq 0xe0(%rsp), %rdi
callq 0x5120
leaq 0xa0(%rsp), %rdi
callq 0x5120
leaq 0x80(%rsp), %rdi
callq 0x5120
leaq 0x20(%rsp), %rdi
callq 0x5120
leaq 0xc0(%rsp), %rdi
callq 0x5120
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
movq (%rsp), %rcx
leaq 0x10(%rsp), %rdx
cmpq %rdx, %rcx
je 0x4e4e7
movq %rcx, (%rbx)
movq 0x10(%rsp), %rax
movq %rax, 0x10(%rbx)
jmp 0x4e4ed
movups (%rdx), %xmm0
movups %xmm0, (%rax)
movq 0x8(%rsp), %rax
movq %rax, 0x8(%rbx)
movq %rdx, (%rsp)
andq $0x0, 0x8(%rsp)
movb $0x0, 0x10(%rsp)
leaq 0x160(%rsp), %rdi
callq 0x4f1b6
movq %rsp, %rdi
callq 0x5120
leaq 0x40(%rsp), %rdi
callq 0x5120
movq %rbx, %rax
addq $0x1a8, %rsp            # imm = 0x1A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x100(%rsp), %rdi
jmp 0x4e5a7
movq %rax, %rbx
leaq 0x120(%rsp), %rdi
jmp 0x4e5a7
jmp 0x4e5bc
jmp 0x4e5bc
movq %rax, %rbx
leaq 0xe0(%rsp), %rdi
callq 0x5120
jmp 0x4e56c
movq %rax, %rbx
leaq 0xa0(%rsp), %rdi
callq 0x5120
jmp 0x4e57e
movq %rax, %rbx
leaq 0x80(%rsp), %rdi
callq 0x5120
jmp 0x4e590
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x5120
jmp 0x4e59f
movq %rax, %rbx
leaq 0xc0(%rsp), %rdi
callq 0x5120
jmp 0x4e5bf
jmp 0x4e5bc
movq %rax, %rbx
leaq 0x60(%rsp), %rdi
jmp 0x4e5a7
jmp 0x4e5bc
movq %rax, %rbx
leaq 0x160(%rsp), %rdi
callq 0x4f1b6
jmp 0x4e5e5
jmp 0x4e5e2
movq %rax, %rbx
leaq 0x140(%rsp), %rdi
callq 0x5120
jmp 0x4e5e5
movq %rax, %rbx
movq %rsp, %rdi
callq 0x5120
leaq 0x40(%rsp), %rdi
callq 0x5120
movq %rbx, %rdi
callq 0x53f0
nop