// File: Nallantli[P]Rossa/main/rossa/instruction/instruction.cpp
// Function: SequenceI::evaluate(object_t const*, std::vector<std::pair<token_t, function_t>, std::allocator<std::pair<token_t, function_t>>>&) const
const symbol_t SequenceI::evaluate(const object_t *scope, trace_t &stack_trace) const
{
	std::vector<symbol_t> evals;
	for (const ptr_instruction_t &e : children)
	{
		switch (e->getType())
		{
		case UNTIL_STEP_EXC_I:
		case UNTIL_NO_STEP_EXC_I:
		case UNTIL_STEP_INC_I:
		case UNTIL_NO_STEP_INC_I:
		case EACH_I:
		{
			std::vector<symbol_t> v = e->evaluate(scope, stack_trace).getVector(&token, stack_trace);
			for (auto &&ve : v)
			{
				evals.push_back(ve);
			}
			break;
		}
		default:
			evals.push_back(e->evaluate(scope, stack_trace));
			break;
		}
	}
	return symbol_t::Array(evals);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xf0, %rsp
movq %rdi, -0xd8(%rbp)
movq %rdi, %rax
movq %rax, -0xd0(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0xc8(%rbp)
leaq -0x38(%rbp), %rdi
callq 0x2cc30
movq -0xc8(%rbp), %rax
addq $0x90, %rax
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rdi
callq 0x1367a0
movq %rax, -0x48(%rbp)
movq -0x40(%rbp), %rdi
callq 0x1367d0
movq %rax, -0x50(%rbp)
leaq -0x48(%rbp), %rdi
leaq -0x50(%rbp), %rsi
callq 0x136800
testb $0x1, %al
jne 0x128b91
jmp 0x128d8b
leaq -0x48(%rbp), %rdi
callq 0x136840
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rdi
callq 0x2d300
movq %rax, %rdi
callq 0x128000
movl %eax, %ecx
movl %ecx, %eax
addl $-0x13, %eax
movl %ecx, -0xdc(%rbp)
subl $0x4, %eax
jb 0x128bd4
jmp 0x128bc3
movl -0xdc(%rbp), %eax
subl $0x41, %eax
jne 0x128d16
jmp 0x128bd4
movq -0x58(%rbp), %rdi
callq 0x2d300
movq %rax, %rsi
movq -0x18(%rbp), %rdx
movq -0x20(%rbp), %rcx
movq (%rsi), %rax
movq (%rax), %rax
leaq -0x80(%rbp), %rdi
callq *%rax
jmp 0x128bf6
movq -0xc8(%rbp), %rsi
addq $0x8, %rsi
movq -0x20(%rbp), %rdx
leaq -0x80(%rbp), %rdi
callq 0x87fe0
movq %rax, -0xe8(%rbp)
jmp 0x128c17
movq -0xe8(%rbp), %rsi
leaq -0x70(%rbp), %rdi
callq 0x8c650
jmp 0x128c29
leaq -0x80(%rbp), %rdi
callq 0x86dc0
leaq -0x70(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0x98(%rbp), %rdi
callq 0x30950
movq %rax, -0xa0(%rbp)
movq -0x98(%rbp), %rdi
callq 0x307d0
movq %rax, -0xa8(%rbp)
leaq -0xa0(%rbp), %rdi
leaq -0xa8(%rbp), %rsi
callq 0x8bbc0
testb $0x1, %al
jne 0x128c7f
jmp 0x128d0b
leaq -0xa0(%rbp), %rdi
callq 0x8bc00
movq %rax, -0xb0(%rbp)
movq -0xb0(%rbp), %rsi
leaq -0x38(%rbp), %rdi
callq 0x2cc50
jmp 0x128ca4
jmp 0x128ca6
leaq -0xa0(%rbp), %rdi
callq 0x8bc20
jmp 0x128c63
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x88(%rbp)
movl %eax, -0x8c(%rbp)
jmp 0x128db6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x88(%rbp)
movl %eax, -0x8c(%rbp)
leaq -0x80(%rbp), %rdi
callq 0x86dc0
jmp 0x128db6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x88(%rbp)
movl %eax, -0x8c(%rbp)
leaq -0x70(%rbp), %rdi
callq 0x2cf10
jmp 0x128db6
leaq -0x70(%rbp), %rdi
callq 0x2cf10
jmp 0x128d7b
movq -0x58(%rbp), %rdi
callq 0x2d300
movq %rax, %rsi
movq -0x18(%rbp), %rdx
movq -0x20(%rbp), %rcx
movq (%rsi), %rax
movq (%rax), %rax
leaq -0xc0(%rbp), %rdi
callq *%rax
jmp 0x128d3b
leaq -0x38(%rbp), %rdi
leaq -0xc0(%rbp), %rsi
callq 0x2cc50
jmp 0x128d4d
leaq -0xc0(%rbp), %rdi
callq 0x86dc0
jmp 0x128d7b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x88(%rbp)
movl %eax, -0x8c(%rbp)
leaq -0xc0(%rbp), %rdi
callq 0x86dc0
jmp 0x128db6
jmp 0x128d7d
leaq -0x48(%rbp), %rdi
callq 0x136860
jmp 0x128b7b
movq -0xd8(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x86c50
jmp 0x128d9d
leaq -0x38(%rbp), %rdi
callq 0x2cf10
movq -0xd0(%rbp), %rax
addq $0xf0, %rsp
popq %rbp
retq
leaq -0x38(%rbp), %rdi
callq 0x2cf10
movq -0x88(%rbp), %rdi
callq 0x119c0
nopl (%rax,%rax)