// File: /workspace/github_cpp_makefile_star2_O1/pranavmodx[P]modlang/src/evaluator.cpp
// Function: Evaluator::evalHashMapIndexExpression(HashMap*, Object*)
Object *Evaluator::evalHashMapIndexExpression(HashMap *hashMap, Object *index)
{
	HashKey hashKey(index->type(), index->inspect());

	if (hashMap->pairs.find(hashKey) != hashMap->pairs.end())
		return hashMap->pairs[hashKey].value;

	return new Error("error: key not present -> " + index->inspect());
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0xc0, %rsp
movq %rdx, %r14
movq %rsi, %rbx
movq (%rdx), %rax
leaq 0x60(%rsp), %rdi
movq %rdx, %rsi
callq *(%rax)
movq (%r14), %rax
leaq 0x40(%rsp), %rdi
movq %r14, %rsi
callq *0x8(%rax)
leaq 0x80(%rsp), %rdi
leaq 0x60(%rsp), %rsi
leaq 0x40(%rsp), %rdx
callq 0x24630
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2404d
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x51c0
leaq 0x70(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x24068
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x51c0
addq $0x8, %rbx
leaq 0x80(%rsp), %rsi
movq %rbx, %rdi
callq 0x281cc
testq %rax, %rax
je 0x2409a
leaq 0x80(%rsp), %rsi
movq %rbx, %rdi
callq 0x289c8
movq 0x8(%rax), %rbx
jmp 0x24170
movl $0x28, %edi
callq 0x51b0
movq %rax, %rbx
movq (%r14), %rax
leaq 0x20(%rsp), %rdi
movq %r14, %rsi
callq *0x8(%rax)
leaq 0x5b23(%rip), %rcx      # 0x29bdf
leaq 0x20(%rsp), %rdi
movl $0x1a, %r8d
xorl %esi, %esi
xorl %edx, %edx
callq 0x51f0
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x240f6
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x240fd
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
movq %rdx, 0x8(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x1097c(%rip), %rax     # 0x34a98
movq %rax, (%rbx)
leaq 0x8(%rbx), %rdi
movq %rbx, %rax
addq $0x18, %rax
movq %rax, 0x8(%rbx)
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
addq %rsi, %rdx
callq 0xbde8
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x24155
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x51c0
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x24170
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x51c0
leaq 0xb0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x24191
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x51c0
leaq 0x90(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x241b2
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x51c0
movq %rbx, %rax
addq $0xc0, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %r14
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x241e0
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x51c0
jmp 0x241e0
movq %rax, %r14
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x24200
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x51c0
jmp 0x24200
movq %rax, %r14
movl $0x28, %esi
movq %rbx, %rdi
callq 0x51c0
jmp 0x24214
jmp 0x24211
movq %rax, %r14
leaq 0x80(%rsp), %rdi
callq 0x24740
jmp 0x24261
movq %rax, %r14
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x24246
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x51c0
jmp 0x24246
movq %rax, %r14
leaq 0x70(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x24261
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x51c0
movq %r14, %rdi
callq 0x5330