// File: /workspace/github_cpp_makefile_star2_O2/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rdx, %rbx
movl %esi, %r12d
movl %edi, %r14d
callq 0x3ab9
xorl %edi, %edi
callq 0x3edd
movq 0xbb5d(%rip), %rax      # 0xf848
subq 0xbb4e(%rip), %rax      # 0xf840
shrq $0x5, %rax
movl %eax, 0xb864(%rip)      # 0xf560
decl %eax
movl %eax, 0xb860(%rip)      # 0xf564
movl 0xb572(%rip), %esi      # 0xf27c
movl 0xb570(%rip), %edx      # 0xf280
leaq 0x7371(%rip), %r15      # 0xb088
movq %r15, %rdi
xorl %eax, %eax
callq 0x3050
movl 0xb839(%rip), %eax      # 0xf560
cmpl %r12d, %eax
cmovll %eax, %r12d
movl 0xb548(%rip), %esi      # 0xf27c
movl 0xb546(%rip), %edx      # 0xf280
movq %r15, %rdi
xorl %eax, %eax
callq 0x3050
movslq %r14d, %rax
movslq %r12d, %rcx
movq %rcx, 0x8(%rsp)
movq %rax, %r15
shlq $0x5, %r15
movq %rax, 0x10(%rsp)
incl %eax
movq %rax, (%rsp)
leaq 0x18(%rsp), %r12
leaq 0x58(%rsp), %r13
leaq 0x38(%rsp), %r14
xorl %ebp, %ebp
movq 0x10(%rsp), %rax
addq %rbp, %rax
cmpq 0x8(%rsp), %rax
jge 0x3e8c
movq (%rsp), %rax
leal (%rax,%rbp), %esi
leaq 0x7331(%rip), %rdi      # 0xb0c4
xorl %eax, %eax
callq 0x3050
leaq 0x7328(%rip), %rdi      # 0xb0c9
xorl %eax, %eax
callq 0x3050
movq %r12, %rdi
movq %rbx, %rsi
callq 0x3350
cmpq $0x1a, 0x20(%rsp)
movq %rbx, %rax
jb 0x3de4
movq %r13, %rdi
movq %r12, %rsi
xorl %edx, %edx
pushq $0x19
popq %rcx
callq 0x3270
movq %r12, %rdi
movq %r13, %rsi
callq 0x3300
movq %r13, %rdi
callq 0x34d8
movq %r12, %rax
movq (%rax), %rsi
leaq 0x77ba(%rip), %rdi      # 0xb5a8
xorl %eax, %eax
callq 0x3050
leaq 0x7388(%rip), %rdi      # 0xb184
xorl %eax, %eax
callq 0x3050
leal 0x3(%rbp), %esi
leaq 0x72c2(%rip), %rdi      # 0xb0cf
xorl %eax, %eax
callq 0x3050
movq 0xba25(%rip), %rsi      # 0xf840
addq %r15, %rsi
movq 0xb65b(%rip), %rdx      # 0xf480
movq %r14, %rdi
pushq $-0x1
popq %rcx
callq 0x3270
movq %r13, %rdi
leaq 0x7263(%rip), %rsi      # 0xb09d
movq %r14, %rdx
callq 0xa237
movq 0x58(%rsp), %rsi
leaq 0x775a(%rip), %rdi      # 0xb5a8
xorl %eax, %eax
callq 0x3050
movq %r13, %rdi
callq 0x34d8
movq %r14, %rdi
callq 0x34d8
movq 0xb15c(%rip), %rdi      # 0xefc8
leaq 0x72ab(%rip), %rsi      # 0xb11e
callq 0x3230
movq %r12, %rdi
callq 0x34d8
incq %rbp
addq $0x20, %r15
jmp 0x3d72
movl 0xb3ea(%rip), %esi      # 0xf27c
movl 0xb3e8(%rip), %edx      # 0xf280
leaq 0x71e9(%rip), %rdi      # 0xb088
xorl %eax, %eax
callq 0x3050
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x3ec8
jmp 0x3ec8
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0x34d8
jmp 0x3ecb
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x34d8
movq %rbx, %rdi
callq 0x3430