// File: /workspace/github_cpp_makefile_star2_O2/YSRKEN[P]Shioi/I401/main.cpp
// Function: Board::CountRenB2(std::array<std::array<PackedStone, 5ul>, 2ul> const&, unsigned long, Direction, unsigned long&)
RenCount CountRenB2(const Pattern &pattern, const size_t position, const Direction dir, size_t &block_position) {
		/* Count "Straight Shi-Shi"
		* 1. BO|BBB|OB   "Ryoutou-no-ShiShi"
		* 2. BBO|BB|OBB  "Chouda-no-ShiShi"
		* 3. BBBO|B|OBBB "Souryu-no-ShiShi"
		* 一直線上に出来る四々で、両頭の四々・長蛇の四々・双龍の四々
		*/
		namespace p = packed_stone;
		{
			//BO|BBB|OB
			if (MatchPatternB(pattern, position, dir, {{ p::nb, p::bbnb }})) return RenCount(0, 2, 0);
			if (MatchPatternB(pattern, position, dir, {{ p::bnb, p::bnb }})) return RenCount(0, 2, 0);
			if (MatchPatternB(pattern, position, dir, {{ p::bbnb, p::nb }})) return RenCount(0, 2, 0);
			//BBO|BB|OBB
			if (MatchPatternB(pattern, position, dir, {{ p::nbb, p::bnbb }})) return RenCount(0, 2, 0);
			if (MatchPatternB(pattern, position, dir, {{ p::bnbb, p::nbb }})) return RenCount(0, 2, 0);
			//BBBO|B|OBBB
			if (MatchPatternB(pattern, position, dir, {{ p::nbbb, p::nbbb }})) return RenCount(0, 2, 0);
		}
		// Count Shi-ren
		{
			if (MatchPatternB(pattern, position, dir, {{ p::n, p::bbbn }})) return RenCount(1, 0, 0);
			if (MatchPatternB(pattern, position, dir, {{ p::bn, p::bbn }})) return RenCount(1, 0, 0);
			if (MatchPatternB(pattern, position, dir, {{ p::bbbn, p::n }})) return RenCount(1, 0, 0);
			if (MatchPatternB(pattern, position, dir, {{ p::bbn, p::bn }})) return RenCount(1, 0, 0);
		}
		// Count Katsu-Shi
		auto GetPosition = [&position, &dir](int count) -> int {return position + kPositionoffset[dir] * count; };
		{
			//11110
			if (MatchPatternB(pattern, position, dir, {{ p::bbb, p::n }})) {
				block_position = GetPosition(1) | limit2(0_sz, kBoardSize * kBoardSize);
				return RenCount(0, 1, 0);
			}
			if (MatchPatternB(pattern, position, dir, {{ p::bb, p::bn }})) {
				block_position = GetPosition(2) | limit2(0_sz, kBoardSize * kBoardSize);
				return RenCount(0, 1, 0);
			}
			if (MatchPatternB(pattern, position, dir, {{ p::b, p::bbn }})) {
				block_position = GetPosition(3) | limit2(0_sz, kBoardSize * kBoardSize);
				return RenCount(0, 1, 0);
			}
			if (MatchPatternB(pattern, position, dir, Side::Right, {{ p::bbbn }})) {
				block_position = GetPosition(4) | limit2(0_sz, kBoardSize * kBoardSize);
				return RenCount(0, 1, 0);
			}
			//11101
			if (MatchPatternB(pattern, position, dir, Side::Left, {{ p::nbbb }})) {
				block_position = GetPosition(-1) | limit2(0_sz, kBoardSize * kBoardSize);
				return RenCount(0, 1, 0);
			}
			if (MatchPatternB(pattern, position, dir, {{ p::bb, p::nb }})) {
				block_position = GetPosition(1) | limit2(0_sz, kBoardSize * kBoardSize);
				return RenCount(0, 1, 0);
			}
			if (MatchPatternB(pattern, position, dir, {{ p::b, p::bnb }})) {
				block_position = GetPosition(2) | limit2(0_sz, kBoardSize * kBoardSize);
				return RenCount(0, 1, 0);
			}
			if (MatchPatternB(pattern, position, dir, Side::Right, {{ p::bbnb }})) {
				block_position = GetPosition(3) | limit2(0_sz, kBoardSize * kBoardSize);
				return RenCount(0, 1, 0);
			}
			//11011
			if (MatchPatternB(pattern, position, dir, Side::Right, {{ p::bnbb }})) {
				block_position = GetPosition(2) | limit2(0_sz, kBoardSize * kBoardSize);
				return RenCount(0, 1, 0);
			}
			if (MatchPatternB(pattern, position, dir, { { Stone::Black, p::nbb } })) {
				block_position = GetPosition(1) | limit2(0_sz, kBoardSize * kBoardSize);
				return RenCount(0, 1, 0);
			}
			if (MatchPatternB(pattern, position, dir, {{ p::nbb, p::b }})) {
				block_position = GetPosition(-1) | limit2(0_sz, kBoardSize * kBoardSize);
				return RenCount(0, 1, 0);
			}
			if (MatchPatternB(pattern, position, dir, Side::Left, {{ p::bnbb }})) {
				block_position = GetPosition(-2) | limit2(0_sz, kBoardSize * kBoardSize);
				return RenCount(0, 1, 0);
			}
			//10111
			if (MatchPatternB(pattern, position, dir, Side::Right, {{ p::nbbb }})) {
				block_position = GetPosition(1) | limit2(0_sz, kBoardSize * kBoardSize);
				return RenCount(0, 1, 0);
			}
			if (MatchPatternB(pattern, position, dir, {{ p::nb, p::bb }})) {
				block_position = GetPosition(-1) | limit2(0_sz, kBoardSize * kBoardSize);
				return RenCount(0, 1, 0);
			}
			if (MatchPatternB(pattern, position, dir, {{ p::bnb, p::b }})) {
				block_position = GetPosition(-2) | limit2(0_sz, kBoardSize * kBoardSize);
				return RenCount(0, 1, 0);
			}
			if (MatchPatternB(pattern, position, dir, Side::Left, {{ p::bbnb }})) {
				block_position = GetPosition(-3) | limit2(0_sz, kBoardSize * kBoardSize);
				return RenCount(0, 1, 0);
			}
			//01111
			if (MatchPatternB(pattern, position, dir, {{ p::n, p::bbb }})) {
				block_position = GetPosition(-1) | limit2(0_sz, kBoardSize * kBoardSize);
				return RenCount(0, 1, 0);
			}
			if (MatchPatternB(pattern, position, dir, {{ p::bn, p::bb }})) {
				block_position = GetPosition(-2) | limit2(0_sz, kBoardSize * kBoardSize);
				return RenCount(0, 1, 0);
			}
			if (MatchPatternB(pattern, position, dir, {{ p::bbn, p::b }})) {
				block_position = GetPosition(-3) | limit2(0_sz, kBoardSize * kBoardSize);
				return RenCount(0, 1, 0);
			}
			if (MatchPatternB(pattern, position, dir, Side::Left, {{ p::bbbn }})) {
				block_position = GetPosition(-4) | limit2(0_sz, kBoardSize * kBoardSize);
				return RenCount(0, 1, 0);
			}
		}
		// Count Katsu-San
		{
			int offset1 = 0, offset2 = 0;
			while (true) {
				//011100
				if (MatchPatternB(pattern, position, dir, {{ p::bbn, p::nn }})) {
					offset1 = 1; offset2 = -3; break;
				}
				if (MatchPatternB(pattern, position, dir, {{ p::bn, p::bnn }})) {
					offset1 = 2; offset2 = -2; break;
				}
				if (MatchPatternB(pattern, position, dir, {{ p::n, p::bbnn }})) {
					offset1 = 3; offset2 = -1; break;
				}
				//011010
				if (MatchPatternB(pattern, position, dir, {{ p::nbbn, p::n }})) {
					offset1 = -1; break;
				}
				if (MatchPatternB(pattern, position, dir, {{ p::bn, p::nbn }})) {
					offset1 = 1; break;
				}
				if (MatchPatternB(pattern, position, dir, {{ p::n, p::bnbn }})) {
					offset1 = 2; break;
				}
				//010110
				if (MatchPatternB(pattern, position, dir, {{ p::n, p::nbbn }})) {
					offset1 = 1; break;
				}
				if (MatchPatternB(pattern, position, dir, {{ p::nbn, p::bn }})) {
					offset1 = -1; break;
				}
				if (MatchPatternB(pattern, position, dir, {{ p::bnbn, p::n }})) {
					offset1 = -2; break;
				}
				//001110
				if (MatchPatternB(pattern, position, dir, {{ p::nn, p::bbn }})) {
					offset1 = -1; offset2 = 3; break;
				}
				if (MatchPatternB(pattern, position, dir, {{ p::bnn, p::bn }})) {
					offset1 = -2; offset2 = 2; break;
				}
				if (MatchPatternB(pattern, position, dir, {{ p::bbnn, p::n }})) {
					offset1 = -3; offset2 = 1; break;
				}
				break;
			}
			if (offset2 != 0) {
				int next_pos = GetPosition(offset2);
				if (next_pos >= 0 && static_cast<std::size_t>(next_pos) < kBoardSize * kBoardSize) {
					board_[position] = Stone::Black;
					auto valid_flg = IsValidMove(next_pos);
					board_[position] = Stone::None;
					if (valid_flg) return RenCount(0, 0, 1);
				}
			}
			if (offset1 != 0) {
				int next_pos = GetPosition(offset1);
				if (next_pos >= 0 && static_cast<std::size_t>(next_pos) < kBoardSize * kBoardSize) {
					board_[position] = Stone::Black;
					auto valid_flg = IsValidMove(next_pos);
					board_[position] = Stone::None;
					if (valid_flg) return RenCount(0, 0, 1);
				}
			}
		}
		return RenCount(0, 0, 0);
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %r9, %r15
movl %r8d, %r12d
movq %rcx, %r14
movq %rdx, %rbp
movq %rsi, %r13
movq %rdi, %rbx
leaq 0x10(%rsp), %r8
movq $0x1, (%r8)
movq $0x2, 0x8(%r8)
movq $0x51, 0x10(%r8)
movq $0x4, 0x18(%r8)
movq %rsi, %rdi
movq %rdx, %rsi
movq %rcx, %rdx
movl %r12d, %ecx
callq 0x6f22
testb %al, %al
jne 0x727a
movq %r15, 0x8(%rsp)
pushq $0x11
popq %rax
leaq 0x10(%rsp), %r8
movq %rax, (%r8)
pushq $0x3
popq %r15
movq %r15, 0x8(%r8)
movq %rax, 0x10(%r8)
movq %r15, 0x18(%r8)
movzbl %r12b, %r12d
movq %r13, %rdi
movq %rbp, %rsi
movq %r14, %rdx
movl %r12d, %ecx
callq 0x6f22
testb %al, %al
jne 0x727a
leaq 0x10(%rsp), %r8
movq $0x51, (%r8)
movq $0x4, 0x8(%r8)
movq $0x1, 0x10(%r8)
movq $0x2, 0x18(%r8)
movq %r13, %rdi
movq %rbp, %rsi
movq %r14, %rdx
movl %r12d, %ecx
callq 0x6f22
testb %al, %al
jne 0x727a
leaq 0x10(%rsp), %r8
movq $0x5, (%r8)
movq $0x3, 0x8(%r8)
movq $0x45, 0x10(%r8)
movq $0x4, 0x18(%r8)
movq %r13, %rdi
movq %rbp, %rsi
movq %r14, %rdx
movl %r12d, %ecx
callq 0x6f22
testb %al, %al
jne 0x727a
leaq 0x10(%rsp), %r8
movq $0x45, (%r8)
movq $0x4, 0x8(%r8)
movq $0x5, 0x10(%r8)
movq $0x3, 0x18(%r8)
movq %r13, %rdi
movq %rbp, %rsi
movq %r14, %rdx
movl %r12d, %ecx
callq 0x6f22
testb %al, %al
jne 0x727a
pushq $0x15
popq %rax
leaq 0x10(%rsp), %r8
movq %rax, (%r8)
pushq $0x4
popq %rcx
movq %rcx, 0x8(%r8)
movq %rax, 0x10(%r8)
movq %rcx, 0x18(%r8)
movq %r13, %rdi
movq %rbp, %rsi
movq %r14, %rdx
movl %r12d, %ecx
callq 0x6f22
testb %al, %al
je 0x729d
andq $0x0, (%rbx)
movq $0x2, 0x8(%rbx)
andq $0x0, 0x10(%rbx)
movq %rbx, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x10(%rsp), %r8
andq $0x0, (%r8)
movq $0x1, 0x8(%r8)
movq $0x54, 0x10(%r8)
movq $0x4, 0x18(%r8)
movq %r13, %rdi
movq %rbp, %rsi
movq %r14, %rdx
movl %r12d, %ecx
callq 0x6f22
testb %al, %al
jne 0x737f
leaq 0x10(%rsp), %r8
movq $0x4, (%r8)
movq $0x2, 0x8(%r8)
movq $0x14, 0x10(%r8)
movq $0x3, 0x18(%r8)
movq %r13, %rdi
movq %rbp, %rsi
movq %r14, %rdx
movl %r12d, %ecx
callq 0x6f22
testb %al, %al
jne 0x737f
leaq 0x10(%rsp), %r8
movq $0x54, (%r8)
movq $0x4, 0x8(%r8)
andq $0x0, 0x10(%r8)
movq $0x1, 0x18(%r8)
movq %r13, %rdi
movq %rbp, %rsi
movq %r14, %rdx
movl %r12d, %ecx
callq 0x6f22
testb %al, %al
jne 0x737f
leaq 0x10(%rsp), %r8
movq $0x14, (%r8)
movq $0x3, 0x8(%r8)
movq $0x4, 0x10(%r8)
movq $0x2, 0x18(%r8)
movq %r13, %rdi
movq %rbp, %rsi
movq %r14, %rdx
movl %r12d, %ecx
callq 0x6f22
testb %al, %al
je 0x7392
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movq $0x1, 0x10(%rbx)
jmp 0x728b
leaq 0x10(%rsp), %r8
movq $0x15, (%r8)
movq $0x3, 0x8(%r8)
andq $0x0, 0x10(%r8)
movq $0x1, 0x18(%r8)
movq %r13, %rdi
movq %rbp, %rsi
movq %r14, %rdx
movl %r12d, %ecx
callq 0x6f22
testb %al, %al
je 0x73fc
leaq 0x3fd1(%rip), %rax      # 0xb3a0
addq (%rax,%r12,8), %r14
movl %r14d, %eax
movl $0xe1, %ecx
cmpq %rcx, %rax
cmovaeq %rcx, %rax
xorl %edx, %edx
testl %r14d, %r14d
cmovneq %rax, %rdx
cmovsq %rcx, %rdx
movq 0x8(%rsp), %rax
movq %rdx, (%rax)
jmp 0x74e7
leaq 0x10(%rsp), %r8
movq $0x5, (%r8)
pushq $0x2
popq %rax
movq %rax, 0x8(%r8)
movq $0x4, 0x10(%r8)
movq %rax, 0x18(%r8)
movq %r13, %rdi
movq %rbp, %rsi
movq %r14, %rdx
movl %r12d, %ecx
callq 0x6f22
testb %al, %al
je 0x7444
leaq 0x3f69(%rip), %rax      # 0xb3a0
movq (%rax,%r12,8), %rax
leaq (%r14,%rax,2), %rax
jmp 0x74c5
pushq $0x1
popq %rax
leaq 0x10(%rsp), %r8
movq %rax, (%r8)
movq %rax, 0x8(%r8)
movq $0x14, 0x10(%r8)
movq $0x3, 0x18(%r8)
movq %r13, %rdi
movq %rbp, %rsi
movq %r14, %rdx
movl %r12d, %ecx
callq 0x6f22
testb %al, %al
je 0x7489
leaq 0x3f21(%rip), %rax      # 0xb3a0
imulq $0x3, (%rax,%r12,8), %rax
addq %r14, %rax
jmp 0x74c5
leaq 0x10(%rsp), %r9
movq $0x54, (%r9)
movq $0x4, 0x8(%r9)
pushq $0x1
popq %r8
movq %r13, %rdi
movq %rbp, %rsi
movq %r14, %rdx
movl %r12d, %ecx
callq 0x6fba
testb %al, %al
je 0x74f8
leaq 0x3ee3(%rip), %rax      # 0xb3a0
movq (%rax,%r12,8), %rax
leaq (%r14,%rax,4), %rax
movl %eax, %ecx
movl $0xe1, %edx
cmpq %rdx, %rcx
cmovaeq %rdx, %rcx
xorl %esi, %esi
testl %eax, %eax
cmovneq %rcx, %rsi
cmovsq %rdx, %rsi
movq 0x8(%rsp), %rax
movq %rsi, (%rax)
andq $0x0, (%rbx)
movq $0x1, 0x8(%rbx)
jmp 0x7286
leaq 0x10(%rsp), %r9
movq $0x15, (%r9)
movq $0x4, 0x8(%r9)
movq %r13, %rdi
movq %rbp, %rsi
movq %r14, %rdx
movl %r12d, %ecx
xorl %r8d, %r8d
callq 0x6fba
testb %al, %al
je 0x7550
leaq 0x3e75(%rip), %rax      # 0xb3a0
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
imulq (%rax,%r12,8), %rcx
addq %r14, %rcx
movl %ecx, %eax
movl $0xe1, %edx
cmpq %rdx, %rax
cmovaeq %rdx, %rax
xorl %esi, %esi
testl %ecx, %ecx
cmovneq %rax, %rsi
jmp 0x74db
leaq 0x10(%rsp), %r8
movq $0x5, (%r8)
pushq $0x2
popq %rax
movq %rax, 0x8(%r8)
movq $0x1, 0x10(%r8)
movq %rax, 0x18(%r8)
movq %r13, %rdi
movq %rbp, %rsi
movq %r14, %rdx
movl %r12d, %ecx
callq 0x6f22
testb %al, %al
jne 0x73c8
leaq 0x10(%rsp), %r8
pushq $0x1
popq %rax
movq %rax, (%r8)
movq %rax, 0x8(%r8)
movq $0x11, 0x10(%r8)
movq $0x3, 0x18(%r8)
movq %r13, %rdi
movq %rbp, %rsi
movq %r14, %rdx
movl %r12d, %ecx
callq 0x6f22
testb %al, %al
jne 0x7430
leaq 0x10(%rsp), %r9
movq $0x51, (%r9)
movq $0x4, 0x8(%r9)
pushq $0x1
popq %r8
movq %r13, %rdi
movq %rbp, %rsi
movq %r14, %rdx
movl %r12d, %ecx
callq 0x6fba
testb %al, %al
jne 0x7478
leaq 0x10(%rsp), %r9
movq $0x45, (%r9)
movq $0x4, 0x8(%r9)
pushq $0x1
popq %r8
movq %r13, %rdi
movq %rbp, %rsi
movq %r14, %rdx
movl %r12d, %ecx
callq 0x6fba
testb %al, %al
jne 0x7430
leaq 0x10(%rsp), %r8
pushq $0x1
popq %rax
movq %rax, (%r8)
movq %rax, 0x8(%r8)
movq $0x5, 0x10(%r8)
movq $0x3, 0x18(%r8)
movq %r13, %rdi
movq %rbp, %rsi
movq %r14, %rdx
movl %r12d, %ecx
callq 0x6f22
testb %al, %al
jne 0x73c8
leaq 0x10(%rsp), %r8
movq $0x5, (%r8)
movq $0x3, 0x8(%r8)
pushq $0x1
popq %rax
movq %rax, 0x10(%r8)
movq %rax, 0x18(%r8)
movq %r13, %rdi
movq %rbp, %rsi
movq %r14, %rdx
movl %r12d, %ecx
callq 0x6f22
testb %al, %al
jne 0x7524
leaq 0x10(%rsp), %r9
movq $0x45, (%r9)
movq $0x4, 0x8(%r9)
movq %r13, %rdi
movq %rbp, %rsi
movq %r14, %rdx
movl %r12d, %ecx
xorl %r8d, %r8d
callq 0x6fba
testb %al, %al
je 0x76d2
leaq 0x3cdb(%rip), %rax      # 0xb3a0
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
decq %rcx
jmp 0x7530
leaq 0x10(%rsp), %r9
movq $0x15, (%r9)
movq $0x4, 0x8(%r9)
pushq $0x1
popq %r8
movq %r13, %rdi
movq %rbp, %rsi
movq %r14, %rdx
movl %r12d, %ecx
movl %r8d, 0x4(%rsp)
callq 0x6fba
testb %al, %al
jne 0x73c8
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movq %rax, 0x30(%rsp)
leaq 0x10(%rsp), %r8
movq $0x1, (%r8)
pushq $0x2
popq %rax
movq %rax, 0x8(%r8)
movq $0x5, 0x10(%r8)
movq %rax, 0x18(%r8)
movq %r13, %rdi
movq %rbp, %rsi
movq %r14, %rdx
movl %r12d, %ecx
callq 0x6f22
testb %al, %al
je 0x7757
leaq 0x3c53(%rip), %rax      # 0xb3a0
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
jmp 0x77d8
leaq 0x10(%rsp), %r8
movq $0x11, (%r8)
movq $0x3, 0x8(%r8)
pushq $0x1
popq %rax
movq %rax, 0x10(%r8)
movq %rax, 0x18(%r8)
movq %r13, %rdi
movq %rbp, %rsi
movq %r14, %rdx
movl %r12d, %ecx
callq 0x6f22
testb %al, %al
je 0x779c
leaq 0x3c0e(%rip), %rax      # 0xb3a0
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
decq %rsi
jmp 0x77d8
leaq 0x10(%rsp), %r9
movq $0x51, (%r9)
movq $0x4, 0x8(%r9)
movq %r13, %rdi
movq %rbp, %rsi
movq %r14, %rdx
movl %r12d, %ecx
xorl %r8d, %r8d
callq 0x6fba
testb %al, %al
je 0x77f7
leaq 0x3bd1(%rip), %rax      # 0xb3a0
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
addq $-0x2, %rsi
imulq (%rax,%r12,8), %rsi
addq %r14, %rsi
movl %esi, %eax
movl $0xe1, %ecx
cmpq %rcx, %rax
cmovaeq %rcx, %rax
xorl %edx, %edx
testl %esi, %esi
jmp 0x73e7
leaq 0x10(%rsp), %r8
andq $0x0, (%r8)
movq $0x1, 0x8(%r8)
movq $0x15, 0x10(%r8)
movq $0x3, 0x18(%r8)
movq %r13, %rdi
movq %rbp, %rsi
movq %r14, %rdx
movl %r12d, %ecx
callq 0x6f22
testb %al, %al
jne 0x7746
leaq 0x10(%rsp), %r8
movq $0x4, (%r8)
pushq $0x2
popq %rax
movq %rax, 0x8(%r8)
movq $0x5, 0x10(%r8)
movq %rax, 0x18(%r8)
movq %r13, %rdi
movq %rbp, %rsi
movq %r14, %rdx
movl %r12d, %ecx
callq 0x6f22
testb %al, %al
jne 0x778b
leaq 0x10(%rsp), %r8
movq $0x14, (%r8)
movq $0x3, 0x8(%r8)
pushq $0x1
popq %rax
movq %rax, 0x10(%r8)
movq %rax, 0x18(%r8)
movq %r13, %rdi
movq %rbp, %rsi
movq %r14, %rdx
movl %r12d, %ecx
callq 0x6f22
testb %al, %al
jne 0x77c8
leaq 0x10(%rsp), %r9
movq $0x54, (%r9)
movq $0x4, 0x8(%r9)
movq %r13, %rdi
movq %rbp, %rsi
movq %r14, %rdx
movl %r12d, %ecx
xorl %r8d, %r8d
callq 0x6fba
testb %al, %al
je 0x78e2
leaq 0x3acc(%rip), %rax      # 0xb3a0
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
addq $-0x3, %rsi
jmp 0x77d8
leaq 0x10(%rsp), %r8
movq $0x14, (%r8)
movq $0x3, 0x8(%r8)
andq $0x0, 0x10(%r8)
movq $0x2, 0x18(%r8)
movq %r13, %rdi
movq %rbp, %rsi
movq %r14, %rdx
movl %r12d, %ecx
callq 0x6f22
testb %al, %al
je 0x7920
addq $-0x2, 0x30(%rsp)
jmp 0x799f
leaq 0x10(%rsp), %r8
movq $0x4, (%r8)
movq $0x2, 0x8(%r8)
movq $0x10, 0x10(%r8)
movq $0x3, 0x18(%r8)
movq %r13, %rdi
movq %rbp, %rsi
movq %r14, %rdx
movl %r12d, %ecx
callq 0x6f22
testb %al, %al
je 0x7962
decq 0x30(%rsp)
pushq $0x2
jmp 0x799a
leaq 0x10(%rsp), %r8
andq $0x0, (%r8)
movq $0x1, 0x8(%r8)
movq $0x50, 0x10(%r8)
movq $0x4, 0x18(%r8)
movq %r13, %rdi
movq %rbp, %rsi
movq %r14, %rdx
movl %r12d, %ecx
callq 0x6f22
testb %al, %al
je 0x79e6
pushq $0x3
popq %rax
movl %eax, 0x4(%rsp)
leaq 0x39fa(%rip), %rax      # 0xb3a0
movq 0x30(%rsp), %rcx
imulq (%rax,%r12,8), %rcx
addq %r14, %rcx
cmpl $0xe0, %ecx
ja 0x7a98
movq %rcx, %rax
movzbl %al, %esi
movb $0x1, (%r13,%r14)
movq %r13, %rdi
callq 0x4884
movb $0x0, (%r13,%r14)
testb %al, %al
je 0x7a98
jmp 0x7ad5
leaq 0x10(%rsp), %r8
movq $0x14, (%r8)
movq $0x4, 0x8(%r8)
andq $0x0, 0x10(%r8)
movq $0x1, 0x18(%r8)
movq %r13, %rdi
movq %rbp, %rsi
movq %r14, %rdx
movl %r12d, %ecx
callq 0x6f22
testb %al, %al
je 0x7a20
pushq $-0x1
jmp 0x7a93
leaq 0x10(%rsp), %r8
pushq $0x4
popq %rax
movq %rax, (%r8)
movq $0x2, 0x8(%r8)
movq %rax, 0x10(%r8)
movq $0x3, 0x18(%r8)
movq %r13, %rdi
movq %rbp, %rsi
movq %r14, %rdx
movl %r12d, %ecx
callq 0x6f22
pushq $0x1
popq %rcx
movl %ecx, 0x4(%rsp)
testb %al, %al
jne 0x7a98
leaq 0x10(%rsp), %r8
andq $0x0, (%r8)
movq $0x1, 0x8(%r8)
movq $0x44, 0x10(%r8)
movq $0x4, 0x18(%r8)
movq %r13, %rdi
movq %rbp, %rsi
movq %r14, %rdx
movl %r12d, %ecx
callq 0x6f22
testb %al, %al
je 0x7ae8
pushq $0x2
popq %rax
movl %eax, 0x4(%rsp)
leaq 0x3901(%rip), %rcx      # 0xb3a0
movl 0x4(%rsp), %eax
imulq (%rcx,%r12,8), %rax
addq %r14, %rax
cmpl $0xe0, %eax
ja 0x7c73
movzbl %al, %esi
movb $0x1, (%r13,%r14)
movq %r13, %rdi
callq 0x4884
movb $0x0, (%r13,%r14)
testb %al, %al
je 0x7c73
movq $0x1, (%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rbx)
jmp 0x728b
leaq 0x10(%rsp), %r8
andq $0x0, (%r8)
movq $0x1, 0x8(%r8)
movq $0x14, 0x10(%r8)
movq $0x4, 0x18(%r8)
movq %r13, %rdi
movq %rbp, %rsi
movq %r14, %rdx
movl %r12d, %ecx
callq 0x6f22
testb %al, %al
jne 0x7a98
leaq 0x10(%rsp), %r8
pushq $0x4
popq %rax
movq %rax, (%r8)
movq $0x3, 0x8(%r8)
movq %rax, 0x10(%r8)
movq $0x2, 0x18(%r8)
movq %r13, %rdi
movq %rbp, %rsi
movq %r14, %rdx
movl %r12d, %ecx
callq 0x6f22
pushq $-0x1
popq %rcx
movl %ecx, 0x4(%rsp)
testb %al, %al
jne 0x7a98
leaq 0x10(%rsp), %r8
movq $0x44, (%r8)
movq $0x4, 0x8(%r8)
andq $0x0, 0x10(%r8)
movq $0x1, 0x18(%r8)
movq %r13, %rdi
movq %rbp, %rsi
movq %r14, %rdx
movl %r12d, %ecx
callq 0x6f22
testb %al, %al
je 0x7b9e
pushq $-0x2
jmp 0x7a93
leaq 0x10(%rsp), %r8
andq $0x0, (%r8)
movq $0x2, 0x8(%r8)
movq $0x14, 0x10(%r8)
movq $0x3, 0x18(%r8)
movq %r13, %rdi
movq %rbp, %rsi
movq %r14, %rdx
movl %r12d, %ecx
callq 0x6f22
testb %al, %al
je 0x7be5
pushq $-0x1
popq %rax
movl %eax, 0x4(%rsp)
movq %r15, 0x30(%rsp)
jmp 0x799f
leaq 0x10(%rsp), %r8
movq $0x10, (%r8)
movq $0x3, 0x8(%r8)
movq $0x4, 0x10(%r8)
movq $0x2, 0x18(%r8)
movq %r13, %rdi
movq %rbp, %rsi
movq %r14, %rdx
movl %r12d, %ecx
callq 0x6f22
testb %al, %al
je 0x7c29
pushq $-0x2
popq %rax
movl %eax, 0x4(%rsp)
pushq $0x2
jmp 0x7c68
leaq 0x10(%rsp), %r8
movq $0x50, (%r8)
movq $0x4, 0x8(%r8)
andq $0x0, 0x10(%r8)
movq $0x1, 0x18(%r8)
movq %r13, %rdi
movq %rbp, %rsi
movq %r14, %rdx
movl %r12d, %ecx
callq 0x6f22
testb %al, %al
je 0x7c73
pushq $-0x3
popq %rax
movl %eax, 0x4(%rsp)
pushq $0x1
popq %rax
movq %rax, 0x30(%rsp)
jmp 0x799f
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
jmp 0x7286