// File: Nallantli[P]Rossa/main/rossa/instruction/instruction.cpp
// Function: AllocI::evaluate(object_t const*, std::vector<std::pair<token_t, function_t>, std::allocator<std::pair<token_t, function_t>>>&) const
const symbol_t AllocI::evaluate(const object_t *scope, trace_t &stack_trace) const
{
	const long_int_t evalA = a->evaluate(scope, stack_trace).getNumber(&token, stack_trace).getLong();
	if (evalA < 0)
		throw rossa_error_t(_FAILURE_ALLOC_, token, stack_trace);
	if (setall)
	{
		auto evalB = setall->evaluate(scope, stack_trace);
		return symbol_t::allocateAs(evalA, &evalB, &token, stack_trace);
	}
	return symbol_t::allocate(evalA);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xe0, %rsp
movq %rdi, -0xb8(%rbp)
movq %rdi, %rax
movq %rax, -0xb0(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x10(%rbp), %rdi
movq %rdi, -0xa8(%rbp)
addq $0x90, %rdi
callq 0x2d300
movq %rax, %rsi
movq -0x18(%rbp), %rdx
movq -0x20(%rbp), %rcx
movq (%rsi), %rax
movq (%rax), %rax
leaq -0x38(%rbp), %rdi
movq %rdi, -0xa0(%rbp)
callq *%rax
movq -0xa8(%rbp), %rsi
movq -0xa0(%rbp), %rdi
addq $0x8, %rsi
movq -0x20(%rbp), %rdx
callq 0x87a00
movq %rax, -0x98(%rbp)
jmp 0x131125
movq -0x98(%rbp), %rdi
callq 0x9c780
movq %rax, -0xc0(%rbp)
leaq -0x38(%rbp), %rdi
callq 0x86dc0
movq -0xc0(%rbp), %rax
movq %rax, -0x28(%rbp)
cmpq $0x0, -0x28(%rbp)
jge 0x131238
movb $0x1, -0x6a(%rbp)
movl $0xa8, %edi
callq 0x112b0
movq %rax, -0xd0(%rbp)
leaq -0x69(%rbp), %rdi
movq %rdi, -0xc8(%rbp)
callq 0x119d0
movq -0xc8(%rbp), %rdx
leaq 0x24076(%rip), %rsi     # 0x155200
leaq -0x68(%rbp), %rdi
callq 0x24740
jmp 0x131195
movq -0xd0(%rbp), %rdi
movq -0xa8(%rbp), %rdx
addq $0x8, %rdx
movq -0x20(%rbp), %rcx
leaq -0x68(%rbp), %rsi
callq 0x9c360
jmp 0x1311b6
movq -0xd0(%rbp), %rdi
movb $0x0, -0x6a(%rbp)
leaq 0xafab8(%rip), %rsi     # 0x1e0c80
leaq -0xd682f(%rip), %rdx    # 0x5a9a0
callq 0x11970
jmp 0x131314
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x38(%rbp), %rdi
callq 0x86dc0
jmp 0x13130b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x131216
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x68(%rbp), %rdi
callq 0x11360
leaq -0x69(%rbp), %rdi
callq 0x11600
testb $0x1, -0x6a(%rbp)
jne 0x131227
jmp 0x131233
movq -0xd0(%rbp), %rdi
callq 0x11420
jmp 0x13130b
movq -0xa8(%rbp), %rdi
addq $0xa0, %rdi
callq 0x136880
testb $0x1, %al
jne 0x131254
jmp 0x1312dd
movq -0xa8(%rbp), %rdi
addq $0xa0, %rdi
callq 0x2d300
movq %rax, %rsi
movq -0x18(%rbp), %rdx
movq -0x20(%rbp), %rcx
movq (%rsi), %rax
movq (%rax), %rax
leaq -0x80(%rbp), %rdi
movq %rdi, -0xd8(%rbp)
callq *%rax
movq -0xa8(%rbp), %rcx
movq -0xb8(%rbp), %rdi
movq -0xd8(%rbp), %rdx
movq -0x28(%rbp), %rax
movq %rax, -0x88(%rbp)
addq $0x8, %rcx
movq -0x20(%rbp), %r8
leaq -0x88(%rbp), %rsi
callq 0x86f80
jmp 0x1312bb
leaq -0x80(%rbp), %rdi
callq 0x86dc0
jmp 0x1312fb
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x80(%rbp), %rdi
callq 0x86dc0
jmp 0x13130b
movq -0xb8(%rbp), %rdi
movq -0x28(%rbp), %rax
movq %rax, -0x90(%rbp)
leaq -0x90(%rbp), %rsi
callq 0x86ed0
movq -0xb0(%rbp), %rax
addq $0xe0, %rsp
popq %rbp
retq
movq -0x40(%rbp), %rdi
callq 0x119c0
nopw %cs:(%rax,%rax)