// File: /workspace/github_cpp_makefile_star2_O1/iamlouk[P]asbi/src/vm.cc
// Function: asbi::execute(std::vector<asbi::OpCode, std::allocator<asbi::OpCode>>, std::shared_ptr<asbi::Env>, asbi::Context*)
Value asbi::execute(std::vector<OpCode> opcodes, std::shared_ptr<Env> env, Context* ctx) {
#ifndef NDEBUG
	auto oldstacksize = ctx->stack.size();
#endif
	unsigned int pc = 0;
	while (pc < opcodes.size()) {
		switch (opcodes[pc++]) {
		case PUSH_NUMBER:{
			auto flt = opcodes[pc++];
			auto fltptr = reinterpret_cast<double*>(&flt);
			ctx->push(Value::number(*fltptr));
			break;
		}
		case PUSH_BOOLEAN:{
			auto val = opcodes[pc++];
			ctx->push(Value::boolean(val != 0));
			break;
		}
		case PUSH_TRUE:
			ctx->push(Value::boolean(true));
			break;
		case PUSH_FALSE:
			ctx->push(Value::boolean(false));
			break;
		case PUSH_NIL:
			ctx->push(Value::nil());
			break;
		case PUSH_SYMBOL:{
			auto raw = opcodes[pc++];
			auto sc = reinterpret_cast<StringContainer*>(raw);
			ctx->push(Value::symbol(sc));
			break;
		}
		case PUSH_STRING:{
			auto raw = opcodes[pc++];
			auto sc = reinterpret_cast<StringContainer*>(raw);
			ctx->push(Value::string(sc));
			break;
		}
		case PUSH_LAMBDA:{
			auto raw = opcodes[pc++];
			auto lc = reinterpret_cast<LambdaContainer*>(raw);
			ctx->push(Value::lambda(new LambdaContainer(env, lc->ops, lc->argnames, ctx, true)));
			break;
		}
		case PUSH_STACK_PLACEHOLDER:{
			auto raw = opcodes[pc++];
			auto sc = reinterpret_cast<StringContainer*>(raw);
			ctx->push(Value::stackplaceholder(sc));
			break;
		}
		case POP:
			ctx->pop();
			break;
		case ENTER_SCOPE:{
			env = std::make_shared<Env>(ctx, env);
			break;
		}
		case LEAVE_SCOPE:{
			env = env->outer;
			assert(env != nullptr);
			break;
		}
		case CALL:{
			auto n = static_cast<unsigned int>(opcodes[pc++]);
			auto callable = ctx->pop();
			ctx->push(callable.call(ctx, n, env));
			break;
		}
		case LOOKUP:{
			auto raw = opcodes[pc++];
			auto sc = reinterpret_cast<StringContainer*>(raw);
			ctx->push(env->lookup(sc));
			break;
		}
		case DECL:{
			auto raw = opcodes[pc++];
			auto sc = reinterpret_cast<StringContainer*>(raw);
			env->decl(sc, ctx->pop());
			ctx->push(Value::nil());
			break;
		}
		case SET:{
			auto raw = opcodes[pc++];
			auto sc = reinterpret_cast<StringContainer*>(raw);
			auto val = ctx->pop();
			env->set(sc, val);
			ctx->push(val);
			break;
		}
		case ADD:{
			auto b = ctx->pop();
			auto a = ctx->pop();
			if (a.type == type_t::Number && b.type == type_t::Number) {
				ctx->push(Value::number(a._number + b._number));
				break;
			}

			if (a.type == type_t::String/* && b.type == type_t::String*/) {
				auto sc = ctx->new_string(a._string->data);
				sc->data += b/*._string->data*/.to_string(false);
				ctx->push(Value::string(sc));
				ctx->heap_size += sc->gc_size();
				ctx->check_gc(env);
				break;
			}

			throw std::runtime_error("expected number or string");
		}
		case SUB:{
			auto b = ctx->pop();
			auto a = ctx->pop();
			if (a.type != type_t::Number || b.type != type_t::Number)
				throw std::runtime_error("expected number");
			ctx->push(Value::number(a._number - b._number));
			break;
		}
		case MUL:{
			auto b = ctx->pop();
			auto a = ctx->pop();
			if (a.type != type_t::Number || b.type != type_t::Number)
				throw std::runtime_error("expected number");
			ctx->push(Value::number(a._number * b._number));
			break;
		}
		case DIV:{
			auto b = ctx->pop();
			auto a = ctx->pop();
			if (a.type != type_t::Number || b.type != type_t::Number)
				throw std::runtime_error("expected number");
			ctx->push(Value::number(a._number / b._number));
			break;
		}
		case EQUALS:{
			auto b = ctx->pop();
			auto a = ctx->pop();
			ctx->push(Value::boolean(a == b));
			break;
		}
		case EQUALS_NOT:{
			auto b = ctx->pop();
			auto a = ctx->pop();
			ctx->push(Value::boolean(!(a == b)));
			break;
		}
		case SMALLER:{
			auto b = ctx->pop();
			auto a = ctx->pop();
			if (a.type != type_t::Number || b.type != type_t::Number)
				throw std::runtime_error("expected number");
			ctx->push(Value::boolean(a._number < b._number));
			break;
		}
		case BIGGER:{
			auto b = ctx->pop();
			auto a = ctx->pop();
			if (a.type != type_t::Number || b.type != type_t::Number)
				throw std::runtime_error("expected number");
			ctx->push(Value::boolean(a._number > b._number));
			break;
		}
		case SMALLER_OR_EQUAL:{
			auto b = ctx->pop();
			auto a = ctx->pop();
			if (a.type != type_t::Number || b.type != type_t::Number)
				throw std::runtime_error("expected number");
			ctx->push(Value::boolean(a._number <= b._number));
			break;
		}
		case BIGGER_OR_EQUAL:{
			auto b = ctx->pop();
			auto a = ctx->pop();
			if (a.type != type_t::Number || b.type != type_t::Number)
				throw std::runtime_error("expected number");
			ctx->push(Value::boolean(a._number >= b._number));
			break;
		}
		case NOT:{
			auto a = ctx->pop();
			if (a.type != type_t::Bool)
				throw std::runtime_error("expected boolean");
			ctx->push(Value::boolean(!a._boolean));
			break;
		}
		case MAKE_MAP:{
			auto n = static_cast<unsigned int>(opcodes[pc++]);
			auto mc = new MapContainer(ctx);
			for (unsigned int i = 0; i < n; ++i) {
				mc->set(ctx->pop(), ctx->pop());
			}

			ctx->push(Value::map(mc));
			ctx->heap_size += mc->gc_size();
			ctx->check_gc(env);
			break;
		}
		case MAKE_MAP_ARRLIKE:{
			auto n = static_cast<unsigned int>(opcodes[pc++]);
			auto mc = new MapContainer(ctx);
			for (unsigned int i = 0; i < n; ++i) {
				mc->set(Value::number(n - 1- i), ctx->pop());
			}

			ctx->push(Value::map(mc));
			ctx->heap_size += mc->gc_size();
			ctx->check_gc(env);
			break;
		}
		case GET_MAP_VAL:{
			auto map = ctx->pop();
			if (map.type != type_t::Map)
				throw std::runtime_error("expected map");

			ctx->push(map._map->get(ctx->pop()));
			break;
		}
		case SET_MAP_VAL:{
			auto map = ctx->pop();
			if (map.type != type_t::Map)
				throw std::runtime_error("expected map");

			auto val = ctx->pop();
			auto key = ctx->pop();
			auto prevsize = map._map->gc_size();
			map._map->set(key, val);
			if (prevsize < map._map->gc_size()) {
				ctx->heap_size -= prevsize;
				ctx->heap_size += map._map->gc_size();
				ctx->push(val);
				ctx->check_gc(env);
				break;
			}
			ctx->push(val);
			break;
		}
		case DESTRUCT_ARRLIKE:{
			auto n = static_cast<unsigned int>(opcodes[pc++]);
			auto map = ctx->pop();
			if (map.type != type_t::Map)
				throw std::runtime_error("expected map");

			for (unsigned int i = 0; i < n; ++i) {
				auto tomatch = ctx->pop();
				auto value = map._map->get(Value::number(i));
				if (tomatch.type == type_t::StackPlaceholder) {
					env->decl(tomatch._string, value);
				} else {
					if (!(tomatch == value)) {
						throw std::runtime_error("match error in destruction");
					}
				}
			}
			ctx->push(map);
			break;
		}
		case GOTO:{
			pc = static_cast<unsigned int>(opcodes[pc++]);
			assert(pc <= opcodes.size());
			break;
		}
		case IF_TRUE_GOTO:{
			auto a = ctx->pop();
			auto new_pc = static_cast<unsigned int>(opcodes[pc++]);
			if (a.type != type_t::Bool)
				throw std::runtime_error("expected boolean");

			if (a._boolean)
				pc = new_pc;
			break;
		}
		case IF_FALSE_GOTO:{
			auto a = ctx->pop();
			auto new_pc = static_cast<unsigned int>(opcodes[pc++]);
			if (a.type != type_t::Bool)
				throw std::runtime_error("expected boolean");

			if (!a._boolean)
				pc = new_pc;
			break;
		}
		case NOOP:
			assert("NOOPs should not happen");
			break;
		default:
			throw std::runtime_error("invalid opcode");
		}
	}

	assert(pc <= opcodes.size());
	assert(ctx->stack.size() == oldstacksize + 1);
	return ctx->pop();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xe8, %rsp
movq %rdx, 0x8(%rsp)
movq 0x510(%rdx), %rax
subq 0x508(%rdx), %rax
movq %rax, 0xc8(%rsp)
movq (%rdi), %rax
movq %rdi, 0x50(%rsp)
movq 0x8(%rdi), %rdx
movq %rdx, %rcx
subq %rax, %rcx
sarq $0x3, %rcx
xorl %ebx, %ebx
cmpq %rax, %rdx
je 0xcef5
movq %rsi, %r12
leaq 0x8(%rsi), %rdx
movq %rdx, 0xc0(%rsp)
xorl %edx, %edx
movq %rsi, 0x30(%rsp)
movq (%rax,%rdx,8), %rdx
cmpq $0x23, %rdx
ja 0xd196
leal 0x1(%rbx), %r14d
leaq 0xb834(%rip), %rsi      # 0x17b6c
movslq (%rsi,%rdx,4), %rdx
addq %rsi, %rdx
jmpq *%rdx
addl $0x2, %ebx
movl %r14d, %ecx
movq (%rax,%rcx,8), %rdx
movq 0x8(%rsp), %rdi
movl $0x1, %esi
jmp 0xc9e1
movq 0x8(%rsp), %rdi
callq 0x11276
testl %eax, %eax
jne 0xcfae
testb $0x1, %dl
je 0xc3bf
jmp 0xcddd
movq 0x8(%rsp), %rdi
callq 0x11276
testl %eax, %eax
jne 0xd06f
movq 0x8(%rsp), %rdi
notb %dl
andb $0x1, %dl
movq $0x0, 0x10(%rsp)
movb %dl, 0x10(%rsp)
jmp 0xcc9e
movq 0x8(%rsp), %rdi
callq 0x11276
testl %eax, %eax
jne 0xcfcc
testb $0x1, %dl
je 0xcddd
movq 0x50(%rsp), %rax
movq (%rax), %rax
movl %r14d, %ecx
movl (%rax,%rcx,8), %r14d
jmp 0xccaa
addl $0x2, %ebx
movl %r14d, %ecx
movq (%rax,%rcx,8), %r15
movq 0x8(%rsp), %rdi
callq 0x11276
movl %eax, %ebp
movq %rdx, %r12
movq 0x30(%rsp), %rax
movq (%rax), %rdi
movq %r15, %rsi
movl %ebp, %edx
movq %r12, %rcx
callq 0x10d58
movq 0x8(%rsp), %rdi
movl %ebp, %esi
movq %r12, %rdx
movq 0x30(%rsp), %r12
jmp 0xc9e1
addl $0x2, %ebx
movl %r14d, %ecx
movq (%rax,%rcx,8), %rsi
movq 0x8(%rsp), %r15
movq (%r12), %rdi
callq 0x109ba
movq %r15, %rdi
movl %eax, %esi
jmp 0xc9e1
movl %r14d, %edx
movq (%rax,%rdx,8), %r14
movl %r14d, %eax
cmpq %rcx, %rax
jbe 0xccaa
jmp 0xcfed
leaq 0x10(%rsp), %r15
movq $0x0, (%r15)
leaq 0x40(%rsp), %rdx
leaq 0x8(%rsp), %rcx
leaq 0x18(%rsp), %rdi
movq %r15, %rsi
movq %r12, %r8
callq 0xd344
movapd (%r15), %xmm0
xorpd %xmm1, %xmm1
movapd %xmm1, (%r15)
movq 0x8(%r12), %rdi
movupd %xmm0, (%r12)
testq %rdi, %rdi
je 0xc498
callq 0x6614
movq 0x18(%rsp), %rdi
jmp 0xcee2
movq 0x8(%rsp), %rdi
movq $0x0, 0x10(%rsp)
movb $0x0, 0x10(%rsp)
jmp 0xcc9e
movq (%r12), %rsi
movq (%rsi), %rax
movq %rax, (%r12)
addq $0x8, %rsi
movq 0xc0(%rsp), %rdi
callq 0xd2fe
cmpq $0x0, (%r12)
jne 0xccaa
jmp 0xd177
addl $0x2, %ebx
movl %r14d, %ecx
movq (%rax,%rcx,8), %rdx
movq 0x8(%rsp), %rdi
movl $0x8, %esi
jmp 0xc9e1
movq 0x8(%rsp), %rdi
callq 0x11276
movl %eax, %ebp
movq %rdx, %r15
movq 0x8(%rsp), %rdi
callq 0x11276
cmpl $0x1, %eax
jne 0xd0b1
cmpl $0x1, %ebp
jne 0xd0b1
movq %rdx, %xmm0
movq %r15, %xmm1
movq 0x8(%rsp), %rdi
ucomisd %xmm0, %xmm1
jmp 0xcc90
movq 0x8(%rsp), %rdi
callq 0x11276
movl %eax, %ebp
movq %rdx, %r15
movq 0x8(%rsp), %rdi
callq 0x11276
cmpl $0x1, %eax
jne 0xd0d2
cmpl $0x1, %ebp
jne 0xd0d2
movq %rdx, %xmm0
movq %r15, %xmm1
ucomisd %xmm1, %xmm0
jmp 0xcacd
addl $0x2, %ebx
movl %r14d, %ecx
movq 0x8(%rsp), %rdi
cmpq $0x0, (%rax,%rcx,8)
movq $0x0, 0x10(%rsp)
setne 0x10(%rsp)
movq 0x10(%rsp), %rdx
xorl %esi, %esi
jmp 0xc9e1
addl $0x2, %ebx
movl %r14d, %ecx
movq (%rax,%rcx,8), %r15
movq 0x30(%rsp), %rax
movq (%rax), %r12
movq 0x8(%rsp), %rdi
callq 0x11276
movq %rdx, %rcx
movq %r12, %rdi
movq 0x30(%rsp), %r12
movq %r15, %rsi
movl %eax, %edx
callq 0x10c8e
movq 0x8(%rsp), %rdi
movl $0x2, %esi
xorl %edx, %edx
jmp 0xc9e1
movq 0x8(%rsp), %rdi
movq $0x0, 0x10(%rsp)
movb $0x1, 0x10(%rsp)
jmp 0xcc9e
addl $0x2, %ebx
movl %r14d, %ecx
movq (%rax,%rcx,8), %rdx
movq 0x8(%rsp), %rdi
movl $0x4, %esi
jmp 0xc9e1
movq 0x8(%rsp), %rdi
callq 0x11276
movq %rdx, 0x10(%rsp)
cmpl $0x6, %eax
jne 0xd02d
movq 0x8(%rsp), %rdi
callq 0x11276
movl %eax, 0x5c(%rsp)
movq %rdx, %rbp
movq 0x8(%rsp), %rdi
callq 0x11276
movl %eax, %ebx
movq %rdx, %r13
movq 0x10(%rsp), %r12
movq (%r12), %rax
movq %r12, %rdi
callq *0x18(%rax)
movq %rax, %r15
movq %r12, %rdi
movl %ebx, %esi
movq %rbp, %rbx
movl 0x5c(%rsp), %ebp
movq %r13, %rdx
movl %ebp, %ecx
movq %rbx, %r8
callq 0xf3ea
movq (%r12), %rax
movq %r12, %rdi
callq *0x18(%rax)
movq 0x8(%rsp), %rdi
cmpq %rax, %r15
jae 0xcd92
subq %r15, 0x308(%rdi)
movq (%r12), %rax
movq %r12, %rdi
callq *0x18(%rax)
movq 0x8(%rsp), %rdi
addq %rax, 0x308(%rdi)
movl %ebp, %esi
movq %rbx, %rdx
callq 0x11230
movq 0x8(%rsp), %rdi
movq 0x30(%rsp), %r12
movq (%r12), %rax
movq %rax, 0x60(%rsp)
movq 0x8(%r12), %rax
movq %rax, 0x68(%rsp)
testq %rax, %rax
je 0xceb8
movq 0x148cc(%rip), %rcx     # 0x20fb8
cmpb $0x0, (%rcx)
je 0xceb4
incl 0x8(%rax)
jmp 0xceb8
movq 0x8(%rsp), %rdi
callq 0x11276
movl %eax, 0x40(%rsp)
movq %rdx, 0x48(%rsp)
movq 0x8(%rsp), %rdi
callq 0x11276
movq %rdx, 0x38(%rsp)
cmpl $0x1, %eax
jne 0xccd1
cmpl $0x1, 0x40(%rsp)
jne 0xccd1
movq %rdx, %xmm0
movq 0x8(%rsp), %rdi
addsd 0x48(%rsp), %xmm0
jmp 0xc883
movq 0x8(%rsp), %rdi
callq 0x11276
movl %eax, %ebp
movq %rdx, %r15
movq 0x8(%rsp), %rdi
callq 0x11276
cmpl $0x1, %eax
jne 0xd114
cmpl $0x1, %ebp
jne 0xd114
movq %rdx, %xmm0
movq %r15, %xmm1
divsd %xmm1, %xmm0
jmp 0xc87e
movq 0x8(%rsp), %rdi
movl $0x2, %esi
xorl %edx, %edx
jmp 0xcca5
movq 0x8(%rsp), %rdi
callq 0x11276
leaq 0x10(%rsp), %r15
movl %eax, (%r15)
movq %rdx, 0x8(%r15)
movq 0x8(%rsp), %rdi
callq 0x11276
leaq 0x40(%rsp), %rdi
movl %eax, (%rdi)
movq %rdx, 0x8(%rdi)
movq 0x8(%rsp), %r12
movq %r15, %rsi
callq 0xf928
jmp 0xca28
movl %r14d, %ecx
movl (%rax,%rcx,8), %ebp
movq 0x8(%rsp), %rdi
callq 0x11276
movl %eax, 0x10(%rsp)
movq %rdx, 0x18(%rsp)
movq 0x8(%rsp), %r13
movq (%r12), %rax
movq %rax, 0xa0(%rsp)
movq 0x8(%r12), %rax
movq %rax, 0xa8(%rsp)
testq %rax, %rax
je 0xcdaa
movq 0x1479d(%rip), %rcx     # 0x20fb8
cmpb $0x0, (%rcx)
je 0xcda6
incl 0x8(%rax)
jmp 0xcdaa
addl $0x2, %ebx
movl %r14d, %ecx
movq (%rax,%rcx,8), %rdx
movq 0x8(%rsp), %rdi
movl $0x3, %esi
jmp 0xc9e1
movq 0x8(%rsp), %rdi
callq 0x11276
movl %eax, %ebp
movq %rdx, %r15
movq 0x8(%rsp), %rdi
callq 0x11276
cmpl $0x1, %eax
jne 0xd156
cmpl $0x1, %ebp
jne 0xd156
movq %rdx, %xmm0
movq %r15, %xmm1
subsd %xmm1, %xmm0
movq 0x8(%rsp), %rdi
movq %xmm0, %rdx
jmp 0xca8a
movq 0x8(%rsp), %rdi
callq 0x11276
jmp 0xccaa
movl %r14d, %ecx
movq %r12, %r14
movq (%rax,%rcx,8), %r12
movq 0x8(%rsp), %rbp
movl $0x48, %edi
callq 0x5380
movq %rax, %r13
movq (%r14), %rax
movq %rax, 0xb0(%rsp)
movq 0x8(%r14), %rax
movq %rax, 0xb8(%rsp)
testq %rax, %rax
je 0xcde9
movq 0x146d9(%rip), %rcx     # 0x20fb8
cmpb $0x0, (%rcx)
je 0xcde5
incl 0x8(%rax)
jmp 0xcde9
movq 0x8(%rsp), %rdi
callq 0x11276
movq %rdx, 0x10(%rsp)
cmpl $0x6, %eax
jne 0xd04e
movq 0x8(%rsp), %r15
movq 0x10(%rsp), %r12
movq %r15, %rdi
callq 0x11276
movq %r12, %rdi
movl %eax, %esi
callq 0xf51a
movq %r15, %rdi
movl %eax, %esi
jmp 0xcd97
movl %r14d, %ecx
movl (%rax,%rcx,8), %r14d
movq 0x8(%rsp), %rdi
callq 0x11276
movq %rdx, 0x38(%rsp)
cmpl $0x6, %eax
jne 0xd00c
movq %rdx, %r13
testl %r14d, %r14d
je 0xc9d1
xorl %r15d, %r15d
movq 0x38(%rsp), %rbp
movq 0x8(%rsp), %rdi
callq 0x11276
movl %eax, 0x10(%rsp)
movq %rdx, 0x18(%rsp)
movl %r15d, %eax
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
movq %xmm0, %rdx
movq %rbp, %rdi
movl $0x1, %esi
callq 0xf51a
movl %eax, 0x40(%rsp)
movq %rdx, 0x48(%rsp)
cmpl $0x8, 0x10(%rsp)
jne 0xc9b2
movq %rdx, %rcx
movq (%r12), %rdi
movq 0x18(%rsp), %rsi
movl %eax, %edx
callq 0x10c8e
jmp 0xc9c9
leaq 0x10(%rsp), %rdi
leaq 0x40(%rsp), %rsi
callq 0xf928
testb %al, %al
je 0xcf3e
incl %r15d
cmpl %r15d, %r14d
jne 0xc95d
addl $0x2, %ebx
movq 0x8(%rsp), %rdi
movl $0x6, %esi
movq %r13, %rdx
callq 0x11230
movl %ebx, %r14d
jmp 0xccaa
movq 0x8(%rsp), %rdi
callq 0x11276
leaq 0x10(%rsp), %r15
movl %eax, (%r15)
movq %rdx, 0x8(%r15)
movq 0x8(%rsp), %rdi
callq 0x11276
leaq 0x40(%rsp), %rdi
movl %eax, (%rdi)
movq %rdx, 0x8(%rdi)
movq 0x8(%rsp), %r12
movq %r15, %rsi
callq 0xf928
xorb $0x1, %al
movq $0x0, 0x38(%rsp)
movb %al, 0x38(%rsp)
movq 0x38(%rsp), %rdx
movq %r12, %rdi
movq 0x30(%rsp), %r12
jmp 0xcca3
movq 0x8(%rsp), %rdi
callq 0x11276
movl %eax, %ebp
movq %rdx, %r15
movq 0x8(%rsp), %rdi
callq 0x11276
cmpl $0x1, %eax
jne 0xd135
cmpl $0x1, %ebp
jne 0xd135
movq %rdx, %xmm0
movq %r15, %xmm1
mulsd %xmm0, %xmm1
movq 0x8(%rsp), %rdi
movq %xmm1, %rdx
movl $0x1, %esi
jmp 0xcca5
movq 0x8(%rsp), %rdi
callq 0x11276
movl %eax, %ebp
movq %rdx, %r15
movq 0x8(%rsp), %rdi
callq 0x11276
cmpl $0x1, %eax
jne 0xd0f3
cmpl $0x1, %ebp
jne 0xd0f3
movq %rdx, %xmm0
movq %r15, %xmm1
ucomisd %xmm0, %xmm1
movq $0x0, 0x10(%rsp)
seta 0x10(%rsp)
movq 0x8(%rsp), %rdi
jmp 0xcc9e
movl %r14d, %ecx
movl (%rax,%rcx,8), %r14d
movl $0x68, %edi
callq 0x5380
movq %rax, %r13
movq 0x8(%rsp), %rsi
movq %rax, %rdi
callq 0xf2dc
testl %r14d, %r14d
je 0xcb3b
movq 0x8(%rsp), %rdi
callq 0x11276
movl %eax, %ebp
movq %rdx, %r15
movq 0x8(%rsp), %rdi
callq 0x11276
movq %rdx, %r8
movq %r13, %rdi
movl %ebp, %esi
movq %r15, %rdx
movl %eax, %ecx
callq 0xf3ea
decl %r14d
jne 0xcb0b
movq 0x8(%rsp), %rdi
movl $0x6, %esi
movq %r13, %rdx
callq 0x11230
movq (%r13), %rax
movq %r13, %rdi
callq *0x18(%rax)
movq 0x8(%rsp), %rdi
addq %rax, 0x308(%rdi)
movq (%r12), %rax
movq %rax, 0x80(%rsp)
movq 0x8(%r12), %rax
movq %rax, 0x88(%rsp)
testq %rax, %rax
je 0xce71
movq 0x1442c(%rip), %rcx     # 0x20fb8
cmpb $0x0, (%rcx)
je 0xce6d
incl 0x8(%rax)
jmp 0xce71
movl %r14d, %ecx
movl (%rax,%rcx,8), %ebp
movl $0x68, %edi
callq 0x5380
movq %rax, %r13
movq 0x8(%rsp), %rsi
movq %rax, %rdi
callq 0xf2dc
testl %ebp, %ebp
je 0xcbf6
decl %ebp
movl %ebp, %eax
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
movq %xmm0, %r15
movq 0x8(%rsp), %rdi
callq 0x11276
movq %rdx, %r8
movq %r13, %rdi
movl $0x1, %esi
movq %r15, %rdx
movl %eax, %ecx
callq 0xf3ea
addl $-0x1, %ebp
jb 0xcbc3
movq 0x8(%rsp), %rdi
movl $0x6, %esi
movq %r13, %rdx
callq 0x11230
movq (%r13), %rax
movq %r13, %rdi
callq *0x18(%rax)
movq 0x8(%rsp), %rdi
addq %rax, 0x308(%rdi)
movq (%r12), %rax
movq %rax, 0x70(%rsp)
movq 0x8(%r12), %rax
movq %rax, 0x78(%rsp)
testq %rax, %rax
je 0xce8f
movq 0x14377(%rip), %rcx     # 0x20fb8
cmpb $0x0, (%rcx)
je 0xce8b
incl 0x8(%rax)
jmp 0xce8f
movq 0x8(%rsp), %rdi
callq 0x11276
movl %eax, %ebp
movq %rdx, %r15
movq 0x8(%rsp), %rdi
callq 0x11276
cmpl $0x1, %eax
jne 0xd090
cmpl $0x1, %ebp
jne 0xd090
movq %rdx, %xmm0
movq %r15, %xmm1
movq 0x8(%rsp), %rdi
ucomisd %xmm1, %xmm0
movq $0x0, 0x10(%rsp)
setae 0x10(%rsp)
movq 0x10(%rsp), %rdx
xorl %esi, %esi
callq 0x11230
movl %r14d, %edx
movq 0x50(%rsp), %rcx
movq (%rcx), %rax
movq 0x8(%rcx), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
movl %r14d, %ebx
cmpq %rdx, %rcx
ja 0xc31f
jmp 0xcef7
cmpl $0x4, %eax
jne 0xd1b7
movq 0x8(%rsp), %rdi
movq 0x38(%rsp), %rsi
addq $0x20, %rsi
callq 0x115d6
movq %rax, %r13
leaq 0x10(%rsp), %r15
leaq 0x40(%rsp), %rsi
movq %r15, %rdi
xorl %edx, %edx
callq 0xfa82
leaq 0x20(%r13), %rdi
movq (%r15), %rsi
movq 0x8(%r15), %rdx
callq 0x50e0
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0xcd30
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x5390
movq 0x8(%rsp), %rdi
movl $0x4, %esi
movq %r13, %rdx
callq 0x11230
movq (%r13), %rax
movq %r13, %rdi
callq *0x18(%rax)
movq 0x8(%rsp), %rdi
addq %rax, 0x308(%rdi)
movq (%r12), %rax
movq %rax, 0x90(%rsp)
movq 0x8(%r12), %rax
movq %rax, 0x98(%rsp)
testq %rax, %rax
je 0xcecd
movq 0x14237(%rip), %rcx     # 0x20fb8
cmpb $0x0, (%rcx)
je 0xcec9
incl 0x8(%rax)
jmp 0xcecd
movl %ebp, %esi
movq %rbx, %rdx
callq 0x11230
movq 0x30(%rsp), %r12
jmp 0xccaa
lock
incl 0x8(%rax)
leaq 0x10(%rsp), %rdi
leaq 0xa0(%rsp), %rcx
movq %r13, %rsi
movl %ebp, %edx
callq 0xf6cc
movq %r13, %rdi
movl %eax, %esi
callq 0x11230
movq 0xa8(%rsp), %rdi
testq %rdi, %rdi
je 0xcddd
callq 0x6614
addl $0x2, %ebx
jmp 0xc9e6
lock
incl 0x8(%rax)
movq 0x28(%r12), %r15
addq $0x30, %r12
leaq 0xd0(%rsp), %rdi
movq %r12, %rsi
callq 0xa23e
movb $0x1, %r14b
movq 0x8(%rsp), %r8
leaq 0xb0(%rsp), %rsi
leaq 0xd0(%rsp), %rcx
movq %r13, %rdi
movq %r15, %rdx
movl $0x1, %r9d
callq 0xf1b8
movq 0x30(%rsp), %r12
xorl %r14d, %r14d
movq %rbp, %rdi
movl $0x5, %esi
movq %r13, %rdx
callq 0x11230
movq 0xd0(%rsp), %rdi
testq %rdi, %rdi
je 0xce60
movq 0xe0(%rsp), %rsi
subq %rdi, %rsi
callq 0x5390
addl $0x2, %ebx
movq 0xb8(%rsp), %rdi
jmp 0xcea1
lock
incl 0x8(%rax)
leaq 0x80(%rsp), %rsi
callq 0xc16a
addl $0x2, %ebx
movq 0x88(%rsp), %rdi
jmp 0xcea1
lock
incl 0x8(%rax)
leaq 0x70(%rsp), %rsi
callq 0xc16a
addl $0x2, %ebx
movq 0x78(%rsp), %rdi
testq %rdi, %rdi
je 0xc9e6
callq 0x6614
jmp 0xc9e6
lock
incl 0x8(%rax)
leaq 0x60(%rsp), %rsi
callq 0xc16a
movq 0x68(%rsp), %rdi
jmp 0xcee2
lock
incl 0x8(%rax)
leaq 0x90(%rsp), %rsi
callq 0xc16a
movq 0x98(%rsp), %rdi
testq %rdi, %rdi
je 0xccaa
callq 0x6614
jmp 0xccaa
xorl %edx, %edx
cmpq %rdx, %rcx
jb 0xcf70
movq 0x8(%rsp), %rdi
movq 0x510(%rdi), %rax
subq 0x508(%rdi), %rax
movq 0xc8(%rsp), %rcx
sarq $0x4, %rcx
sarq $0x4, %rax
incq %rcx
cmpq %rcx, %rax
jne 0xcf8f
callq 0x11276
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x51b0
movq %rax, %r14
leaq 0xad51(%rip), %rsi      # 0x17ca3
movq %rax, %rdi
callq 0x5150
movq 0x1408f(%rip), %rsi     # 0x20ff0
movq 0x14048(%rip), %rdx     # 0x20fb0
movq %r14, %rdi
callq 0x55d0
leaq 0xad47(%rip), %rdi      # 0x17cbe
leaq 0xac8d(%rip), %rsi      # 0x17c0b
leaq 0xac8c(%rip), %rcx      # 0x17c11
movl $0x128, %edx            # imm = 0x128
callq 0x5210
leaq 0xad4c(%rip), %rdi      # 0x17ce2
leaq 0xac6e(%rip), %rsi      # 0x17c0b
leaq 0xac6d(%rip), %rcx      # 0x17c11
movl $0x129, %edx            # imm = 0x129
callq 0x5210
movl $0x10, %edi
callq 0x51b0
movq %rax, %r14
leaq 0xacc3(%rip), %rsi      # 0x17c85
movq %rax, %rdi
callq 0x5150
jmp 0xcf5a
movl $0x10, %edi
callq 0x51b0
movq %rax, %r14
leaq 0xaca5(%rip), %rsi      # 0x17c85
movq %rax, %rdi
callq 0x5150
jmp 0xcf5a
leaq 0xacca(%rip), %rdi      # 0x17cbe
leaq 0xac10(%rip), %rsi      # 0x17c0b
leaq 0xac0f(%rip), %rcx      # 0x17c11
movl $0x109, %edx            # imm = 0x109
callq 0x5210
movl $0x10, %edi
callq 0x51b0
movq %rax, %r14
leaq 0xac76(%rip), %rsi      # 0x17c96
movq %rax, %rdi
callq 0x5150
jmp 0xcf5a
movl $0x10, %edi
callq 0x51b0
movq %rax, %r14
leaq 0xac55(%rip), %rsi      # 0x17c96
movq %rax, %rdi
callq 0x5150
jmp 0xcf5a
movl $0x10, %edi
callq 0x51b0
movq %rax, %r14
leaq 0xac34(%rip), %rsi      # 0x17c96
movq %rax, %rdi
callq 0x5150
jmp 0xcf5a
movl $0x10, %edi
callq 0x51b0
movq %rax, %r14
leaq 0xac02(%rip), %rsi      # 0x17c85
movq %rax, %rdi
callq 0x5150
jmp 0xcf5a
movl $0x10, %edi
callq 0x51b0
movq %rax, %r14
leaq 0xabd1(%rip), %rsi      # 0x17c75
movq %rax, %rdi
callq 0x5150
jmp 0xcf5a
movl $0x10, %edi
callq 0x51b0
movq %rax, %r14
leaq 0xabb0(%rip), %rsi      # 0x17c75
movq %rax, %rdi
callq 0x5150
jmp 0xcf5a
movl $0x10, %edi
callq 0x51b0
movq %rax, %r14
leaq 0xab8f(%rip), %rsi      # 0x17c75
movq %rax, %rdi
callq 0x5150
jmp 0xcf5a
movl $0x10, %edi
callq 0x51b0
movq %rax, %r14
leaq 0xab6e(%rip), %rsi      # 0x17c75
movq %rax, %rdi
callq 0x5150
jmp 0xcf5a
movl $0x10, %edi
callq 0x51b0
movq %rax, %r14
leaq 0xab4d(%rip), %rsi      # 0x17c75
movq %rax, %rdi
callq 0x5150
jmp 0xcf5a
movl $0x10, %edi
callq 0x51b0
movq %rax, %r14
leaq 0xab2c(%rip), %rsi      # 0x17c75
movq %rax, %rdi
callq 0x5150
jmp 0xcf5a
movl $0x10, %edi
callq 0x51b0
movq %rax, %r14
leaq 0xab0b(%rip), %rsi      # 0x17c75
movq %rax, %rdi
callq 0x5150
jmp 0xcf5a
leaq 0xaa7e(%rip), %rdi      # 0x17bfc
leaq 0xaa86(%rip), %rsi      # 0x17c0b
leaq 0xaa85(%rip), %rcx      # 0x17c11
movl $0x44, %edx
callq 0x5210
movl $0x10, %edi
callq 0x51b0
movq %rax, %r14
leaq 0xab29(%rip), %rsi      # 0x17cd3
movq %rax, %rdi
callq 0x5150
jmp 0xcf5a
movl $0x10, %edi
callq 0x51b0
movq %rax, %r14
leaq 0xaa90(%rip), %rsi      # 0x17c5b
movq %rax, %rdi
callq 0x5150
jmp 0xcf5a
jmp 0xd2eb
jmp 0xd2eb
movq %rax, %rbx
movq 0x98(%rsp), %rdi
jmp 0xd2df
movq %rax, %rbx
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0xd2f6
movq 0x20(%rsp), %rsi
incq %rsi
jmp 0xd2cd
jmp 0xd2eb
jmp 0xd2eb
jmp 0xd2eb
jmp 0xd2eb
jmp 0xd2eb
jmp 0xd2eb
jmp 0xd2eb
jmp 0xd2eb
jmp 0xd2eb
movq %rax, %rbx
movq 0x68(%rsp), %rdi
jmp 0xd2df
jmp 0xd2eb
jmp 0xd2eb
jmp 0xd2eb
jmp 0xd2eb
movq %rax, %rbx
movb $0x1, %r14b
jmp 0xd2ae
movq %rax, %rbx
movq 0x88(%rsp), %rdi
jmp 0xd2df
jmp 0xd284
movq %rax, %rbx
movq 0x78(%rsp), %rdi
jmp 0xd2df
movq %rax, %rbx
movl $0x68, %esi
jmp 0xd2ca
movq %rax, %rbx
movq 0xd0(%rsp), %rdi
testq %rdi, %rdi
je 0xd2ae
movq 0xe0(%rsp), %rsi
subq %rdi, %rsi
callq 0x5390
movq 0xb8(%rsp), %rdi
testq %rdi, %rdi
je 0xd2c0
callq 0x6614
testb %r14b, %r14b
je 0xd2f6
movl $0x48, %esi
movq %r13, %rdi
callq 0x5390
jmp 0xd2f6
movq %rax, %rbx
movq 0xa8(%rsp), %rdi
testq %rdi, %rdi
je 0xd2f6
callq 0x6614
jmp 0xd2f6
movq %rax, %rbx
movq %r14, %rdi
callq 0x5280
movq %rbx, %rdi
callq 0x55e0