// File: /workspace/github_cpp_makefile_star2_O3/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 $0x17f8, %rsp           # imm = 0x17F8
movq %rsi, %r12
movl %edi, %ebx
movl $0xffffffff, 0x10(%rsp) # imm = 0xFFFFFFFF
leaq 0xb8(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x2d0c(%rip), %rdx      # 0x5249
leaq 0xa8(%rsp), %rdi
movq %rdx, %rsi
callq 0x3606
movl $0x0, 0x8(%rsp)
cmpl $0x2, %ebx
jl 0x27f9
leaq 0x480(%rsp), %rbp
movl %ebx, %eax
movq %rax, 0x58(%rsp)
movq $0x0, 0x18(%rsp)
movl $0x1, %r15d
movl $0x0, 0x8(%rsp)
xorl %r13d, %r13d
movq (%r12,%r15,8), %rsi
leaq 0x470(%rsp), %rbx
movq %rbx, %rdi
leaq 0x2e0(%rsp), %rdx
callq 0x33f4
movq %rbx, %rdi
leaq 0x2bfa(%rip), %rsi      # 0x51a7
callq 0x2060
movb $0x1, %r14b
testl %eax, %eax
je 0x26b3
movq %rbx, %rdi
leaq 0x2beb(%rip), %rsi      # 0x51b2
callq 0x2060
testl %eax, %eax
je 0x27b5
cmpl $0x1, %r13d
je 0x2646
testl %r13d, %r13d
jne 0x26c0
leaq 0xa8(%rsp), %rdi
leaq 0x2c57(%rip), %rsi      # 0x5249
callq 0x2060
testl %eax, %eax
jne 0x273b
movq (%r12,%r15,8), %rbx
movq %r12, %rbp
movq 0xb0(%rsp), %r12
movq %rbx, %rdi
callq 0x2090
xorl %r13d, %r13d
movb $0x1, %r14b
leaq 0xa8(%rsp), %rdi
xorl %esi, %esi
movq %r12, %rdx
movq %rbp, %r12
leaq 0x480(%rsp), %rbp
movq %rbx, %rcx
movq %rax, %r8
callq 0x21c0
movb $0x1, %bl
jmp 0x27bd
movq 0x470(%rsp), %rdi
xorl %r13d, %r13d
leaq 0x2b66(%rip), %rsi      # 0x51be
leaq 0x10(%rsp), %rdx
xorl %eax, %eax
callq 0x2100
cmpl $0x1, %eax
jne 0x2677
movb $0x1, %r14b
cmpl $0x0, 0x10(%rsp)
jns 0x2734
movq (%r12), %rsi
leaq 0x120(%rsp), %rbx
movq %rbx, %rdi
leaq 0x16(%rsp), %r14
movq %r14, %rdx
callq 0x33f4
movq %rbx, %rdi
leaq 0x130(%rsp), %rsi
movq %r14, %rdx
callq 0x22b6
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movq %rax, 0x18(%rsp)
xorl %r14d, %r14d
xorl %ebx, %ebx
movl $0x1, %r13d
jmp 0x27bd
movq %rbx, %rdi
leaq 0x2af7(%rip), %rsi      # 0x51c1
callq 0x2060
testl %eax, %eax
leaq 0x15(%rsp), %r14
je 0x271b
movq %rbx, %rdi
leaq 0x2ae4(%rip), %rsi      # 0x51c6
callq 0x2060
testl %eax, %eax
je 0x2722
movq %rbx, %rdi
leaq 0x2ad7(%rip), %rsi      # 0x51cc
callq 0x2060
testl %eax, %eax
je 0x2729
movq %rbx, %rdi
leaq 0x2acd(%rip), %rsi      # 0x51d5
callq 0x2060
testl %eax, %eax
jne 0x277e
orl $0x180, 0x8(%rsp)       # imm = 0x180
jmp 0x272e
orl $0x2, 0x8(%rsp)
jmp 0x272e
orl $0x4, 0x8(%rsp)
jmp 0x272e
orl $0x78, 0x8(%rsp)
xorl %r13d, %r13d
movb $0x1, %r14b
movb $0x1, %bl
jmp 0x27bd
movq (%r12), %rsi
leaq 0x140(%rsp), %rbx
movq %rbx, %rdi
leaq 0x17(%rsp), %r14
movq %r14, %rdx
callq 0x33f4
movq %rbx, %rdi
leaq 0x150(%rsp), %rsi
movq %r14, %rdx
callq 0x22e0
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movq %rax, 0x18(%rsp)
xorl %r14d, %r14d
movb $0x1, %bl
xorl %r13d, %r13d
jmp 0x27bd
movq (%r12), %rsi
leaq 0x100(%rsp), %rbx
movq %rbx, %rdi
movq %r14, %rdx
callq 0x33f4
movq %rbx, %rdi
leaq 0x110(%rsp), %rsi
movq %r14, %rdx
callq 0x230a
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movq %rax, 0x18(%rsp)
xorl %r14d, %r14d
xorl %ebx, %ebx
movl $0x2, %r13d
movq 0x470(%rsp), %rdi
cmpq %rbp, %rdi
je 0x27da
movq 0x480(%rsp), %rsi
incq %rsi
callq 0x2130
testb %r14b, %r14b
je 0x30ce
incq %r15
cmpq %r15, 0x58(%rsp)
jne 0x2587
testb %bl, %bl
je 0x3136
leaq 0x2a49(%rip), %rsi      # 0x5249
leaq 0xa8(%rsp), %rdi
callq 0x2060
testl %eax, %eax
je 0x3136
movq 0x8(%r12), %rsi
leaq 0xc8(%rsp), %rdi
callq 0x413c
pxor %xmm0, %xmm0
leaq 0x40(%rsp), %rdi
movdqa %xmm0, (%rdi)
xorl %eax, %eax
movq %rax, 0x10(%rdi)
leaq 0x470(%rsp), %rsi
movq %rax, (%rsi)
callq 0x369c
leaq 0xc8(%rsp), %r14
leaq 0x2e0(%rsp), %rbx
leaq 0x160(%rsp), %r13
movq %r14, %rdi
callq 0x41f8
cmpb $-0x1, %al
je 0x2ac6
movzbl %al, %r12d
movq $0x0, 0x470(%rsp)
movl %r12d, %ebp
shrl $0x4, %ebp
movl 0x8(%rsp), %eax
btl %ebp, %eax
jb 0x323b
leal -0x1(%rbp), %eax
cmpl $0x9, %eax
ja 0x2a37
leaq 0x27e8(%rip), %rcx      # 0x5090
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl $0x48, %edi
callq 0x2120
movq %rax, %r15
addl $-0x2, %ebp
movq %rax, %rdi
movl %ebp, %esi
callq 0x4306
movq %r15, 0x470(%rsp)
movb $0x1, %bpl
movq %r14, %rdi
callq 0x4256
movl %eax, 0x2e0(%rsp)
testl %eax, %eax
js 0x2915
movq 0x470(%rsp), %rdi
movq 0x10(%rdi), %rsi
cmpq 0x18(%rdi), %rsi
je 0x2907
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x10(%rdi)
jmp 0x28d6
addq $0x8, %rdi
movq %rbx, %rdx
callq 0x3810
jmp 0x28d6
testb $0x1, %bpl
je 0x2a37
movq 0x470(%rsp), %rdi
movl $0xffffffff, 0x160(%rsp) # imm = 0xFFFFFFFF
movq 0x10(%rdi), %rsi
cmpq 0x18(%rdi), %rsi
je 0x294c
movl $0xffffffff, (%rsi)     # imm = 0xFFFFFFFF
addq $0x4, %rsi
movq %rsi, 0x10(%rdi)
jmp 0x2958
addq $0x8, %rdi
movq %r13, %rdx
callq 0x394c
xorl %ebp, %ebp
jmp 0x28d6
movl $0x40, %edi
callq 0x2120
movq %rax, %r15
movq %rax, %rdi
callq 0x4414
jmp 0x29f0
movl $0x40, %edi
callq 0x2120
movq %rax, %r15
movq %rax, %rdi
callq 0x4288
jmp 0x28cb
movl $0x40, %edi
callq 0x2120
movq %rax, %r15
movq %rax, %rdi
callq 0x42c8
jmp 0x29f0
movl $0x40, %edi
callq 0x2120
movq %rax, %r15
movq %rax, %rdi
callq 0x4398
jmp 0x28cb
movl $0x40, %edi
callq 0x2120
movq %rax, %r15
movq %rax, %rdi
callq 0x435e
jmp 0x28cb
movl $0x40, %edi
callq 0x2120
movq %rax, %r15
movq %rax, %rdi
callq 0x43d4
movq %r15, 0x470(%rsp)
movq %r14, %rdi
callq 0x4256
movl %eax, 0x2e0(%rsp)
testl %eax, %eax
js 0x2a37
movq 0x470(%rsp), %rdi
movq 0x10(%rdi), %rsi
cmpq 0x18(%rdi), %rsi
je 0x2a29
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x10(%rdi)
jmp 0x29f8
addq $0x8, %rdi
movq %rbx, %rdx
callq 0x3810
jmp 0x29f8
cmpq $0x0, 0x470(%rsp)
je 0x3242
movq %r14, %rdi
callq 0x4256
movl %eax, 0x2e0(%rsp)
testl %eax, %eax
js 0x2a85
movq 0x470(%rsp), %rdi
movq 0x28(%rdi), %rsi
cmpq 0x30(%rdi), %rsi
je 0x2a77
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x28(%rdi)
jmp 0x2a46
addq $0x20, %rdi
movq %rbx, %rdx
callq 0x3810
jmp 0x2a46
andl $0xf, %r12d
movq 0x470(%rsp), %rax
movl %r12d, 0x38(%rax)
movq 0x48(%rsp), %rsi
cmpq 0x50(%rsp), %rsi
je 0x2aaf
movq %rax, (%rsi)
addq $0x8, 0x48(%rsp)
jmp 0x2862
leaq 0x40(%rsp), %rdi
leaq 0x470(%rsp), %rdx
callq 0x3a28
jmp 0x2862
leaq 0x160(%rsp), %rdi
xorl %r13d, %r13d
movl $0x180, %edx            # imm = 0x180
xorl %esi, %esi
callq 0x20c0
pxor %xmm0, %xmm0
movdqa %xmm0, 0x60(%rsp)
movq $0x0, 0x70(%rsp)
leaq 0xc8(%rsp), %r14
leaq 0x470(%rsp), %r15
movq %r14, %rdi
callq 0x4256
movl %eax, 0x470(%rsp)
testl %eax, %eax
js 0x2b65
leaq (,%r13,2), %rcx
addq %r13, %rcx
leaq (%rsp,%rcx,8), %r12
addq $0x160, %r12            # imm = 0x160
movq 0x8(%r12), %rsi
cmpq 0x10(%r12), %rsi
je 0x2b42
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%r12)
jmp 0x2b4d
movq %r12, %rdi
movq %r15, %rdx
callq 0x3810
movq %r14, %rdi
callq 0x4256
movl %eax, 0x470(%rsp)
testl %eax, %eax
jns 0x2b29
incq %r13
jmp 0x2b00
leaq 0xc8(%rsp), %r14
leaq 0x60(%rsp), %r15
leaq 0x470(%rsp), %r12
movq %r14, %rdi
callq 0x4256
movl %eax, 0x470(%rsp)
testl %eax, %eax
js 0x2bb3
movq 0x68(%rsp), %rsi
cmpq 0x70(%rsp), %rsi
je 0x2ba6
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x68(%rsp)
jmp 0x2b7a
movq %r15, %rdi
movq %r12, %rdx
callq 0x3810
jmp 0x2b7a
xorl %r14d, %r14d
leaq (%rsp,%r14), %rdi
addq $0x2e0, %rdi            # imm = 0x2E0
pxor %xmm0, %xmm0
movdqa %xmm0, 0x40(%rdi)
movdqa %xmm0, 0x30(%rdi)
movdqa %xmm0, 0x20(%rdi)
movdqa %xmm0, 0x10(%rdi)
movdqa %xmm0, (%rdi)
xorl %esi, %esi
callq 0x3b04
addq $0x50, %r14
cmpq $0x190, %r14            # imm = 0x190
jne 0x2bb6
movdqa 0x2417(%rip), %xmm0     # 0x5010
movl $0x1, %eax
movdqa 0x241a(%rip), %xmm1     # 0x5020
movdqa 0x2422(%rip), %xmm2     # 0x5030
pshufd $0xf5, %xmm2, %xmm3     # xmm3 = xmm2[1,1,3,3]
movdqa 0x2425(%rip), %xmm4     # 0x5040
movdqa %xmm0, %xmm5
pxor %xmm1, %xmm5
movdqa %xmm2, %xmm6
pcmpgtd %xmm5, %xmm6
pshufd $0xf5, %xmm5, %xmm5     # xmm5 = xmm5[1,1,3,3]
pcmpeqd %xmm3, %xmm5
pand %xmm6, %xmm5
movd %xmm5, %ecx
testb $0x1, %cl
je 0x2c46
movq %rbx, 0x78(%rsp,%rax,8)
pextrw $0x4, %xmm5, %ecx
testb $0x1, %cl
je 0x2c5c
leaq 0x50(%rbx), %rcx
movq %rcx, 0x80(%rsp,%rax,8)
paddq %xmm4, %xmm0
addq $0x2, %rax
addq $0xa0, %rbx
cmpq $0x7, %rax
jne 0x2c1b
testq %r13, %r13
je 0x2d5a
movl %r13d, %r13d
xorl %ebp, %ebp
leaq 0x25c4(%rip), %rdi      # 0x524a
leaq 0x470(%rsp), %rsi
xorl %eax, %eax
callq 0x2140
leaq (,%rbp,2), %rax
addq %rbp, %rax
movq 0x160(%rsp,%rax,8), %rbx
movq 0x168(%rsp,%rax,8), %r14
cmpq %r14, %rbx
je 0x2d4e
movq 0x470(%rsp), %rsi
movslq (%rbx), %rax
movq 0x40(%rsp), %rcx
movq (%rcx,%rax,8), %r12
andl $0x1, %esi
movq %r12, %rdi
callq 0x43fa
testb %al, %al
je 0x2d2e
movq 0x20(%r12), %r15
movq 0x28(%r12), %r12
cmpq %r12, %r15
je 0x2d2e
movslq (%r15), %rax
movq 0x40(%rsp), %rcx
movq (%rcx,%rax,8), %rcx
movslq 0x3c(%rcx), %rcx
movq 0x80(%rsp,%rcx,8), %rdi
movq 0x30(%rdi), %rcx
movq 0x40(%rdi), %rdx
addq $-0x4, %rdx
cmpq %rdx, %rcx
je 0x2d20
movl %eax, (%rcx)
addq $0x4, %rcx
movq %rcx, 0x30(%rdi)
jmp 0x2d28
movq %r15, %rsi
callq 0x3c7a
addq $0x4, %r15
jmp 0x2ce6
movq 0x470(%rsp), %rsi
sarq %rsi
movq %rsi, 0x470(%rsp)
addq $0x4, %rbx
cmpq %r14, %rbx
jne 0x2cc1
incq %rbp
cmpq %r13, %rbp
jne 0x2c7f
callq 0x2180
movl %eax, %eax
movq %rax, 0x470(%rsp)
movl $0x1, %ecx
movq %rax, %rdx
shrq $0x1e, %rdx
xorl %eax, %edx
imull $0x6c078965, %edx, %eax # imm = 0x6C078965
addl %ecx, %eax
movq %rax, 0x470(%rsp,%rcx,8)
incq %rcx
cmpq $0x270, %rcx            # imm = 0x270
jne 0x2d6e
leaq 0x470(%rsp), %rax
movq $0x270, 0x1380(%rax) # imm = 0x270
movq 0x80(%rsp), %r14
movq 0x88(%rsp), %rcx
movq 0x90(%rsp), %r12
movq 0x98(%rsp), %rdx
movq 0xa0(%rsp), %rax
leaq 0x20(%rsp), %rbx
xorl %ebp, %ebp
xorl %r15d, %r15d
movq %rcx, 0x8(%rsp)
movq %rdx, 0x58(%rsp)
movq %rax, %r13
movq 0x30(%r14), %rax
cmpq 0x10(%r14), %rax
jne 0x2e27
movq 0x8(%rsp), %rdx
movq 0x30(%rdx), %rcx
cmpq 0x10(%rdx), %rcx
jne 0x2e27
movq 0x30(%r12), %rcx
cmpq 0x10(%r12), %rcx
jne 0x2e27
movq 0x58(%rsp), %rdx
movq 0x30(%rdx), %rcx
cmpq 0x10(%rdx), %rcx
jne 0x2e27
movq 0x30(%r13), %rcx
cmpq 0x10(%r13), %rcx
je 0x30d8
movl 0x10(%rsp), %ecx
testl %ecx, %ecx
setns %dl
addl $0x4, %ecx
cmpl %ecx, %r15d
setg %cl
andb %dl, %cl
cmpb $0x1, %cl
je 0x30be
pxor %xmm0, %xmm0
movdqa %xmm0, 0x20(%rsp)
movq $0x0, 0x30(%rsp)
movq 0x10(%r14), %rdx
cmpq %rdx, %rax
je 0x2ea1
movq 0x28(%rsp), %rsi
cmpq 0x30(%rsp), %rsi
je 0x2e7b
movl (%rdx), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x28(%rsp)
jmp 0x2e83
movq %rbx, %rdi
callq 0x3810
movq %r14, %rdi
callq 0x3e8e
movq 0x10(%r14), %rdx
cmpq %rdx, 0x30(%r14)
jne 0x2e60
movq 0x20(%rsp), %rdi
movq 0x28(%rsp), %rsi
jmp 0x2ea5
xorl %esi, %esi
xorl %edi, %edi
leaq 0x470(%rsp), %rdx
callq 0x3431
movq %r13, %rbx
movq %r12, 0x18(%rsp)
movq 0x20(%rsp), %r12
movq 0x28(%rsp), %r13
cmpq %r13, %r12
je 0x2f03
movq 0x30(%r14), %rax
movq 0x40(%r14), %rcx
addq $-0x4, %rcx
cmpq %rcx, %rax
je 0x2eea
movl (%r12), %ecx
movl %ecx, (%rax)
addq $0x4, %rax
movq %rax, 0x30(%r14)
jmp 0x2ef5
movq %r14, %rdi
movq %r12, %rsi
callq 0x3c7a
addq $0x4, %r12
cmpq %r13, %r12
jne 0x2ec9
movq 0x20(%rsp), %r12
testq %r12, %r12
je 0x3063
movq 0x30(%rsp), %rsi
subq %r12, %rsi
movq %r12, %rdi
callq 0x2130
jmp 0x3063
movslq (%rax), %r12
movq %r14, %rdi
callq 0x3e8e
movq 0x40(%rsp), %rax
movq (%rax,%r12,8), %r12
movq 0x8(%r12), %rcx
movq 0x10(%r12), %rdi
cmpq %rdi, %rcx
je 0x2f8d
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movslq (%rcx), %r8
testq %r8, %r8
js 0x2f67
movq (%rax,%r8,8), %r8
movl 0x38(%r8), %r8d
cmpl %r8d, %edx
cmovlel %r8d, %edx
jmp 0x2f74
xorl %r8d, %r8d
testl %edx, %edx
movl %edx, %esi
cmovlel %r8d, %esi
xorl %edx, %edx
addq $0x4, %rcx
cmpq %rdi, %rcx
jne 0x2f4e
testl %esi, %esi
js 0x2f92
movq (%r12), %rax
movq %r12, %rdi
callq *0x8(%rax)
jmp 0x2fa7
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
testl %edx, %edx
movl $0x0, %eax
cmovlel %eax, %edx
movq (%r12), %rax
movq %r12, %rdi
movl %edx, %esi
callq *(%rax)
testb %al, %al
je 0x3063
movq 0x20(%r12), %r13
movq 0x28(%r12), %rbp
cmpq %rbp, %r13
je 0x3002
movslq (%r13), %rax
movq 0x40(%rsp), %rcx
movq (%rcx,%rax,8), %rcx
movslq 0x3c(%rcx), %rcx
movq 0x80(%rsp,%rcx,8), %rdi
movq 0x30(%rdi), %rcx
movq 0x40(%rdi), %rdx
addq $-0x4, %rdx
cmpq %rdx, %rcx
je 0x2ff4
movl %eax, (%rcx)
addq $0x4, %rcx
movq %rcx, 0x30(%rdi)
jmp 0x2ffc
movq %r13, %rsi
callq 0x3c7a
addq $0x4, %r13
jmp 0x2fb9
movq 0x8(%r12), %r13
movq 0x10(%r12), %r12
movl %r15d, %ebp
cmpq %r12, %r13
je 0x3063
movslq (%r13), %rax
testq %rax, %rax
js 0x3057
movq 0x40(%rsp), %rcx
movq (%rcx,%rax,8), %rcx
movslq 0x3c(%rcx), %rcx
movq 0x80(%rsp,%rcx,8), %rdi
movq 0x30(%rdi), %rcx
movq 0x40(%rdi), %rdx
addq $-0x4, %rdx
cmpq %rdx, %rcx
je 0x304f
movl %eax, (%rcx)
addq $0x4, %rcx
movq %rcx, 0x30(%rdi)
jmp 0x3057
movq %r13, %rsi
callq 0x3c7a
addq $0x4, %r13
cmpq %r12, %r13
jne 0x3014
movl %r15d, %ebp
movq 0x10(%r14), %rax
cmpq %rax, 0x30(%r14)
movq %rbx, %rdx
jne 0x2f21
incl %r15d
movq 0x8(%rsp), %rsi
movq %rsi, 0x80(%rsp)
movq 0x18(%rsp), %rcx
movq %rcx, 0x88(%rsp)
movq 0x58(%rsp), %r12
movq %r12, 0x90(%rsp)
movq %rdx, 0x98(%rsp)
movq %r14, 0xa0(%rsp)
movq %r14, %rax
movq %rsi, %r14
leaq 0x20(%rsp), %rbx
jmp 0x2dd8
callq 0x2378
movl $0xfffffffe, %r14d      # imm = 0xFFFFFFFE
jmp 0x317f
movq 0x18(%rsp), %r14
jmp 0x3201
movl 0x10(%rsp), %eax
testl %eax, %eax
js 0x30e8
cmpl %eax, %ebp
jg 0x324f
movq 0x60(%rsp), %rax
movq 0x68(%rsp), %rdx
xorl %r14d, %r14d
subq %rax, %rdx
je 0x316f
sarq $0x2, %rdx
movq 0x40(%rsp), %rdi
cmpq $0x1, %rdx
adcq $0x0, %rdx
xorl %ecx, %ecx
xorl %esi, %esi
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
cmpq %rcx, %rdx
jne 0x310f
jmp 0x3171
movq (%r12), %rsi
leaq 0xe0(%rsp), %rdi
leaq 0x470(%rsp), %rdx
callq 0x33f4
leaq 0xe0(%rsp), %rdi
leaq 0x470(%rsp), %rsi
callq 0x23bc
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
jmp 0x3201
xorl %esi, %esi
leaq 0x210b(%rip), %rdi      # 0x5283
xorl %eax, %eax
callq 0x2040
movl $0x140, %ebx            # imm = 0x140
leaq (%rsp,%rbx), %rdi
addq $0x2e0, %rdi            # imm = 0x2E0
callq 0x35ae
addq $-0x50, %rbx
cmpq $-0x50, %rbx
jne 0x3184
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0x31b5
movq 0x70(%rsp), %rsi
subq %rdi, %rsi
callq 0x2130
movl $0x180, %ebx            # imm = 0x180
movq 0x148(%rsp,%rbx), %rdi
testq %rdi, %rdi
je 0x31d7
movq 0x158(%rsp,%rbx), %rsi
subq %rdi, %rsi
callq 0x2130
addq $-0x18, %rbx
jne 0x31ba
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x31f4
movq 0x50(%rsp), %rsi
subq %rdi, %rsi
callq 0x2130
leaq 0xc8(%rsp), %rdi
callq 0x41b0
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0x3226
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x2130
movl %r14d, %eax
addq $0x17f8, %rsp           # imm = 0x17F8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x2334
jmp 0x3247
callq 0x2356
movl $0xfffffffe, %r14d      # imm = 0xFFFFFFFE
jmp 0x31dd
callq 0x239a
jmp 0x30c3
jmp 0x3268
jmp 0x33a0
jmp 0x32c2
jmp 0x32c2
jmp 0x3268
jmp 0x3268
movq %rax, %rbx
movq 0x470(%rsp), %rdi
leaq 0x480(%rsp), %rax
cmpq %rax, %rdi
je 0x33c7
movq 0x480(%rsp), %rsi
incq %rsi
callq 0x2130
jmp 0x33c7
jmp 0x32a3
jmp 0x32a3
jmp 0x32a3
jmp 0x32a3
jmp 0x32a3
movq %rax, %rbx
movl $0x40, %esi
jmp 0x32b5
movq %rax, %rbx
movl $0x48, %esi
movq %r15, %rdi
callq 0x2130
jmp 0x33a3
movq %rax, %rbx
jmp 0x33c7
movq %rax, %rbx
testq %r14, %r14
je 0x335e
leaq 0x290(%rsp), %r15
leaq (%r15,%r14), %rdi
callq 0x35ae
addq $-0x50, %r14
jne 0x32de
jmp 0x335e
jmp 0x3310
jmp 0x33a0
jmp 0x33a0
jmp 0x3310
jmp 0x33a0
jmp 0x3319
jmp 0x33a0
jmp 0x333b
jmp 0x33a0
movq %rax, %rbx
jmp 0x335e
jmp 0x333b
jmp 0x3319
movq %rax, %rbx
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x333e
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x2130
jmp 0x333e
jmp 0x333b
jmp 0x333b
jmp 0x333b
movq %rax, %rbx
movl $0x140, %r14d           # imm = 0x140
leaq (%rsp,%r14), %rdi
addq $0x2e0, %rdi            # imm = 0x2E0
callq 0x35ae
addq $-0x50, %r14
cmpq $-0x50, %r14
jne 0x3344
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0x3375
movq 0x70(%rsp), %rsi
subq %rdi, %rsi
callq 0x2130
movl $0x180, %r14d           # imm = 0x180
movq 0x148(%rsp,%r14), %rdi
testq %rdi, %rdi
je 0x3398
movq 0x158(%rsp,%r14), %rsi
subq %rdi, %rsi
callq 0x2130
addq $-0x18, %r14
jne 0x337b
jmp 0x33a3
movq %rax, %rbx
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x33ba
movq 0x50(%rsp), %rsi
subq %rdi, %rsi
callq 0x2130
leaq 0xc8(%rsp), %rdi
callq 0x41b0
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0x33ec
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x2130
movq %rbx, %rdi
callq 0x2200