// File: /workspace/github_cpp_makefile_star2_O1/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movq %r9, 0x8(%rsp)
movq %r8, %r15
movq %rcx, %r12
movq %rdx, %r13
movq %rsi, %rbp
movq %rdi, %r14
movq %rdx, %rdi
callq 0x41262
movl $0xfffffff8, %ecx       # imm = 0xFFFFFFF8
cmpl $-0x8, %eax
je 0x8278d
movq %r13, %rdi
callq 0x41262
movl %eax, %ebx
shll $0x18, %ebx
negl %ebx
sarl $0x14, %ebx
movq %r12, %rdi
callq 0x41262
negb %al
movsbl %al, %ecx
orl %ebx, %ecx
cmpl $0x54, %ecx
jg 0x8285a
cmpl $-0x8, %ecx
je 0x828cb
cmpl $0x44, %ecx
jne 0x8296f
leaq 0x50(%rsp), %rdi
movq %r13, %rsi
movq %r15, %rdx
movq 0x8(%rsp), %rbx
movq %rbx, %rcx
callq 0x41004
leaq 0x80(%rsp), %rdi
movq %r12, %rsi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x41004
leaq 0x18(%rsp), %rdi
leaq 0x50(%rsp), %rsi
leaq 0x80(%rsp), %rdx
callq 0x832ab
leaq 0x18(%rsp), %rsi
movq %r14, %rdi
callq 0x404ac
leaq 0x28(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x82815
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x103d0
leaq 0x90(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x82836
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x103d0
leaq 0x60(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x82a87
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x82a87
cmpl $0x77, %ecx
je 0x82a1b
cmpl $0x55, %ecx
jne 0x8296f
movq %r13, %rdi
movq %r15, %rsi
movq 0x8(%rsp), %rbx
movq %rbx, %rdx
callq 0x40f46
leaq 0x18(%rsp), %rdi
movq %rax, %rsi
callq 0x43f8e
movq %r12, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x40f46
leaq 0x18(%rsp), %rdi
movq 0x8(%rdi), %rsi
movq (%rax), %rdx
movq 0x8(%rax), %rcx
callq 0x83306
leaq 0x18(%rsp), %rsi
movq %r14, %rdi
callq 0x40474
leaq 0x18(%rsp), %rdi
callq 0x20a84
jmp 0x82a87
movq %r13, %rdi
movq %r15, %rsi
movq 0x8(%rsp), %rdx
callq 0x411a4
movq %rax, %rbx
leaq 0x35123(%rip), %rsi     # 0xb7a08
movq %rax, %rdi
callq 0x3d498
testb %al, %al
je 0x8296f
movb %al, 0x48(%rsp)
leaq 0x3510c(%rip), %rsi     # 0xb7a08
movq %rbx, %rdi
movq %r15, %rdx
movq 0x8(%rsp), %rcx
callq 0x3d502
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
movq %r12, %rsi
callq 0x404c8
leaq 0x18(%rsp), %rdi
leaq 0x50(%rsp), %rsi
leaq 0x80(%rsp), %rcx
movl $0x1, %edx
callq 0x43e3c
leaq 0x18(%rsp), %rdx
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rcx
movq 0x8(%rsp), %r8
callq 0x42736
leaq 0x18(%rsp), %rdi
callq 0x20a84
leaq 0x50(%rsp), %rdi
callq 0x404da
cmpb $0x0, 0x48(%rsp)
jne 0x82a87
movq %r14, 0x48(%rsp)
testq %rbp, %rbp
je 0x82a9c
leaq 0x35084(%rip), %rsi     # 0xb7a08
movq %rbp, %rdi
movq %r15, %rdx
movq 0x8(%rsp), %rcx
callq 0x3d502
movq %rax, %rbp
leaq 0x18(%rsp), %r14
movq %r14, %rbx
movq %r14, %rdi
movq %r13, %rsi
callq 0x404c8
leaq 0x28(%rsp), %rbx
movq %rbx, %rdi
movq %r12, %rsi
callq 0x404c8
leaq 0x50(%rsp), %rdi
leaq 0x18(%rsp), %rsi
leaq 0x80(%rsp), %rcx
movl $0x2, %edx
callq 0x43e3c
leaq 0x50(%rsp), %rdx
movq 0x48(%rsp), %r14
movq %r14, %rdi
movq %rbp, %rsi
movq %r15, %rcx
movq 0x8(%rsp), %r8
callq 0x42736
leaq 0x50(%rsp), %rdi
callq 0x20a84
movl $0x10, %ebx
leaq (%rsp,%rbx), %rdi
addq $0x18, %rdi
callq 0x404da
addq $-0x10, %rbx
cmpq $-0x10, %rbx
jne 0x82a02
jmp 0x82a87
movq %r13, %rdi
movq %r15, %rsi
movq 0x8(%rsp), %rbx
movq %rbx, %rdx
callq 0x40cb8
leaq 0x18(%rsp), %rdi
movq %rax, %rsi
callq 0x45a18
movq %r12, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x40cb8
leaq 0x50(%rsp), %rdi
movq %rax, %rsi
callq 0x45a18
leaq 0x18(%rsp), %rbx
leaq 0x50(%rsp), %rsi
movq %rbx, %rdi
callq 0x8367c
movq %r14, %rdi
movq %rbx, %rsi
callq 0x404ba
leaq 0x50(%rsp), %rdi
callq 0x443fa
leaq 0x18(%rsp), %rdi
callq 0x443fa
movq %r14, %rax
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0xa8, %edi
callq 0x101e0
movq %rax, %r12
leaq 0x60(%rsp), %rbx
movq %rbx, -0x10(%rbx)
leaq 0x5df2(%rip), %rsi      # 0x888ab
leaq 0x5e1d(%rip), %rdx      # 0x888dd
leaq 0x50(%rsp), %rdi
callq 0x1e7ca
leaq 0x90(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x40a9(%rip), %rsi      # 0x86b86
leaq 0x40a4(%rip), %rdx      # 0x86b88
leaq 0x80(%rsp), %rdi
callq 0x1e7ca
leaq 0xa0(%rsp), %rdi
leaq 0x80(%rsp), %rsi
leaq 0x17(%rsp), %rcx
movl $0x1, %edx
callq 0x20c5e
leaq 0x18(%rsp), %rdi
leaq 0x50(%rsp), %rsi
leaq 0xa0(%rsp), %rdx
callq 0x48694
movb $0x1, %bpl
leaq 0x18(%rsp), %rsi
movq %r12, %rdi
movq %r15, %rdx
movq 0x8(%rsp), %rcx
callq 0x476dc
xorl %ebp, %ebp
leaq 0x30198(%rip), %rsi     # 0xb2ce0
leaq -0x4b39b(%rip), %rdx    # 0x377b4
movq %r12, %rdi
callq 0x106d0
movq %rax, %r15
leaq 0x28(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x82b7d
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x82b7d
movq %rax, %r15
movb $0x1, %bpl
leaq 0xa0(%rsp), %rdi
callq 0x1dca2
jmp 0x82b92
movq %rax, %r15
movb $0x1, %bpl
movq 0x80(%rsp), %rdi
cmpq %r14, %rdi
je 0x82bb7
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x82bb7
movq %rax, %r15
movb $0x1, %bpl
movq 0x50(%rsp), %rdi
cmpq %rbx, %rdi
je 0x82bff
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x82bff
movq %rax, %r15
leaq 0x18(%rsp), %rdi
callq 0x20a84
jmp 0x82be2
movq %rax, %r15
leaq 0x50(%rsp), %rdi
callq 0x404da
jmp 0x82cfb
movq %rax, %r15
jmp 0x82cfb
movq %rax, %r15
movb $0x1, %bpl
testb %bpl, %bpl
je 0x82cfb
movq %r12, %rdi
callq 0x102d0
jmp 0x82cfb
movq %rax, %r15
leaq 0x50(%rsp), %rdi
callq 0x443fa
jmp 0x82cd1
movq %rax, %r15
leaq 0x28(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x82c4c
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x82c4c
jmp 0x82cbf
movq %rax, %r15
leaq 0x90(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x82c72
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x82c72
movq %rax, %r15
leaq 0x60(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x82cfb
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x82cfb
movq %rax, %r15
leaq 0x50(%rsp), %rdi
callq 0x20a84
jmp 0x82ca1
movq %rax, %r15
movl $0x10, %ebx
leaq (%rsp,%rbx), %rdi
addq $0x18, %rdi
callq 0x404da
addq $-0x10, %rbx
cmpq $-0x10, %rbx
jne 0x82ca6
jmp 0x82cfb
movq %rax, %r15
leaq 0x18(%rsp), %rdi
callq 0x20a84
jmp 0x82cfb
movq %rax, %r15
leaq 0x18(%rsp), %rdi
callq 0x443fa
jmp 0x82cfb
movq %rax, %r15
cmpq %rbx, %r14
je 0x82cfb
leaq 0x18(%rsp), %r14
addq $-0x10, %rbx
movq %rbx, %rdi
callq 0x404da
cmpq %r14, %rbx
jne 0x82cea
movq %r15, %rdi
callq 0x106f0