// File: /workspace/github_cpp_makefile_star2_O1/ryuichiueda[P]GlueLang/src/ArrayVariable.cc
// Function: ArrayVariable::eval()
bool ArrayVariable::eval(void)
{
	if(m_text != "argv"){
		// treat as a literal until array can be declared in scripts.
		m_evaled_text = m_text + "[" + to_string(m_array_pos) + "]";
		return true;
	}

	try{
		m_evaled_text = *m_env->getArg(m_array_pos);
	}catch(Environment *e){
		m_error_msg = e->m_error_msg;
		m_exit_status = 3;
		throw this;
	}
	return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rdi, %rbx
addq $0x88, %rdi
leaq 0xc3ad(%rip), %rsi      # 0x140e7
callq 0x60f0
testl %eax, %eax
je 0x7de5
leaq 0x58(%rsp), %r13
movq %r13, -0x10(%r13)
movq 0x88(%rbx), %rsi
movq 0x90(%rbx), %rdx
addq %rsi, %rdx
leaq 0x48(%rsp), %r14
movq %r14, %rdi
callq 0x7456
leaq 0xc8b6(%rip), %rsi      # 0x1462b
movq %r14, %rdi
callq 0x65d0
movq 0xc8(%rbx), %r15
movq %r15, %r14
negq %r14
cmovsq %r15, %r14
movl $0x1, %r12d
cmpq $0xa, %r14
jb 0x7e12
movl $0x4, %r12d
movabsq $0x346dc5d63886594b, %rsi # imm = 0x346DC5D63886594B
movq %r14, %rcx
cmpq $0x63, %rcx
jbe 0x7e09
cmpq $0x3e7, %rcx            # imm = 0x3E7
jbe 0x7e0f
cmpq $0x2710, %rcx           # imm = 0x2710
jb 0x7e12
movq %rcx, %rax
mulq %rsi
shrq $0xb, %rdx
addl $0x4, %r12d
cmpq $0x1869f, %rcx          # imm = 0x1869F
movq %rdx, %rcx
ja 0x7dad
addl $-0x3, %r12d
jmp 0x7e12
movq 0x10(%rbx), %rdi
movq 0xc8(%rbx), %rsi
callq 0xba86
leaq 0xa8(%rbx), %rdi
movq %rax, %rsi
callq 0x61c0
jmp 0x7fb3
addl $-0x2, %r12d
jmp 0x7e12
decl %r12d
shrq $0x3f, %r15
leal (%r15,%r12), %esi
leaq 0x38(%rsp), %rbp
movq %rbp, -0x10(%rbp)
leaq 0x28(%rsp), %rdi
movl $0x2d, %edx
callq 0x63b0
addq 0x28(%rsp), %r15
movq %r15, %rdi
movl %r12d, %esi
movq %r14, %rdx
callq 0x8079
movq 0x48(%rsp), %rcx
movq 0x50(%rsp), %r8
movq 0x30(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
cmpq %r13, %rcx
je 0x7e67
movq 0x58(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x7e82
movl $0xf, %esi
cmpq %rbp, 0x28(%rsp)
je 0x7e7d
movq 0x38(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x7e93
movq 0x28(%rsp), %rsi
leaq 0x48(%rsp), %rdi
callq 0x6100
jmp 0x7ea1
leaq 0x28(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x6390
leaq 0x18(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x7ec5
movq %rsi, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x7ecb
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0xca8a(%rip), %rsi      # 0x14979
leaq 0x8(%rsp), %rdi
callq 0x65d0
leaq 0x78(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x7f20
movq %rdx, 0x68(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x78(%rsp)
jmp 0x7f27
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
leaq 0x68(%rsp), %r14
movq %rdx, 0x8(%r14)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
addq $0xa8, %rbx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x63f0
movq (%r14), %rdi
cmpq %r15, %rdi
je 0x7f6a
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x6330
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7f85
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6330
movq 0x28(%rsp), %rdi
cmpq %rbp, %rdi
je 0x7f9c
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x6330
movq 0x48(%rsp), %rdi
cmpq %r13, %rdi
je 0x7fb3
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x6330
movb $0x1, %al
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7fea
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6330
jmp 0x7fea
movq %rax, %r14
movq 0x28(%rsp), %rdi
cmpq %rbp, %rdi
je 0x8008
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x6330
jmp 0x8008
jmp 0x8005
movq %rax, %r14
movq 0x48(%rsp), %rdi
cmpq %r13, %rdi
je 0x8071
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x6330
jmp 0x8071
movq %rax, %r14
cmpl $0x1, %edx
jne 0x8071
movq %r14, %rdi
callq 0x6130
leaq 0xa0(%rax), %rsi
leaq 0x60(%rbx), %rdi
callq 0x61c0
movl $0x3, 0x80(%rbx)
movl $0x8, %edi
callq 0x6190
movq %rbx, (%rax)
leaq 0x131f1(%rip), %rsi     # 0x1b250
movq %rax, %rdi
xorl %edx, %edx
callq 0x6550
movq %rax, %r14
callq 0x6500
movq %r14, %rdi
callq 0x6580