// File: Nallantli[P]Rossa/main/rossa/operation/operation.cpp
// Function: operation::untilstep_inclusive(object_t const*, symbol_t const&, symbol_t const&, symbol_t const&, token_t const*, std::vector<std::pair<token_t, function_t>, std::allocator<std::pair<token_t, function_t>>>&)
const symbol_t operation::untilstep_inclusive(const object_t *scope, const symbol_t &evalA, const symbol_t &evalB, const symbol_t &step, const token_t *token, trace_t &stack_trace)
{
	switch (COMP(evalA.getValueType(), evalB.getValueType()))
	{
	case COMP(value_type_enum::NUMBER, value_type_enum::NUMBER):
	{
		number_t numA = evalA.getNumber(token, stack_trace);
		const number_t &numB = evalB.getNumber(token, stack_trace);
		const number_t &numStep = step.getNumber(token, stack_trace);
		std::vector<symbol_t> nv;
		for (; numA <= numB; numA += numStep)
		{
			nv.push_back(symbol_t::Number(numA));
		}
		return symbol_t::Array(nv);
	}
	case value_type_enum::OBJECT:
	{
		const auto &o = evalA.getObject(token, stack_trace);
		if (o->hasValue(parser_t::HASH_RANGE_INC))
			return o->getVariable(parser_t::HASH_RANGE_INC, token, stack_trace).call({evalB, step}, token, stack_trace);
	}
	default:
		if (scope != NULL)
			return scope->getVariable(parser_t::HASH_RANGE_INC, token, stack_trace).call({evalA, evalB, step}, token, stack_trace);
	}

	throw rossa_error_t(util::format(_UNDECLARED_OPERATOR_ERROR_, {"<>"}), *token, stack_trace);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x310, %rsp            # imm = 0x310
movq %rdi, -0x208(%rbp)
movq %rdi, %rax
movq %rax, -0x200(%rbp)
movq 0x10(%rbp), %rax
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
movq -0x18(%rbp), %rdi
callq 0x883e0
cmpl $-0x8, %eax
jne 0x13c953
movl $0xfffffff8, %eax       # imm = 0xFFFFFFF8
movl %eax, -0x20c(%rbp)
jmp 0x13c98e
movq -0x18(%rbp), %rdi
callq 0x883e0
movl %eax, %ecx
xorl %eax, %eax
subl %ecx, %eax
movsbl %al, %eax
shll $0x4, %eax
movl %eax, -0x210(%rbp)
movq -0x20(%rbp), %rdi
callq 0x883e0
movl %eax, %edx
movl -0x210(%rbp), %eax
xorl %ecx, %ecx
subl %edx, %ecx
movsbl %cl, %ecx
orl %ecx, %eax
movl %eax, -0x20c(%rbp)
movl -0x20c(%rbp), %eax
movl %eax, -0x214(%rbp)
subl $-0x8, %eax
je 0x13caab
jmp 0x13c9a5
movl -0x214(%rbp), %eax
subl $0x22, %eax
jne 0x13cd09
jmp 0x13c9b6
movq -0x18(%rbp), %rdi
movq -0x30(%rbp), %rsi
movq 0x10(%rbp), %rdx
callq 0x87a00
movq (%rax), %rcx
movq %rcx, -0x40(%rbp)
movq 0x8(%rax), %rax
movq %rax, -0x38(%rbp)
movq -0x20(%rbp), %rdi
movq -0x30(%rbp), %rsi
movq 0x10(%rbp), %rdx
callq 0x87a00
movq %rax, -0x48(%rbp)
movq -0x28(%rbp), %rdi
movq -0x30(%rbp), %rsi
movq 0x10(%rbp), %rdx
callq 0x87a00
movq %rax, -0x50(%rbp)
leaq -0x68(%rbp), %rdi
callq 0x2cc30
movq -0x48(%rbp), %rsi
leaq -0x40(%rbp), %rdi
callq 0x9d640
testb $0x1, %al
jne 0x13ca1c
jmp 0x13ca7d
leaq -0x78(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x86bf0
jmp 0x13ca2b
leaq -0x68(%rbp), %rdi
leaq -0x78(%rbp), %rsi
callq 0x2cc50
jmp 0x13ca3a
leaq -0x78(%rbp), %rdi
callq 0x86dc0
movq -0x50(%rbp), %rsi
leaq -0x40(%rbp), %rdi
callq 0x9c5d0
jmp 0x13ca09
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
jmp 0x13ca9d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
leaq -0x78(%rbp), %rdi
callq 0x86dc0
jmp 0x13ca9d
movq -0x208(%rbp), %rdi
leaq -0x68(%rbp), %rsi
callq 0x86c50
jmp 0x13ca8f
leaq -0x68(%rbp), %rdi
callq 0x2cf10
jmp 0x13d1e5
leaq -0x68(%rbp), %rdi
callq 0x2cf10
jmp 0x13d1f5
movq -0x18(%rbp), %rdi
movq -0x30(%rbp), %rsi
movq 0x10(%rbp), %rdx
callq 0x882f0
movq %rax, -0x98(%rbp)
leaq -0x98(%rbp), %rax
movq %rax, -0x90(%rbp)
movq -0x90(%rbp), %rax
movq (%rax), %rdi
leaq 0xa909e(%rip), %rsi     # 0x1e5b80
callq 0x7dd00
testb $0x1, %al
jne 0x13caf0
jmp 0x13cd07
movq -0x90(%rbp), %rax
movq (%rax), %rdi
movq -0x30(%rbp), %rdx
movq 0x10(%rbp), %rcx
leaq 0xa9077(%rip), %rsi     # 0x1e5b80
callq 0x7ddd0
movq %rax, -0x220(%rbp)
leaq -0xe0(%rbp), %rdi
movq %rdi, -0xe8(%rbp)
movq -0x20(%rbp), %rsi
callq 0x86d80
jmp 0x13cb2e
leaq -0xd0(%rbp), %rdi
movq %rdi, -0xe8(%rbp)
movq -0x28(%rbp), %rsi
callq 0x86d80
jmp 0x13cb47
leaq -0xe0(%rbp), %rax
movq %rax, -0xc0(%rbp)
movq $0x2, -0xb8(%rbp)
leaq -0xe9(%rbp), %rdi
movq %rdi, -0x228(%rbp)
callq 0x2e2f0
movq -0x228(%rbp), %rcx
movq -0xc0(%rbp), %rsi
movq -0xb8(%rbp), %rdx
leaq -0xb0(%rbp), %rdi
callq 0x8c330
jmp 0x13cb96
movq -0x220(%rbp), %rsi
movq -0x208(%rbp), %rdi
movq -0x30(%rbp), %rcx
movq 0x10(%rbp), %r8
leaq -0xb0(%rbp), %rdx
callq 0x89e20
jmp 0x13cbba
leaq -0xb0(%rbp), %rdi
callq 0x2cf10
leaq -0xe9(%rbp), %rdi
callq 0x304d0
leaq -0xe0(%rbp), %rax
movq %rax, -0x238(%rbp)
addq $0x20, %rax
movq %rax, -0x230(%rbp)
movq -0x230(%rbp), %rdi
addq $-0x10, %rdi
movq %rdi, -0x240(%rbp)
callq 0x86dc0
movq -0x238(%rbp), %rcx
movq -0x240(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x230(%rbp)
jne 0x13cbeb
jmp 0x13d1e5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
movq -0xe8(%rbp), %rax
leaq -0xe0(%rbp), %rcx
cmpq %rax, %rcx
movq %rax, -0x248(%rbp)
je 0x13cc7b
movq -0x248(%rbp), %rdi
addq $-0x10, %rdi
movq %rdi, -0x250(%rbp)
callq 0x86dc0
movq -0x250(%rbp), %rax
leaq -0xe0(%rbp), %rcx
cmpq %rcx, %rax
movq %rax, -0x248(%rbp)
jne 0x13cc4a
jmp 0x13d1f5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
jmp 0x13ccac
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
leaq -0xb0(%rbp), %rdi
callq 0x2cf10
leaq -0xe9(%rbp), %rdi
callq 0x304d0
leaq -0xe0(%rbp), %rax
movq %rax, -0x260(%rbp)
addq $0x20, %rax
movq %rax, -0x258(%rbp)
movq -0x258(%rbp), %rdi
addq $-0x10, %rdi
movq %rdi, -0x268(%rbp)
callq 0x86dc0
movq -0x260(%rbp), %rcx
movq -0x268(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x258(%rbp)
jne 0x13ccd1
jmp 0x13d1f5
jmp 0x13cd09
cmpq $0x0, -0x10(%rbp)
je 0x13cf3e
movq -0x10(%rbp), %rdi
movq -0x30(%rbp), %rdx
movq 0x10(%rbp), %rcx
leaq 0xa8e59(%rip), %rsi     # 0x1e5b80
callq 0x7ddd0
movq %rax, -0x270(%rbp)
leaq -0x148(%rbp), %rdi
movq %rdi, -0x150(%rbp)
movq -0x18(%rbp), %rsi
callq 0x86d80
jmp 0x13cd4c
leaq -0x138(%rbp), %rdi
movq %rdi, -0x150(%rbp)
movq -0x20(%rbp), %rsi
callq 0x86d80
jmp 0x13cd65
leaq -0x128(%rbp), %rdi
movq %rdi, -0x150(%rbp)
movq -0x28(%rbp), %rsi
callq 0x86d80
jmp 0x13cd7e
leaq -0x148(%rbp), %rax
movq %rax, -0x118(%rbp)
movq $0x3, -0x110(%rbp)
leaq -0x151(%rbp), %rdi
movq %rdi, -0x278(%rbp)
callq 0x2e2f0
movq -0x278(%rbp), %rcx
movq -0x118(%rbp), %rsi
movq -0x110(%rbp), %rdx
leaq -0x108(%rbp), %rdi
callq 0x8c330
jmp 0x13cdcd
movq -0x270(%rbp), %rsi
movq -0x208(%rbp), %rdi
movq -0x30(%rbp), %rcx
movq 0x10(%rbp), %r8
leaq -0x108(%rbp), %rdx
callq 0x89e20
jmp 0x13cdf1
leaq -0x108(%rbp), %rdi
callq 0x2cf10
leaq -0x151(%rbp), %rdi
callq 0x304d0
leaq -0x148(%rbp), %rax
movq %rax, -0x288(%rbp)
addq $0x30, %rax
movq %rax, -0x280(%rbp)
movq -0x280(%rbp), %rdi
addq $-0x10, %rdi
movq %rdi, -0x290(%rbp)
callq 0x86dc0
movq -0x288(%rbp), %rcx
movq -0x290(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x280(%rbp)
jne 0x13ce22
jmp 0x13d1e5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
movq -0x150(%rbp), %rax
leaq -0x148(%rbp), %rcx
cmpq %rax, %rcx
movq %rax, -0x298(%rbp)
je 0x13ceb2
movq -0x298(%rbp), %rdi
addq $-0x10, %rdi
movq %rdi, -0x2a0(%rbp)
callq 0x86dc0
movq -0x2a0(%rbp), %rax
leaq -0x148(%rbp), %rcx
cmpq %rcx, %rax
movq %rax, -0x298(%rbp)
jne 0x13ce81
jmp 0x13d1f5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
jmp 0x13cee3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
leaq -0x108(%rbp), %rdi
callq 0x2cf10
leaq -0x151(%rbp), %rdi
callq 0x304d0
leaq -0x148(%rbp), %rax
movq %rax, -0x2b0(%rbp)
addq $0x30, %rax
movq %rax, -0x2a8(%rbp)
movq -0x2a8(%rbp), %rdi
addq $-0x10, %rdi
movq %rdi, -0x2b8(%rbp)
callq 0x86dc0
movq -0x2b0(%rbp), %rcx
movq -0x2b8(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x2a8(%rbp)
jne 0x13cf08
jmp 0x13d1f5
jmp 0x13cf40
movb $0x1, -0x1f4(%rbp)
movl $0xa8, %edi
callq 0x112b0
movq %rax, -0x2c8(%rbp)
leaq -0x199(%rbp), %rdi
movq %rdi, -0x2c0(%rbp)
callq 0x119d0
movq -0x2c0(%rbp), %rdx
leaq 0x18392(%rip), %rsi     # 0x15530b
leaq -0x198(%rbp), %rdi
callq 0x24740
jmp 0x13cf87
movb $0x1, -0x1f2(%rbp)
leaq -0x1e8(%rbp), %rax
movq %rax, -0x2d8(%rbp)
movq %rax, -0x1f0(%rbp)
leaq -0x1f1(%rbp), %rdi
movq %rdi, -0x2d0(%rbp)
callq 0x119d0
movq -0x2d8(%rbp), %rdi
movq -0x2d0(%rbp), %rdx
leaq 0x13052(%rip), %rsi     # 0x15001d
callq 0x24740
jmp 0x13cfd2
movb $0x0, -0x1f2(%rbp)
leaq -0x1e8(%rbp), %rax
movq %rax, -0x1c8(%rbp)
movq $0x1, -0x1c0(%rbp)
leaq -0x1f3(%rbp), %rdi
movq %rdi, -0x2e0(%rbp)
callq 0x26e30
movq -0x2e0(%rbp), %rcx
movq -0x1c8(%rbp), %rsi
movq -0x1c0(%rbp), %rdx
leaq -0x1b8(%rbp), %rdi
callq 0x2d6a0
jmp 0x13d028
leaq -0x178(%rbp), %rdi
leaq -0x198(%rbp), %rsi
leaq -0x1b8(%rbp), %rdx
callq 0x9e250
jmp 0x13d044
movq -0x2c8(%rbp), %rdi
movq -0x30(%rbp), %rdx
movq 0x10(%rbp), %rcx
leaq -0x178(%rbp), %rsi
callq 0x9c360
jmp 0x13d061
movq -0x2c8(%rbp), %rdi
movb $0x0, -0x1f4(%rbp)
leaq 0xa3c0a(%rip), %rsi     # 0x1e0c80
leaq -0xe26dd(%rip), %rdx    # 0x5a9a0
callq 0x11970
jmp 0x13d1fe
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
jmp 0x13d1c0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
jmp 0x13d150
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
jmp 0x13d0f8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
jmp 0x13d0ec
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
leaq -0x178(%rbp), %rdi
callq 0x11360
leaq -0x1b8(%rbp), %rdi
callq 0x25b00
leaq -0x1f3(%rbp), %rdi
callq 0x279c0
leaq -0x1e8(%rbp), %rax
movq %rax, -0x2f0(%rbp)
addq $0x20, %rax
movq %rax, -0x2e8(%rbp)
movq -0x2e8(%rbp), %rdi
addq $-0x20, %rdi
movq %rdi, -0x2f8(%rbp)
callq 0x11360
movq -0x2f0(%rbp), %rcx
movq -0x2f8(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x2e8(%rbp)
jne 0x13d11d
jmp 0x13d150
leaq -0x1f1(%rbp), %rdi
callq 0x11600
testb $0x1, -0x1f2(%rbp)
jne 0x13d167
jmp 0x13d1b4
movq -0x1f0(%rbp), %rax
leaq -0x1e8(%rbp), %rcx
cmpq %rax, %rcx
movq %rax, -0x300(%rbp)
je 0x13d1b2
movq -0x300(%rbp), %rdi
addq $-0x20, %rdi
movq %rdi, -0x308(%rbp)
callq 0x11360
movq -0x308(%rbp), %rax
leaq -0x1e8(%rbp), %rcx
cmpq %rcx, %rax
movq %rax, -0x300(%rbp)
jne 0x13d181
jmp 0x13d1b4
leaq -0x198(%rbp), %rdi
callq 0x11360
leaq -0x199(%rbp), %rdi
callq 0x11600
testb $0x1, -0x1f4(%rbp)
jne 0x13d1d7
jmp 0x13d1e3
movq -0x2c8(%rbp), %rdi
callq 0x11420
jmp 0x13d1f5
movq -0x200(%rbp), %rax
addq $0x310, %rsp            # imm = 0x310
popq %rbp
retq
movq -0x80(%rbp), %rdi
callq 0x119c0
nop