// File: /workspace/github_cpp_makefile_star2_O1/YSRKEN[P]Shioi/I401/main.cpp
// Function: Board::CountRenB(std::array<std::array<PackedStone, 5ul>, 2ul> const&, unsigned long, Direction)
RenCount CountRenB(const Pattern &pattern, const size_t position, const Direction dir) {
		/* 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
		{
			//11110
			if (MatchPatternB(pattern, position, dir, {{ p::bbb, p::n }})) return RenCount(0, 1, 0);
			if (MatchPatternB(pattern, position, dir, {{ p::bb, p::bn }})) return RenCount(0, 1, 0);
			if (MatchPatternB(pattern, position, dir, {{ p::b, p::bbn }})) return RenCount(0, 1, 0);
			if (MatchPatternB(pattern, position, dir, Side::Right, {{ p::bbbn }})) return RenCount(0, 1, 0);
			//11101
			if (MatchPatternB(pattern, position, dir, Side::Right, {{ p::nbbb }})) return RenCount(0, 1, 0);
			if (MatchPatternB(pattern, position, dir, {{ p::bb, p::nb }})) return RenCount(0, 1, 0);
			if (MatchPatternB(pattern, position, dir, {{ p::b, p::bnb }})) return RenCount(0, 1, 0);
			if (MatchPatternB(pattern, position, dir, Side::Right, {{ p::bbnb }})) return RenCount(0, 1, 0);
			//11011
			if (MatchPatternB(pattern, position, dir, Side::Right, {{ p::bnbb }})) return RenCount(0, 1, 0);
			if (MatchPatternB(pattern, position, dir, {{ p::nbb, p::b }})) return RenCount(0, 1, 0);
			if (MatchPatternB(pattern, position, dir, Side::Left, {{ p::bnbb }})) return RenCount(0, 1, 0);
			if (MatchPatternB(pattern, position, dir, {{ p::b, p::nbb }})) return RenCount(0, 1, 0);
			//10111
			if (MatchPatternB(pattern, position, dir, Side::Left, {{ p::nbbb }})) return RenCount(0, 1, 0);
			if (MatchPatternB(pattern, position, dir, {{ p::nb, p::bb }})) return RenCount(0, 1, 0);
			if (MatchPatternB(pattern, position, dir, {{ p::bnb, p::b }})) return RenCount(0, 1, 0);
			if (MatchPatternB(pattern, position, dir, Side::Left, {{ p::bbnb }})) return RenCount(0, 1, 0);
			//01111
			if (MatchPatternB(pattern, position, dir, {{ p::n, p::bbb }})) return RenCount(0, 1, 0);
			if (MatchPatternB(pattern, position, dir, {{ p::bn, p::bb }})) return RenCount(0, 1, 0);
			if (MatchPatternB(pattern, position, dir, {{ p::bbn, p::b }})) return RenCount(0, 1, 0);
			if (MatchPatternB(pattern, position, dir, Side::Left, {{ p::bbbn }})) 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;
			}
			auto GetPosition = [&position, &dir](int count) -> int {return position + kPositionoffset[dir] * count; };
			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
movl %r8d, %ebp
movq %rcx, %r14
movq %rdx, %r13
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x18(%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 %ebp, %ecx
callq 0x7e16
testb %al, %al
jne 0x73be
movl $0x11, %eax
leaq 0x18(%rsp), %r8
movq %rax, (%r8)
movl $0x3, %ecx
movq %rcx, 0x8(%r8)
movq %rax, 0x10(%r8)
movq %rcx, 0x18(%r8)
movzbl %bpl, %r12d
movq %r15, %rdi
movq %r13, %rsi
movq %r14, %rdx
movl %r12d, %ecx
callq 0x7e16
testb %al, %al
jne 0x73be
leaq 0x18(%rsp), %r8
movq $0x51, (%r8)
movq $0x4, 0x8(%r8)
movq $0x1, 0x10(%r8)
movq $0x2, 0x18(%r8)
movq %r15, %rdi
movq %r13, %rsi
movq %r14, %rdx
movl %r12d, %ecx
callq 0x7e16
testb %al, %al
jne 0x73be
leaq 0x18(%rsp), %r8
movq $0x5, (%r8)
movq $0x3, 0x8(%r8)
movq $0x45, 0x10(%r8)
movq $0x4, 0x18(%r8)
movq %r15, %rdi
movq %r13, %rsi
movq %r14, %rdx
movl %r12d, %ecx
callq 0x7e16
testb %al, %al
jne 0x73be
leaq 0x18(%rsp), %r8
movq $0x45, (%r8)
movq $0x4, 0x8(%r8)
movq $0x5, 0x10(%r8)
movq $0x3, 0x18(%r8)
movq %r15, %rdi
movq %r13, %rsi
movq %r14, %rdx
movl %r12d, %ecx
callq 0x7e16
testb %al, %al
jne 0x73be
movl $0x15, %eax
leaq 0x18(%rsp), %r8
movq %rax, (%r8)
movl $0x4, %ecx
movq %rcx, 0x8(%r8)
movq %rax, 0x10(%r8)
movq %rcx, 0x18(%r8)
movq %r15, %rdi
movq %r13, %rsi
movq %r14, %rdx
movl %r12d, %ecx
callq 0x7e16
testb %al, %al
je 0x73e1
xorl %eax, %eax
movq %rax, (%rbx)
movq $0x2, 0x8(%rbx)
movq %rax, 0x10(%rbx)
movq %rbx, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x18(%rsp), %r8
movq $0x0, (%r8)
movq $0x1, 0x8(%r8)
movq $0x54, 0x10(%r8)
movq $0x4, 0x18(%r8)
movq %r15, %rdi
movq %r13, %rsi
movq %r14, %rdx
movl %r12d, %ecx
callq 0x7e16
testb %al, %al
jne 0x74c9
leaq 0x18(%rsp), %r8
movq $0x4, (%r8)
movq $0x2, 0x8(%r8)
movq $0x14, 0x10(%r8)
movq $0x3, 0x18(%r8)
movq %r15, %rdi
movq %r13, %rsi
movq %r14, %rdx
movl %r12d, %ecx
callq 0x7e16
testb %al, %al
jne 0x74c9
leaq 0x18(%rsp), %r8
movq $0x54, (%r8)
movq $0x4, 0x8(%r8)
movq $0x0, 0x10(%r8)
movq $0x1, 0x18(%r8)
movq %r15, %rdi
movq %r13, %rsi
movq %r14, %rdx
movl %r12d, %ecx
callq 0x7e16
testb %al, %al
jne 0x74c9
leaq 0x18(%rsp), %r8
movq $0x14, (%r8)
movq $0x3, 0x8(%r8)
movq $0x4, 0x10(%r8)
movq $0x2, 0x18(%r8)
movq %r15, %rdi
movq %r13, %rsi
movq %r14, %rdx
movl %r12d, %ecx
callq 0x7e16
testb %al, %al
je 0x74dc
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movq $0x1, 0x10(%rbx)
jmp 0x73cf
leaq 0x18(%rsp), %r8
movq $0x15, (%r8)
movq $0x3, 0x8(%r8)
movq $0x0, 0x10(%r8)
movq $0x1, 0x18(%r8)
movq %r15, %rdi
movq %r13, %rsi
movq %r14, %rdx
movl %r12d, %ecx
callq 0x7e16
testb %al, %al
jne 0x791a
leaq 0x18(%rsp), %r8
movq $0x5, (%r8)
movl $0x2, %eax
movq %rax, 0x8(%r8)
movq $0x4, 0x10(%r8)
movq %rax, 0x18(%r8)
movq %r15, %rdi
movq %r13, %rsi
movq %r14, %rdx
movl %r12d, %ecx
callq 0x7e16
testb %al, %al
jne 0x791a
movl $0x1, %eax
leaq 0x18(%rsp), %r8
movq %rax, (%r8)
movq %rax, 0x8(%r8)
movq $0x14, 0x10(%r8)
movq $0x3, 0x18(%r8)
movq %r15, %rdi
movq %r13, %rsi
movq %r14, %rdx
movl %r12d, %ecx
callq 0x7e16
testb %al, %al
jne 0x791a
leaq 0x18(%rsp), %r9
movq $0x54, (%r9)
movq $0x4, 0x8(%r9)
movq %r15, %rdi
movq %r13, %rsi
movq %r14, %rdx
movl %r12d, %ecx
movl $0x1, %r8d
callq 0x7ea2
testb %al, %al
jne 0x791a
leaq 0x18(%rsp), %r9
movq $0x15, (%r9)
movq $0x4, 0x8(%r9)
movq %r15, %rdi
movq %r13, %rsi
movq %r14, %rdx
movl %r12d, %ecx
movl $0x1, %r8d
callq 0x7ea2
testb %al, %al
jne 0x791a
leaq 0x18(%rsp), %r8
movq $0x5, (%r8)
movl $0x2, %eax
movq %rax, 0x8(%r8)
movq $0x1, 0x10(%r8)
movq %rax, 0x18(%r8)
movq %r15, %rdi
movq %r13, %rsi
movq %r14, %rdx
movl %r12d, %ecx
callq 0x7e16
testb %al, %al
jne 0x791a
movl $0x1, %eax
leaq 0x18(%rsp), %r8
movq %rax, (%r8)
movq %rax, 0x8(%r8)
movq $0x11, 0x10(%r8)
movq $0x3, 0x18(%r8)
movq %r15, %rdi
movq %r13, %rsi
movq %r14, %rdx
movl %r12d, %ecx
callq 0x7e16
testb %al, %al
jne 0x791a
leaq 0x18(%rsp), %r9
movq $0x51, (%r9)
movq $0x4, 0x8(%r9)
movq %r15, %rdi
movq %r13, %rsi
movq %r14, %rdx
movl %r12d, %ecx
movl $0x1, %r8d
callq 0x7ea2
testb %al, %al
jne 0x791a
leaq 0x18(%rsp), %r9
movq $0x45, (%r9)
movq $0x4, 0x8(%r9)
movq %r15, %rdi
movq %r13, %rsi
movq %r14, %rdx
movl %r12d, %ecx
movl $0x1, %r8d
callq 0x7ea2
testb %al, %al
jne 0x791a
leaq 0x18(%rsp), %r8
movq $0x5, (%r8)
movq $0x3, 0x8(%r8)
movl $0x1, %eax
movq %rax, 0x10(%r8)
movq %rax, 0x18(%r8)
movq %r15, %rdi
movq %r13, %rsi
movq %r14, %rdx
movl %r12d, %ecx
callq 0x7e16
testb %al, %al
jne 0x791a
leaq 0x18(%rsp), %r9
movq $0x45, (%r9)
movq $0x4, 0x8(%r9)
movq %r15, %rdi
movq %r13, %rsi
movq %r14, %rdx
movl %r12d, %ecx
xorl %r8d, %r8d
callq 0x7ea2
testb %al, %al
jne 0x791a
movl $0x1, %eax
leaq 0x18(%rsp), %r8
movq %rax, (%r8)
movq %rax, 0x8(%r8)
movq $0x5, 0x10(%r8)
movq $0x3, 0x18(%r8)
movq %r15, %rdi
movq %r13, %rsi
movq %r14, %rdx
movl %r12d, %ecx
callq 0x7e16
testb %al, %al
jne 0x791a
leaq 0x18(%rsp), %r9
movq $0x15, (%r9)
movq $0x4, 0x8(%r9)
movq %r15, %rdi
movq %r13, %rsi
movq %r14, %rdx
movl %r12d, %ecx
xorl %r8d, %r8d
callq 0x7ea2
testb %al, %al
jne 0x791a
leaq 0x18(%rsp), %r8
movq $0x1, (%r8)
movl $0x2, %eax
movq %rax, 0x8(%r8)
movq $0x5, 0x10(%r8)
movq %rax, 0x18(%r8)
movq %r15, %rdi
movq %r13, %rsi
movq %r14, %rdx
movl %r12d, %ecx
callq 0x7e16
testb %al, %al
jne 0x791a
leaq 0x18(%rsp), %r8
movq $0x11, (%r8)
movq $0x3, 0x8(%r8)
movl $0x1, %eax
movq %rax, 0x10(%r8)
movq %rax, 0x18(%r8)
movq %r15, %rdi
movq %r13, %rsi
movq %r14, %rdx
movl %r12d, %ecx
callq 0x7e16
testb %al, %al
jne 0x791a
leaq 0x18(%rsp), %r9
movq $0x51, (%r9)
movq $0x4, 0x8(%r9)
movq %r15, %rdi
movq %r13, %rsi
movq %r14, %rdx
movl %r12d, %ecx
xorl %r8d, %r8d
callq 0x7ea2
testb %al, %al
jne 0x791a
leaq 0x18(%rsp), %r8
movq $0x0, (%r8)
movq $0x1, 0x8(%r8)
movq $0x15, 0x10(%r8)
movq $0x3, 0x18(%r8)
movq %r15, %rdi
movq %r13, %rsi
movq %r14, %rdx
movl %r12d, %ecx
callq 0x7e16
testb %al, %al
jne 0x791a
leaq 0x18(%rsp), %r8
movq $0x4, (%r8)
movl $0x2, %eax
movq %rax, 0x8(%r8)
movq $0x5, 0x10(%r8)
movq %rax, 0x18(%r8)
movq %r15, %rdi
movq %r13, %rsi
movq %r14, %rdx
movl %r12d, %ecx
callq 0x7e16
testb %al, %al
jne 0x791a
leaq 0x18(%rsp), %r8
movq $0x14, (%r8)
movq $0x3, 0x8(%r8)
movl $0x1, %eax
movq %rax, 0x10(%r8)
movq %rax, 0x18(%r8)
movq %r15, %rdi
movq %r13, %rsi
movq %r14, %rdx
movl %r12d, %ecx
callq 0x7e16
testb %al, %al
jne 0x791a
leaq 0x18(%rsp), %r9
movq $0x54, (%r9)
movq $0x4, 0x8(%r9)
movq %r15, %rdi
movq %r13, %rsi
movq %r14, %rdx
movl %r12d, %ecx
xorl %r8d, %r8d
callq 0x7ea2
testb %al, %al
je 0x792c
xorl %eax, %eax
movq %rax, (%rbx)
movq $0x1, 0x8(%rbx)
jmp 0x73cb
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
leaq 0x18(%rsp), %r8
movq $0x14, (%r8)
movq $0x3, 0x8(%r8)
movq $0x0, 0x10(%r8)
movq $0x2, 0x18(%r8)
movq %r15, %rdi
movq %r13, %rsi
movq %r14, %rdx
movl %r12d, %ecx
callq 0x7e16
movl $0x1, %ecx
movq %rcx, 0x10(%rsp)
testb %al, %al
je 0x7988
addq $-0x2, %rbp
movl $0x0, 0xc(%rsp)
xorl %r13d, %r13d
jmp 0x7a80
leaq 0x18(%rsp), %r8
movq $0x4, (%r8)
movq $0x2, 0x8(%r8)
movq $0x10, 0x10(%r8)
movq $0x3, 0x18(%r8)
movq %r15, %rdi
movq %r13, %rsi
movq %r14, %rdx
movl %r12d, %ecx
callq 0x7e16
testb %al, %al
je 0x79d9
decq %rbp
movl $0x0, 0xc(%rsp)
xorl %r13d, %r13d
movl $0x2, %eax
jmp 0x7a7b
leaq 0x18(%rsp), %r8
movq $0x0, (%r8)
movq $0x1, 0x8(%r8)
movq $0x50, 0x10(%r8)
movq $0x4, 0x18(%r8)
movq %r15, %rdi
movq %r13, %rsi
movq %r14, %rdx
movl %r12d, %ecx
callq 0x7e16
testb %al, %al
je 0x7a2e
movl $0x3, %eax
movq %rax, 0x10(%rsp)
movl $0x0, 0xc(%rsp)
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
jmp 0x7980
leaq 0x18(%rsp), %r8
movq $0x14, (%r8)
movq $0x4, 0x8(%r8)
movq $0x0, 0x10(%r8)
movq $0x1, 0x18(%r8)
movq %r15, %rdi
movq %r13, %rsi
movq %r14, %rdx
movl %r12d, %ecx
callq 0x7e16
movb $0x1, %cl
movl %ecx, 0xc(%rsp)
testb %al, %al
je 0x7b1b
xorl %ebp, %ebp
xorl %r13d, %r13d
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movq %rax, 0x10(%rsp)
cmpb $0x0, 0xc(%rsp)
jne 0x7ab8
leaq 0x4942(%rip), %rax      # 0xc3d0
imulq (%rax,%r12,8), %rbp
addq %r14, %rbp
cmpl $0xe0, %ebp
ja 0x7ab8
movzbl %bpl, %esi
movb $0x1, (%r15,%r14)
movq %r15, %rdi
callq 0x509e
movb $0x0, (%r15,%r14)
testb %al, %al
jne 0x7af5
testb %r13b, %r13b
jne 0x7b08
leaq 0x490c(%rip), %rax      # 0xc3d0
movq 0x10(%rsp), %rcx
imulq (%rax,%r12,8), %rcx
addq %r14, %rcx
cmpl $0xe0, %ecx
ja 0x7b08
movq %rcx, %rax
movzbl %al, %esi
movb $0x1, (%r15,%r14)
movq %r15, %rdi
callq 0x509e
movb $0x0, (%r15,%r14)
testb %al, %al
je 0x7b08
movq $0x1, (%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rbx)
jmp 0x73cf
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movq $0x0, 0x10(%rbx)
jmp 0x73cf
movl $0x4, %eax
leaq 0x18(%rsp), %r8
movq %rax, (%r8)
movq $0x2, 0x8(%r8)
movq %rax, 0x10(%r8)
movq $0x3, 0x18(%r8)
movq %r15, %rdi
movq %r13, %rsi
movq %r14, %rdx
movl %r12d, %ecx
callq 0x7e16
testb %al, %al
jne 0x7c4a
leaq 0x18(%rsp), %r8
movq $0x0, (%r8)
movq $0x1, 0x8(%r8)
movq $0x44, 0x10(%r8)
movq $0x4, 0x18(%r8)
movq %r15, %rdi
movq %r13, %rsi
movq %r14, %rdx
movl %r12d, %ecx
callq 0x7e16
testb %al, %al
je 0x7b95
xorl %ebp, %ebp
jmp 0x79cc
leaq 0x18(%rsp), %r8
movq $0x0, (%r8)
movq $0x1, 0x8(%r8)
movq $0x14, 0x10(%r8)
movq $0x4, 0x18(%r8)
movq %r15, %rdi
movq %r13, %rsi
movq %r14, %rdx
movl %r12d, %ecx
callq 0x7e16
testb %al, %al
jne 0x7c4a
movl $0x4, %eax
leaq 0x18(%rsp), %r8
movq %rax, (%r8)
movq $0x3, 0x8(%r8)
movq %rax, 0x10(%r8)
movq $0x2, 0x18(%r8)
movq %r15, %rdi
movq %r13, %rsi
movq %r14, %rdx
movl %r12d, %ecx
callq 0x7e16
testb %al, %al
jne 0x7a71
leaq 0x18(%rsp), %r8
movq $0x44, (%r8)
movq $0x4, 0x8(%r8)
movq $0x0, 0x10(%r8)
movq $0x1, 0x18(%r8)
movq %r15, %rdi
movq %r13, %rsi
movq %r14, %rdx
movl %r12d, %ecx
callq 0x7e16
leaq -0x1(%rbp), %rcx
movq %rcx, 0x10(%rsp)
testb %al, %al
je 0x7c51
xorl %ebp, %ebp
jmp 0x7980
leaq 0x18(%rsp), %r8
movq $0x0, (%r8)
movq $0x2, 0x8(%r8)
movq $0x14, 0x10(%r8)
movq $0x3, 0x18(%r8)
movq %r15, %rdi
movq %r13, %rsi
movq %r14, %rdx
movl %r12d, %ecx
callq 0x7e16
testb %al, %al
je 0x7c9c
movl $0x3, %ebp
movl $0x0, 0xc(%rsp)
jmp 0x7a73
leaq 0x18(%rsp), %r8
movq $0x10, (%r8)
movq $0x3, 0x8(%r8)
movq $0x4, 0x10(%r8)
movq $0x2, 0x18(%r8)
movq %r15, %rdi
movq %r13, %rsi
movq %r14, %rdx
movl %r12d, %ecx
callq 0x7e16
testb %al, %al
je 0x7cdf
movl $0x2, %ebp
jmp 0x7978
leaq 0x18(%rsp), %r8
movq $0x50, (%r8)
movq $0x4, 0x8(%r8)
movq $0x0, 0x10(%r8)
movq $0x1, 0x18(%r8)
movq %r15, %rdi
movq %r13, %rsi
movq %r14, %rdx
movl %r12d, %ecx
callq 0x7e16
testb %al, %al
je 0x7d30
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
addq $-0x2, %rax
movq %rax, 0x10(%rsp)
movl $0x1, %ebp
jmp 0x7978
movb $0x1, %al
movl %eax, 0xc(%rsp)
xorl %ebp, %ebp
movb $0x1, %r13b
movq $0x0, 0x10(%rsp)
jmp 0x7a80
nop