// File: /workspace/github_cpp_makefile_star2_O3/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 0x10863(%rip), %rdi     # 0x17970
movl $0x700, %esi            # imm = 0x700
callq 0x41c0
movq 0x10852(%rip), %rdi     # 0x17970
movl $0x3, %esi
movl $0x1c, %edx
callq 0x4230
movq 0x1083c(%rip), %rdi     # 0x17970
movq 0xfe55(%rip), %r12      # 0x16f90
movl 0x1b0(%r12), %esi
callq 0x45b0
movb $0x5, %r14b
movq 0x1081e(%rip), %rdi     # 0x17970
movl 0x1c4(%r12), %esi
callq 0x45b0
decb %r14b
jne 0x714b
movq 0x10805(%rip), %rdi     # 0x17970
movl 0x1ac(%r12), %esi
callq 0x45b0
movl $0x4, %r14d
leaq 0x92ef(%rip), %r15      # 0x10474
movq 0x107e4(%rip), %rdi     # 0x17970
movl %r14d, %esi
movl $0x1c, %edx
callq 0x4230
movq 0x107d0(%rip), %rdi     # 0x17970
movl 0x1e0(%r12), %esi
callq 0x45b0
movq 0x107bc(%rip), %rdi     # 0x17970
movq %r15, %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x4680
movq 0x107a8(%rip), %rdi     # 0x17970
movl 0x1e0(%r12), %esi
callq 0x45b0
incl %r14d
cmpl $0x7, %r14d
jne 0x7185
movq 0x1078b(%rip), %rdi     # 0x17970
movl $0x7, %esi
movl $0x1c, %edx
callq 0x4230
movq 0x10775(%rip), %rdi     # 0x17970
movl 0x1b4(%r12), %esi
callq 0x45b0
movb $0x5, %r14b
movq 0x1075e(%rip), %rdi     # 0x17970
movl 0x1c4(%r12), %esi
callq 0x45b0
decb %r14b
jne 0x720b
movq 0x10745(%rip), %rdi     # 0x17970
movl 0x1a8(%r12), %esi
callq 0x45b0
xorl %r14d, %r14d
leaq 0x907d(%rip), %r15      # 0x102bf
leaq 0x907f(%rip), %r12      # 0x102c8
movq (%rbx), %rax
cmpb $0x6e, (%rax,%r14)
je 0x728e
movq 0x10716(%rip), %rdi     # 0x17970
movsbl (%r14,%r15), %esi
movsbl (%r14,%r12), %edx
callq 0x4230
movq 0x10700(%rip), %rdi     # 0x17970
movq (%rbx), %rax
movzbl (%rax,%r14), %esi
callq 0x68ee
movq 0x106ec(%rip), %rdi     # 0x17970
movl $0x26, %esi
callq 0x45b0
incq %r14
cmpq $0x9, %r14
jne 0x7249
movq 0x106d2(%rip), %rdi     # 0x17970
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x4420
nop