// File: /workspace/github_cpp_makefile_star2_O2/Nallantli[P]Rossa/main/rossa/instruction/instruction.cpp
// Function: ForI::evaluate(object_t const*, std::vector<std::pair<token_t, function_t>, std::allocator<std::pair<token_t, function_t>>>&) const
const symbol_t ForI::evaluate(const object_t *scope, trace_t &stack_trace) const
{
	const std::vector<symbol_t> evalFor = fors->evaluate(scope, stack_trace).getVector(&token, stack_trace);
	for (auto &&e : evalFor)
	{
		const object_t newScope(scope, OBJECT_WEAK);
		newScope.createVariable(id, e, &token);
		bool cflag = false;
		for (auto &&i : body)
		{
			const symbol_t temp = i->evaluate(&newScope, stack_trace);
			switch (temp.getSymbolType())
			{
			case symbol_t::type_t::ID_REFER:
			case symbol_t::type_t::ID_RETURN:
				return temp;
			case symbol_t::type_t::ID_BREAK:
				return symbol_t();
			case symbol_t::type_t::ID_CONTINUE:
				cflag = true;
				break;
			default:
				break;
			}
			if (cflag)
				break;
		}
	}
	return symbol_t();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rcx, %rbx
movq %rsi, %r14
movq %rdi, (%rsp)
movq 0x98(%rsi), %rsi
movq (%rsi), %rax
leaq 0x10(%rsp), %r15
movq %r15, %rdi
movq %rdx, 0x30(%rsp)
callq *(%rax)
movq %r14, 0x8(%rsp)
leaq 0x8(%r14), %rsi
movq %r15, %rdi
movq %rsi, 0x28(%rsp)
movq %rbx, 0x48(%rsp)
movq %rbx, %rdx
callq 0x39a02
leaq 0x50(%rsp), %rdi
movq %rax, %rsi
callq 0x3bbc0
leaq 0x10(%rsp), %rbp
movq %rbp, %rdi
callq 0x39102
movq 0x50(%rsp), %rbx
movq 0x58(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0x8(%rsp), %rax
addq $0x90, %rax
movq %rax, 0x20(%rsp)
leaq 0x68(%rsp), %r13
cmpq 0x38(%rsp), %rbx
je 0x654f8
andq $0x0, 0x68(%rsp)
movq %rbp, %rdi
movq 0x30(%rsp), %rsi
movq %r13, %rdx
callq 0x36228
movq %rbp, %rdi
movq 0x20(%rsp), %rsi
movq %rbx, 0x40(%rsp)
movq %rbx, %rdx
movq 0x28(%rsp), %rcx
callq 0x366fc
movq 0x8(%rsp), %rax
movq 0xa8(%rax), %rbx
movq 0xb0(%rax), %r15
xorl %r12d, %r12d
cmpq %r15, %rbx
je 0x654d7
movq (%rbx), %rsi
movq (%rsi), %rax
movq %r13, %rdi
movq %rbp, %rdx
movq 0x48(%rsp), %rcx
callq *(%rax)
movq %r13, %rdi
callq 0x39682
cmpl $0x4, %eax
ja 0x654a7
movl %eax, %eax
leaq 0x14f06(%rip), %rcx     # 0x7a37c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq (%rsp), %rdi
movq %r13, %rsi
callq 0x390f0
jmp 0x6549f
movb $0x1, %r12b
xorl %ebp, %ebp
pushq $0x4
jmp 0x654a3
movq (%rsp), %rdi
callq 0x38d00
xorl %ebp, %ebp
pushq $0x1
popq %r14
jmp 0x654ba
movl %r12d, %ebp
xorb $0x1, %bpl
movzbl %r12b, %r14d
andl $0x1, %r14d
shll $0x2, %r14d
movq %r13, %rdi
callq 0x39102
addq $0x10, %rbx
testb $0x1, %bpl
leaq 0x10(%rsp), %rbp
jne 0x65444
jmp 0x654db
pushq $0x4
popq %r14
movq %rbp, %rdi
callq 0x363f2
movq 0x40(%rsp), %rbx
addq $0x10, %rbx
cmpl $0x4, %r14d
je 0x653f3
jmp 0x65501
movq (%rsp), %rdi
callq 0x38d00
leaq 0x50(%rsp), %rdi
callq 0x1f0b8
movq (%rsp), %rax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x65531
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x39102
jmp 0x6555c
jmp 0x65536
movq %rax, %rbx
jmp 0x65552
movq %rax, %rbx
jmp 0x65548
movq %rax, %rbx
leaq 0x68(%rsp), %rdi
callq 0x39102
leaq 0x10(%rsp), %rdi
callq 0x363f2
leaq 0x50(%rsp), %rdi
callq 0x1f0b8
movq %rbx, %rdi
callq 0x106f0