// File: 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
movq %rsp, %rbp
subq $0x20, %rsp
movl %edi, -0x4(%rbp)
movl %esi, -0x8(%rbp)
movl %edx, -0xc(%rbp)
movl $0x1, %edi
movl $0x5413, %esi           # imm = 0x5413
leaq -0x14(%rbp), %rdx
movb $0x0, %al
callq 0x3480
movzwl -0x14(%rbp), %eax
movl %eax, 0x146f4(%rip)     # 0x18744
movzwl -0x12(%rbp), %eax
movl %eax, 0x146e6(%rip)     # 0x18740
movl 0x146e4(%rip), %eax     # 0x18744
subl $0xa, %eax
movl %eax, 0x146d3(%rip)     # 0x1873c
movl 0x146d5(%rip), %eax     # 0x18744
subl $0xa, %eax
movl %eax, 0x146c4(%rip)     # 0x1873c
cmpl $0x0, -0xc(%rbp)
je 0x4088
movl $0x1, %edi
callq 0x4260
movq 0x13f11(%rip), %rax     # 0x17fa0
movq (%rax), %rdi
callq 0x33b0
movq 0x13f32(%rip), %rdi     # 0x17fd0
leaq 0xcf89(%rip), %rsi      # 0x1102e
callq 0x32d0
movq %rax, %rdi
movl 0x14689(%rip), %esi     # 0x1873c
callq 0x3520
movq %rax, %rdi
leaq 0xcf6f(%rip), %rsi      # 0x11031
callq 0x32d0
movq %rax, %rdi
xorl %esi, %esi
callq 0x3520
movq %rax, %rdi
leaq 0xcf58(%rip), %rsi      # 0x11033
callq 0x32d0
movl $0x0, -0x18(%rbp)
movl -0x18(%rbp), %eax
cmpl 0x14650(%rip), %eax     # 0x18740
jge 0x4110
movq 0x13ed7(%rip), %rdi     # 0x17fd0
leaq 0xcf35(%rip), %rsi      # 0x11035
callq 0x32d0
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0x40e7
movq 0x13eb9(%rip), %rdi     # 0x17fd0
leaq 0xcf10(%rip), %rsi      # 0x1102e
callq 0x32d0
movq %rax, %rdi
movl 0x14610(%rip), %esi     # 0x1873c
addl $0x1, %esi
callq 0x3520
movq %rax, %rdi
leaq 0xcef3(%rip), %rsi      # 0x11031
callq 0x32d0
movq %rax, %rdi
xorl %esi, %esi
callq 0x3520
movq %rax, %rdi
leaq 0xcedc(%rip), %rsi      # 0x11033
callq 0x32d0
cmpl $0x0, 0x14195(%rip)     # 0x182f8
je 0x417a
movq 0x13e64(%rip), %rdi     # 0x17fd0
leaq 0xcec4(%rip), %rsi      # 0x11037
callq 0x32d0
jmp 0x418d
movq 0x13e4f(%rip), %rdi     # 0x17fd0
leaq 0xcebc(%rip), %rsi      # 0x11044
callq 0x32d0
movq 0x13e3c(%rip), %rdi     # 0x17fd0
leaq 0xce93(%rip), %rsi      # 0x1102e
callq 0x32d0
movq %rax, %rdi
movl 0x14593(%rip), %esi     # 0x1873c
addl $0x2, %esi
callq 0x3520
movq %rax, %rdi
leaq 0xce76(%rip), %rsi      # 0x11031
callq 0x32d0
movq %rax, %rdi
xorl %esi, %esi
callq 0x3520
movq %rax, %rdi
leaq 0xce5f(%rip), %rsi      # 0x11033
callq 0x32d0
movl $0x0, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
cmpl 0x14557(%rip), %eax     # 0x18740
jge 0x4209
movq 0x13dde(%rip), %rdi     # 0x17fd0
leaq 0xce3c(%rip), %rsi      # 0x11035
callq 0x32d0
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x41e0
movq 0x13dc0(%rip), %rdi     # 0x17fd0
leaq 0xce17(%rip), %rsi      # 0x1102e
callq 0x32d0
movq %rax, %rdi
movl -0x4(%rbp), %esi
callq 0x3520
movq %rax, %rdi
leaq 0xce00(%rip), %rsi      # 0x11031
callq 0x32d0
movq %rax, %rdi
movl -0x8(%rbp), %esi
callq 0x3520
movq %rax, %rdi
leaq 0xcde8(%rip), %rsi      # 0x11033
callq 0x32d0
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)