// File: /workspace/github_cpp_makefile_star2_O2/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %r9, %r14
movq %r8, %r12
movq %rcx, %r13
movq %rdx, %rbp
movq %rsi, %r15
movq %rdi, 0x8(%rsp)
movq %rdx, %rdi
callq 0x39ca6
cmpl $-0x8, %eax
je 0x6df4d
movq %rbp, %rdi
callq 0x39ca6
movl %eax, %ebx
shll $0x18, %ebx
negl %ebx
sarl $0x14, %ebx
movq %r13, %rdi
callq 0x39ca6
negb %al
movsbl %al, %eax
orl %ebx, %eax
cmpl $-0x8, %eax
je 0x6df4d
cmpl $0x22, %eax
jne 0x6e011
movq %rbp, %rdi
movq %r14, %rsi
movq 0xd0(%rsp), %rbx
movq %rbx, %rdx
callq 0x3968c
movups (%rax), %xmm0
leaq 0x40(%rsp), %r15
movaps %xmm0, (%r15)
movq %r13, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x3968c
movq %rax, %r13
movq %r12, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x3968c
movq %rax, %r14
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %rbx
movaps %xmm0, (%rbx)
andq $0x0, 0x10(%rbx)
leaq 0x60(%rsp), %r12
movq 0x8(%rsp), %rbp
movq %r15, %rdi
movq %r13, %rsi
callq 0x3f2f0
testb %al, %al
je 0x6e0c4
movq %r12, %rdi
movq %r15, %rsi
callq 0x39080
movq %rbx, %rdi
movq %r12, %rsi
callq 0x1f00a
movq %r12, %rdi
callq 0x39102
movq %r15, %rdi
movq %r14, %rsi
callq 0x3ecfa
jmp 0x6df0f
movq %rbp, %rdi
movq %r14, %rsi
movq 0xd0(%rsp), %rdx
callq 0x39c02
movq %rax, %rbx
leaq 0x48a86(%rip), %rsi     # 0xb69f0
movq %rax, %rdi
callq 0x366b2
testb %al, %al
je 0x6e011
leaq 0x48a6f(%rip), %rsi     # 0xb69f0
movq %rbx, %rdi
movq %r14, %rdx
movq 0xd0(%rsp), %rcx
callq 0x366ec
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
movq %r13, %rsi
callq 0x390f0
leaq 0x20(%rsp), %rdi
movq %r12, %rsi
callq 0x390f0
movq 0x8(%rsp), %rbp
leaq 0x40(%rsp), %rdi
leaq 0x10(%rsp), %rsi
pushq $0x2
popq %rdx
leaq 0x60(%rsp), %rcx
callq 0x3ba84
leaq 0x40(%rsp), %rdx
movq %rbp, %rdi
movq %rbx, %rsi
movq %r14, %rcx
movq 0xd0(%rsp), %r8
callq 0x3aa8c
leaq 0x40(%rsp), %rdi
callq 0x1f0b8
pushq $0x10
popq %rbx
leaq (%rsp,%rbx), %rdi
addq $0x10, %rdi
callq 0x39102
addq $-0x10, %rbx
cmpq $-0x10, %rbx
jne 0x6dff5
jmp 0x6e0db
testq %r15, %r15
je 0x6e0f0
leaq 0x489cf(%rip), %rsi     # 0xb69f0
movq %r15, %rdi
movq %r14, %rdx
movq 0xd0(%rsp), %rcx
callq 0x366ec
movq %rax, %r15
leaq 0x10(%rsp), %rbx
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x390f0
leaq 0x20(%rsp), %rbp
movq %rbp, %rdi
movq %r13, %rsi
callq 0x390f0
leaq 0x30(%rsp), %rbp
movq %rbp, %rdi
movq %r12, %rsi
callq 0x390f0
leaq 0x40(%rsp), %rdi
leaq 0x10(%rsp), %rsi
pushq $0x3
popq %rdx
leaq 0x60(%rsp), %rcx
callq 0x3ba84
leaq 0x40(%rsp), %rdx
movq 0x8(%rsp), %rbp
movq %rbp, %rdi
movq %r15, %rsi
movq %r14, %rcx
movq 0xd0(%rsp), %r8
callq 0x3aa8c
leaq 0x40(%rsp), %rdi
callq 0x1f0b8
pushq $0x20
popq %rbx
leaq (%rsp,%rbx), %rdi
addq $0x10, %rdi
callq 0x39102
addq $-0x10, %rbx
cmpq $-0x10, %rbx
jne 0x6e0ab
jmp 0x6e0db
leaq 0x10(%rsp), %rsi
movq %rbp, %rdi
callq 0x3909c
leaq 0x10(%rsp), %rdi
callq 0x1f0b8
movq %rbp, %rax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0xa8, %edi
callq 0x101f0
movq %rax, %r12
leaq 0xc7bf(%rip), %rsi      # 0x7a8c3
leaq 0x40(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x1c814
leaq 0x7f1f(%rip), %rsi      # 0x76039
leaq 0x60(%rsp), %rdi
leaq 0x6(%rsp), %rdx
callq 0x1c814
leaq 0x80(%rsp), %rdi
leaq 0x60(%rsp), %rsi
pushq $0x1
popq %rdx
leaq 0x5(%rsp), %rcx
callq 0x1f298
leaq 0x10(%rsp), %rdi
leaq 0x40(%rsp), %rsi
leaq 0x80(%rsp), %rdx
callq 0x3f724
movb $0x1, %bl
leaq 0x10(%rsp), %rsi
movq %r12, %rdi
movq %r14, %rdx
movq 0xd0(%rsp), %rcx
callq 0x3ebb8
xorl %ebx, %ebx
leaq 0x43b23(%rip), %rsi     # 0xb1ca0
leaq -0x3ed12(%rip), %rdx    # 0x2f472
movq %r12, %rdi
callq 0x106c0
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0x101d0
jmp 0x6e1a0
movq %rax, %r14
movb $0x1, %bl
leaq 0x80(%rsp), %rdi
callq 0x1cea0
jmp 0x6e1b4
movq %rax, %r14
movb $0x1, %bl
leaq 0x60(%rsp), %rdi
callq 0x101d0
jmp 0x6e1c5
movq %rax, %r14
movb $0x1, %bl
leaq 0x40(%rsp), %rdi
callq 0x101d0
testb %bl, %bl
jne 0x6e1e0
jmp 0x6e291
jmp 0x6e284
movq %rax, %r14
movq %r12, %rdi
callq 0x102e0
jmp 0x6e291
movq %rax, %r14
leaq 0x40(%rsp), %rdi
callq 0x1f0b8
jmp 0x6e1ff
movq %rax, %r14
pushq $0x10
popq %rbx
leaq (%rsp,%rbx), %rdi
addq $0x10, %rdi
callq 0x39102
addq $-0x10, %rbx
cmpq $-0x10, %rbx
jne 0x6e202
jmp 0x6e291
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0x39102
jmp 0x6e291
jmp 0x6e25a
movq %rax, %r14
leaq 0x40(%rsp), %rdi
callq 0x1f0b8
jmp 0x6e23e
movq %rax, %r14
pushq $0x20
popq %rbx
leaq (%rsp,%rbx), %rdi
addq $0x10, %rdi
callq 0x39102
addq $-0x10, %rbx
cmpq $-0x10, %rbx
jne 0x6e241
jmp 0x6e291
movq %rax, %r14
jmp 0x6e291
movq %rax, %r14
addq $-0x10, %rbp
movq %rbp, %rdi
callq 0x39102
cmpq %rbx, %rbp
jne 0x6e262
jmp 0x6e291
movq %rax, %r14
leaq 0x60(%rsp), %rdi
callq 0x39102
jmp 0x6e287
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0x1f0b8
movq %r14, %rdi
callq 0x106f0