// File: /workspace/github_cpp_makefile_star2_O3/Nallantli[P]Rossa/main/rossa/instruction/instruction.cpp
// Function: EachI::evaluate(object_t const*, std::vector<std::pair<token_t, function_t>, std::allocator<std::pair<token_t, function_t>>>&) const
const symbol_t EachI::evaluate(const object_t *scope, trace_t &stack_trace) const
{
	const std::vector<symbol_t> evalFor = eachs->evaluate(scope, stack_trace).getVector(&token, stack_trace);
	std::vector<symbol_t> list;
	for (const symbol_t &e : evalFor)
	{
		const object_t newScope(scope, 0);
		newScope.createVariable(id, e, &token);
		symbol_t r = e;
		if (wheres)
		{
			auto check = wheres->evaluate(&newScope, stack_trace);
			if (!check.getBool(&token, stack_trace))
				continue;
		}
		if (body)
		{
			r = body->evaluate(&newScope, stack_trace);
			if (r.getSymbolType() == symbol_t::type_t::ID_REFER)
			{
				r.setSymbolType(symbol_t::type_t::ID_CASUAL);
			}
		}
		list.push_back(r);
	}
	return symbol_t::Array(list);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rcx, %r13
movq %rsi, %r14
movq %rdi, 0x50(%rsp)
movq 0x98(%rsi), %rsi
movq (%rsi), %rax
leaq 0x30(%rsp), %rbx
movq %rbx, %rdi
movq %rdx, 0x68(%rsp)
callq *(%rax)
movq %r14, 0x8(%rsp)
leaq 0x8(%r14), %r12
movq %rbx, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x40848
leaq 0x80(%rsp), %rdi
movq %rax, %rsi
callq 0x437fe
leaq 0x30(%rsp), %rbx
movq %rbx, %rdi
callq 0x3fe06
xorps %xmm0, %xmm0
movaps %xmm0, (%rbx)
movq $0x0, 0x10(%rbx)
movq 0x80(%rsp), %rbp
movq 0x88(%rsp), %rax
movq %rax, 0x60(%rsp)
cmpq %rax, %rbp
je 0x75fe3
movq 0x8(%rsp), %rax
addq $0x90, %rax
movq %rax, 0x58(%rsp)
leaq 0x20(%rsp), %rbx
leaq 0x10(%rsp), %r15
leaq 0x70(%rsp), %r14
movq $0x0, 0x10(%rsp)
movq %rbx, %rdi
movq 0x68(%rsp), %rsi
movq %r15, %rdx
callq 0x3c968
movq %rbx, %rdi
movq 0x58(%rsp), %rsi
movq %rbp, %rdx
movq %r12, %rcx
callq 0x3cee2
leaq 0x10(%rsp), %rdi
movq %rbp, %rsi
callq 0x3fdf4
movq 0x8(%rsp), %rax
movq 0xa8(%rax), %rsi
testq %rsi, %rsi
je 0x75f50
movq (%rsi), %rax
movq %r14, %rdi
leaq 0x20(%rsp), %rdx
movq %r13, %rcx
callq *(%rax)
movq %r14, %rdi
movq %r12, %r15
movq %r12, %rsi
movq %r13, %r12
movq %r13, %rdx
callq 0x409e0
movl %eax, %r13d
movq %r14, %rdi
callq 0x3fe06
testb %r13b, %r13b
movq %r12, %r13
movq %r15, %r12
je 0x75fba
movq 0x8(%rsp), %rax
movq 0xb8(%rax), %rsi
testq %rsi, %rsi
je 0x75fab
movq (%rsi), %rax
movq %r14, %rdi
leaq 0x20(%rsp), %rdx
movq %r13, %rcx
callq *(%rax)
leaq 0x10(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x3fe28
movq %r14, %rdi
callq 0x3fe06
movq %r15, %rdi
callq 0x4040c
cmpl $0x4, %eax
jne 0x75fab
movl $0x3, 0x70(%rsp)
leaq 0x10(%rsp), %rdi
movq %r14, %rsi
callq 0x40410
leaq 0x30(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x2087a
leaq 0x10(%rsp), %r15
movq %r15, %rdi
callq 0x3fe06
leaq 0x20(%rsp), %rbx
movq %rbx, %rdi
callq 0x3cb40
addq $0x10, %rbp
cmpq 0x60(%rsp), %rbp
jne 0x75ecc
leaq 0x30(%rsp), %rsi
movq 0x50(%rsp), %rbx
movq %rbx, %rdi
callq 0x3fda0
leaq 0x30(%rsp), %rdi
callq 0x20952
leaq 0x80(%rsp), %rdi
callq 0x20952
movq %rbx, %rax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x76049
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x3fe06
jmp 0x76083
jmp 0x76055
jmp 0x76055
jmp 0x7603a
jmp 0x76055
movq %rax, %rbx
leaq 0x70(%rsp), %rdi
callq 0x3fe06
jmp 0x76058
movq %rax, %rbx
jmp 0x7606c
jmp 0x76050
movq %rax, %rbx
jmp 0x76062
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x3fe06
leaq 0x20(%rsp), %rdi
callq 0x3cb40
leaq 0x30(%rsp), %rdi
callq 0x20952
leaq 0x80(%rsp), %rdi
callq 0x20952
movq %rbx, %rdi
callq 0x106f0
nop