// File: /workspace/github_cpp_makefile_star2_O1/danish241194[P]Linux-Terminal-Based-File-Explorer/start_page.cpp
// Function: searchfile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
int searchfile(string pathx,string filename){
	

	struct dirent ** list;
	int nn=scandir(pathx.c_str(),&list,NULL,alphasort);
	int resuld=0,resulf = 0;
	for(int i = 2;i<nn;i++){
		if((int)list[i]->d_type==4){
			resuld = searchfile(pathx+"/"+list[i]->d_name,filename);
				
		}
		else if((int)list[i]->d_type==8){
			if(filename.compare(list[i]->d_name)==0){
				search_path.push_back(pathx);
				
				resulf=1;			
			}
		}
	}
	if(resulf==1){return 1;}
		if(resuld==1){return 1;}
		
	return 0; 
		
	 
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq (%rdi), %rdi
movq 0xf664(%rip), %rcx      # 0x14fc0
xorl %r15d, %r15d
leaq 0x50(%rsp), %rsi
xorl %edx, %edx
callq 0x3080
cmpl $0x3, %eax
jl 0x5b03
movl %eax, %r15d
movl $0x0, 0xc(%rsp)
movl $0x2, %ebp
leaq 0x10(%rsp), %r12
xorl %r13d, %r13d
movq 0x50(%rsp), %rax
movq (%rax,%rbp,8), %rsi
movzbl 0x12(%rsi), %eax
cmpl $0x8, %eax
je 0x5a14
cmpl $0x4, %eax
jne 0x5ae2
leaq 0x20(%rsp), %rax
movq %rax, 0x10(%rsp)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
movq %r12, %rdi
callq 0xfda0
movq %r12, %rdi
leaq 0xb6cc(%rip), %rsi      # 0x11099
callq 0x3480
movq 0x50(%rsp), %rax
movq (%rax,%rbp,8), %rsi
addq $0x13, %rsi
movq %r12, %rdi
callq 0x3480
leaq 0x58(%rsp), %r13
leaq 0x40(%rsp), %rsi
movq %rsi, 0x30(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x5a44
movq %rdx, 0x30(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x40(%rsp)
jmp 0x5a4a
addq $0x13, %rsi
movq %rbx, %rdi
callq 0x30c0
testl %eax, %eax
jne 0x5ae2
leaq 0xfe01(%rip), %rdi      # 0x15830
movq %r14, %rsi
callq 0xf9e4
movl $0x1, 0xc(%rsp)
jmp 0x5ae2
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x38(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x68(%rsp), %rax
movq %rax, 0x58(%rsp)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
movq %r13, %rdi
callq 0xfda0
leaq 0x30(%rsp), %rdi
movq %r13, %rsi
callq 0x593e
movl %eax, %r13d
movq 0x58(%rsp), %rdi
leaq 0x68(%rsp), %rax
cmpq %rax, %rdi
je 0x5aaa
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x3260
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x5ac6
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x3260
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x5ae2
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x3260
incq %rbp
cmpq %rbp, %r15
jne 0x598c
cmpl $0x1, 0xc(%rsp)
sete %al
cmpl $0x1, %r13d
sete %cl
orb %al, %cl
movzbl %cl, %r15d
movl %r15d, %eax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x5b17
movq %rax, %rbx
jmp 0x5b5c
movq %rax, %rbx
movq 0x58(%rsp), %rdi
leaq 0x68(%rsp), %rax
cmpq %rax, %rdi
je 0x5b40
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x3260
jmp 0x5b40
movq %rax, %rbx
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x5b5c
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x3260
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x5b78
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x3260
movq %rbx, %rdi
callq 0x3450