// File: /workspace/github_cpp_makefile_star2_O1/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 0x40f46
leaq 0x80(%rsp), %rdi
movq %rax, %rsi
callq 0x43f8e
leaq 0x30(%rsp), %rbx
movq %rbx, %rdi
callq 0x404da
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 0x770e5
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 0x3cf90
movq %rbx, %rdi
movq 0x58(%rsp), %rsi
movq %rbp, %rdx
movq %r12, %rcx
callq 0x3d512
leaq 0x10(%rsp), %rdi
movq %rbp, %rsi
callq 0x404c8
movq 0x8(%rsp), %rax
movq 0xa8(%rax), %rsi
testq %rsi, %rsi
je 0x77052
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 0x410e2
movl %eax, %r13d
movq %r14, %rdi
callq 0x404da
testb %r13b, %r13b
movq %r12, %r13
movq %r15, %r12
je 0x770bc
movq 0x8(%rsp), %rax
movq 0xb8(%rax), %rsi
testq %rsi, %rsi
je 0x770ad
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 0x40508
movq %r14, %rdi
callq 0x404da
movq %r15, %rdi
callq 0x40b02
cmpl $0x4, %eax
jne 0x770ad
movl $0x3, 0x70(%rsp)
leaq 0x10(%rsp), %rdi
movq %r14, %rsi
callq 0x40b06
leaq 0x30(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x209ac
leaq 0x10(%rsp), %r15
movq %r15, %rdi
callq 0x404da
leaq 0x20(%rsp), %rbx
movq %rbx, %rdi
callq 0x3d168
addq $0x10, %rbp
cmpq 0x60(%rsp), %rbp
jne 0x76fce
leaq 0x30(%rsp), %rsi
movq 0x50(%rsp), %rbx
movq %rbx, %rdi
callq 0x40474
leaq 0x30(%rsp), %rdi
callq 0x20a84
leaq 0x80(%rsp), %rdi
callq 0x20a84
movq %rbx, %rax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x7714b
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x404da
jmp 0x77185
jmp 0x77157
jmp 0x77157
jmp 0x7713c
jmp 0x77157
movq %rax, %rbx
leaq 0x70(%rsp), %rdi
callq 0x404da
jmp 0x7715a
movq %rax, %rbx
jmp 0x7716e
jmp 0x77152
movq %rax, %rbx
jmp 0x77164
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x404da
leaq 0x20(%rsp), %rdi
callq 0x3d168
leaq 0x30(%rsp), %rdi
callq 0x20a84
leaq 0x80(%rsp), %rdi
callq 0x20a84
movq %rbx, %rdi
callq 0x106f0
nop