// File: 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
movq %rsp, %rbp
subq $0x2f0, %rsp            # imm = 0x2F0
movq %rdi, -0x1d8(%rbp)
movq %rdi, %rax
movq %rax, -0x1d0(%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 0x14d6cf
movl $0xfffffff8, %eax       # imm = 0xFFFFFFF8
movl %eax, -0x1dc(%rbp)
jmp 0x14d70a
movq -0x18(%rbp), %rdi
callq 0x883e0
movl %eax, %ecx
xorl %eax, %eax
subl %ecx, %eax
movsbl %al, %eax
shll $0x4, %eax
movl %eax, -0x1e0(%rbp)
movq -0x20(%rbp), %rdi
callq 0x883e0
movl %eax, %edx
movl -0x1e0(%rbp), %eax
xorl %ecx, %ecx
subl %edx, %ecx
movsbl %cl, %ecx
orl %ecx, %eax
movl %eax, -0x1dc(%rbp)
movl -0x1dc(%rbp), %eax
movl %eax, -0x1e4(%rbp)
subl $-0x8, %eax
je 0x14d7ee
jmp 0x14d721
movl -0x1e4(%rbp), %eax
subl $0x74, %eax
jne 0x14da21
jmp 0x14d732
movq -0x18(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq -0x30(%rbp), %rdx
callq 0x87c10
movq %rax, -0x200(%rbp)
movq -0x20(%rbp), %rsi
movq -0x28(%rbp), %rdx
movq -0x30(%rbp), %rcx
leaq -0x58(%rbp), %rdi
movq %rdi, -0x1f8(%rbp)
callq 0x880d0
movq -0x200(%rbp), %rdi
movq -0x1f8(%rbp), %rsi
callq 0x8bfc0
movq %rax, -0x1f0(%rbp)
jmp 0x14d782
movq -0x1f0(%rbp), %rax
movq %rax, -0x38(%rbp)
leaq -0x58(%rbp), %rdi
callq 0x11360
movq -0x18(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq -0x30(%rbp), %rdx
callq 0x87c10
movq %rax, %rdi
movq -0x38(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x70(%rbp), %rsi
callq 0x14e4b0
movq -0x1d8(%rbp), %rdi
movq %rax, -0x78(%rbp)
movq -0x18(%rbp), %rsi
callq 0x86d80
jmp 0x14decc
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
leaq -0x58(%rbp), %rdi
callq 0x11360
jmp 0x14dedc
movq -0x18(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq -0x30(%rbp), %rdx
callq 0x882f0
movq %rax, -0x88(%rbp)
leaq -0x88(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0x80(%rbp), %rax
movq (%rax), %rdi
leaq 0x98391(%rip), %rsi     # 0x1e5bb0
callq 0x7dd00
testb $0x1, %al
jne 0x14d82d
jmp 0x14da1f
movq -0x80(%rbp), %rax
movq (%rax), %rdi
movq -0x28(%rbp), %rdx
movq -0x30(%rbp), %rcx
leaq 0x9836d(%rip), %rsi     # 0x1e5bb0
callq 0x7ddd0
movq %rax, -0x208(%rbp)
leaq -0xc0(%rbp), %rdi
movq %rdi, -0xc8(%rbp)
movq -0x20(%rbp), %rsi
callq 0x86d80
jmp 0x14d868
leaq -0xc0(%rbp), %rax
movq %rax, -0xb0(%rbp)
movq $0x1, -0xa8(%rbp)
leaq -0xc9(%rbp), %rdi
movq %rdi, -0x210(%rbp)
callq 0x2e2f0
movq -0x210(%rbp), %rcx
movq -0xb0(%rbp), %rsi
movq -0xa8(%rbp), %rdx
leaq -0xa0(%rbp), %rdi
callq 0x8c330
jmp 0x14d8b7
movq -0x208(%rbp), %rsi
movq -0x1d8(%rbp), %rdi
movq -0x28(%rbp), %rcx
movq -0x30(%rbp), %r8
leaq -0xa0(%rbp), %rdx
callq 0x89e20
jmp 0x14d8db
leaq -0xa0(%rbp), %rdi
callq 0x2cf10
leaq -0xc9(%rbp), %rdi
callq 0x304d0
leaq -0xc0(%rbp), %rax
movq %rax, -0x220(%rbp)
addq $0x10, %rax
movq %rax, -0x218(%rbp)
movq -0x218(%rbp), %rdi
addq $-0x10, %rdi
movq %rdi, -0x228(%rbp)
callq 0x86dc0
movq -0x220(%rbp), %rcx
movq -0x228(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x218(%rbp)
jne 0x14d90c
jmp 0x14decc
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
movq -0xc8(%rbp), %rax
leaq -0xc0(%rbp), %rcx
cmpq %rax, %rcx
movq %rax, -0x230(%rbp)
je 0x14d999
movq -0x230(%rbp), %rdi
addq $-0x10, %rdi
movq %rdi, -0x238(%rbp)
callq 0x86dc0
movq -0x238(%rbp), %rax
leaq -0xc0(%rbp), %rcx
cmpq %rcx, %rax
movq %rax, -0x230(%rbp)
jne 0x14d968
jmp 0x14dedc
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
jmp 0x14d9c4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
leaq -0xa0(%rbp), %rdi
callq 0x2cf10
leaq -0xc9(%rbp), %rdi
callq 0x304d0
leaq -0xc0(%rbp), %rax
movq %rax, -0x248(%rbp)
addq $0x10, %rax
movq %rax, -0x240(%rbp)
movq -0x240(%rbp), %rdi
addq $-0x10, %rdi
movq %rdi, -0x250(%rbp)
callq 0x86dc0
movq -0x248(%rbp), %rcx
movq -0x250(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x240(%rbp)
jne 0x14d9e9
jmp 0x14dedc
jmp 0x14da21
cmpq $0x0, -0x10(%rbp)
je 0x14dc34
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rdx
movq -0x30(%rbp), %rcx
leaq 0x98171(%rip), %rsi     # 0x1e5bb0
callq 0x7ddd0
movq %rax, -0x258(%rbp)
leaq -0x118(%rbp), %rdi
movq %rdi, -0x120(%rbp)
movq -0x18(%rbp), %rsi
callq 0x86d80
jmp 0x14da64
leaq -0x108(%rbp), %rdi
movq %rdi, -0x120(%rbp)
movq -0x20(%rbp), %rsi
callq 0x86d80
jmp 0x14da7d
leaq -0x118(%rbp), %rax
movq %rax, -0xf8(%rbp)
movq $0x2, -0xf0(%rbp)
leaq -0x121(%rbp), %rdi
movq %rdi, -0x260(%rbp)
callq 0x2e2f0
movq -0x260(%rbp), %rcx
movq -0xf8(%rbp), %rsi
movq -0xf0(%rbp), %rdx
leaq -0xe8(%rbp), %rdi
callq 0x8c330
jmp 0x14dacc
movq -0x258(%rbp), %rsi
movq -0x1d8(%rbp), %rdi
movq -0x28(%rbp), %rcx
movq -0x30(%rbp), %r8
leaq -0xe8(%rbp), %rdx
callq 0x89e20
jmp 0x14daf0
leaq -0xe8(%rbp), %rdi
callq 0x2cf10
leaq -0x121(%rbp), %rdi
callq 0x304d0
leaq -0x118(%rbp), %rax
movq %rax, -0x270(%rbp)
addq $0x20, %rax
movq %rax, -0x268(%rbp)
movq -0x268(%rbp), %rdi
addq $-0x10, %rdi
movq %rdi, -0x278(%rbp)
callq 0x86dc0
movq -0x270(%rbp), %rcx
movq -0x278(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x268(%rbp)
jne 0x14db21
jmp 0x14decc
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
movq -0x120(%rbp), %rax
leaq -0x118(%rbp), %rcx
cmpq %rax, %rcx
movq %rax, -0x280(%rbp)
je 0x14dbae
movq -0x280(%rbp), %rdi
addq $-0x10, %rdi
movq %rdi, -0x288(%rbp)
callq 0x86dc0
movq -0x288(%rbp), %rax
leaq -0x118(%rbp), %rcx
cmpq %rcx, %rax
movq %rax, -0x280(%rbp)
jne 0x14db7d
jmp 0x14dedc
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
jmp 0x14dbd9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
leaq -0xe8(%rbp), %rdi
callq 0x2cf10
leaq -0x121(%rbp), %rdi
callq 0x304d0
leaq -0x118(%rbp), %rax
movq %rax, -0x298(%rbp)
addq $0x20, %rax
movq %rax, -0x290(%rbp)
movq -0x290(%rbp), %rdi
addq $-0x10, %rdi
movq %rdi, -0x2a0(%rbp)
callq 0x86dc0
movq -0x298(%rbp), %rcx
movq -0x2a0(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x290(%rbp)
jne 0x14dbfe
jmp 0x14dedc
jmp 0x14dc36
movb $0x1, -0x1c4(%rbp)
movl $0xa8, %edi
callq 0x112b0
movq %rax, -0x2b0(%rbp)
leaq -0x169(%rbp), %rdi
movq %rdi, -0x2a8(%rbp)
callq 0x119d0
movq -0x2a8(%rbp), %rdx
leaq 0x769c(%rip), %rsi      # 0x15530b
leaq -0x168(%rbp), %rdi
callq 0x24740
jmp 0x14dc7d
movb $0x1, -0x1c2(%rbp)
leaq -0x1b8(%rbp), %rax
movq %rax, -0x2c0(%rbp)
movq %rax, -0x1c0(%rbp)
leaq -0x1c1(%rbp), %rdi
movq %rdi, -0x2b8(%rbp)
callq 0x119d0
movq -0x2c0(%rbp), %rdi
movq -0x2b8(%rbp), %rdx
leaq 0x2374(%rip), %rsi      # 0x150035
callq 0x24740
jmp 0x14dcc8
movb $0x0, -0x1c2(%rbp)
leaq -0x1b8(%rbp), %rax
movq %rax, -0x198(%rbp)
movq $0x1, -0x190(%rbp)
leaq -0x1c3(%rbp), %rdi
movq %rdi, -0x2c8(%rbp)
callq 0x26e30
movq -0x2c8(%rbp), %rcx
movq -0x198(%rbp), %rsi
movq -0x190(%rbp), %rdx
leaq -0x188(%rbp), %rdi
callq 0x2d6a0
jmp 0x14dd1e
leaq -0x148(%rbp), %rdi
leaq -0x168(%rbp), %rsi
leaq -0x188(%rbp), %rdx
callq 0x9e250
jmp 0x14dd3a
movq -0x2b0(%rbp), %rdi
movq -0x28(%rbp), %rdx
movq -0x30(%rbp), %rcx
leaq -0x148(%rbp), %rsi
callq 0x9c360
jmp 0x14dd57
movq -0x2b0(%rbp), %rdi
movb $0x0, -0x1c4(%rbp)
leaq 0x92f14(%rip), %rsi     # 0x1e0c80
leaq -0xf33d3(%rip), %rdx    # 0x5a9a0
callq 0x11970
jmp 0x14dee5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
jmp 0x14dea7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
jmp 0x14de37
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
jmp 0x14dddf
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
jmp 0x14ddd3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
leaq -0x148(%rbp), %rdi
callq 0x11360
leaq -0x188(%rbp), %rdi
callq 0x25b00
leaq -0x1c3(%rbp), %rdi
callq 0x279c0
leaq -0x1b8(%rbp), %rax
movq %rax, -0x2d8(%rbp)
addq $0x20, %rax
movq %rax, -0x2d0(%rbp)
movq -0x2d0(%rbp), %rdi
addq $-0x20, %rdi
movq %rdi, -0x2e0(%rbp)
callq 0x11360
movq -0x2d8(%rbp), %rcx
movq -0x2e0(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x2d0(%rbp)
jne 0x14de04
jmp 0x14de37
leaq -0x1c1(%rbp), %rdi
callq 0x11600
testb $0x1, -0x1c2(%rbp)
jne 0x14de4e
jmp 0x14de9b
movq -0x1c0(%rbp), %rax
leaq -0x1b8(%rbp), %rcx
cmpq %rax, %rcx
movq %rax, -0x2e8(%rbp)
je 0x14de99
movq -0x2e8(%rbp), %rdi
addq $-0x20, %rdi
movq %rdi, -0x2f0(%rbp)
callq 0x11360
movq -0x2f0(%rbp), %rax
leaq -0x1b8(%rbp), %rcx
cmpq %rcx, %rax
movq %rax, -0x2e8(%rbp)
jne 0x14de68
jmp 0x14de9b
leaq -0x168(%rbp), %rdi
callq 0x11360
leaq -0x169(%rbp), %rdi
callq 0x11600
testb $0x1, -0x1c4(%rbp)
jne 0x14debe
jmp 0x14deca
movq -0x2b0(%rbp), %rdi
callq 0x11420
jmp 0x14dedc
movq -0x1d0(%rbp), %rax
addq $0x2f0, %rsp            # imm = 0x2F0
popq %rbp
retq
movq -0x60(%rbp), %rdi
callq 0x119c0
nopw %cs:(%rax,%rax)