// File: Nallantli[P]Rossa/main/rossa/operation/operation.cpp
// Function: operation::untilstep_exclusive(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_exclusive(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_EXC))
			return o->getVariable(parser_t::HASH_RANGE_EXC, token, stack_trace).call({evalB, step}, token, stack_trace);
	}
	default:
		if (scope != NULL)
			return scope->getVariable(parser_t::HASH_RANGE_EXC, 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 0x13db73
movl $0xfffffff8, %eax       # imm = 0xFFFFFFF8
movl %eax, -0x20c(%rbp)
jmp 0x13dbae
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 0x13dccb
jmp 0x13dbc5
movl -0x214(%rbp), %eax
subl $0x22, %eax
jne 0x13df29
jmp 0x13dbd6
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 0x9d470
testb $0x1, %al
jne 0x13dc3c
jmp 0x13dc9d
leaq -0x78(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x86bf0
jmp 0x13dc4b
leaq -0x68(%rbp), %rdi
leaq -0x78(%rbp), %rsi
callq 0x2cc50
jmp 0x13dc5a
leaq -0x78(%rbp), %rdi
callq 0x86dc0
movq -0x50(%rbp), %rsi
leaq -0x40(%rbp), %rdi
callq 0x9c5d0
jmp 0x13dc29
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
jmp 0x13dcbd
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
leaq -0x78(%rbp), %rdi
callq 0x86dc0
jmp 0x13dcbd
movq -0x208(%rbp), %rdi
leaq -0x68(%rbp), %rsi
callq 0x86c50
jmp 0x13dcaf
leaq -0x68(%rbp), %rdi
callq 0x2cf10
jmp 0x13e405
leaq -0x68(%rbp), %rdi
callq 0x2cf10
jmp 0x13e415
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 0xa7e86(%rip), %rsi     # 0x1e5b88
callq 0x7dd00
testb $0x1, %al
jne 0x13dd10
jmp 0x13df27
movq -0x90(%rbp), %rax
movq (%rax), %rdi
movq -0x30(%rbp), %rdx
movq 0x10(%rbp), %rcx
leaq 0xa7e5f(%rip), %rsi     # 0x1e5b88
callq 0x7ddd0
movq %rax, -0x220(%rbp)
leaq -0xe0(%rbp), %rdi
movq %rdi, -0xe8(%rbp)
movq -0x20(%rbp), %rsi
callq 0x86d80
jmp 0x13dd4e
leaq -0xd0(%rbp), %rdi
movq %rdi, -0xe8(%rbp)
movq -0x28(%rbp), %rsi
callq 0x86d80
jmp 0x13dd67
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 0x13ddb6
movq -0x220(%rbp), %rsi
movq -0x208(%rbp), %rdi
movq -0x30(%rbp), %rcx
movq 0x10(%rbp), %r8
leaq -0xb0(%rbp), %rdx
callq 0x89e20
jmp 0x13ddda
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 0x13de0b
jmp 0x13e405
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 0x13de9b
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 0x13de6a
jmp 0x13e415
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
jmp 0x13decc
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 0x13def1
jmp 0x13e415
jmp 0x13df29
cmpq $0x0, -0x10(%rbp)
je 0x13e15e
movq -0x10(%rbp), %rdi
movq -0x30(%rbp), %rdx
movq 0x10(%rbp), %rcx
leaq 0xa7c41(%rip), %rsi     # 0x1e5b88
callq 0x7ddd0
movq %rax, -0x270(%rbp)
leaq -0x148(%rbp), %rdi
movq %rdi, -0x150(%rbp)
movq -0x18(%rbp), %rsi
callq 0x86d80
jmp 0x13df6c
leaq -0x138(%rbp), %rdi
movq %rdi, -0x150(%rbp)
movq -0x20(%rbp), %rsi
callq 0x86d80
jmp 0x13df85
leaq -0x128(%rbp), %rdi
movq %rdi, -0x150(%rbp)
movq -0x28(%rbp), %rsi
callq 0x86d80
jmp 0x13df9e
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 0x13dfed
movq -0x270(%rbp), %rsi
movq -0x208(%rbp), %rdi
movq -0x30(%rbp), %rcx
movq 0x10(%rbp), %r8
leaq -0x108(%rbp), %rdx
callq 0x89e20
jmp 0x13e011
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 0x13e042
jmp 0x13e405
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 0x13e0d2
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 0x13e0a1
jmp 0x13e415
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
jmp 0x13e103
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 0x13e128
jmp 0x13e415
jmp 0x13e160
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 0x17172(%rip), %rsi     # 0x15530b
leaq -0x198(%rbp), %rdi
callq 0x24740
jmp 0x13e1a7
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 0x1219c(%rip), %rsi     # 0x150387
callq 0x24740
jmp 0x13e1f2
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 0x13e248
leaq -0x178(%rbp), %rdi
leaq -0x198(%rbp), %rsi
leaq -0x1b8(%rbp), %rdx
callq 0x9e250
jmp 0x13e264
movq -0x2c8(%rbp), %rdi
movq -0x30(%rbp), %rdx
movq 0x10(%rbp), %rcx
leaq -0x178(%rbp), %rsi
callq 0x9c360
jmp 0x13e281
movq -0x2c8(%rbp), %rdi
movb $0x0, -0x1f4(%rbp)
leaq 0xa29ea(%rip), %rsi     # 0x1e0c80
leaq -0xe38fd(%rip), %rdx    # 0x5a9a0
callq 0x11970
jmp 0x13e41e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
jmp 0x13e3e0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
jmp 0x13e370
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
jmp 0x13e318
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
jmp 0x13e30c
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 0x13e33d
jmp 0x13e370
leaq -0x1f1(%rbp), %rdi
callq 0x11600
testb $0x1, -0x1f2(%rbp)
jne 0x13e387
jmp 0x13e3d4
movq -0x1f0(%rbp), %rax
leaq -0x1e8(%rbp), %rcx
cmpq %rax, %rcx
movq %rax, -0x300(%rbp)
je 0x13e3d2
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 0x13e3a1
jmp 0x13e3d4
leaq -0x198(%rbp), %rdi
callq 0x11360
leaq -0x199(%rbp), %rdi
callq 0x11600
testb $0x1, -0x1f4(%rbp)
jne 0x13e3f7
jmp 0x13e403
movq -0x2c8(%rbp), %rdi
callq 0x11420
jmp 0x13e415
movq -0x200(%rbp), %rax
addq $0x310, %rsp            # imm = 0x310
popq %rbp
retq
movq -0x80(%rbp), %rdi
callq 0x119c0
nop