// File: /workspace/github_cpp_makefile_star2_O1/girdhari9[P]TEXPLORER/screen_point.cpp
// Function: screen_point(int, int, int)
void screen_point(int x, int y, int flag){
	struct winsize size;
	ioctl(STDOUT_FILENO,TIOCGWINSZ,&size);

	vertical = size.ws_row;
	horizontal = size.ws_col;
	cmd_mod_screen_start = vertical - 10;
	cmd_mod_screen_start = vertical - 10;

	if(flag) clear_scr(1);
	fflush(stdout);
	gotoxy(cmd_mod_screen_start,0);
	for(int i=0;i<horizontal;i++)
		cout<<"=";
	gotoxy(cmd_mod_screen_start+1,0);
	if(mode)
		cout<<"Nomal Mode: ";
	else cout<<"Command Mode:";
	gotoxy(cmd_mod_screen_start+2,0);
	for(int i=0;i<horizontal;i++)
		cout<<"=";
	gotoxy(x,y);
	return;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movl %edx, %r14d
movl %esi, %ebx
movl %edi, %ebp
leaq 0x8(%rsp), %r15
movl $0x5413, %esi           # imm = 0x5413
movl $0x1, %edi
movq %r15, %rdx
xorl %eax, %eax
callq 0x2350
movzwl (%r15), %eax
movl %eax, 0xea62(%rip)      # 0x116a4
movzwl 0x2(%r15), %ecx
movl %ecx, 0xea53(%rip)      # 0x116a0
addl $-0xa, %eax
movl %eax, 0xea46(%rip)      # 0x1169c
testl %r14d, %r14d
je 0x2c65
movl $0x1, %edi
callq 0x2e9c
movq 0xe334(%rip), %rax      # 0x10fa0
movq (%rax), %rdi
callq 0x22c0
movq 0xe355(%rip), %r14      # 0x10fd0
leaq 0xa3ac(%rip), %rsi      # 0xd02e
movl $0x2, %edx
movq %r14, %rdi
callq 0x2290
movl 0xea07(%rip), %esi      # 0x1169c
movq %r14, %rdi
callq 0x23f0
movq %rax, %r14
leaq 0xa38a(%rip), %rsi      # 0xd031
movl $0x1, %edx
movq %rax, %rdi
callq 0x2290
xorl %r12d, %r12d
movq %r14, %rdi
xorl %esi, %esi
callq 0x23f0
leaq 0xa36b(%rip), %rsi      # 0xd033
movl $0x1, %edx
movq %rax, %rdi
callq 0x2290
cmpl $0x0, 0xe9c4(%rip)      # 0x116a0
jle 0x2d08
movq 0xe2eb(%rip), %r14      # 0x10fd0
leaq 0xa349(%rip), %r15      # 0xd035
movl $0x1, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x2290
incl %r12d
cmpl 0xe99a(%rip), %r12d     # 0x116a0
jl 0x2cec
movq 0xe2c1(%rip), %r14      # 0x10fd0
leaq 0xa318(%rip), %rsi      # 0xd02e
movl $0x2, %edx
movq %r14, %rdi
callq 0x2290
movl 0xe973(%rip), %esi      # 0x1169c
incl %esi
movq %r14, %rdi
callq 0x23f0
movq %rax, %r14
leaq 0xa2f4(%rip), %rsi      # 0xd031
movl $0x1, %edx
movq %rax, %rdi
callq 0x2290
movq %r14, %rdi
xorl %esi, %esi
callq 0x23f0
leaq 0xa2d8(%rip), %rsi      # 0xd033
movl $0x1, %edx
movq %rax, %rdi
callq 0x2290
cmpl $0x0, 0xe4e9(%rip)      # 0x11258
je 0x2d86
movq 0xe258(%rip), %rdi      # 0x10fd0
leaq 0xa2b8(%rip), %rsi      # 0xd037
movl $0xc, %edx
jmp 0x2d99
movq 0xe243(%rip), %rdi      # 0x10fd0
leaq 0xa2b0(%rip), %rsi      # 0xd044
movl $0xd, %edx
callq 0x2290
movq 0xe22b(%rip), %r14      # 0x10fd0
leaq 0xa282(%rip), %rsi      # 0xd02e
movl $0x2, %edx
movq %r14, %rdi
callq 0x2290
movl 0xe8dd(%rip), %esi      # 0x1169c
addl $0x2, %esi
movq %r14, %rdi
callq 0x23f0
movq %rax, %r14
leaq 0xa25d(%rip), %rsi      # 0xd031
movl $0x1, %edx
movq %rax, %rdi
callq 0x2290
xorl %r12d, %r12d
movq %r14, %rdi
xorl %esi, %esi
callq 0x23f0
leaq 0xa23e(%rip), %rsi      # 0xd033
movl $0x1, %edx
movq %rax, %rdi
callq 0x2290
cmpl $0x0, 0xe897(%rip)      # 0x116a0
jle 0x2e35
movq 0xe1be(%rip), %r14      # 0x10fd0
leaq 0xa21c(%rip), %r15      # 0xd035
movl $0x1, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x2290
incl %r12d
cmpl 0xe86d(%rip), %r12d     # 0x116a0
jl 0x2e19
movq 0xe194(%rip), %r14      # 0x10fd0
leaq 0xa1eb(%rip), %rsi      # 0xd02e
movl $0x2, %edx
movq %r14, %rdi
callq 0x2290
movq %r14, %rdi
movl %ebp, %esi
callq 0x23f0
movq %rax, %r14
leaq 0xa1cd(%rip), %rsi      # 0xd031
movl $0x1, %edx
movq %rax, %rdi
callq 0x2290
movq %r14, %rdi
movl %ebx, %esi
callq 0x23f0
leaq 0xa1b1(%rip), %rsi      # 0xd033
movl $0x1, %edx
movq %rax, %rdi
callq 0x2290
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq