// File: danish241194[P]Linux-Terminal-Based-File-Explorer/start_page.cpp
// Function: print_search(int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void print_search(int j,int limit_y,string name){
	real_clean();
	change_mode_to(NORMALMODE);
	nn=search_path.size();
	n=nn;	
	n--;
	
	gotoxy(start_x,start_y);

	int numbers=j+1;
	int ini=j;
	if(nn<limit_y){
		limit_y=nn;
	}
	gotoxy(start_x,start_y);
	while(ini<limit_y){

	
		printf(" %d ",numbers);
		printf("\x1B[36m");
	
		string cc = name;
		if(cc.size()>25){
			cc=cc.substr(0,25);
			printf("%s",cc.c_str());
	
		}
		else{
	
			printf("%s",name.c_str());

		}	
		printf("\x1B[0m");

		printf("\033[%d;28H",ini-j+3);
	 //+1
		printf("%s",("."+search_path[ini].substr(home.length())).c_str());
	

		cout<<"\n";
		
	   
	    numbers++;
	    ini++;
		
	}
	gotoxy(start_x,start_y);

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xd0, %rsp
movq %rdx, -0xb0(%rbp)
movl %edi, -0x4(%rbp)
movl %esi, -0x8(%rbp)
movq %rdx, -0x10(%rbp)
callq 0x3f30
xorl %edi, %edi
callq 0x4480
leaq 0x13721(%rip), %rdi     # 0x178e0
callq 0xe1c0
movl %eax, 0x13436(%rip)     # 0x17600
movl 0x13430(%rip), %eax     # 0x17600
movl %eax, 0x1342e(%rip)     # 0x17604
movl 0x13428(%rip), %eax     # 0x17604
addl $-0x1, %eax
movl %eax, 0x1341f(%rip)     # 0x17604
movl 0x13139(%rip), %esi     # 0x17324
movl 0x13137(%rip), %edx     # 0x17328
leaq 0xde50(%rip), %rdi      # 0x12048
movb $0x0, %al
callq 0x3070
movl -0x4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
movl -0x4(%rbp), %eax
movl %eax, -0x18(%rbp)
movl 0x133ec(%rip), %eax     # 0x17600
cmpl -0x8(%rbp), %eax
jge 0x4222
movl 0x133e1(%rip), %eax     # 0x17600
movl %eax, -0x8(%rbp)
movl 0x130fc(%rip), %esi     # 0x17324
movl 0x130fa(%rip), %edx     # 0x17328
leaq 0xde13(%rip), %rdi      # 0x12048
movb $0x0, %al
callq 0x3070
movl -0x18(%rbp), %eax
cmpl -0x8(%rbp), %eax
jge 0x444a
movl -0x14(%rbp), %esi
leaq 0xde32(%rip), %rdi      # 0x12084
movb $0x0, %al
callq 0x3070
leaq 0xde29(%rip), %rdi      # 0x12089
movb $0x0, %al
callq 0x3070
movq -0xb0(%rbp), %rsi
leaq -0x38(%rbp), %rdi
callq 0x3150
leaq -0x38(%rbp), %rdi
callq 0x3200
cmpq $0x19, %rax
jbe 0x42f7
xorl %eax, %eax
movl %eax, %edx
leaq -0x58(%rbp), %rdi
leaq -0x38(%rbp), %rsi
movl $0x19, %ecx
callq 0x3320
jmp 0x429e
leaq -0x38(%rbp), %rdi
movq %rdi, -0xb8(%rbp)
leaq -0x58(%rbp), %rsi
movq %rsi, -0xc0(%rbp)
callq 0x3400
movq -0xc0(%rbp), %rdi
callq 0x3628
movq -0xb8(%rbp), %rdi
callq 0x3140
movq %rax, %rsi
leaq 0xe28d(%rip), %rdi      # 0x12568
xorl %eax, %eax
callq 0x3070
jmp 0x42e4
jmp 0x4318
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
jmp 0x443f
movq -0xb0(%rbp), %rdi
callq 0x3140
movq %rax, %rsi
leaq 0xe25b(%rip), %rdi      # 0x12568
xorl %eax, %eax
callq 0x3070
jmp 0x4316
jmp 0x4318
leaq 0xde25(%rip), %rdi      # 0x12144
xorl %eax, %eax
callq 0x3070
jmp 0x4328
movl -0x18(%rbp), %esi
movl -0x4(%rbp), %eax
subl %eax, %esi
addl $0x3, %esi
leaq 0xdd55(%rip), %rdi      # 0x1208f
xorl %eax, %eax
callq 0x3070
jmp 0x4343
movslq -0x18(%rbp), %rsi
leaq 0x13592(%rip), %rdi     # 0x178e0
callq 0xe230
movq %rax, -0xc8(%rbp)
leaq 0x131b7(%rip), %rdi     # 0x17518
callq 0x34c0
movq -0xc8(%rbp), %rsi
movq %rax, %rdx
leaq -0xa8(%rbp), %rdi
movq $-0x1, %rcx
callq 0x3320
jmp 0x4385
leaq 0xdcd1(%rip), %rsi      # 0x1205d
leaq -0x88(%rbp), %rdi
leaq -0xa8(%rbp), %rdx
callq 0xe1e0
jmp 0x43a1
leaq -0x88(%rbp), %rdi
callq 0x3140
movq %rax, %rsi
leaq 0xe1b1(%rip), %rdi      # 0x12568
xorl %eax, %eax
callq 0x3070
jmp 0x43c0
leaq -0x88(%rbp), %rdi
callq 0x3628
leaq -0xa8(%rbp), %rdi
callq 0x3628
movq 0x12be9(%rip), %rdi     # 0x16fc8
leaq 0xdcf8(%rip), %rsi      # 0x120de
callq 0x32e0
jmp 0x43ed
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
leaq -0x38(%rbp), %rdi
callq 0x3628
jmp 0x423c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
jmp 0x4433
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
leaq -0x88(%rbp), %rdi
callq 0x3628
leaq -0xa8(%rbp), %rdi
callq 0x3628
leaq -0x38(%rbp), %rdi
callq 0x3628
jmp 0x446d
movl 0x12ed4(%rip), %esi     # 0x17324
movl 0x12ed2(%rip), %edx     # 0x17328
leaq 0xdbeb(%rip), %rdi      # 0x12048
movb $0x0, %al
callq 0x3070
addq $0xd0, %rsp
popq %rbp
retq
movq -0x60(%rbp), %rdi
callq 0x3570
nopw %cs:(%rax,%rax)