// File: Nallantli[P]Rossa/main/rossa/operation/operation.cpp
// Function: operation::less(object_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::less(const object_t *scope, const symbol_t &evalA, const symbol_t &evalB, const token_t *token, trace_t &stack_trace)
{
	switch (COMP(evalA.getValueType(), evalB.getValueType()))
	{
	case COMP(value_type_enum::NUMBER, value_type_enum::NUMBER):
		return symbol_t::Boolean(evalA.getNumber(token, stack_trace) < evalB.getNumber(token, stack_trace));
	case COMP(value_type_enum::STRING, value_type_enum::STRING):
		return symbol_t::Boolean(evalA.getString(token, stack_trace) < evalB.getString(token, stack_trace));
	case COMP(value_type_enum::ARRAY, value_type_enum::ARRAY):
	{
		auto av = evalA.getVector(token, stack_trace);
		auto bv = evalB.getVector(token, stack_trace);
		if (av.size() != bv.size())
			throw rossa_error_t(_INCOMPATIBLE_VECTOR_SIZES_, *token, stack_trace);
		std::vector<symbol_t> v(av.size());
		for (size_t i = 0; i < v.size(); i++)
			v[i] = less(scope, av[i], bv[i], token, stack_trace);
		return symbol_t::Array(v);
	}
	case value_type_enum::OBJECT:
	{
		const auto &o = evalA.getObject(token, stack_trace);
		if (o->hasValue(parser_t::HASH_LESS))
			return o->getVariable(parser_t::HASH_LESS, token, stack_trace).call({evalB}, token, stack_trace);
	}
	default:
		if (scope != NULL)
			return scope->getVariable(parser_t::HASH_LESS, token, stack_trace).call({evalA, evalB}, token, stack_trace);
	}

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

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x3d0, %rsp            # imm = 0x3D0
movq %rdi, -0x278(%rbp)
movq %rdi, %rax
movq %rax, -0x270(%rbp)
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 0x143faf
movl $0xfffffff8, %eax       # imm = 0xFFFFFFF8
movl %eax, -0x27c(%rbp)
jmp 0x143fea
movq -0x18(%rbp), %rdi
callq 0x883e0
movl %eax, %ecx
xorl %eax, %eax
subl %ecx, %eax
movsbl %al, %eax
shll $0x4, %eax
movl %eax, -0x280(%rbp)
movq -0x20(%rbp), %rdi
callq 0x883e0
movl %eax, %edx
movl -0x280(%rbp), %eax
xorl %ecx, %ecx
subl %edx, %ecx
movsbl %cl, %ecx
orl %ecx, %eax
movl %eax, -0x27c(%rbp)
movl -0x27c(%rbp), %eax
movl %eax, -0x284(%rbp)
subl $-0x8, %eax
je 0x14446e
jmp 0x144001
movl -0x284(%rbp), %eax
subl $0x22, %eax
je 0x14402f
jmp 0x14400e
movl -0x284(%rbp), %eax
subl $0x44, %eax
je 0x144081
jmp 0x14401b
movl -0x284(%rbp), %eax
subl $0x55, %eax
je 0x14411d
jmp 0x1446b3
movq -0x18(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq -0x30(%rbp), %rdx
callq 0x87a00
movq %rax, -0x290(%rbp)
movq -0x20(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq -0x30(%rbp), %rdx
callq 0x87a00
movq -0x290(%rbp), %rdi
movq %rax, %rsi
callq 0x9d470
movq -0x278(%rbp), %rdi
andb $0x1, %al
movb %al, -0x31(%rbp)
leaq -0x31(%rbp), %rsi
callq 0x86c20
jmp 0x144b76
movq -0x18(%rbp), %rsi
movq -0x28(%rbp), %rdx
movq -0x30(%rbp), %rcx
leaq -0x58(%rbp), %rdi
callq 0x880d0
movq -0x20(%rbp), %rsi
movq -0x28(%rbp), %rdx
movq -0x30(%rbp), %rcx
leaq -0x78(%rbp), %rdi
callq 0x880d0
jmp 0x1440ad
leaq -0x58(%rbp), %rdi
leaq -0x78(%rbp), %rsi
callq 0x26700
movq -0x278(%rbp), %rdi
movb %al, -0x32(%rbp)
leaq -0x32(%rbp), %rsi
callq 0x86c20
jmp 0x1440cf
leaq -0x78(%rbp), %rdi
callq 0x11360
leaq -0x58(%rbp), %rdi
callq 0x11360
jmp 0x144b76
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
jmp 0x14410f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
leaq -0x78(%rbp), %rdi
callq 0x11360
leaq -0x58(%rbp), %rdi
callq 0x11360
jmp 0x144b86
movq -0x18(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq -0x30(%rbp), %rdx
callq 0x87fe0
movq %rax, %rsi
leaq -0xa0(%rbp), %rdi
callq 0x8c650
movq -0x20(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq -0x30(%rbp), %rdx
callq 0x87fe0
movq %rax, -0x298(%rbp)
jmp 0x144157
movq -0x298(%rbp), %rsi
leaq -0xb8(%rbp), %rdi
callq 0x8c650
jmp 0x14416c
leaq -0xa0(%rbp), %rdi
callq 0x30a90
movq %rax, -0x2a0(%rbp)
leaq -0xb8(%rbp), %rdi
callq 0x30a90
movq %rax, %rcx
movq -0x2a0(%rbp), %rax
cmpq %rcx, %rax
je 0x144290
movb $0x1, -0xda(%rbp)
movl $0xa8, %edi
callq 0x112b0
movq %rax, -0x2b0(%rbp)
leaq -0xd9(%rbp), %rdi
movq %rdi, -0x2a8(%rbp)
callq 0x119d0
movq -0x2a8(%rbp), %rdx
leaq 0x11073(%rip), %rsi     # 0x15524a
leaq -0xd8(%rbp), %rdi
callq 0x24740
jmp 0x1441e5
movq -0x2b0(%rbp), %rdi
movq -0x28(%rbp), %rdx
movq -0x30(%rbp), %rcx
leaq -0xd8(%rbp), %rsi
callq 0x9c360
jmp 0x144202
movq -0x2b0(%rbp), %rdi
movb $0x0, -0xda(%rbp)
leaq 0x9ca69(%rip), %rsi     # 0x1e0c80
leaq -0xe987e(%rip), %rdx    # 0x5a9a0
callq 0x11970
jmp 0x144b8f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
jmp 0x14445d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
jmp 0x144268
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
leaq -0xd8(%rbp), %rdi
callq 0x11360
leaq -0xd9(%rbp), %rdi
callq 0x11600
testb $0x1, -0xda(%rbp)
jne 0x14427f
jmp 0x14428b
movq -0x2b0(%rbp), %rdi
callq 0x11420
jmp 0x144451
leaq -0xa0(%rbp), %rdi
callq 0x30a90
movq %rax, -0x2c0(%rbp)
leaq -0xf9(%rbp), %rdi
movq %rdi, -0x2b8(%rbp)
callq 0x2e2f0
movq -0x2c0(%rbp), %rsi
movq -0x2b8(%rbp), %rdx
leaq -0xf8(%rbp), %rdi
callq 0x8bb50
jmp 0x1442d2
leaq -0xf9(%rbp), %rdi
callq 0x304d0
movq $0x0, -0x108(%rbp)
movq -0x108(%rbp), %rax
movq %rax, -0x2c8(%rbp)
leaq -0xf8(%rbp), %rdi
callq 0x30a90
movq %rax, %rcx
movq -0x2c8(%rbp), %rax
cmpq %rcx, %rax
jae 0x144407
movq -0x10(%rbp), %rax
movq %rax, -0x2d8(%rbp)
movq -0x108(%rbp), %rsi
leaq -0xa0(%rbp), %rdi
callq 0x8c3d0
movq %rax, -0x2d0(%rbp)
movq -0x108(%rbp), %rsi
leaq -0xb8(%rbp), %rdi
callq 0x8c3d0
movq -0x2d8(%rbp), %rsi
movq -0x2d0(%rbp), %rdx
movq %rax, %rcx
movq -0x28(%rbp), %r8
movq -0x30(%rbp), %r9
leaq -0x118(%rbp), %rdi
callq 0x143f60
jmp 0x144375
movq -0x108(%rbp), %rsi
leaq -0xf8(%rbp), %rdi
callq 0x8c3d0
movq %rax, %rdi
leaq -0x118(%rbp), %rsi
callq 0x86e20
jmp 0x144399
leaq -0x118(%rbp), %rdi
callq 0x86dc0
movq -0x108(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x108(%rbp)
jmp 0x1442e9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
leaq -0xf9(%rbp), %rdi
callq 0x304d0
jmp 0x144451
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
jmp 0x144445
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
leaq -0x118(%rbp), %rdi
callq 0x86dc0
jmp 0x144445
movq -0x278(%rbp), %rdi
leaq -0xf8(%rbp), %rsi
callq 0x86c50
jmp 0x14441c
leaq -0xf8(%rbp), %rdi
callq 0x2cf10
leaq -0xb8(%rbp), %rdi
callq 0x2cf10
leaq -0xa0(%rbp), %rdi
callq 0x2cf10
jmp 0x144b76
leaq -0xf8(%rbp), %rdi
callq 0x2cf10
leaq -0xb8(%rbp), %rdi
callq 0x2cf10
leaq -0xa0(%rbp), %rdi
callq 0x2cf10
jmp 0x144b86
movq -0x18(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq -0x30(%rbp), %rdx
callq 0x882f0
movq %rax, -0x128(%rbp)
leaq -0x128(%rbp), %rax
movq %rax, -0x120(%rbp)
movq -0x120(%rbp), %rax
movq (%rax), %rdi
leaq 0xa1693(%rip), %rsi     # 0x1e5b38
callq 0x7dd00
testb $0x1, %al
jne 0x1444b3
jmp 0x1446b1
movq -0x120(%rbp), %rax
movq (%rax), %rdi
movq -0x28(%rbp), %rdx
movq -0x30(%rbp), %rcx
leaq 0xa166c(%rip), %rsi     # 0x1e5b38
callq 0x7ddd0
movq %rax, -0x2e0(%rbp)
leaq -0x160(%rbp), %rdi
movq %rdi, -0x168(%rbp)
movq -0x20(%rbp), %rsi
callq 0x86d80
jmp 0x1444f1
leaq -0x160(%rbp), %rax
movq %rax, -0x150(%rbp)
movq $0x1, -0x148(%rbp)
leaq -0x169(%rbp), %rdi
movq %rdi, -0x2e8(%rbp)
callq 0x2e2f0
movq -0x2e8(%rbp), %rcx
movq -0x150(%rbp), %rsi
movq -0x148(%rbp), %rdx
leaq -0x140(%rbp), %rdi
callq 0x8c330
jmp 0x144540
movq -0x2e0(%rbp), %rsi
movq -0x278(%rbp), %rdi
movq -0x28(%rbp), %rcx
movq -0x30(%rbp), %r8
leaq -0x140(%rbp), %rdx
callq 0x89e20
jmp 0x144564
leaq -0x140(%rbp), %rdi
callq 0x2cf10
leaq -0x169(%rbp), %rdi
callq 0x304d0
leaq -0x160(%rbp), %rax
movq %rax, -0x2f8(%rbp)
addq $0x10, %rax
movq %rax, -0x2f0(%rbp)
movq -0x2f0(%rbp), %rdi
addq $-0x10, %rdi
movq %rdi, -0x300(%rbp)
callq 0x86dc0
movq -0x2f8(%rbp), %rcx
movq -0x300(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x2f0(%rbp)
jne 0x144595
jmp 0x144b76
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
movq -0x168(%rbp), %rax
leaq -0x160(%rbp), %rcx
cmpq %rax, %rcx
movq %rax, -0x308(%rbp)
je 0x144625
movq -0x308(%rbp), %rdi
addq $-0x10, %rdi
movq %rdi, -0x310(%rbp)
callq 0x86dc0
movq -0x310(%rbp), %rax
leaq -0x160(%rbp), %rcx
cmpq %rcx, %rax
movq %rax, -0x308(%rbp)
jne 0x1445f4
jmp 0x144b86
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
jmp 0x144656
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
leaq -0x140(%rbp), %rdi
callq 0x2cf10
leaq -0x169(%rbp), %rdi
callq 0x304d0
leaq -0x160(%rbp), %rax
movq %rax, -0x320(%rbp)
addq $0x10, %rax
movq %rax, -0x318(%rbp)
movq -0x318(%rbp), %rdi
addq $-0x10, %rdi
movq %rdi, -0x328(%rbp)
callq 0x86dc0
movq -0x320(%rbp), %rcx
movq -0x328(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x318(%rbp)
jne 0x14467b
jmp 0x144b86
jmp 0x1446b3
cmpq $0x0, -0x10(%rbp)
je 0x1448cf
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rdx
movq -0x30(%rbp), %rcx
leaq 0xa1467(%rip), %rsi     # 0x1e5b38
callq 0x7ddd0
movq %rax, -0x330(%rbp)
leaq -0x1b8(%rbp), %rdi
movq %rdi, -0x1c0(%rbp)
movq -0x18(%rbp), %rsi
callq 0x86d80
jmp 0x1446f6
leaq -0x1a8(%rbp), %rdi
movq %rdi, -0x1c0(%rbp)
movq -0x20(%rbp), %rsi
callq 0x86d80
jmp 0x14470f
leaq -0x1b8(%rbp), %rax
movq %rax, -0x198(%rbp)
movq $0x2, -0x190(%rbp)
leaq -0x1c1(%rbp), %rdi
movq %rdi, -0x338(%rbp)
callq 0x2e2f0
movq -0x338(%rbp), %rcx
movq -0x198(%rbp), %rsi
movq -0x190(%rbp), %rdx
leaq -0x188(%rbp), %rdi
callq 0x8c330
jmp 0x14475e
movq -0x330(%rbp), %rsi
movq -0x278(%rbp), %rdi
movq -0x28(%rbp), %rcx
movq -0x30(%rbp), %r8
leaq -0x188(%rbp), %rdx
callq 0x89e20
jmp 0x144782
leaq -0x188(%rbp), %rdi
callq 0x2cf10
leaq -0x1c1(%rbp), %rdi
callq 0x304d0
leaq -0x1b8(%rbp), %rax
movq %rax, -0x348(%rbp)
addq $0x20, %rax
movq %rax, -0x340(%rbp)
movq -0x340(%rbp), %rdi
addq $-0x10, %rdi
movq %rdi, -0x350(%rbp)
callq 0x86dc0
movq -0x348(%rbp), %rcx
movq -0x350(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x340(%rbp)
jne 0x1447b3
jmp 0x144b76
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
movq -0x1c0(%rbp), %rax
leaq -0x1b8(%rbp), %rcx
cmpq %rax, %rcx
movq %rax, -0x358(%rbp)
je 0x144843
movq -0x358(%rbp), %rdi
addq $-0x10, %rdi
movq %rdi, -0x360(%rbp)
callq 0x86dc0
movq -0x360(%rbp), %rax
leaq -0x1b8(%rbp), %rcx
cmpq %rcx, %rax
movq %rax, -0x358(%rbp)
jne 0x144812
jmp 0x144b86
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
jmp 0x144874
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
leaq -0x188(%rbp), %rdi
callq 0x2cf10
leaq -0x1c1(%rbp), %rdi
callq 0x304d0
leaq -0x1b8(%rbp), %rax
movq %rax, -0x370(%rbp)
addq $0x20, %rax
movq %rax, -0x368(%rbp)
movq -0x368(%rbp), %rdi
addq $-0x10, %rdi
movq %rdi, -0x378(%rbp)
callq 0x86dc0
movq -0x370(%rbp), %rcx
movq -0x378(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x368(%rbp)
jne 0x144899
jmp 0x144b86
jmp 0x1448d1
movb $0x1, -0x264(%rbp)
movl $0xa8, %edi
callq 0x112b0
movq %rax, -0x388(%rbp)
leaq -0x209(%rbp), %rdi
movq %rdi, -0x380(%rbp)
callq 0x119d0
movq -0x380(%rbp), %rdx
leaq 0x10a01(%rip), %rsi     # 0x15530b
leaq -0x208(%rbp), %rdi
callq 0x24740
jmp 0x144918
movb $0x1, -0x262(%rbp)
leaq -0x258(%rbp), %rax
movq %rax, -0x398(%rbp)
movq %rax, -0x260(%rbp)
leaq -0x261(%rbp), %rdi
movq %rdi, -0x390(%rbp)
callq 0x119d0
movq -0x398(%rbp), %rdi
movq -0x390(%rbp), %rdx
leaq 0xba3b(%rip), %rsi      # 0x150397
callq 0x24740
jmp 0x144963
movb $0x0, -0x262(%rbp)
leaq -0x258(%rbp), %rax
movq %rax, -0x238(%rbp)
movq $0x1, -0x230(%rbp)
leaq -0x263(%rbp), %rdi
movq %rdi, -0x3a0(%rbp)
callq 0x26e30
movq -0x3a0(%rbp), %rcx
movq -0x238(%rbp), %rsi
movq -0x230(%rbp), %rdx
leaq -0x228(%rbp), %rdi
callq 0x2d6a0
jmp 0x1449b9
leaq -0x1e8(%rbp), %rdi
leaq -0x208(%rbp), %rsi
leaq -0x228(%rbp), %rdx
callq 0x9e250
jmp 0x1449d5
movq -0x388(%rbp), %rdi
movq -0x28(%rbp), %rdx
movq -0x30(%rbp), %rcx
leaq -0x1e8(%rbp), %rsi
callq 0x9c360
jmp 0x1449f2
movq -0x388(%rbp), %rdi
movb $0x0, -0x264(%rbp)
leaq 0x9c279(%rip), %rsi     # 0x1e0c80
leaq -0xea06e(%rip), %rdx    # 0x5a9a0
callq 0x11970
jmp 0x144b8f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
jmp 0x144b51
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
jmp 0x144ae1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
jmp 0x144a89
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
jmp 0x144a7d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
leaq -0x1e8(%rbp), %rdi
callq 0x11360
leaq -0x228(%rbp), %rdi
callq 0x25b00
leaq -0x263(%rbp), %rdi
callq 0x279c0
leaq -0x258(%rbp), %rax
movq %rax, -0x3b0(%rbp)
addq $0x20, %rax
movq %rax, -0x3a8(%rbp)
movq -0x3a8(%rbp), %rdi
addq $-0x20, %rdi
movq %rdi, -0x3b8(%rbp)
callq 0x11360
movq -0x3b0(%rbp), %rcx
movq -0x3b8(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x3a8(%rbp)
jne 0x144aae
jmp 0x144ae1
leaq -0x261(%rbp), %rdi
callq 0x11600
testb $0x1, -0x262(%rbp)
jne 0x144af8
jmp 0x144b45
movq -0x260(%rbp), %rax
leaq -0x258(%rbp), %rcx
cmpq %rax, %rcx
movq %rax, -0x3c0(%rbp)
je 0x144b43
movq -0x3c0(%rbp), %rdi
addq $-0x20, %rdi
movq %rdi, -0x3c8(%rbp)
callq 0x11360
movq -0x3c8(%rbp), %rax
leaq -0x258(%rbp), %rcx
cmpq %rcx, %rax
movq %rax, -0x3c0(%rbp)
jne 0x144b12
jmp 0x144b45
leaq -0x208(%rbp), %rdi
callq 0x11360
leaq -0x209(%rbp), %rdi
callq 0x11600
testb $0x1, -0x264(%rbp)
jne 0x144b68
jmp 0x144b74
movq -0x388(%rbp), %rdi
callq 0x11420
jmp 0x144b86
movq -0x270(%rbp), %rax
addq $0x3d0, %rsp            # imm = 0x3D0
popq %rbp
retq
movq -0x80(%rbp), %rdi
callq 0x119c0
nop