// File: Nallantli[P]Rossa/main/rossa/operation/operation.cpp
// Function: operation::cct(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::cct(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::ARRAY, value_type_enum::ARRAY):
	{
		std::vector<symbol_t> valA = evalA.getVector(token, stack_trace);
		const std::vector<symbol_t> &valB = evalB.getVector(token, stack_trace);
		valA.insert(valA.end(), std::make_move_iterator(valB.begin()), std::make_move_iterator(valB.end()));
		return symbol_t::Array(valA);
	}
	case COMP(value_type_enum::DICTIONARY, value_type_enum::DICTIONARY):
	{
		std::map<const std::string, const symbol_t> valA = evalA.getDictionary(token, stack_trace);
		std::map<const std::string, const symbol_t> valB = evalB.getDictionary(token, stack_trace);
		valA.merge(valB);
		return symbol_t::Dictionary(valA);
	}
	case COMP(value_type_enum::STRING, value_type_enum::STRING):
		return symbol_t::String(evalA.getString(token, stack_trace) + evalB.getString(token, stack_trace));
	case value_type_enum::OBJECT:
	{
		const auto &o = evalA.getObject(token, stack_trace);
		if (o->hasValue(parser_t::HASH_CCT))
			return o->getVariable(parser_t::HASH_CCT, token, stack_trace).call({evalB}, token, stack_trace);
	}
	default:
		if (scope != NULL)
			return scope->getVariable(parser_t::HASH_CCT, 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 $0x3e0, %rsp            # imm = 0x3E0
movq %rdi, -0x2b8(%rbp)
movq %rdi, %rax
movq %rax, -0x2b0(%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 0x14cc2f
movl $0xfffffff8, %eax       # imm = 0xFFFFFFF8
movl %eax, -0x2bc(%rbp)
jmp 0x14cc6a
movq -0x18(%rbp), %rdi
callq 0x883e0
movl %eax, %ecx
xorl %eax, %eax
subl %ecx, %eax
movsbl %al, %eax
shll $0x4, %eax
movl %eax, -0x2c0(%rbp)
movq -0x20(%rbp), %rdi
callq 0x883e0
movl %eax, %edx
movl -0x2c0(%rbp), %eax
xorl %ecx, %ecx
subl %edx, %ecx
movsbl %cl, %ecx
orl %ecx, %eax
movl %eax, -0x2bc(%rbp)
movl -0x2bc(%rbp), %eax
movl %eax, -0x2c4(%rbp)
subl $-0x8, %eax
je 0x14cf7f
jmp 0x14cc81
movl -0x2c4(%rbp), %eax
subl $0x44, %eax
je 0x14cea2
jmp 0x14cc92
movl -0x2c4(%rbp), %eax
subl $0x55, %eax
je 0x14ccb3
jmp 0x14cc9f
movl -0x2c4(%rbp), %eax
subl $0x77, %eax
je 0x14cdd5
jmp 0x14d1bb
movq -0x18(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq -0x30(%rbp), %rdx
callq 0x87fe0
movq %rax, %rsi
leaq -0x48(%rbp), %rdi
callq 0x8c650
movq -0x20(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq -0x30(%rbp), %rdx
callq 0x87fe0
movq %rax, -0x2d0(%rbp)
jmp 0x14ccea
movq -0x2d0(%rbp), %rax
movq %rax, -0x50(%rbp)
leaq -0x48(%rbp), %rdi
callq 0x307d0
movq %rax, -0x70(%rbp)
leaq -0x68(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0x14e300
movq -0x50(%rbp), %rdi
callq 0x24ba0
movq %rax, -0x80(%rbp)
movq -0x80(%rbp), %rdi
callq 0x14e340
movq %rax, -0x2d8(%rbp)
jmp 0x14cd2e
movq -0x2d8(%rbp), %rax
movq %rax, -0x78(%rbp)
movq -0x50(%rbp), %rdi
callq 0x24bd0
movq %rax, -0x90(%rbp)
movq -0x90(%rbp), %rdi
callq 0x14e340
movq %rax, -0x2e0(%rbp)
jmp 0x14cd5e
movq -0x2e0(%rbp), %rax
movq %rax, -0x88(%rbp)
movq -0x68(%rbp), %rsi
movq -0x78(%rbp), %rdx
movq -0x88(%rbp), %rcx
leaq -0x48(%rbp), %rdi
callq 0x14e250
movq %rax, -0x2e8(%rbp)
jmp 0x14cd8d
movq -0x2b8(%rbp), %rdi
movq -0x2e8(%rbp), %rax
movq %rax, -0x98(%rbp)
leaq -0x48(%rbp), %rsi
callq 0x86c50
jmp 0x14cdad
leaq -0x48(%rbp), %rdi
callq 0x2cf10
jmp 0x14d666
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
leaq -0x48(%rbp), %rdi
callq 0x2cf10
jmp 0x14d676
movq -0x18(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq -0x30(%rbp), %rdx
callq 0x87c10
movq %rax, %rsi
leaq -0xc8(%rbp), %rdi
callq 0x954c0
movq -0x20(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq -0x30(%rbp), %rdx
callq 0x87c10
movq %rax, -0x2f0(%rbp)
jmp 0x14ce0f
movq -0x2f0(%rbp), %rsi
leaq -0xf8(%rbp), %rdi
callq 0x954c0
jmp 0x14ce24
leaq -0xc8(%rbp), %rdi
leaq -0xf8(%rbp), %rsi
callq 0x14e3f0
jmp 0x14ce39
movq -0x2b8(%rbp), %rdi
leaq -0xc8(%rbp), %rsi
callq 0x86d50
jmp 0x14ce4e
leaq -0xf8(%rbp), %rdi
callq 0x8c530
leaq -0xc8(%rbp), %rdi
callq 0x8c530
jmp 0x14d666
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
jmp 0x14ce91
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
leaq -0xf8(%rbp), %rdi
callq 0x8c530
leaq -0xc8(%rbp), %rdi
callq 0x8c530
jmp 0x14d676
movq -0x18(%rbp), %rsi
movq -0x28(%rbp), %rdx
movq -0x30(%rbp), %rcx
leaq -0x138(%rbp), %rdi
callq 0x880d0
movq -0x20(%rbp), %rsi
movq -0x28(%rbp), %rdx
movq -0x30(%rbp), %rcx
leaq -0x158(%rbp), %rdi
callq 0x880d0
jmp 0x14ced4
leaq -0x118(%rbp), %rdi
leaq -0x138(%rbp), %rsi
leaq -0x158(%rbp), %rdx
callq 0x14e430
jmp 0x14cef0
movq -0x2b8(%rbp), %rdi
leaq -0x118(%rbp), %rsi
callq 0x86d20
jmp 0x14cf05
leaq -0x118(%rbp), %rdi
callq 0x11360
leaq -0x158(%rbp), %rdi
callq 0x11360
leaq -0x138(%rbp), %rdi
callq 0x11360
jmp 0x14d666
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
jmp 0x14cf6e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
jmp 0x14cf62
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
leaq -0x118(%rbp), %rdi
callq 0x11360
leaq -0x158(%rbp), %rdi
callq 0x11360
leaq -0x138(%rbp), %rdi
callq 0x11360
jmp 0x14d676
movq -0x18(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq -0x30(%rbp), %rdx
callq 0x882f0
movq %rax, -0x168(%rbp)
leaq -0x168(%rbp), %rax
movq %rax, -0x160(%rbp)
movq -0x160(%rbp), %rax
movq (%rax), %rdi
leaq 0x98bf2(%rip), %rsi     # 0x1e5ba8
callq 0x7dd00
testb $0x1, %al
jne 0x14cfc4
jmp 0x14d1b9
movq -0x160(%rbp), %rax
movq (%rax), %rdi
movq -0x28(%rbp), %rdx
movq -0x30(%rbp), %rcx
leaq 0x98bcb(%rip), %rsi     # 0x1e5ba8
callq 0x7ddd0
movq %rax, -0x2f8(%rbp)
leaq -0x1a0(%rbp), %rdi
movq %rdi, -0x1a8(%rbp)
movq -0x20(%rbp), %rsi
callq 0x86d80
jmp 0x14d002
leaq -0x1a0(%rbp), %rax
movq %rax, -0x190(%rbp)
movq $0x1, -0x188(%rbp)
leaq -0x1a9(%rbp), %rdi
movq %rdi, -0x300(%rbp)
callq 0x2e2f0
movq -0x300(%rbp), %rcx
movq -0x190(%rbp), %rsi
movq -0x188(%rbp), %rdx
leaq -0x180(%rbp), %rdi
callq 0x8c330
jmp 0x14d051
movq -0x2f8(%rbp), %rsi
movq -0x2b8(%rbp), %rdi
movq -0x28(%rbp), %rcx
movq -0x30(%rbp), %r8
leaq -0x180(%rbp), %rdx
callq 0x89e20
jmp 0x14d075
leaq -0x180(%rbp), %rdi
callq 0x2cf10
leaq -0x1a9(%rbp), %rdi
callq 0x304d0
leaq -0x1a0(%rbp), %rax
movq %rax, -0x310(%rbp)
addq $0x10, %rax
movq %rax, -0x308(%rbp)
movq -0x308(%rbp), %rdi
addq $-0x10, %rdi
movq %rdi, -0x318(%rbp)
callq 0x86dc0
movq -0x310(%rbp), %rcx
movq -0x318(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x308(%rbp)
jne 0x14d0a6
jmp 0x14d666
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
movq -0x1a8(%rbp), %rax
leaq -0x1a0(%rbp), %rcx
cmpq %rax, %rcx
movq %rax, -0x320(%rbp)
je 0x14d133
movq -0x320(%rbp), %rdi
addq $-0x10, %rdi
movq %rdi, -0x328(%rbp)
callq 0x86dc0
movq -0x328(%rbp), %rax
leaq -0x1a0(%rbp), %rcx
cmpq %rcx, %rax
movq %rax, -0x320(%rbp)
jne 0x14d102
jmp 0x14d676
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
jmp 0x14d15e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
leaq -0x180(%rbp), %rdi
callq 0x2cf10
leaq -0x1a9(%rbp), %rdi
callq 0x304d0
leaq -0x1a0(%rbp), %rax
movq %rax, -0x338(%rbp)
addq $0x10, %rax
movq %rax, -0x330(%rbp)
movq -0x330(%rbp), %rdi
addq $-0x10, %rdi
movq %rdi, -0x340(%rbp)
callq 0x86dc0
movq -0x338(%rbp), %rcx
movq -0x340(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x330(%rbp)
jne 0x14d183
jmp 0x14d676
jmp 0x14d1bb
cmpq $0x0, -0x10(%rbp)
je 0x14d3ce
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rdx
movq -0x30(%rbp), %rcx
leaq 0x989cf(%rip), %rsi     # 0x1e5ba8
callq 0x7ddd0
movq %rax, -0x348(%rbp)
leaq -0x1f8(%rbp), %rdi
movq %rdi, -0x200(%rbp)
movq -0x18(%rbp), %rsi
callq 0x86d80
jmp 0x14d1fe
leaq -0x1e8(%rbp), %rdi
movq %rdi, -0x200(%rbp)
movq -0x20(%rbp), %rsi
callq 0x86d80
jmp 0x14d217
leaq -0x1f8(%rbp), %rax
movq %rax, -0x1d8(%rbp)
movq $0x2, -0x1d0(%rbp)
leaq -0x201(%rbp), %rdi
movq %rdi, -0x350(%rbp)
callq 0x2e2f0
movq -0x350(%rbp), %rcx
movq -0x1d8(%rbp), %rsi
movq -0x1d0(%rbp), %rdx
leaq -0x1c8(%rbp), %rdi
callq 0x8c330
jmp 0x14d266
movq -0x348(%rbp), %rsi
movq -0x2b8(%rbp), %rdi
movq -0x28(%rbp), %rcx
movq -0x30(%rbp), %r8
leaq -0x1c8(%rbp), %rdx
callq 0x89e20
jmp 0x14d28a
leaq -0x1c8(%rbp), %rdi
callq 0x2cf10
leaq -0x201(%rbp), %rdi
callq 0x304d0
leaq -0x1f8(%rbp), %rax
movq %rax, -0x360(%rbp)
addq $0x20, %rax
movq %rax, -0x358(%rbp)
movq -0x358(%rbp), %rdi
addq $-0x10, %rdi
movq %rdi, -0x368(%rbp)
callq 0x86dc0
movq -0x360(%rbp), %rcx
movq -0x368(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x358(%rbp)
jne 0x14d2bb
jmp 0x14d666
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
movq -0x200(%rbp), %rax
leaq -0x1f8(%rbp), %rcx
cmpq %rax, %rcx
movq %rax, -0x370(%rbp)
je 0x14d348
movq -0x370(%rbp), %rdi
addq $-0x10, %rdi
movq %rdi, -0x378(%rbp)
callq 0x86dc0
movq -0x378(%rbp), %rax
leaq -0x1f8(%rbp), %rcx
cmpq %rcx, %rax
movq %rax, -0x370(%rbp)
jne 0x14d317
jmp 0x14d676
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
jmp 0x14d373
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
leaq -0x1c8(%rbp), %rdi
callq 0x2cf10
leaq -0x201(%rbp), %rdi
callq 0x304d0
leaq -0x1f8(%rbp), %rax
movq %rax, -0x388(%rbp)
addq $0x20, %rax
movq %rax, -0x380(%rbp)
movq -0x380(%rbp), %rdi
addq $-0x10, %rdi
movq %rdi, -0x390(%rbp)
callq 0x86dc0
movq -0x388(%rbp), %rcx
movq -0x390(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x380(%rbp)
jne 0x14d398
jmp 0x14d676
jmp 0x14d3d0
movb $0x1, -0x2a4(%rbp)
movl $0xa8, %edi
callq 0x112b0
movq %rax, -0x3a0(%rbp)
leaq -0x249(%rbp), %rdi
movq %rdi, -0x398(%rbp)
callq 0x119d0
movq -0x398(%rbp), %rdx
leaq 0x7f02(%rip), %rsi      # 0x15530b
leaq -0x248(%rbp), %rdi
callq 0x24740
jmp 0x14d417
movb $0x1, -0x2a2(%rbp)
leaq -0x298(%rbp), %rax
movq %rax, -0x3b0(%rbp)
movq %rax, -0x2a0(%rbp)
leaq -0x2a1(%rbp), %rdi
movq %rdi, -0x3a8(%rbp)
callq 0x119d0
movq -0x3b0(%rbp), %rdi
movq -0x3a8(%rbp), %rdx
leaq 0x2bb7(%rip), %rsi      # 0x150012
callq 0x24740
jmp 0x14d462
movb $0x0, -0x2a2(%rbp)
leaq -0x298(%rbp), %rax
movq %rax, -0x278(%rbp)
movq $0x1, -0x270(%rbp)
leaq -0x2a3(%rbp), %rdi
movq %rdi, -0x3b8(%rbp)
callq 0x26e30
movq -0x3b8(%rbp), %rcx
movq -0x278(%rbp), %rsi
movq -0x270(%rbp), %rdx
leaq -0x268(%rbp), %rdi
callq 0x2d6a0
jmp 0x14d4b8
leaq -0x228(%rbp), %rdi
leaq -0x248(%rbp), %rsi
leaq -0x268(%rbp), %rdx
callq 0x9e250
jmp 0x14d4d4
movq -0x3a0(%rbp), %rdi
movq -0x28(%rbp), %rdx
movq -0x30(%rbp), %rcx
leaq -0x228(%rbp), %rsi
callq 0x9c360
jmp 0x14d4f1
movq -0x3a0(%rbp), %rdi
movb $0x0, -0x2a4(%rbp)
leaq 0x9377a(%rip), %rsi     # 0x1e0c80
leaq -0xf2b6d(%rip), %rdx    # 0x5a9a0
callq 0x11970
jmp 0x14d67f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
jmp 0x14d641
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
jmp 0x14d5d1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
jmp 0x14d579
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
jmp 0x14d56d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
leaq -0x228(%rbp), %rdi
callq 0x11360
leaq -0x268(%rbp), %rdi
callq 0x25b00
leaq -0x2a3(%rbp), %rdi
callq 0x279c0
leaq -0x298(%rbp), %rax
movq %rax, -0x3c8(%rbp)
addq $0x20, %rax
movq %rax, -0x3c0(%rbp)
movq -0x3c0(%rbp), %rdi
addq $-0x20, %rdi
movq %rdi, -0x3d0(%rbp)
callq 0x11360
movq -0x3c8(%rbp), %rcx
movq -0x3d0(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x3c0(%rbp)
jne 0x14d59e
jmp 0x14d5d1
leaq -0x2a1(%rbp), %rdi
callq 0x11600
testb $0x1, -0x2a2(%rbp)
jne 0x14d5e8
jmp 0x14d635
movq -0x2a0(%rbp), %rax
leaq -0x298(%rbp), %rcx
cmpq %rax, %rcx
movq %rax, -0x3d8(%rbp)
je 0x14d633
movq -0x3d8(%rbp), %rdi
addq $-0x20, %rdi
movq %rdi, -0x3e0(%rbp)
callq 0x11360
movq -0x3e0(%rbp), %rax
leaq -0x298(%rbp), %rcx
cmpq %rcx, %rax
movq %rax, -0x3d8(%rbp)
jne 0x14d602
jmp 0x14d635
leaq -0x248(%rbp), %rdi
callq 0x11360
leaq -0x249(%rbp), %rdi
callq 0x11600
testb $0x1, -0x2a4(%rbp)
jne 0x14d658
jmp 0x14d664
movq -0x3a0(%rbp), %rdi
callq 0x11420
jmp 0x14d676
movq -0x2b0(%rbp), %rax
addq $0x3e0, %rsp            # imm = 0x3E0
popq %rbp
retq
movq -0x58(%rbp), %rdi
callq 0x119c0
nop