// File: girdhari9[P]TEXPLORER/list_print.cpp
// Function: print_dir()
void print_dir(){
	n = scandir(new_path.c_str(),&namelist,NULL, alphasort);
	for(int i = up; i < up + screen_limit && i < n; i++){
		string new_name = namelist[i]->d_name;
	    if(new_name.size() > 20)	
	    	new_name = trim_name(namelist[i]->d_name,19,1);
	    if(namelist[i]->d_type == 4)
	    	cout<<"\033[21;31m "<<new_name<<"\033[0m";
	    else if(namelist[i]->d_type == 8)
		    cout<<"\033[21;36m "<<new_name<<"\033[0m";
		else cout<<"\033[21;32m "<<new_name<<"\033[0m";
		string temp_path = new_path + "/" + namelist[i]->d_name;
		screen_point(itemCounter+1,30,0);
	    print_file_permission(temp_path);
		itemCounter++;
	}
	screen_point(cmd_mod_screen_start+1,20,0);
	unsigned int loc = horizontal-10;
	if(new_path.size() > loc)
		cout <<"\033[21;32mPath:\033[0m./:"<<new_path.substr(home_path.size(),horizontal-10)<<"...";
	else cout <<"\033[21;32mPath:\033[0m./:"<<new_path.substr(home_path.size());
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x1b0, %rsp            # imm = 0x1B0
leaq 0x1406e(%rip), %rdi     # 0x18800
callq 0x3110
movq %rax, %rdi
leaq 0x13faf(%rip), %rsi     # 0x18750
xorl %eax, %eax
movl %eax, %edx
movq 0x1381c(%rip), %rcx     # 0x17fc8
callq 0x3060
movl %eax, 0x1406d(%rip)     # 0x18824
movl 0x14063(%rip), %eax     # 0x18820
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %ecx
movl 0x14057(%rip), %edx     # 0x18820
addl 0x14059(%rip), %edx     # 0x18828
xorl %eax, %eax
cmpl %edx, %ecx
movb %al, -0x131(%rbp)
jge 0x47ed
movl -0x4(%rbp), %eax
cmpl 0x14040(%rip), %eax     # 0x18824
setl %al
movb %al, -0x131(%rbp)
movb -0x131(%rbp), %al
testb $0x1, %al
jne 0x47fc
jmp 0x4b80
movq 0x13f4d(%rip), %rax     # 0x18750
movslq -0x4(%rbp), %rcx
movq (%rax,%rcx,8), %rax
addq $0x13, %rax
movq %rax, -0x148(%rbp)
leaq -0x29(%rbp), %rdi
movq %rdi, -0x140(%rbp)
callq 0x3540
movq -0x148(%rbp), %rsi
movq -0x140(%rbp), %rdx
leaq -0x28(%rbp), %rdi
callq 0x3cd0
jmp 0x483f
leaq -0x29(%rbp), %rdi
callq 0x3350
leaq -0x28(%rbp), %rdi
callq 0x3210
cmpq $0x14, %rax
jbe 0x4935
movq 0x13eee(%rip), %rax     # 0x18750
movslq -0x4(%rbp), %rcx
movq (%rax,%rcx,8), %rax
addq $0x13, %rax
movq %rax, -0x158(%rbp)
leaq -0x81(%rbp), %rdi
movq %rdi, -0x150(%rbp)
callq 0x3540
movq -0x158(%rbp), %rsi
movq -0x150(%rbp), %rdx
leaq -0x80(%rbp), %rdi
callq 0x3cd0
jmp 0x48a1
leaq -0x60(%rbp), %rdi
leaq -0x80(%rbp), %rsi
movl $0x13, %edx
movl $0x1, %ecx
callq 0x5190
jmp 0x48ba
leaq -0x28(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x33e0
leaq -0x60(%rbp), %rdi
callq 0x35c8
leaq -0x80(%rbp), %rdi
callq 0x35c8
leaq -0x81(%rbp), %rdi
callq 0x3350
jmp 0x4935
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0x29(%rbp), %rdi
callq 0x3350
jmp 0x4d06
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
jmp 0x4924
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0x80(%rbp), %rdi
callq 0x35c8
leaq -0x81(%rbp), %rdi
callq 0x3350
jmp 0x4b72
movq 0x13e14(%rip), %rax     # 0x18750
movslq -0x4(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movzbl 0x12(%rax), %eax
cmpl $0x4, %eax
jne 0x49ad
movq 0x1367c(%rip), %rdi     # 0x17fd0
leaq 0xc718(%rip), %rsi      # 0x11073
callq 0x32d0
movq %rax, -0x160(%rbp)
jmp 0x4969
movq -0x160(%rbp), %rdi
leaq -0x28(%rbp), %rsi
callq 0x3290
movq %rax, -0x168(%rbp)
jmp 0x4982
movq -0x168(%rbp), %rdi
leaq 0xc6ed(%rip), %rsi      # 0x1107d
callq 0x32d0
jmp 0x4997
jmp 0x4a5f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
jmp 0x4b72
movq 0x13d9c(%rip), %rax     # 0x18750
movslq -0x4(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movzbl 0x12(%rax), %eax
cmpl $0x8, %eax
jne 0x4a11
movq 0x13604(%rip), %rdi     # 0x17fd0
leaq 0xc6af(%rip), %rsi      # 0x11082
callq 0x32d0
movq %rax, -0x170(%rbp)
jmp 0x49e1
movq -0x170(%rbp), %rdi
leaq -0x28(%rbp), %rsi
callq 0x3290
movq %rax, -0x178(%rbp)
jmp 0x49fa
movq -0x178(%rbp), %rdi
leaq 0xc675(%rip), %rsi      # 0x1107d
callq 0x32d0
jmp 0x4a0f
jmp 0x4a5d
movq 0x135b8(%rip), %rdi     # 0x17fd0
leaq 0xc66d(%rip), %rsi      # 0x1108c
callq 0x32d0
movq %rax, -0x180(%rbp)
jmp 0x4a2d
movq -0x180(%rbp), %rdi
leaq -0x28(%rbp), %rsi
callq 0x3290
movq %rax, -0x188(%rbp)
jmp 0x4a46
movq -0x188(%rbp), %rdi
leaq 0xc629(%rip), %rsi      # 0x1107d
callq 0x32d0
jmp 0x4a5b
jmp 0x4a5d
jmp 0x4a5f
leaq 0x13d9a(%rip), %rsi     # 0x18800
leaq 0xc674(%rip), %rdx      # 0x110e1
leaq -0xc8(%rbp), %rdi
callq 0x5490
jmp 0x4a7b
movq 0x13cce(%rip), %rax     # 0x18750
movslq -0x4(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
addq $0x13, %rdx
leaq -0xa8(%rbp), %rdi
leaq -0xc8(%rbp), %rsi
callq 0x5440
jmp 0x4aa3
leaq -0xc8(%rbp), %rdi
callq 0x35c8
movl 0x13d43(%rip), %edi     # 0x187f8
incl %edi
movl $0x1e, %esi
xorl %edx, %edx
callq 0x4020
jmp 0x4ac5
leaq -0xe8(%rbp), %rdi
leaq -0xa8(%rbp), %rsi
callq 0x3130
jmp 0x4ada
leaq -0xe8(%rbp), %rdi
callq 0x4d10
jmp 0x4ae8
leaq -0xe8(%rbp), %rdi
callq 0x35c8
movl 0x13cfe(%rip), %eax     # 0x187f8
addl $0x1, %eax
movl %eax, 0x13cf5(%rip)     # 0x187f8
leaq -0xa8(%rbp), %rdi
callq 0x35c8
leaq -0x28(%rbp), %rdi
callq 0x35c8
movl -0x4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4(%rbp)
jmp 0x47c0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0xc8(%rbp), %rdi
callq 0x35c8
jmp 0x4b72
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
jmp 0x4b66
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0xe8(%rbp), %rdi
callq 0x35c8
leaq -0xa8(%rbp), %rdi
callq 0x35c8
leaq -0x28(%rbp), %rdi
callq 0x35c8
jmp 0x4d06
leaq 0x13bb5(%rip), %rax     # 0x1873c
movl (%rax), %edi
addl $0x1, %edi
movl $0x14, %esi
xorl %edx, %edx
callq 0x4020
leaq 0x13ba1(%rip), %rax     # 0x18740
movl (%rax), %eax
subl $0xa, %eax
movl %eax, -0xec(%rbp)
leaq 0x13c4f(%rip), %rdi     # 0x18800
callq 0x3210
movl -0xec(%rbp), %ecx
cmpq %rcx, %rax
jbe 0x4c76
movq 0x13404(%rip), %rdi     # 0x17fd0
leaq 0xc4c3(%rip), %rsi      # 0x11096
callq 0x32d0
movq %rax, -0x1a0(%rbp)
leaq 0x13b32(%rip), %rdi     # 0x18718
callq 0x3210
movq %rax, %rdx
leaq 0x13b4b(%rip), %rax     # 0x18740
movl (%rax), %eax
addl $-0xa, %eax
movslq %eax, %rcx
leaq 0x13bfc(%rip), %rsi     # 0x18800
leaq -0x110(%rbp), %rdi
movq %rdi, -0x198(%rbp)
callq 0x3310
movq -0x1a0(%rbp), %rdi
movq -0x198(%rbp), %rsi
callq 0x3290
movq %rax, -0x190(%rbp)
jmp 0x4c33
movq -0x190(%rbp), %rdi
leaq 0xc42e(%rip), %rsi      # 0x1106f
callq 0x32d0
jmp 0x4c48
leaq -0x110(%rbp), %rdi
callq 0x35c8
jmp 0x4cfd
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0x110(%rbp), %rdi
callq 0x35c8
jmp 0x4d06
movq 0x13353(%rip), %rdi     # 0x17fd0
leaq 0xc412(%rip), %rsi      # 0x11096
callq 0x32d0
movq %rax, -0x1b0(%rbp)
leaq 0x13a81(%rip), %rdi     # 0x18718
callq 0x3210
movq %rax, %rdx
leaq 0x13b5a(%rip), %rsi     # 0x18800
leaq -0x130(%rbp), %rdi
movq %rdi, -0x1a8(%rbp)
movq $-0x1, %rcx
callq 0x3310
movq -0x1b0(%rbp), %rdi
movq -0x1a8(%rbp), %rsi
callq 0x3290
jmp 0x4cd5
leaq -0x130(%rbp), %rdi
callq 0x35c8
jmp 0x4cfd
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0x130(%rbp), %rdi
callq 0x35c8
jmp 0x4d06
addq $0x1b0, %rsp            # imm = 0x1B0
popq %rbp
retq
movq -0x38(%rbp), %rdi
callq 0x3530
nop