// File: /workspace/github_cpp_makefile_star2_O3/Nallantli[P]Rossa/main/rossa/operation/operation.cpp
// Function: operation::del(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::del(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::DICTIONARY, value_type_enum::STRING):
	{
		auto it = evalA.getDictionary(token, stack_trace).find(evalB.getString(token, stack_trace));
		evalA.getDictionary(token, stack_trace).erase(it);
		return evalA;
	}
	case value_type_enum::OBJECT:
	{
		const auto &o = evalA.getObject(token, stack_trace);
		if (o->hasValue(parser_t::HASH_DEL))
			return o->getVariable(parser_t::HASH_DEL, token, stack_trace).call({evalB}, token, stack_trace);
	}
	default:
		if (scope != NULL)
			return scope->getVariable(parser_t::HASH_DEL, token, stack_trace).call({evalA, evalB}, token, stack_trace);
	}

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

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %r9, %rbx
movq %r8, %r14
movq %rcx, %r13
movq %rdx, %r12
movq %rsi, %rbp
movq %rdi, 0x28(%rsp)
movq %rdx, %rdi
callq 0x40b5a
cmpl $-0x8, %eax
je 0x81822
movq %r12, %rdi
callq 0x40b5a
movl %eax, %r15d
shll $0x18, %r15d
negl %r15d
sarl $0x14, %r15d
movq %r13, %rdi
callq 0x40b5a
negb %al
movsbl %al, %eax
orl %r15d, %eax
cmpl $-0x8, %eax
je 0x81822
cmpl $0x74, %eax
jne 0x818b8
movq %r12, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x405bc
movq %rax, %r15
leaq 0x8(%rsp), %rbp
movq %rbp, %rdi
movq %r13, %rsi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x40904
movq %r15, %rdi
movq %rbp, %rsi
callq 0x457c0
movq %rax, %r13
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x817f4
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x103d0
movq %r12, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x405bc
movq %rax, %rdi
movq %r13, %rsi
callq 0x82104
movq 0x28(%rsp), %r15
movq %r15, %rdi
movq %r12, %rsi
callq 0x3fdf4
jmp 0x8194d
movq %r12, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x40a9e
movq %rax, %r15
leaq 0x341d6(%rip), %rsi     # 0xb5a10
movq %rax, %rdi
callq 0x3ce6c
testb %al, %al
je 0x818b8
leaq 0x341c3(%rip), %rsi     # 0xb5a10
movq %r15, %rdi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x3ced2
movq %rax, %r12
leaq 0x30(%rsp), %rdi
movq %r13, %rsi
callq 0x3fdf4
leaq 0x8(%rsp), %rdi
leaq 0x30(%rsp), %rsi
leaq 0x50(%rsp), %rcx
movl $0x1, %edx
callq 0x436ac
movq 0x28(%rsp), %r15
leaq 0x8(%rsp), %rdx
movq %r15, %rdi
movq %r12, %rsi
movq %r14, %rcx
movq %rbx, %r8
callq 0x41ffe
leaq 0x8(%rsp), %rdi
callq 0x20952
leaq 0x30(%rsp), %rdi
callq 0x3fe06
jmp 0x8194d
testq %rbp, %rbp
je 0x81962
leaq 0x34148(%rip), %rsi     # 0xb5a10
movq %rbp, %rdi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x3ced2
movq %rax, %rbp
leaq 0x8(%rsp), %rdi
movq %r12, %rsi
callq 0x3fdf4
leaq 0x18(%rsp), %rdi
movq %r13, %rsi
callq 0x3fdf4
leaq 0x30(%rsp), %rdi
leaq 0x8(%rsp), %rsi
leaq 0x50(%rsp), %rcx
movl $0x2, %edx
callq 0x436ac
movq 0x28(%rsp), %r15
leaq 0x30(%rsp), %rdx
movq %r15, %rdi
movq %rbp, %rsi
movq %r14, %rcx
movq %rbx, %r8
callq 0x41ffe
leaq 0x30(%rsp), %rdi
callq 0x20952
movl $0x10, %ebx
leaq (%rsp,%rbx), %rdi
addq $0x8, %rdi
callq 0x3fe06
addq $-0x10, %rbx
cmpq $-0x10, %rbx
jne 0x81936
movq %r15, %rax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0xa8, %edi
callq 0x101e0
movq %rax, %r15
leaq 0x40(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x5f4b(%rip), %rsi      # 0x878cb
leaq 0x5f76(%rip), %rdx      # 0x878fd
leaq 0x30(%rsp), %rdi
callq 0x1e698
leaq 0x60(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x1687(%rip), %rsi      # 0x83028
leaq 0x1686(%rip), %rdx      # 0x8302e
leaq 0x50(%rsp), %rdi
callq 0x1e698
leaq 0x70(%rsp), %rdi
leaq 0x50(%rsp), %rsi
leaq 0x7(%rsp), %rcx
movl $0x1, %edx
callq 0x20b38
leaq 0x8(%rsp), %rdi
leaq 0x30(%rsp), %rsi
leaq 0x70(%rsp), %rdx
callq 0x47db4
movb $0x1, %bpl
leaq 0x8(%rsp), %rsi
movq %r15, %rdi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x46e88
xorl %ebp, %ebp
leaq 0x2f322(%rip), %rsi     # 0xb0d20
leaq -0x4a761(%rip), %rdx    # 0x372a4
movq %r15, %rdi
callq 0x106d0
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x81a33
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x81a33
movq %rax, %rbx
movb $0x1, %bpl
leaq 0x70(%rsp), %rdi
callq 0x1db60
jmp 0x81a45
movq %rax, %rbx
movb $0x1, %bpl
movq 0x50(%rsp), %rdi
cmpq %r13, %rdi
je 0x81a5c
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x103d0
movq 0x30(%rsp), %rdi
cmpq %r12, %rdi
je 0x81a73
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x103d0
testb %bpl, %bpl
jne 0x81abc
jmp 0x81b24
movq %rax, %rbx
movq 0x30(%rsp), %rdi
cmpq %r12, %rdi
je 0x81abc
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x81abc
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x81b24
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x103d0
jmp 0x81b24
movq %rax, %rbx
movq %r15, %rdi
callq 0x102d0
jmp 0x81b24
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x20952
jmp 0x81ad8
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
jmp 0x81b1a
jmp 0x81b21
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x20952
jmp 0x81af3
movq %rax, %rbx
movl $0x10, %r14d
leaq (%rsp,%r14), %rdi
addq $0x8, %rdi
callq 0x3fe06
addq $-0x10, %r14
cmpq $-0x10, %r14
jne 0x81af9
jmp 0x81b24
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x3fe06
jmp 0x81b24
movq %rax, %rbx
movq %rbx, %rdi
callq 0x106f0