// File: /workspace/github_cpp_makefile_star2_O3/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 0xc39d(%rip), %rsi      # 0x140e7
callq 0x60f0
testl %eax, %eax
je 0x7df5
leaq 0x38(%rsp), %r13
movq %r13, -0x10(%r13)
movq 0x88(%rbx), %rsi
movq 0x90(%rbx), %rdx
addq %rsi, %rdx
leaq 0x28(%rsp), %r14
movq %r14, %rdi
callq 0x745a
leaq 0xc8c0(%rip), %rsi      # 0x14645
movq %r14, %rdi
callq 0x65d0
movq 0xc8(%rbx), %r15
movq %r15, %r14
negq %r14
cmovsq %r15, %r14
movl $0x1, %r12d
cmpq $0xa, %r14
jb 0x7e22
movl $0x4, %r12d
movabsq $0x346dc5d63886594b, %rsi # imm = 0x346DC5D63886594B
movq %r14, %rcx
cmpq $0x63, %rcx
jbe 0x7e19
cmpq $0x3e7, %rcx            # imm = 0x3E7
jbe 0x7e1f
cmpq $0x2710, %rcx           # imm = 0x2710
jb 0x7e22
movq %rcx, %rax
mulq %rsi
shrq $0xb, %rdx
addl $0x4, %r12d
cmpq $0x1869f, %rcx          # imm = 0x1869F
movq %rdx, %rcx
ja 0x7dbd
addl $-0x3, %r12d
jmp 0x7e22
movq 0x10(%rbx), %rdi
movq 0xc8(%rbx), %rsi
callq 0xba66
leaq 0xa8(%rbx), %rdi
movq %rax, %rsi
callq 0x61c0
jmp 0x7fc1
addl $-0x2, %r12d
jmp 0x7e22
decl %r12d
shrq $0x3f, %r15
leal (%r15,%r12), %esi
leaq 0x58(%rsp), %rbp
movq %rbp, -0x10(%rbp)
leaq 0x48(%rsp), %rdi
movl $0x2d, %edx
callq 0x63b0
addq 0x48(%rsp), %r15
movq %r15, %rdi
movl %r12d, %esi
movq %r14, %rdx
callq 0x8087
movq 0x28(%rsp), %rcx
movq 0x30(%rsp), %r8
movq 0x50(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
cmpq %r13, %rcx
je 0x7e77
movq 0x38(%rsp), %rdi
movq 0x48(%rsp), %rsi
cmpq %rdi, %rax
jbe 0x7e95
movl $0xf, %edi
cmpq %rbp, %rsi
je 0x7e90
movq 0x58(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x7ea1
leaq 0x28(%rsp), %rdi
callq 0x6100
jmp 0x7eaf
leaq 0x48(%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 0x7ed3
movq %rsi, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x7ed9
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 0xca96(%rip), %rsi      # 0x14993
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 0x7f2e
movq %rdx, 0x68(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x78(%rsp)
jmp 0x7f35
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 0x7f78
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x6330
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7f93
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6330
movq 0x48(%rsp), %rdi
cmpq %rbp, %rdi
je 0x7faa
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x6330
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x7fc1
movq 0x38(%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 0x7ff8
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6330
jmp 0x7ff8
movq %rax, %r14
movq 0x48(%rsp), %rdi
cmpq %rbp, %rdi
je 0x8016
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x6330
jmp 0x8016
jmp 0x8013
movq %rax, %r14
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x807f
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x6330
jmp 0x807f
movq %rax, %r14
cmpl $0x1, %edx
jne 0x807f
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 0x131e3(%rip), %rsi     # 0x1b250
movq %rax, %rdi
xorl %edx, %edx
callq 0x6550
movq %rax, %r14
callq 0x6500
movq %r14, %rdi
callq 0x6580