// File: /workspace/github_cpp_makefile_star2_O2/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:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movq %rsi, %r14
movq %rdi, %rbx
pushq $0x20
popq %rdi
callq 0x3230
movq %rax, %r15
movq %rax, %rdi
callq 0xb878
movq %r15, 0x18(%rbx)
movb $0x1, 0x18(%r15)
pushq $0x10
popq %rdi
callq 0x3230
movq %rax, %r15
xorps %xmm0, %xmm0
movaps %xmm0, (%rax)
movq %rax, %rdi
callq 0xbad8
pushq $0x4
popq %rsi
movq %r15, %rdi
callq 0xbc28
movq %r15, %rdi
callq 0x9064
movq 0x18(%rbx), %r12
leaq 0x90ae(%rip), %rsi      # 0x116dd
leaq 0xe8(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0x30f0
leaq 0xe8(%rsp), %rsi
movq %r12, %rdi
movq %r15, %rdx
callq 0xb8c0
leaq 0xe8(%rsp), %rdi
callq 0x3130
pushq $0x10
popq %rdi
callq 0x3230
movq %rax, %r15
xorps %xmm0, %xmm0
movaps %xmm0, (%rax)
movq %rax, %rdi
callq 0xbad8
pushq $0x4
popq %rsi
movq %r15, %rdi
callq 0xbc28
movq %r15, %rdi
callq 0x9140
movq 0x18(%rbx), %r12
leaq 0x8fef(%rip), %rsi      # 0x11687
leaq 0xc8(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0x30f0
leaq 0xc8(%rsp), %rsi
movq %r12, %rdi
movq %r15, %rdx
callq 0xb8c0
leaq 0xc8(%rsp), %rdi
callq 0x3130
pushq $0x10
popq %rdi
callq 0x3230
movq %rax, %r15
xorps %xmm0, %xmm0
movaps %xmm0, (%rax)
movq %rax, %rdi
callq 0xbad8
pushq $0x4
popq %rsi
movq %r15, %rdi
callq 0xbc28
movq %r15, %rdi
callq 0x92fa
movq 0x18(%rbx), %r12
leaq 0x8f8d(%rip), %rsi      # 0x1168e
leaq 0xa8(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0x30f0
leaq 0xa8(%rsp), %rsi
movq %r12, %rdi
movq %r15, %rdx
callq 0xb8c0
leaq 0xa8(%rsp), %rdi
callq 0x3130
pushq $0x48
popq %rdi
callq 0x3230
movq %rax, %r15
xorps %xmm0, %xmm0
movaps %xmm0, (%rax)
movaps %xmm0, 0x10(%rax)
movaps %xmm0, 0x20(%rax)
movaps %xmm0, 0x30(%rax)
andq $0x0, 0x40(%rax)
movq %rax, %rdi
callq 0x93d6
pushq $0x4
popq %rsi
movq %r15, %rdi
callq 0xbc28
movq %r15, %rdi
callq 0x9404
movq 0x18(%rbx), %r12
leaq 0x8f65(%rip), %rsi      # 0x116e0
leaq 0x88(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0x30f0
leaq 0x88(%rsp), %rsi
movq %r12, %rdi
movq %r15, %rdx
callq 0xb8c0
leaq 0x88(%rsp), %rdi
callq 0x3130
pushq $0x28
popq %rdi
callq 0x3230
movq %rax, %r15
xorps %xmm0, %xmm0
movaps %xmm0, (%rax)
movaps %xmm0, 0x10(%rax)
andq $0x0, 0x20(%rax)
movq %rax, %rdi
callq 0x8d1c
pushq $0x4
popq %rsi
movq %r15, %rdi
callq 0xbc28
movq %r15, %rdi
callq 0x8d34
movq 0x18(%rbx), %r12
leaq 0x8ef7(%rip), %rsi      # 0x116e4
leaq 0x68(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0x30f0
leaq 0x68(%rsp), %rsi
movq %r12, %rdi
movq %r15, %rdx
callq 0xb8c0
leaq 0x68(%rsp), %rdi
callq 0x3130
pushq $0x10
popq %rdi
callq 0x3230
movq %rax, %r15
xorps %xmm0, %xmm0
movaps %xmm0, (%rax)
movq %rax, %rdi
callq 0xbad8
pushq $0x4
popq %rsi
movq %r15, %rdi
callq 0xbc28
movq %r15, %rdi
callq 0x9526
movq 0x18(%rbx), %r12
leaq 0x8e9c(%rip), %rsi      # 0x116e9
leaq 0x48(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0x30f0
leaq 0x48(%rsp), %rsi
movq %r12, %rdi
movq %r15, %rdx
callq 0xb8c0
leaq 0x48(%rsp), %rdi
callq 0x3130
leaq 0x7(%rsp), %rsi
movb $0x0, (%rsi)
leaq 0x8(%rsp), %r15
pushq $0x1
popq %rdx
leaq 0x6(%rsp), %rcx
movq %r15, %rdi
callq 0x9582
leaq 0x830(%rbx), %rdi
movq %r15, %rsi
callq 0x95c2
movq %r15, %rdi
callq 0x417c
movq %rbx, %rdi
callq 0xb734
leaq 0x30(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x40b0
movq %rbx, %rdi
movq %r15, %rsi
callq 0x7910
leaq 0x30(%rsp), %rdi
callq 0x42f2
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x42f2
jmp 0x8968
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
jmp 0x894f
jmp 0x8956
jmp 0x895d
movq %rax, %rbx
leaq 0x68(%rsp), %rdi
jmp 0x894f
jmp 0x8956
jmp 0x895d
movq %rax, %rbx
leaq 0x88(%rsp), %rdi
jmp 0x894f
jmp 0x8956
jmp 0x895d
movq %rax, %rbx
leaq 0xa8(%rsp), %rdi
jmp 0x894f
jmp 0x8956
jmp 0x895d
movq %rax, %rbx
leaq 0xc8(%rsp), %rdi
jmp 0x894f
jmp 0x8956
jmp 0x895d
movq %rax, %rbx
leaq 0xe8(%rsp), %rdi
callq 0x3130
jmp 0x8968
movq %rax, %rbx
jmp 0x8968
jmp 0x895d
movq %rax, %rbx
movq %r15, %rdi
callq 0x3210
movq %rbx, %rdi
callq 0x3390