// File: /workspace/github_cpp_makefile_star2_O3/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, 0xea56(%rip)      # 0x116a4
movzwl 0x2(%r15), %ecx
movl %ecx, 0xea47(%rip)      # 0x116a0
addl $-0xa, %eax
movl %eax, 0xea3a(%rip)      # 0x1169c
testl %r14d, %r14d
je 0x2c71
movl $0x1, %edi
callq 0x2ea8
movq 0xe328(%rip), %rax      # 0x10fa0
movq (%rax), %rdi
callq 0x22c0
movq 0xe349(%rip), %r14      # 0x10fd0
leaq 0xa3a0(%rip), %rsi      # 0xd02e
movl $0x2, %edx
movq %r14, %rdi
callq 0x2290
movl 0xe9fb(%rip), %esi      # 0x1169c
movq %r14, %rdi
callq 0x23f0
movq %rax, %r14
leaq 0xa37e(%rip), %rsi      # 0xd031
movl $0x1, %edx
movq %rax, %rdi
callq 0x2290
xorl %r12d, %r12d
movq %r14, %rdi
xorl %esi, %esi
callq 0x23f0
leaq 0xa35f(%rip), %rsi      # 0xd033
movl $0x1, %edx
movq %rax, %rdi
callq 0x2290
cmpl $0x0, 0xe9b8(%rip)      # 0x116a0
jle 0x2d14
movq 0xe2df(%rip), %r14      # 0x10fd0
leaq 0xa33d(%rip), %r15      # 0xd035
movl $0x1, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x2290
incl %r12d
cmpl 0xe98e(%rip), %r12d     # 0x116a0
jl 0x2cf8
movq 0xe2b5(%rip), %r14      # 0x10fd0
leaq 0xa30c(%rip), %rsi      # 0xd02e
movl $0x2, %edx
movq %r14, %rdi
callq 0x2290
movl 0xe967(%rip), %esi      # 0x1169c
incl %esi
movq %r14, %rdi
callq 0x23f0
movq %rax, %r14
leaq 0xa2e8(%rip), %rsi      # 0xd031
movl $0x1, %edx
movq %rax, %rdi
callq 0x2290
movq %r14, %rdi
xorl %esi, %esi
callq 0x23f0
leaq 0xa2cc(%rip), %rsi      # 0xd033
movl $0x1, %edx
movq %rax, %rdi
callq 0x2290
cmpl $0x0, 0xe4dd(%rip)      # 0x11258
je 0x2d92
movq 0xe24c(%rip), %rdi      # 0x10fd0
leaq 0xa2ac(%rip), %rsi      # 0xd037
movl $0xc, %edx
jmp 0x2da5
movq 0xe237(%rip), %rdi      # 0x10fd0
leaq 0xa2a4(%rip), %rsi      # 0xd044
movl $0xd, %edx
callq 0x2290
movq 0xe21f(%rip), %r14      # 0x10fd0
leaq 0xa276(%rip), %rsi      # 0xd02e
movl $0x2, %edx
movq %r14, %rdi
callq 0x2290
movl 0xe8d1(%rip), %esi      # 0x1169c
addl $0x2, %esi
movq %r14, %rdi
callq 0x23f0
movq %rax, %r14
leaq 0xa251(%rip), %rsi      # 0xd031
movl $0x1, %edx
movq %rax, %rdi
callq 0x2290
xorl %r12d, %r12d
movq %r14, %rdi
xorl %esi, %esi
callq 0x23f0
leaq 0xa232(%rip), %rsi      # 0xd033
movl $0x1, %edx
movq %rax, %rdi
callq 0x2290
cmpl $0x0, 0xe88b(%rip)      # 0x116a0
jle 0x2e41
movq 0xe1b2(%rip), %r14      # 0x10fd0
leaq 0xa210(%rip), %r15      # 0xd035
movl $0x1, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x2290
incl %r12d
cmpl 0xe861(%rip), %r12d     # 0x116a0
jl 0x2e25
movq 0xe188(%rip), %r14      # 0x10fd0
leaq 0xa1df(%rip), %rsi      # 0xd02e
movl $0x2, %edx
movq %r14, %rdi
callq 0x2290
movq %r14, %rdi
movl %ebp, %esi
callq 0x23f0
movq %rax, %r14
leaq 0xa1c1(%rip), %rsi      # 0xd031
movl $0x1, %edx
movq %rax, %rdi
callq 0x2290
movq %r14, %rdi
movl %ebx, %esi
callq 0x23f0
leaq 0xa1a5(%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