// File: /workspace/github_cpp_makefile_star2_O2/kipa00[P]AplusB-mc/interpreter/main.cpp
// Function: main
int main(int argc, char *argv[]) {
	int ban_block = 0, tick_limit = -1;
	int parse_status = 0;
	string fn = "";
	for (int i=1; i<argc; ++i) {
		string now_argv = argv[i];
		if (now_argv == "--max-tick") {
			parse_status = 1;
		} else if (now_argv == "--ban-block") {
			parse_status = 2;
		} else {
			if (parse_status == 0) {
				if (fn == "") fn = argv[i];
				else {
					help(argv[0]);
					return -1;
				}
			} else if (parse_status == 1) {
				if (sscanf(now_argv.c_str(), "%d", &tick_limit) != 1 || tick_limit < 0) {
					help(argv[0]);
					return -1;
				}
				parse_status = 0;
			} else if (parse_status == 2) {
				if (now_argv == "wire") ban_block |= 2;
				else if (now_argv == "torch") ban_block |= 4;
				else if (now_argv == "repeater") ban_block |= 120;
				else if (now_argv == "comparator") ban_block |= 384;
				else {
					help(argv[0]);
					return -1;
				}
				parse_status = 0;
			}
		}
	}
	if (parse_status != 0 || fn == "") {
		help(argv[0]);
		return -1;
	}
	bytereader bs(argv[1]);
	vector<node *> graph;
	byte b;
	graph.push_back(nullptr);
	while ((b = bs.read_byte()) != 255) {
		node *n = nullptr;
		if (ban_block & (1 << (b >> 4))) {
			fprintf(stderr, "stopping execution from error: banned block used\n");
			return -2;
		}
		switch (b >> 4) {
			case 1: // redstone wire
				n = new wire;
				break;
			case 2: // redstone torch
				n = new torch;
				break;
			case 3:
			case 4:
			case 5:
			case 6: // repeater
				n = new repeater((b >> 4) - 2);
				break;
			case 7: // comparator
				n = new comparator;
				break;
			case 8: // subtractor
				n = new subtractor;
				break;
			case 9: // lever
				n = new lever;
				break;
			case 10: // lamp
				n = new lamp;
				break;
		}
		switch (b >> 4) {
			case 2: // redstone torch
			case 9: // lever
			case 10: // lamp
				{
					int u;
					while ((u = bs.read_int()) >= 0) {
						n->input.push_back(u);
					}
				}
				break;
			case 1: // redstone wire
			case 3:
			case 4:
			case 5:
			case 6: // repeater
			case 7: // comparator
			case 8: // subtractor
				for (int i=0; i<2; ++i) {
					int u;
					while ((u = bs.read_int()) >= 0) {
						n->input.push_back(u);
					}
					if (i == 0) n->input.push_back(-1);
				}
				break;
		}
		if (!n) {
			fprintf(stderr, "stopping execution from serious error: corrupted file!\n");
			return -2;
		}
		{
			int u;
			while ((u = bs.read_int()) >= 0) {
				n->need_update.push_back(u);
			}
		}
		n->power = b & 15;
		graph.push_back(n);
	}
	vector<int> input[16], output;
	int input_count = 0;
	{
		int u;
		while ((u = bs.read_int()) >= 0) {
			do {
				input[input_count].push_back(u);
			} while ((u = bs.read_int()) >= 0);
			++input_count;
		}
		while ((u = bs.read_int()) >= 0) {
			output.push_back(u);
		}
	}
	queue<int> temp[5], *update[5];
	for (int i=0; i<5; ++i) {
		update[i] = &temp[i];
	}
	for (int i=0; i<input_count; ++i) {
		i64 t;
		scanf("%lld", &t);
		for (const auto &node_idx : input[i]) {
			lever *n = (lever *)graph[node_idx];
			if (n->set_as(t & 1)) {
				for (const int &x : n->need_update) {
					update[graph[x]->delay]->push(x);
				}
			}
			t >>= 1;
		}
	}
	int tick = 0, last_updated_tick = 0;
	mt19937 gen(std::chrono::steady_clock::now().time_since_epoch().count());
	while (!update[0]->empty() || !update[1]->empty() || !update[2]->empty() || !update[3]->empty() || !update[4]->empty()) {
		if (tick_limit >= 0 && tick > tick_limit + 4) {
			fprintf(stderr, "stopping execution from error: tick limit exceeded\n");
			return -2;
		}
		{
			vector<int> temp;
			while (!update[0]->empty()) {
				temp.push_back(update[0]->front());
				update[0]->pop();
			}
			shuffle(temp.begin(), temp.end(), gen);
			for (const int &x : temp) {
				update[0]->push(x);
			}
		}
		while (!update[0]->empty()) {
			const int f = update[0]->front();
			update[0]->pop();
			node *now_node = graph[f];
			int a = -1, b = -1;
			for (const int &other : now_node->input) {
				if (other >= 0) {
					a = std::max(a, graph[other]->power);
				} else {
					b = std::max(a, 0);
					a = 0;
				}
			}
			bool result = false;
			if (b < 0) {
				result = now_node->update(std::max(a, 0));
			} else {
				result = now_node->update(b, a);
			}
#ifdef UPDATE_DEBUG
			fprintf(stderr, "updated node %d, now strength = %d, redstone update = %s\n", f, now_node->power, result ? "true" : "false");
#endif
			if (result) {
				for (const int &other : now_node->need_update) {
					update[graph[other]->delay]->push(other);
				}
				for (const int &other : now_node->input) {
					if (other >= 0) {
						update[graph[other]->delay]->push(other);
					}
				}
				last_updated_tick = tick;
			}
		}
		++tick;
#ifdef UPDATE_DEBUG
		puts("===");
#endif
		{
			auto temp = update[0];
			update[0] = update[1];
			update[1] = update[2];
			update[2] = update[3];
			update[3] = update[4];
			update[4] = temp;
		}
	}
	if (tick_limit >= 0 && last_updated_tick > tick_limit) {
		fprintf(stderr, "stopping execution from error: tick limit exceeded\n");
		return -2;
	}
	u64 t = 0;
	int i;
	for (i=0; i<output.size(); ++i) {
		t |= (graph[output[i]]->power ? 1 : 0) << i;
	}
	printf("%llu\n", t);
	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1808, %rsp           # imm = 0x1808
movq %rsi, %rbx
movl %edi, %ebp
leaq 0x1c(%rsp), %rax
orl $-0x1, (%rax)
leaq 0x2e02(%rip), %rsi      # 0x51d9
leaq 0xd0(%rsp), %rdi
leaq 0x480(%rsp), %r13
movq %r13, %rdx
callq 0x2ef0
movslq %ebp, %r12
xorl %ebp, %ebp
pushq $0x1
popq %r15
movl $0x0, 0xc(%rsp)
movl $0x0, 0x10(%rsp)
cmpq %r12, %r15
jge 0x25e6
movq (%rbx,%r15,8), %rsi
movq %r13, %rdi
leaq 0x170(%rsp), %rdx
callq 0x2ef0
movq %r13, %rdi
leaq 0x2d08(%rip), %rsi      # 0x5137
callq 0x2f2b
movb $0x1, %r14b
testb %al, %al
je 0x243f
pushq $0x1
jmp 0x2454
movq %r13, %rdi
leaq 0x2cf9(%rip), %rsi      # 0x5142
callq 0x2f2b
testb %al, %al
je 0x246a
pushq $0x2
popq %rbp
movq %r13, %rdi
callq 0x20a0
incq %r15
testb %r14b, %r14b
jne 0x2408
jmp 0x2639
cmpl $0x1, %ebp
je 0x24a6
testl %ebp, %ebp
jne 0x2502
leaq 0xd0(%rsp), %rbp
movq %rbp, %rdi
leaq 0x2d50(%rip), %rsi      # 0x51d9
callq 0x2f2b
testb %al, %al
je 0x251f
movq (%rbx,%r15,8), %rsi
movq %rbp, %rdi
xorl %ebp, %ebp
callq 0x2220
jmp 0x2455
movq 0x480(%rsp), %rdi
xorl %ebp, %ebp
leaq 0x2c97(%rip), %rsi      # 0x514e
leaq 0x1c(%rsp), %rdx
xorl %eax, %eax
callq 0x2110
cmpl $0x1, %eax
jne 0x24cf
cmpl $0x0, 0x1c(%rsp)
jns 0x2455
movq (%rbx), %rsi
leaq 0x130(%rsp), %r14
movq %r14, %rdi
leaq 0x170(%rsp), %rdx
callq 0x2ef0
movq %r14, %rdi
callq 0x233c
movq %r14, %rdi
callq 0x20a0
xorl %r14d, %r14d
pushq $0x1
popq %rbp
jmp 0x254f
movq %r13, %rdi
leaq 0x2c45(%rip), %rsi      # 0x5151
callq 0x2f2b
testb %al, %al
je 0x255b
orl $0x2, 0xc(%rsp)
jmp 0x25aa
movq (%rbx), %rsi
leaq 0x150(%rsp), %r14
movq %r14, %rdi
leaq 0x170(%rsp), %rdx
callq 0x2ef0
movq %r14, %rdi
callq 0x233c
movq %r14, %rdi
callq 0x20a0
xorl %r14d, %r14d
xorl %ebp, %ebp
pushq $-0x1
popq %rax
movl %eax, 0x10(%rsp)
jmp 0x2455
movq %r13, %rdi
leaq 0x2bf1(%rip), %rsi      # 0x5156
callq 0x2f2b
testb %al, %al
je 0x2575
orl $0x4, 0xc(%rsp)
jmp 0x25aa
movq %r13, %rdi
leaq 0x2bdd(%rip), %rsi      # 0x515c
callq 0x2f2b
testb %al, %al
je 0x258f
orl $0x78, 0xc(%rsp)
jmp 0x25aa
movq %r13, %rdi
leaq 0x2bcc(%rip), %rsi      # 0x5165
callq 0x2f2b
testb %al, %al
je 0x25b1
orl $0x180, 0xc(%rsp)       # imm = 0x180
xorl %ebp, %ebp
jmp 0x2455
movq (%rbx), %rsi
leaq 0x110(%rsp), %r14
movq %r14, %rdi
leaq 0x170(%rsp), %rdx
callq 0x2ef0
movq %r14, %rdi
callq 0x233c
movq %r14, %rdi
callq 0x20a0
xorl %r14d, %r14d
pushq $0x2
jmp 0x24ff
testl %ebp, %ebp
jne 0x2602
leaq 0x2be8(%rip), %rsi      # 0x51d9
leaq 0xd0(%rsp), %rdi
callq 0x2f2b
testb %al, %al
je 0x265c
movq (%rbx), %rsi
leaq 0xf0(%rsp), %rdi
leaq 0x480(%rsp), %rdx
callq 0x2ef0
leaq 0xf0(%rsp), %rbx
movq %rbx, %rdi
callq 0x233c
movq %rbx, %rdi
callq 0x20a0
pushq $-0x1
popq %rax
movl %eax, 0x10(%rsp)
leaq 0xd0(%rsp), %rdi
callq 0x20a0
movl 0x10(%rsp), %eax
addq $0x1808, %rsp           # imm = 0x1808
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x8(%rbx), %rsi
leaq 0xb8(%rsp), %rdi
callq 0x3d80
xorps %xmm0, %xmm0
leaq 0x20(%rsp), %rdi
movaps %xmm0, (%rdi)
andq $0x0, 0x10(%rdi)
leaq 0x480(%rsp), %rsi
andq $0x0, (%rsi)
callq 0x31e8
leaq 0xb8(%rsp), %r14
leaq 0x170(%rsp), %rbx
leaq 0x300(%rsp), %rbp
movq %r14, %rdi
callq 0x3e12
cmpb $-0x1, %al
je 0x2888
andq $0x0, 0x480(%rsp)
movzbl %al, %r12d
movl %r12d, %r13d
shrl $0x4, %r13d
movl 0xc(%rsp), %eax
btl %r13d, %eax
jb 0x2d88
leal -0x1(%r13), %eax
cmpl $0x9, %eax
ja 0x2829
leaq 0x2934(%rip), %rcx      # 0x5020
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
pushq $0x48
popq %rdi
callq 0x2130
movq %rax, %r15
addl $-0x2, %r13d
movq %rax, %rdi
movl %r13d, %esi
callq 0x3f2c
movq %r15, 0x480(%rsp)
xorl %r15d, %r15d
cmpl $0x2, %r15d
je 0x2829
movq %r14, %rdi
callq 0x3e6a
movl %eax, 0x170(%rsp)
testl %eax, %eax
js 0x274d
movq 0x480(%rsp), %rdi
addq $0x8, %rdi
movq %rbx, %rsi
callq 0x2f38
jmp 0x2724
testl %r15d, %r15d
jne 0x276e
movq 0x480(%rsp), %rdi
addq $0x8, %rdi
orl $-0x1, 0x300(%rsp)
movq %rbp, %rsi
callq 0x34bc
incl %r15d
jmp 0x271a
pushq $0x40
popq %rdi
callq 0x2130
movq %rax, %r15
movq %rax, %rdi
callq 0x402c
jmp 0x27f8
pushq $0x40
popq %rdi
callq 0x2130
movq %rax, %r15
movq %rax, %rdi
callq 0x3e9c
jmp 0x270f
pushq $0x40
popq %rdi
callq 0x2130
movq %rax, %r15
movq %rax, %rdi
callq 0x3ef0
jmp 0x27f8
pushq $0x40
popq %rdi
callq 0x2130
movq %rax, %r15
movq %rax, %rdi
callq 0x3fb6
jmp 0x270f
pushq $0x40
popq %rdi
callq 0x2130
movq %rax, %r15
movq %rax, %rdi
callq 0x3f7c
jmp 0x270f
pushq $0x40
popq %rdi
callq 0x2130
movq %rax, %r15
movq %rax, %rdi
callq 0x3ff2
movq %r15, 0x480(%rsp)
movq %r14, %rdi
callq 0x3e6a
movl %eax, 0x170(%rsp)
testl %eax, %eax
js 0x2829
movq 0x480(%rsp), %rdi
addq $0x8, %rdi
movq %rbx, %rsi
callq 0x2f38
jmp 0x2800
cmpq $0x0, 0x480(%rsp)
je 0x2d9d
movq %r14, %rdi
callq 0x3e6a
movl %eax, 0x170(%rsp)
testl %eax, %eax
js 0x2861
movq 0x480(%rsp), %rdi
addq $0x20, %rdi
movq %rbx, %rsi
callq 0x2f38
jmp 0x2838
andl $0xf, %r12d
movq 0x480(%rsp), %rax
movl %r12d, 0x38(%rax)
leaq 0x20(%rsp), %rdi
leaq 0x480(%rsp), %rsi
callq 0x2f56
jmp 0x26a6
leaq 0x300(%rsp), %rdi
xorl %r13d, %r13d
movl $0x180, %edx            # imm = 0x180
xorl %esi, %esi
callq 0x20d0
andq $0x0, 0xa0(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x90(%rsp)
leaq 0xb8(%rsp), %r14
leaq 0x480(%rsp), %r15
movq %r14, %rdi
callq 0x3e6a
movl %eax, 0x480(%rsp)
testl %eax, %eax
js 0x2908
imulq $0x18, %r13, %rax
leaq (%rsp,%rax), %r12
addq $0x300, %r12            # imm = 0x300
movq %r12, %rdi
movq %r15, %rsi
callq 0x2f38
movq %r14, %rdi
callq 0x3e6a
movl %eax, 0x480(%rsp)
testl %eax, %eax
jns 0x28e5
incq %r13
jmp 0x28c3
leaq 0xb8(%rsp), %r14
leaq 0x90(%rsp), %r15
leaq 0x480(%rsp), %r12
movq %r14, %rdi
callq 0x3e6a
movl %eax, 0x480(%rsp)
testl %eax, %eax
js 0x2940
movq %r15, %rdi
movq %r12, %rsi
callq 0x2f38
jmp 0x2920
xorl %r14d, %r14d
leaq (%rsp,%r14), %rdi
addq $0x170, %rdi            # imm = 0x170
callq 0x2f74
addq $0x50, %r14
cmpq $0x190, %r14            # imm = 0x190
jne 0x2943
xorl %eax, %eax
cmpq $0x5, %rax
je 0x2976
movq %rbx, 0x40(%rsp,%rax,8)
incq %rax
addq $0x50, %rbx
jmp 0x2962
movl %r13d, %r13d
xorl %ebp, %ebp
cmpq %r13, %rbp
je 0x2a1d
leaq 0x284f(%rip), %rdi      # 0x51da
leaq 0x480(%rsp), %rsi
xorl %eax, %eax
callq 0x2150
imulq $0x18, %rbp, %rax
movq 0x300(%rsp,%rax), %rbx
movq 0x308(%rsp,%rax), %r14
cmpq %r14, %rbx
je 0x2a15
movslq (%rbx), %rax
movq 0x20(%rsp), %rcx
movq (%rcx,%rax,8), %r12
movl 0x480(%rsp), %esi
andl $0x1, %esi
movq %r12, %rdi
callq 0x4014
testb %al, %al
je 0x2a07
movq 0x20(%r12), %r15
movq 0x28(%r12), %r12
cmpq %r12, %r15
je 0x2a07
movslq (%r15), %rax
movq 0x20(%rsp), %rcx
movq (%rcx,%rax,8), %rax
movslq 0x3c(%rax), %rax
movq 0x40(%rsp,%rax,8), %rdi
movq %r15, %rsi
callq 0x3844
addq $0x4, %r15
jmp 0x29df
sarq 0x480(%rsp)
addq $0x4, %rbx
jmp 0x29ae
incq %rbp
jmp 0x297b
callq 0x2190
leaq 0x480(%rsp), %rdi
movq %rax, %rsi
callq 0x3a78
movq 0x40(%rsp), %rbx
movq 0x48(%rsp), %rcx
movq 0x50(%rsp), %r14
movq 0x58(%rsp), %r12
movq 0x60(%rsp), %rax
leaq 0x70(%rsp), %r15
pushq $-0x1
popq %rbp
xorl %r13d, %r13d
movl $0x0, 0xc(%rsp)
movq %rcx, 0x10(%rsp)
movq %rax, 0x38(%rsp)
movq 0x30(%rbx), %rax
cmpq 0x10(%rbx), %rax
jne 0x2aaa
movq 0x10(%rsp), %rdx
movq 0x30(%rdx), %rcx
cmpq 0x10(%rdx), %rcx
jne 0x2aaa
movq 0x30(%r14), %rcx
cmpq 0x10(%r14), %rcx
jne 0x2aaa
movq 0x30(%r12), %rcx
cmpq 0x10(%r12), %rcx
jne 0x2aaa
movq 0x38(%rsp), %rdx
movq 0x30(%rdx), %rcx
cmpq 0x10(%rdx), %rcx
je 0x2c8c
movl 0x1c(%rsp), %ecx
testl %ecx, %ecx
setns %dl
addl $0x4, %ecx
cmpl %ecx, 0xc(%rsp)
setg %cl
andb %dl, %cl
cmpb $0x1, %cl
je 0x2ce6
xorps %xmm0, %xmm0
movaps %xmm0, 0x70(%rsp)
andq $0x0, 0x80(%rsp)
movq 0x10(%rbx), %rsi
cmpq %rsi, %rax
je 0x2af8
movq %r15, %rdi
callq 0x2f38
movq %rbx, %rdi
callq 0x3ab0
movq 0x30(%rbx), %rax
jmp 0x2ad9
movq %r12, 0xa8(%rsp)
movq %r14, 0xb0(%rsp)
movq 0x70(%rsp), %rdi
movq 0x78(%rsp), %rsi
leaq 0x480(%rsp), %rdx
callq 0x2f8f
movq 0x70(%rsp), %r12
movq 0x78(%rsp), %r14
cmpq %r14, %r12
je 0x2b3f
movq %rbx, %rdi
movq %r12, %rsi
callq 0x3844
addq $0x4, %r12
jmp 0x2b29
movq %r15, %rdi
callq 0x3676
movq 0x10(%rbx), %rax
cmpq %rax, 0x30(%rbx)
je 0x2c4a
movslq (%rax), %r14
movq %rbx, %rdi
callq 0x3ab0
movq 0x20(%rsp), %rax
movq (%rax,%r14,8), %r12
movq 0x8(%r12), %rcx
movq 0x10(%r12), %rdi
movl %ebp, %edx
movl %ebp, %esi
cmpq %rdi, %rcx
je 0x2ba8
movslq (%rcx), %r8
testq %r8, %r8
js 0x2b95
movq (%rax,%r8,8), %r8
movl 0x38(%r8), %r8d
cmpl %r8d, %edx
cmovlel %r8d, %edx
jmp 0x2ba2
xorl %r8d, %r8d
testl %edx, %edx
movl %edx, %esi
cmovlel %r8d, %esi
xorl %edx, %edx
addq $0x4, %rcx
jmp 0x2b77
testl %esi, %esi
js 0x2bb8
movq (%r12), %rax
movq %r12, %rdi
callq *0x8(%rax)
jmp 0x2bcd
testl %edx, %edx
movl $0x0, %eax
cmovlel %eax, %edx
movq (%r12), %rax
movq %r12, %rdi
movl %edx, %esi
callq *(%rax)
testb %al, %al
je 0x2b47
movq 0x20(%r12), %r13
movq 0x28(%r12), %r14
cmpq %r14, %r13
je 0x2c08
movslq (%r13), %rax
movq 0x20(%rsp), %rcx
movq (%rcx,%rax,8), %rax
movslq 0x3c(%rax), %rax
movq 0x40(%rsp,%rax,8), %rdi
movq %r13, %rsi
callq 0x3844
addq $0x4, %r13
jmp 0x2bdf
movq 0x8(%r12), %r13
movq 0x10(%r12), %r12
cmpq %r12, %r13
je 0x2c40
movslq (%r13), %rax
testq %rax, %rax
js 0x2c3a
movq 0x20(%rsp), %rcx
movq (%rcx,%rax,8), %rax
movslq 0x3c(%rax), %rax
movq 0x40(%rsp,%rax,8), %rdi
movq %r13, %rsi
callq 0x3844
addq $0x4, %r13
jmp 0x2c12
movl 0xc(%rsp), %r13d
jmp 0x2b47
incl 0xc(%rsp)
movq 0x10(%rsp), %rdx
movq %rdx, 0x40(%rsp)
movq 0xb0(%rsp), %rcx
movq %rcx, 0x48(%rsp)
movq 0xa8(%rsp), %r14
movq %r14, 0x50(%rsp)
movq 0x38(%rsp), %r12
movq %r12, 0x58(%rsp)
movq %rbx, 0x60(%rsp)
movq %rbx, %rax
movq %rdx, %rbx
jmp 0x2a5e
movl 0x1c(%rsp), %eax
testl %eax, %eax
setns %cl
cmpl %eax, %r13d
setg %al
testb %al, %cl
jne 0x2ce6
movq 0x90(%rsp), %rax
movq 0x98(%rsp), %rdx
subq %rax, %rdx
sarq $0x2, %rdx
movq 0x20(%rsp), %rdi
xorl %ecx, %ecx
xorl %esi, %esi
cmpq %rcx, %rdx
je 0x2d0b
movslq (%rax,%rcx,4), %r8
movq (%rdi,%r8,8), %r8
xorl %r9d, %r9d
cmpl $0x0, 0x38(%r8)
setne %r9b
shll %cl, %r9d
movslq %r9d, %r8
orq %r8, %rsi
incq %rcx
jmp 0x2cbf
movq 0x52f3(%rip), %rax      # 0x7fe0
movq (%rax), %rcx
leaq 0x24e8(%rip), %rdi      # 0x51df
pushq $0x33
popq %rsi
pushq $0x1
popq %rdx
callq 0x2230
pushq $-0x2
popq %rax
movl %eax, 0x10(%rsp)
jmp 0x2d21
leaq 0x2501(%rip), %rdi      # 0x5213
movl $0x0, 0x10(%rsp)
xorl %eax, %eax
callq 0x2040
movl $0x140, %ebx            # imm = 0x140
leaq (%rsp,%rbx), %rdi
addq $0x170, %rdi            # imm = 0x170
callq 0x30c6
addq $-0x50, %rbx
cmpq $-0x50, %rbx
jne 0x2d26
leaq 0x90(%rsp), %rdi
callq 0x3676
movl $0x168, %ebx            # imm = 0x168
leaq (%rsp,%rbx), %rdi
addq $0x300, %rdi            # imm = 0x300
callq 0x3676
addq $-0x18, %rbx
cmpq $-0x18, %rbx
jne 0x2d52
leaq 0x20(%rsp), %rdi
callq 0x31b4
leaq 0xb8(%rsp), %rdi
callq 0x3ddc
jmp 0x2639
movq 0x5251(%rip), %rax      # 0x7fe0
movq (%rax), %rcx
leaq 0x23d7(%rip), %rdi      # 0x5170
pushq $0x31
jmp 0x2db0
movq 0x523c(%rip), %rax      # 0x7fe0
movq (%rax), %rcx
leaq 0x23f4(%rip), %rdi      # 0x51a2
pushq $0x37
popq %rsi
pushq $0x1
popq %rdx
callq 0x2230
pushq $-0x2
popq %rax
movl %eax, 0x10(%rsp)
jmp 0x2d6c
jmp 0x2e6e
jmp 0x2de7
jmp 0x2ec0
jmp 0x2e3e
jmp 0x2dda
jmp 0x2dda
jmp 0x2dda
jmp 0x2dda
jmp 0x2dda
movq %rax, %rbx
pushq $0x40
jmp 0x2e01
jmp 0x2e3e
jmp 0x2de7
jmp 0x2de7
movq %rax, %rbx
leaq 0x480(%rsp), %rdi
callq 0x20a0
jmp 0x2eda
movq %rax, %rbx
pushq $0x48
popq %rsi
movq %r15, %rdi
callq 0x2140
jmp 0x2ec3
movq %rax, %rbx
testq %r14, %r14
je 0x2e91
leaq 0x120(%rsp), %r15
leaq (%r15,%r14), %rdi
callq 0x30c6
addq $-0x50, %r14
jne 0x2e1f
jmp 0x2e91
jmp 0x2e50
jmp 0x2ec0
jmp 0x2ec0
jmp 0x2e50
movq %rax, %rbx
jmp 0x2eda
jmp 0x2ec0
jmp 0x2e5f
jmp 0x2ec0
jmp 0x2e6e
jmp 0x2ec0
movq %rax, %rbx
jmp 0x2e91
jmp 0x2e6e
jmp 0x2e6e
jmp 0x2e6e
jmp 0x2e6e
jmp 0x2e5f
movq %rax, %rbx
leaq 0x70(%rsp), %rdi
callq 0x3676
jmp 0x2e71
movq %rax, %rbx
movl $0x140, %r14d           # imm = 0x140
leaq (%rsp,%r14), %rdi
addq $0x170, %rdi            # imm = 0x170
callq 0x30c6
addq $-0x50, %r14
cmpq $-0x50, %r14
jne 0x2e77
leaq 0x90(%rsp), %rdi
callq 0x3676
movl $0x168, %r14d           # imm = 0x168
leaq (%rsp,%r14), %rdi
addq $0x300, %rdi            # imm = 0x300
callq 0x3676
addq $-0x18, %r14
cmpq $-0x18, %r14
jne 0x2ea4
jmp 0x2ec3
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x31b4
leaq 0xb8(%rsp), %rdi
callq 0x3ddc
leaq 0xd0(%rsp), %rdi
callq 0x20a0
movq %rbx, %rdi
callq 0x2200
nop