// File: 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
movq %rsp, %rbp
subq $0x120, %rsp            # imm = 0x120
movq %rdi, -0x110(%rbp)
movq %rdi, %rax
movq %rax, -0x108(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x10(%rbp), %rdi
movq %rdi, -0x100(%rbp)
addq $0x98, %rdi
callq 0x2d300
movq %rax, %rsi
movq -0x18(%rbp), %rdx
movq -0x20(%rbp), %rcx
movq (%rsi), %rax
movq (%rax), %rax
leaq -0x48(%rbp), %rdi
movq %rdi, -0xf8(%rbp)
callq *%rax
movq -0x100(%rbp), %rsi
movq -0xf8(%rbp), %rdi
addq $0x8, %rsi
movq -0x20(%rbp), %rdx
callq 0x87fe0
movq %rax, -0xf0(%rbp)
jmp 0x1360a5
movq -0xf0(%rbp), %rsi
leaq -0x38(%rbp), %rdi
callq 0x8c650
jmp 0x1360b7
leaq -0x48(%rbp), %rdi
callq 0x86dc0
leaq -0x70(%rbp), %rdi
callq 0x2cc30
leaq -0x38(%rbp), %rax
movq %rax, -0x78(%rbp)
movq -0x78(%rbp), %rdi
callq 0x24ba0
movq %rax, -0x80(%rbp)
movq -0x78(%rbp), %rdi
callq 0x24bd0
movq %rax, -0x88(%rbp)
leaq -0x80(%rbp), %rdi
leaq -0x88(%rbp), %rsi
callq 0x24c00
testb $0x1, %al
jne 0x136107
jmp 0x1363cc
leaq -0x80(%rbp), %rdi
callq 0x24c40
movq %rax, -0x90(%rbp)
movq -0x18(%rbp), %rsi
movq $0x0, -0xa8(%rbp)
leaq -0xa0(%rbp), %rdi
leaq -0xa8(%rbp), %rdx
callq 0x7d4e0
jmp 0x13613b
movq -0x100(%rbp), %rcx
movq %rcx, %rsi
addq $0x90, %rsi
movq -0x90(%rbp), %rdx
addq $0x8, %rcx
leaq -0xa0(%rbp), %rdi
callq 0x7de40
jmp 0x136165
movq -0x90(%rbp), %rsi
leaq -0xb8(%rbp), %rdi
callq 0x86d80
jmp 0x13617a
movq -0x100(%rbp), %rdi
addq $0xa8, %rdi
callq 0x136880
testb $0x1, %al
jne 0x136196
jmp 0x136295
movq -0x100(%rbp), %rdi
addq $0xa8, %rdi
callq 0x2d300
movq %rax, %rsi
movq -0x20(%rbp), %rcx
movq (%rsi), %rax
movq (%rax), %rax
leaq -0xc8(%rbp), %rdi
leaq -0xa0(%rbp), %rdx
callq *%rax
jmp 0x1361c8
movq -0x100(%rbp), %rsi
addq $0x8, %rsi
movq -0x20(%rbp), %rdx
leaq -0xc8(%rbp), %rdi
callq 0x881f0
movb %al, -0x111(%rbp)
jmp 0x1361eb
movb -0x111(%rbp), %al
testb $0x1, %al
jne 0x13626d
jmp 0x1361f7
movl $0x3, -0xcc(%rbp)
jmp 0x136277
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0x48(%rbp), %rdi
callq 0x86dc0
jmp 0x13641c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
jmp 0x13640a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
jmp 0x1363be
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
jmp 0x1363b2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0xc8(%rbp), %rdi
callq 0x86dc0
jmp 0x1363b2
movl $0x0, -0xcc(%rbp)
leaq -0xc8(%rbp), %rdi
callq 0x86dc0
movl -0xcc(%rbp), %eax
testl %eax, %eax
jne 0x13637c
jmp 0x136293
jmp 0x136295
movq -0x100(%rbp), %rdi
addq $0xb8, %rdi
callq 0x136880
testb $0x1, %al
jne 0x1362b1
jmp 0x136360
movq -0x100(%rbp), %rdi
addq $0xb8, %rdi
callq 0x2d300
movq %rax, %rsi
movq -0x20(%rbp), %rcx
movq (%rsi), %rax
movq (%rax), %rax
leaq -0xe0(%rbp), %rdi
leaq -0xa0(%rbp), %rdx
callq *%rax
jmp 0x1362e3
leaq -0xb8(%rbp), %rdi
leaq -0xe0(%rbp), %rsi
callq 0x86e20
jmp 0x1362f8
leaq -0xe0(%rbp), %rdi
callq 0x86dc0
leaq -0xb8(%rbp), %rdi
callq 0x879c0
movl %eax, -0x118(%rbp)
jmp 0x136318
movl -0x118(%rbp), %eax
cmpl $0x4, %eax
jne 0x13635e
movl $0x3, -0xe4(%rbp)
leaq -0xb8(%rbp), %rdi
leaq -0xe4(%rbp), %rsi
callq 0x879e0
jmp 0x136342
jmp 0x13635e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0xe0(%rbp), %rdi
callq 0x86dc0
jmp 0x1363b2
jmp 0x136360
leaq -0x70(%rbp), %rdi
leaq -0xb8(%rbp), %rsi
callq 0x2cc50
jmp 0x136372
movl $0x0, -0xcc(%rbp)
leaq -0xb8(%rbp), %rdi
callq 0x86dc0
leaq -0xa0(%rbp), %rdi
callq 0x7d790
movl -0xcc(%rbp), %eax
testl %eax, %eax
je 0x1363a2
jmp 0x1363a0
jmp 0x1363a4
jmp 0x1363a4
leaq -0x80(%rbp), %rdi
callq 0x24e20
jmp 0x1360ee
leaq -0xb8(%rbp), %rdi
callq 0x86dc0
leaq -0xa0(%rbp), %rdi
callq 0x7d790
jmp 0x13640a
movq -0x110(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0x86c50
jmp 0x1363de
movl $0x1, -0xcc(%rbp)
leaq -0x70(%rbp), %rdi
callq 0x2cf10
leaq -0x38(%rbp), %rdi
callq 0x2cf10
movq -0x108(%rbp), %rax
addq $0x120, %rsp            # imm = 0x120
popq %rbp
retq
leaq -0x70(%rbp), %rdi
callq 0x2cf10
leaq -0x38(%rbp), %rdi
callq 0x2cf10
movq -0x50(%rbp), %rdi
callq 0x119c0
nopw %cs:(%rax,%rax)