// File: /workspace/github_cpp_makefile_star2_O1/lotuskip[P]yuxtapa/client/base.cpp
// Function: Base::print_flags(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void Base::print_flags(const string &fs)
{
	// First print the empty box:
	char i;
	change_colour(windows[STAT_WIN], 7);
	wmove(windows[STAT_WIN], 3, 28);
	waddch(windows[STAT_WIN], ACS_ULCORNER);
	for(i = 0; i < 5; ++i)
		waddch(windows[STAT_WIN], ACS_HLINE);	
	waddch(windows[STAT_WIN], ACS_URCORNER);	
	for(i = 0; i < 3; ++i)
	{
		wmove(windows[STAT_WIN], 4+i, 28);
		waddch(windows[STAT_WIN], ACS_VLINE);	
		waddstr(windows[STAT_WIN], "     ");
		waddch(windows[STAT_WIN], ACS_VLINE);	
	}
	wmove(windows[STAT_WIN], 7, 28);
	waddch(windows[STAT_WIN], ACS_LLCORNER);
	for(i = 0; i < 5; ++i)
		waddch(windows[STAT_WIN], ACS_HLINE);	
	waddch(windows[STAT_WIN], ACS_LRCORNER);
#if 0
	print_str("_______", 7, 28, 3, STAT_WIN);
	print_str("|     |", 7, 28, 4, STAT_WIN);
	print_str("|     |", 7, 28, 5, STAT_WIN);
	print_str("|_____|", 7, 28, 6, STAT_WIN);
#endif

	for(char i = 0; i < MAX_D+1; ++i)
	{
		if(fs[i] != MAX_PREDEF_CPAIR)
		{
			wmove(windows[STAT_WIN], flagy[i], flagx[i]);
			change_colour(windows[STAT_WIN], fs[i]);
			waddch(windows[STAT_WIN], '&');
		}
	}
	wrefresh(windows[STAT_WIN]);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
movq 0x1085d(%rip), %rdi     # 0x17970
movl $0x7, %esi
callq 0x6930
movq 0x1084c(%rip), %rdi     # 0x17970
movl $0x3, %esi
movl $0x1c, %edx
callq 0x4230
movq 0x10836(%rip), %rdi     # 0x17970
movq 0xfe4f(%rip), %r12      # 0x16f90
movl 0x1b0(%r12), %esi
callq 0x45c0
movb $0x5, %r14b
movq 0x10818(%rip), %rdi     # 0x17970
movl 0x1c4(%r12), %esi
callq 0x45c0
decb %r14b
jne 0x7151
movq 0x107ff(%rip), %rdi     # 0x17970
movl 0x1ac(%r12), %esi
callq 0x45c0
movl $0x4, %r14d
leaq 0x92e9(%rip), %r15      # 0x10474
movq 0x107de(%rip), %rdi     # 0x17970
movl %r14d, %esi
movl $0x1c, %edx
callq 0x4230
movq 0x107ca(%rip), %rdi     # 0x17970
movl 0x1e0(%r12), %esi
callq 0x45c0
movq 0x107b6(%rip), %rdi     # 0x17970
movq %r15, %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x4690
movq 0x107a2(%rip), %rdi     # 0x17970
movl 0x1e0(%r12), %esi
callq 0x45c0
incl %r14d
cmpl $0x7, %r14d
jne 0x718b
movq 0x10785(%rip), %rdi     # 0x17970
movl $0x7, %esi
movl $0x1c, %edx
callq 0x4230
movq 0x1076f(%rip), %rdi     # 0x17970
movl 0x1b4(%r12), %esi
callq 0x45c0
movb $0x5, %r14b
movq 0x10758(%rip), %rdi     # 0x17970
movl 0x1c4(%r12), %esi
callq 0x45c0
decb %r14b
jne 0x7211
movq 0x1073f(%rip), %rdi     # 0x17970
movl 0x1a8(%r12), %esi
callq 0x45c0
xorl %r14d, %r14d
leaq 0x9077(%rip), %r15      # 0x102bf
leaq 0x9079(%rip), %r12      # 0x102c8
movq (%rbx), %rax
cmpb $0x6e, (%rax,%r14)
je 0x7294
movq 0x10710(%rip), %rdi     # 0x17970
movsbl (%r14,%r15), %esi
movsbl (%r14,%r12), %edx
callq 0x4230
movq 0x106fa(%rip), %rdi     # 0x17970
movq (%rbx), %rax
movzbl (%rax,%r14), %esi
callq 0x6930
movq 0x106e6(%rip), %rdi     # 0x17970
movl $0x26, %esi
callq 0x45c0
incq %r14
cmpq $0x9, %r14
jne 0x724f
movq 0x106cc(%rip), %rdi     # 0x17970
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x4430
nop