// File: kram[P]kram/./src/vm/vm.cpp
// Function: VM::boot(std::vector<Instruction*, std::allocator<Instruction*>>)
void VM::boot(std::vector<Instruction*> ins) {

	// Create environment
	this->environment = new Environment();
	this->environment->is_root = true;

	// Register classes to the VM
	reg_class(IO, io);
	reg_class(Number, number);
	reg_class(String, str);
	reg_class(Map, map);
	reg_class(List, list);
	reg_class(Math, math);

	this->function_return_stack = std::vector<bool>{false};

	this->init_default_values();

	this->run(ins);
}

// Assembly:
subq $0x258, %rsp            # imm = 0x258
movq %rsi, 0xa8(%rsp)
movq %rdi, 0x250(%rsp)
movq %rsi, 0x248(%rsp)
movq 0x250(%rsp), %rax
movq %rax, 0xb0(%rsp)
movl $0x20, %edi
callq 0x32e0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, 0xb8(%rsp)
callq 0x1d8a0
jmp 0x12c0e
movq 0xb0(%rsp), %rax
movq 0xb8(%rsp), %rcx
movq %rcx, 0x18(%rax)
movq 0x18(%rax), %rax
movb $0x1, 0x18(%rax)
movl $0x10, %edi
callq 0x32e0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, 0xa0(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, (%rdi)
callq 0x146f0
jmp 0x12c4f
movq 0xa0(%rsp), %rax
movq %rax, 0x230(%rsp)
movq 0x230(%rsp), %rdi
movl $0x4, %esi
callq 0x1e060
movq 0x230(%rsp), %rdi
callq 0x14700
movq 0xb0(%rsp), %rax
movq 0x18(%rax), %rax
movq %rax, 0x90(%rsp)
leaq 0x20f(%rsp), %rdi
movq %rdi, 0x98(%rsp)
callq 0x34a0
movq 0x98(%rsp), %rdx
leaq 0x18a3f(%rip), %rsi     # 0x2b6f5
leaq 0x210(%rsp), %rdi
callq 0x3390
jmp 0x12cc5
movq 0x90(%rsp), %rdi
movq 0x230(%rsp), %rdx
leaq 0x210(%rsp), %rsi
callq 0x1d920
jmp 0x12ce4
leaq 0x210(%rsp), %rdi
callq 0x31f0
leaq 0x20f(%rsp), %rdi
callq 0x3310
movl $0x10, %edi
callq 0x32e0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, 0x88(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, (%rdi)
callq 0x148f0
jmp 0x12d23
movq 0x88(%rsp), %rax
movq %rax, 0x200(%rsp)
movq 0x200(%rsp), %rdi
movl $0x4, %esi
callq 0x1e060
movq 0x200(%rsp), %rdi
callq 0x14900
movq 0xb0(%rsp), %rax
movq 0x18(%rax), %rax
movq %rax, 0x78(%rsp)
leaq 0x1df(%rsp), %rdi
movq %rdi, 0x80(%rsp)
callq 0x34a0
movq 0x80(%rsp), %rdx
leaq 0x18918(%rip), %rsi     # 0x2b69f
leaq 0x1e0(%rsp), %rdi
callq 0x3390
jmp 0x12d96
movq 0x78(%rsp), %rdi
movq 0x200(%rsp), %rdx
leaq 0x1e0(%rsp), %rsi
callq 0x1d920
jmp 0x12db2
leaq 0x1e0(%rsp), %rdi
callq 0x31f0
leaq 0x1df(%rsp), %rdi
callq 0x3310
movl $0x10, %edi
callq 0x32e0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, 0x70(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, (%rdi)
callq 0x14d00
jmp 0x12dee
movq 0x70(%rsp), %rax
movq %rax, 0x1d0(%rsp)
movq 0x1d0(%rsp), %rdi
movl $0x4, %esi
callq 0x1e060
movq 0x1d0(%rsp), %rdi
callq 0x14d10
movq 0xb0(%rsp), %rax
movq 0x18(%rax), %rax
movq %rax, 0x60(%rsp)
leaq 0x1af(%rsp), %rdi
movq %rdi, 0x68(%rsp)
callq 0x34a0
movq 0x68(%rsp), %rdx
leaq 0x1885d(%rip), %rsi     # 0x2b6a6
leaq 0x1b0(%rsp), %rdi
callq 0x3390
jmp 0x12e58
movq 0x60(%rsp), %rdi
movq 0x1d0(%rsp), %rdx
leaq 0x1b0(%rsp), %rsi
callq 0x1d920
jmp 0x12e74
leaq 0x1b0(%rsp), %rdi
callq 0x31f0
leaq 0x1af(%rsp), %rdi
callq 0x3310
movl $0x48, %edi
callq 0x32e0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, 0x58(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x30(%rdi)
movaps %xmm0, 0x20(%rdi)
movaps %xmm0, 0x10(%rdi)
movaps %xmm0, (%rdi)
movq $0x0, 0x40(%rdi)
callq 0x14f00
jmp 0x12ec4
movq 0x58(%rsp), %rax
movq %rax, 0x1a0(%rsp)
movq 0x1a0(%rsp), %rdi
movl $0x4, %esi
callq 0x1e060
movq 0x1a0(%rsp), %rdi
callq 0x14f30
movq 0xb0(%rsp), %rax
movq 0x18(%rax), %rax
movq %rax, 0x48(%rsp)
leaq 0x17f(%rsp), %rdi
movq %rdi, 0x50(%rsp)
callq 0x34a0
movq 0x50(%rsp), %rdx
leaq 0x187d9(%rip), %rsi     # 0x2b6f8
leaq 0x180(%rsp), %rdi
callq 0x3390
jmp 0x12f2e
movq 0x48(%rsp), %rdi
movq 0x1a0(%rsp), %rdx
leaq 0x180(%rsp), %rsi
callq 0x1d920
jmp 0x12f4a
leaq 0x180(%rsp), %rdi
callq 0x31f0
leaq 0x17f(%rsp), %rdi
callq 0x3310
movl $0x28, %edi
callq 0x32e0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, 0x40(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rdi)
movaps %xmm0, (%rdi)
movq $0x0, 0x20(%rdi)
callq 0x13e50
jmp 0x12f92
movq 0x40(%rsp), %rax
movq %rax, 0x170(%rsp)
movq 0x170(%rsp), %rdi
movl $0x4, %esi
callq 0x1e060
movq 0x170(%rsp), %rdi
callq 0x13e80
movq 0xb0(%rsp), %rax
movq 0x18(%rax), %rax
movq %rax, 0x30(%rsp)
leaq 0x14f(%rsp), %rdi
movq %rdi, 0x38(%rsp)
callq 0x34a0
movq 0x38(%rsp), %rdx
leaq 0x1870f(%rip), %rsi     # 0x2b6fc
leaq 0x150(%rsp), %rdi
callq 0x3390
jmp 0x12ffc
movq 0x30(%rsp), %rdi
movq 0x170(%rsp), %rdx
leaq 0x150(%rsp), %rsi
callq 0x1d920
jmp 0x13018
leaq 0x150(%rsp), %rdi
callq 0x31f0
leaq 0x14f(%rsp), %rdi
callq 0x3310
movl $0x10, %edi
callq 0x32e0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, 0x28(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, (%rdi)
callq 0x151e0
jmp 0x13054
movq 0x28(%rsp), %rax
movq %rax, 0x140(%rsp)
movq 0x140(%rsp), %rdi
movl $0x4, %esi
callq 0x1e060
movq 0x140(%rsp), %rdi
callq 0x151f0
movq 0xb0(%rsp), %rax
movq 0x18(%rax), %rax
movq %rax, 0x18(%rsp)
leaq 0x11f(%rsp), %rdi
movq %rdi, 0x20(%rsp)
callq 0x34a0
movq 0x20(%rsp), %rdx
leaq 0x18652(%rip), %rsi     # 0x2b701
leaq 0x120(%rsp), %rdi
callq 0x3390
jmp 0x130be
movq 0x18(%rsp), %rdi
movq 0x140(%rsp), %rdx
leaq 0x120(%rsp), %rsi
callq 0x1d920
jmp 0x130da
leaq 0x120(%rsp), %rdi
callq 0x31f0
leaq 0x11f(%rsp), %rdi
callq 0x3310
movb $0x0, 0xdf(%rsp)
leaq 0xdf(%rsp), %rax
movq %rax, 0xe0(%rsp)
movq $0x1, 0xe8(%rsp)
leaq 0xde(%rsp), %rdi
movq %rdi, 0x10(%rsp)
callq 0x152a0
movq 0x10(%rsp), %rcx
movq 0xe0(%rsp), %rsi
movq 0xe8(%rsp), %rdx
leaq 0xf0(%rsp), %rdi
callq 0x152b0
jmp 0x1314e
movq 0xb0(%rsp), %rdi
addq $0x830, %rdi            # imm = 0x830
leaq 0xf0(%rsp), %rsi
movq %rsi, (%rsp)
callq 0x15340
movq (%rsp), %rdi
callq 0x5840
leaq 0xde(%rsp), %rdi
callq 0x153b0
movq 0xb0(%rsp), %rdi
callq 0x1d5e0
movq 0xa8(%rsp), %rsi
leaq 0xc0(%rsp), %rdi
movq %rdi, 0x8(%rsp)
callq 0x5460
movq 0xb0(%rsp), %rdi
movq 0x8(%rsp), %rsi
callq 0x11170
jmp 0x131bf
leaq 0xc0(%rsp), %rdi
callq 0x5560
addq $0x258, %rsp            # imm = 0x258
retq
movq 0xb8(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x240(%rsp)
movl %eax, 0x23c(%rsp)
callq 0x32b0
jmp 0x134c9
movq 0xa0(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x240(%rsp)
movl %eax, 0x23c(%rsp)
callq 0x32b0
jmp 0x134c9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x240(%rsp)
movl %eax, 0x23c(%rsp)
jmp 0x13257
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x240(%rsp)
movl %eax, 0x23c(%rsp)
leaq 0x210(%rsp), %rdi
callq 0x31f0
leaq 0x20f(%rsp), %rdi
callq 0x3310
jmp 0x134c9
movq 0x88(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x240(%rsp)
movl %eax, 0x23c(%rsp)
callq 0x32b0
jmp 0x134c9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x240(%rsp)
movl %eax, 0x23c(%rsp)
jmp 0x132c6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x240(%rsp)
movl %eax, 0x23c(%rsp)
leaq 0x1e0(%rsp), %rdi
callq 0x31f0
leaq 0x1df(%rsp), %rdi
callq 0x3310
jmp 0x134c9
movq 0x70(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x240(%rsp)
movl %eax, 0x23c(%rsp)
callq 0x32b0
jmp 0x134c9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x240(%rsp)
movl %eax, 0x23c(%rsp)
jmp 0x13332
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x240(%rsp)
movl %eax, 0x23c(%rsp)
leaq 0x1b0(%rsp), %rdi
callq 0x31f0
leaq 0x1af(%rsp), %rdi
callq 0x3310
jmp 0x134c9
movq 0x58(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x240(%rsp)
movl %eax, 0x23c(%rsp)
callq 0x32b0
jmp 0x134c9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x240(%rsp)
movl %eax, 0x23c(%rsp)
jmp 0x1339e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x240(%rsp)
movl %eax, 0x23c(%rsp)
leaq 0x180(%rsp), %rdi
callq 0x31f0
leaq 0x17f(%rsp), %rdi
callq 0x3310
jmp 0x134c9
movq 0x40(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x240(%rsp)
movl %eax, 0x23c(%rsp)
callq 0x32b0
jmp 0x134c9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x240(%rsp)
movl %eax, 0x23c(%rsp)
jmp 0x1340a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x240(%rsp)
movl %eax, 0x23c(%rsp)
leaq 0x150(%rsp), %rdi
callq 0x31f0
leaq 0x14f(%rsp), %rdi
callq 0x3310
jmp 0x134c9
movq 0x28(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x240(%rsp)
movl %eax, 0x23c(%rsp)
callq 0x32b0
jmp 0x134c9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x240(%rsp)
movl %eax, 0x23c(%rsp)
jmp 0x13476
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x240(%rsp)
movl %eax, 0x23c(%rsp)
leaq 0x120(%rsp), %rdi
callq 0x31f0
leaq 0x11f(%rsp), %rdi
callq 0x3310
jmp 0x134c9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x240(%rsp)
movl %eax, 0x23c(%rsp)
leaq 0xde(%rsp), %rdi
callq 0x153b0
jmp 0x134c9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x240(%rsp)
movl %eax, 0x23c(%rsp)
leaq 0xc0(%rsp), %rdi
callq 0x5560
movq 0x240(%rsp), %rdi
callq 0x3490
nopw %cs:(%rax,%rax)