// File: /workspace/github_cpp_makefile_star2_O1/pranavmodx[P]modlang/src/evaluator.cpp
// Function: Evaluator::evalHashMapLiteral(HashMapLiteral*, Environment*)
Object *Evaluator::evalHashMapLiteral(HashMapLiteral *hashMapLiteral, Environment *env)
{
	HashMap *hashMap = new HashMap();

	for (auto pair : hashMapLiteral->pairs)
	{
		Object *key = Eval(pair.key, env);

		if (key->type() == ERROR_OBJ)
			return key;

		Object *value = Eval(pair.value, env);

		if (value->type() == ERROR_OBJ)
		{
			delete hashMap;
			return value;
		}

		HashKey hashKey(key->type(), key->inspect());
		HashMapPairObj hashMapPairObj(key, value);

		hashMap->pairs[hashKey] = hashMapPairObj;
	}

	return hashMap;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movq %rdx, 0x28(%rsp)
movq %rsi, %r12
movq %rdi, 0x20(%rsp)
movl $0x40, %edi
callq 0x51b0
xorps %xmm0, %xmm0
movaps %xmm0, (%rax)
movaps %xmm0, 0x10(%rax)
movaps %xmm0, 0x20(%rax)
movaps %xmm0, 0x30(%rax)
leaq 0x12e39(%rip), %rcx     # 0x34c20
movq %rcx, (%rax)
leaq 0x38(%rax), %rcx
movq %rcx, 0x8(%rax)
movq $0x1, 0x10(%rax)
movups %xmm0, 0x18(%rax)
movl $0x3f800000, 0x28(%rax) # imm = 0x3F800000
movq 0x48(%r12), %r13
movq 0x50(%r12), %rcx
movq %rcx, 0x70(%rsp)
cmpq %rcx, %r13
je 0x2204a
movq %rax, 0x8(%rsp)
addq $0x8, %rax
movq %rax, 0x10(%rsp)
leaq 0x78(%rsp), %rbx
movq (%r13), %rsi
movq 0x8(%r13), %r12
movq 0x20(%rsp), %rdi
movq 0x28(%rsp), %rdx
callq 0x1ef50
movq %rax, %rbp
movq (%rax), %rax
leaq 0x30(%rsp), %rdi
movq %rbp, %rsi
callq *(%rax)
movq 0x38(%rsp), %rdx
cmpq 0x164d5(%rip), %rdx     # 0x38338
jne 0x21e83
testq %rdx, %rdx
je 0x21e88
movq 0x164bf(%rip), %rsi     # 0x38330
movq 0x30(%rsp), %rdi
callq 0x51d0
testl %eax, %eax
sete %r14b
jmp 0x21e8b
xorl %r14d, %r14d
jmp 0x21e8b
movb $0x1, %r14b
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x21ea7
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x51c0
testb %r14b, %r14b
je 0x21eb9
xorl %r14d, %r14d
movq %rbp, 0x18(%rsp)
jmp 0x2202a
movq 0x20(%rsp), %rdi
movq %r12, %rsi
movq 0x28(%rsp), %rdx
callq 0x1ef50
movq %rax, %r12
movq (%rax), %rax
leaq 0x30(%rsp), %rdi
movq %r12, %rsi
callq *(%rax)
movq 0x38(%rsp), %rdx
cmpq 0x16451(%rip), %rdx     # 0x38338
jne 0x21f07
testq %rdx, %rdx
je 0x21f0c
movq 0x1643b(%rip), %rsi     # 0x38330
movq 0x30(%rsp), %rdi
callq 0x51d0
testl %eax, %eax
sete %r14b
jmp 0x21f0f
xorl %r14d, %r14d
jmp 0x21f0f
movb $0x1, %r14b
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x21f2b
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x51c0
testb %r14b, %r14b
je 0x21f60
leaq 0x12ce9(%rip), %rax     # 0x34c20
movq 0x8(%rsp), %r15
movq %rax, (%r15)
movq 0x10(%rsp), %rdi
callq 0x24dcc
movl $0x40, %esi
movq %r15, %rdi
callq 0x51c0
movq %r12, 0x18(%rsp)
jmp 0x22026
movq (%rbp), %rax
leaq 0x98(%rsp), %r15
movq %r15, %rdi
movq %rbp, %rsi
callq *(%rax)
movq (%rbp), %rax
movq %rbx, %rdi
movq %rbp, %rsi
callq *0x8(%rax)
leaq 0x30(%rsp), %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x24630
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0x21fb3
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x51c0
movq 0x98(%rsp), %rdi
leaq 0xa8(%rsp), %rax
cmpq %rax, %rdi
je 0x21fd8
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x51c0
movq 0x10(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0x289c8
movq %rbp, (%rax)
movq %r12, 0x8(%rax)
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x2200a
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x51c0
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x22026
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x51c0
xorb $0x1, %r14b
testb %r14b, %r14b
je 0x22045
addq $0x10, %r13
cmpq 0x70(%rsp), %r13
jne 0x21e30
movq 0x8(%rsp), %rax
jmp 0x2204a
movq 0x18(%rsp), %rax
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x24740
jmp 0x220ba
movq %rax, %rbx
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0x22095
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x51c0
jmp 0x22095
movq %rax, %rbx
movq 0x98(%rsp), %rdi
leaq 0xa8(%rsp), %rax
cmpq %rax, %rdi
je 0x220ba
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x51c0
movq %rbx, %rdi
callq 0x5330