// File: /workspace/github_cpp_makefile_star2_O1/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, %ebp
movl %edi, %r14d
callq 0x3d7f
xorl %edi, %edi
callq 0x42af
movq 0x11849(%rip), %rax     # 0x15838
subq 0x1183a(%rip), %rax     # 0x15830
shrq $0x5, %rax
movl %eax, 0x11550(%rip)     # 0x15550
decl %eax
movl %eax, 0x1154c(%rip)     # 0x15554
movl 0x11266(%rip), %esi     # 0x15274
movl 0x11264(%rip), %edx     # 0x15278
leaq 0xd06d(%rip), %r15      # 0x11088
movq %r15, %rdi
xorl %eax, %eax
callq 0x3060
movl 0x11525(%rip), %eax     # 0x15550
cmpl %ebp, %eax
cmovll %eax, %ebp
movl 0x1123e(%rip), %esi     # 0x15274
movl 0x1123c(%rip), %edx     # 0x15278
movq %r15, %rdi
xorl %eax, %eax
callq 0x3060
cmpl %r14d, %ebp
jle 0x423a
movq %r14, %rax
leaq 0x18(%rsp), %r14
movslq %eax, %r15
movslq %ebp, %rcx
subq %r15, %rcx
movq %rcx, 0x48(%rsp)
shlq $0x5, %r15
incl %eax
movq %rax, 0x50(%rsp)
leaq 0x28(%rsp), %r13
xorl %ebp, %ebp
movq 0x50(%rsp), %rax
leal (%rax,%rbp), %esi
leaq 0xd03e(%rip), %rdi      # 0x110c4
xorl %eax, %eax
callq 0x3060
leaq 0xd035(%rip), %rdi      # 0x110c9
xorl %eax, %eax
callq 0x3060
leaq 0x38(%rsp), %rax
movq %rax, 0x28(%rsp)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
movq %r13, %rdi
callq 0xfda0
cmpq $0x1a, 0x30(%rsp)
movq %rbx, %rax
jb 0x40fe
movl $0x19, %ecx
leaq 0x8(%rsp), %r12
movq %r12, %rdi
movq %r13, %rsi
xorl %edx, %edx
callq 0x3270
movq %r13, %rdi
movq %r12, %rsi
callq 0x3320
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x40fb
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3260
movq %r13, %rax
movq (%rax), %rsi
leaq 0xd4a0(%rip), %rdi      # 0x115a8
xorl %eax, %eax
callq 0x3060
leaq 0xd06e(%rip), %rdi      # 0x11184
xorl %eax, %eax
callq 0x3060
leal 0x3(%rbp), %esi
leaq 0xcfa8(%rip), %rdi      # 0x110cf
xorl %eax, %eax
callq 0x3060
movq 0x116fb(%rip), %rsi     # 0x15830
addq %r15, %rsi
movq 0x11331(%rip), %rdx     # 0x15470
leaq 0x58(%rsp), %r12
movq %r12, %rdi
movq $-0x1, %rcx
callq 0x3270
movl $0x1, %r8d
movq %r12, %rdi
xorl %esi, %esi
xorl %edx, %edx
leaq 0xcf36(%rip), %rcx      # 0x1109d
callq 0x32b0
movq %r14, 0x8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x418f
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x4196
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x8(%rsp), %rsi
leaq 0xd3ee(%rip), %rdi      # 0x115a8
xorl %eax, %eax
callq 0x3060
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x41d8
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3260
movq 0x58(%rsp), %rdi
leaq 0x68(%rsp), %rax
cmpq %rax, %rdi
je 0x41f4
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x3260
movl $0x1, %edx
movq 0x10dc8(%rip), %rdi     # 0x14fc8
leaq 0xcf17(%rip), %rsi      # 0x1111e
callq 0x32c0
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x4228
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x3260
incq %rbp
addq $0x20, %r15
cmpq %rbp, 0x48(%rsp)
jne 0x4077
movl 0x11034(%rip), %esi     # 0x15274
movl 0x11032(%rip), %edx     # 0x15278
leaq 0xce3b(%rip), %rdi      # 0x11088
xorl %eax, %eax
callq 0x3060
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x4288
jmp 0x4288
movq %rax, %rbx
movq 0x58(%rsp), %rdi
leaq 0x68(%rsp), %rax
cmpq %rax, %rdi
je 0x428b
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x3260
jmp 0x428b
movq %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x42a7
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x3260
movq %rbx, %rdi
callq 0x3450