// File: iTruth[P]klotski/klotski_board.cpp
// Function: klotski_board::print_board(std::vector<std::vector<int, std::allocator<int>>, std::allocator<std::vector<int, std::allocator<int>>>> const&, int, int, bool, std::ostream&)
void klotski_board::print_board(const situation_type& situation, int dx, int dy, bool display_board, std::ostream& os){
	int space_n = 0;
	int max_n = dx*dy;
	while(max_n != 0){
		max_n/=10;
		++space_n;
	}
	if(space_n < 2){
		space_n = 2;
	}

	std::stringstream output_stream;
	if(display_board){
		output_stream<<std::left<<std::setw(space_n)<<"+"<<" ";
		for(int j=0; j<dx; ++j){
			output_stream<<std::setw(space_n)<<j<<" ";
		}
		output_stream<<std::endl;
		print_line(dx, space_n, output_stream);
		for(int i=0; i<dy; ++i){
			output_stream<<std::setw(space_n)<<i<<"|";
			for(int j=0; j<dx; ++j){
				if(situation[i][j] == 0){
					output_stream<<std::setw(space_n)<<" "<<"|";
				}else{
					output_stream<<std::setw(space_n)<<situation[i][j]<<"|";
				}
			}
			output_stream<<std::endl;
			print_line(dx, space_n, output_stream);
		}
	}else{
		for(int i=0; i<dy; ++i){
			for(int j=0; j<dx; ++j){
				output_stream<<std::setw(space_n)<<situation[i][j]<<" ";
			}
			output_stream<<std::endl;
		}
	}
	os<<output_stream.str();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x2d0, %rsp            # imm = 0x2D0
movb %cl, %al
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl %edx, -0x10(%rbp)
andb $0x1, %al
movb %al, -0x11(%rbp)
movq %r8, -0x20(%rbp)
movl $0x0, -0x24(%rbp)
movl -0xc(%rbp), %eax
imull -0x10(%rbp), %eax
movl %eax, -0x28(%rbp)
cmpl $0x0, -0x28(%rbp)
je 0xced0
movl -0x28(%rbp), %eax
movl $0xa, %ecx
cltd
idivl %ecx
movl %eax, -0x28(%rbp)
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0xceb1
cmpl $0x2, -0x24(%rbp)
jge 0xcedd
movl $0x2, -0x24(%rbp)
leaq -0x1b0(%rbp), %rdi
callq 0x31f0
testb $0x1, -0x11(%rbp)
je 0xd28f
leaq -0x1a0(%rbp), %rdi
leaq -0x7701(%rip), %rsi     # 0x5800
callq 0x30b0
movq %rax, -0x210(%rbp)
jmp 0xcf0f
movl -0x24(%rbp), %edi
callq 0x5830
movl %eax, -0x214(%rbp)
jmp 0xcf1f
movq -0x210(%rbp), %rdi
movl -0x214(%rbp), %eax
movl %eax, -0x1c0(%rbp)
movl -0x1c0(%rbp), %esi
callq 0x3370
movq %rax, -0x220(%rbp)
jmp 0xcf46
movq -0x220(%rbp), %rdi
leaq 0xb7fe(%rip), %rsi      # 0x18752
callq 0x32e0
movq %rax, -0x228(%rbp)
jmp 0xcf62
movq -0x228(%rbp), %rdi
leaq 0xb51d(%rip), %rsi      # 0x1848d
callq 0x32e0
jmp 0xcf77
movl $0x0, -0x1c4(%rbp)
movl -0x1c4(%rbp), %eax
cmpl -0xc(%rbp), %eax
jge 0xd032
leaq -0x1a0(%rbp), %rax
movq %rax, -0x238(%rbp)
movl -0x24(%rbp), %edi
callq 0x5830
movl %eax, -0x22c(%rbp)
jmp 0xcfae
movq -0x238(%rbp), %rdi
movl -0x22c(%rbp), %eax
movl %eax, -0x1c8(%rbp)
movl -0x1c8(%rbp), %esi
callq 0x3370
movq %rax, -0x240(%rbp)
jmp 0xcfd5
movq -0x240(%rbp), %rdi
movl -0x1c4(%rbp), %esi
callq 0x34d0
movq %rax, -0x248(%rbp)
jmp 0xcff0
movq -0x248(%rbp), %rdi
leaq 0xb48f(%rip), %rsi      # 0x1848d
callq 0x32e0
jmp 0xd005
jmp 0xd007
movl -0x1c4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c4(%rbp)
jmp 0xcf81
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1b8(%rbp)
movl %eax, -0x1bc(%rbp)
jmp 0xd408
leaq -0x1a0(%rbp), %rdi
movq 0x16f38(%rip), %rsi     # 0x23f78
callq 0x3320
jmp 0xd047
movl -0xc(%rbp), %edi
movl -0x24(%rbp), %esi
leaq -0x1b0(%rbp), %rdx
addq $0x10, %rdx
callq 0xd420
movl $0x0, -0x1cc(%rbp)
movl -0x1cc(%rbp), %eax
cmpl -0x10(%rbp), %eax
jge 0xd28a
leaq -0x1a0(%rbp), %rax
movq %rax, -0x258(%rbp)
movl -0x24(%rbp), %edi
callq 0x5830
movl %eax, -0x24c(%rbp)
jmp 0xd094
movq -0x258(%rbp), %rdi
movl -0x24c(%rbp), %eax
movl %eax, -0x1d0(%rbp)
movl -0x1d0(%rbp), %esi
callq 0x3370
movq %rax, -0x260(%rbp)
jmp 0xd0bb
movq -0x260(%rbp), %rdi
movl -0x1cc(%rbp), %esi
callq 0x34d0
movq %rax, -0x268(%rbp)
jmp 0xd0d6
movq -0x268(%rbp), %rdi
leaq 0xb670(%rip), %rsi      # 0x18754
callq 0x32e0
jmp 0xd0eb
movl $0x0, -0x1d4(%rbp)
movl -0x1d4(%rbp), %eax
cmpl -0xc(%rbp), %eax
jge 0xd24b
movq -0x8(%rbp), %rdi
movslq -0x1cc(%rbp), %rsi
callq 0xe7c0
movq %rax, %rdi
movslq -0x1d4(%rbp), %rsi
callq 0xe7e0
cmpl $0x0, (%rax)
jne 0xd1a3
leaq -0x1a0(%rbp), %rax
movq %rax, -0x278(%rbp)
movl -0x24(%rbp), %edi
callq 0x5830
movl %eax, -0x26c(%rbp)
jmp 0xd146
movq -0x278(%rbp), %rdi
movl -0x26c(%rbp), %eax
movl %eax, -0x1d8(%rbp)
movl -0x1d8(%rbp), %esi
callq 0x3370
movq %rax, -0x280(%rbp)
jmp 0xd16d
movq -0x280(%rbp), %rdi
leaq 0xb312(%rip), %rsi      # 0x1848d
callq 0x32e0
movq %rax, -0x288(%rbp)
jmp 0xd189
movq -0x288(%rbp), %rdi
leaq 0xb5bd(%rip), %rsi      # 0x18754
callq 0x32e0
jmp 0xd19e
jmp 0xd235
leaq -0x1a0(%rbp), %rax
movq %rax, -0x298(%rbp)
movl -0x24(%rbp), %edi
callq 0x5830
movl %eax, -0x28c(%rbp)
jmp 0xd1c1
movq -0x298(%rbp), %rdi
movl -0x28c(%rbp), %eax
movl %eax, -0x1dc(%rbp)
movl -0x1dc(%rbp), %esi
callq 0x3370
movq %rax, -0x2a0(%rbp)
jmp 0xd1e8
movq -0x8(%rbp), %rdi
movslq -0x1cc(%rbp), %rsi
callq 0xe7c0
movq %rax, %rdi
movslq -0x1d4(%rbp), %rsi
callq 0xe7e0
movq -0x2a0(%rbp), %rdi
movl (%rax), %esi
callq 0x34d0
movq %rax, -0x2a8(%rbp)
jmp 0xd21e
movq -0x2a8(%rbp), %rdi
leaq 0xb528(%rip), %rsi      # 0x18754
callq 0x32e0
jmp 0xd233
jmp 0xd235
jmp 0xd237
movl -0x1d4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1d4(%rbp)
jmp 0xd0f5
leaq -0x1a0(%rbp), %rdi
movq 0x16d1f(%rip), %rsi     # 0x23f78
callq 0x3320
jmp 0xd260
movl -0xc(%rbp), %edi
movl -0x24(%rbp), %esi
leaq -0x1b0(%rbp), %rdx
addq $0x10, %rdx
callq 0xd420
movl -0x1cc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1cc(%rbp)
jmp 0xd067
jmp 0xd394
movl $0x0, -0x1e0(%rbp)
movl -0x1e0(%rbp), %eax
cmpl -0x10(%rbp), %eax
jge 0xd392
movl $0x0, -0x1e4(%rbp)
movl -0x1e4(%rbp), %eax
cmpl -0xc(%rbp), %eax
jge 0xd367
leaq -0x1a0(%rbp), %rax
movq %rax, -0x2b8(%rbp)
movl -0x24(%rbp), %edi
callq 0x5830
movl %eax, -0x2ac(%rbp)
jmp 0xd2df
movq -0x2b8(%rbp), %rdi
movl -0x2ac(%rbp), %eax
movl %eax, -0x1e8(%rbp)
movl -0x1e8(%rbp), %esi
callq 0x3370
movq %rax, -0x2c0(%rbp)
jmp 0xd306
movq -0x8(%rbp), %rdi
movslq -0x1e0(%rbp), %rsi
callq 0xe7c0
movq %rax, %rdi
movslq -0x1e4(%rbp), %rsi
callq 0xe7e0
movq -0x2c0(%rbp), %rdi
movl (%rax), %esi
callq 0x34d0
movq %rax, -0x2c8(%rbp)
jmp 0xd33c
movq -0x2c8(%rbp), %rdi
leaq 0xb143(%rip), %rsi      # 0x1848d
callq 0x32e0
jmp 0xd351
jmp 0xd353
movl -0x1e4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1e4(%rbp)
jmp 0xd2b2
leaq -0x1a0(%rbp), %rdi
movq 0x16c03(%rip), %rsi     # 0x23f78
callq 0x3320
jmp 0xd37c
jmp 0xd37e
movl -0x1e0(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1e0(%rbp)
jmp 0xd299
jmp 0xd394
movq -0x20(%rbp), %rax
movq %rax, -0x2d0(%rbp)
leaq -0x208(%rbp), %rdi
leaq -0x1b0(%rbp), %rsi
callq 0x32d0
jmp 0xd3b4
movq -0x2d0(%rbp), %rdi
leaq -0x208(%rbp), %rsi
callq 0x32a0
jmp 0xd3c9
leaq -0x208(%rbp), %rdi
callq 0x31a0
leaq -0x1b0(%rbp), %rdi
callq 0x3230
addq $0x2d0, %rsp            # imm = 0x2D0
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1b8(%rbp)
movl %eax, -0x1bc(%rbp)
leaq -0x208(%rbp), %rdi
callq 0x31a0
leaq -0x1b0(%rbp), %rdi
callq 0x3230
movq -0x1b8(%rbp), %rdi
callq 0x34e0