// File: danish241194[P]Linux-Terminal-Based-File-Explorer/start_page.cpp
// Function: snap_shot(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void snap_shot(string pathxx,string shower)
{
	
	FILE *target;
	int i;
 
	target = fopen(pathxx.c_str(), "w"); 
	struct dirent ** list;
	int nn=scandir(pathxx.c_str(),&list,NULL,alphasort);
	
    	
    	
    	string input= "\n\n"+shower+":\n\n";
	out<< input;
	for(int i = 2;i<nn;i++){
		string ss  =" " + (string)list[i]->d_name+"   ";
		out<<ss;
	}
	

		
	
	for(int i = 2;i<nn;i++){
		string ss  =pathxx+"/"+list[i]->d_name;
		if((int)list[i]->d_type==4){
					snap_shot(ss,shower+"/"+list[i]->d_name);
		}
		
	}

	
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x1b0, %rsp            # imm = 0x1B0
movq %rdi, -0x1a0(%rbp)
movq %rsi, -0x198(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
callq 0x3140
movq %rax, %rdi
leaq 0xca0a(%rip), %rsi      # 0x120da
callq 0x33d0
movq -0x1a0(%rbp), %rdi
movq %rax, -0x18(%rbp)
callq 0x3140
movq %rax, %rdi
movq 0x118d1(%rip), %rcx     # 0x16fc0
xorl %eax, %eax
movl %eax, %edx
leaq -0x28(%rbp), %rsi
callq 0x3090
movq -0x198(%rbp), %rdx
movl %eax, -0x2c(%rbp)
leaq 0xc9d0(%rip), %rsi      # 0x120dd
leaq -0x70(%rbp), %rdi
movq %rdi, -0x190(%rbp)
callq 0xe370
movq -0x190(%rbp), %rsi
leaq 0xc9b1(%rip), %rdx      # 0x120dc
leaq -0x50(%rbp), %rdi
callq 0xe320
jmp 0x5736
leaq -0x70(%rbp), %rdi
callq 0x3628
leaq 0x11f9a(%rip), %rdi     # 0x176e0
leaq -0x50(%rbp), %rsi
callq 0x3290
jmp 0x5751
movl $0x2, -0x80(%rbp)
movl -0x80(%rbp), %eax
cmpl -0x2c(%rbp), %eax
jge 0x58ce
movq -0x28(%rbp), %rax
movslq -0x80(%rbp), %rcx
movq (%rax,%rcx,8), %rax
addq $0x13, %rax
movq %rax, -0x1b0(%rbp)
leaq -0xe1(%rbp), %rdi
movq %rdi, -0x1a8(%rbp)
callq 0x3580
movq -0x1b0(%rbp), %rsi
movq -0x1a8(%rbp), %rdx
leaq -0xe0(%rbp), %rdi
callq 0xe090
jmp 0x57aa
leaq 0xc931(%rip), %rsi      # 0x120e2
leaq -0xc0(%rbp), %rdi
leaq -0xe0(%rbp), %rdx
callq 0xe1e0
jmp 0x57c6
leaq 0xc913(%rip), %rdx      # 0x120e0
leaq -0xa0(%rbp), %rdi
leaq -0xc0(%rbp), %rsi
callq 0xe320
jmp 0x57e2
leaq -0xc0(%rbp), %rdi
callq 0x3628
leaq -0xe0(%rbp), %rdi
callq 0x3628
leaq -0xe1(%rbp), %rdi
callq 0x3360
leaq 0x11ed3(%rip), %rdi     # 0x176e0
leaq -0xa0(%rbp), %rsi
callq 0x3290
jmp 0x581b
leaq -0xa0(%rbp), %rdi
callq 0x3628
movl -0x80(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x80(%rbp)
jmp 0x5758
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x78(%rbp)
movl %eax, -0x7c(%rbp)
leaq -0x70(%rbp), %rdi
callq 0x3628
jmp 0x5aa9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x78(%rbp)
movl %eax, -0x7c(%rbp)
jmp 0x5aa0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x78(%rbp)
movl %eax, -0x7c(%rbp)
jmp 0x58a0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x78(%rbp)
movl %eax, -0x7c(%rbp)
jmp 0x5894
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x78(%rbp)
movl %eax, -0x7c(%rbp)
leaq -0xc0(%rbp), %rdi
callq 0x3628
leaq -0xe0(%rbp), %rdi
callq 0x3628
leaq -0xe1(%rbp), %rdi
callq 0x3360
jmp 0x5aa0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x78(%rbp)
movl %eax, -0x7c(%rbp)
leaq -0xa0(%rbp), %rdi
callq 0x3628
jmp 0x5aa0
movl $0x2, -0xe8(%rbp)
movl -0xe8(%rbp), %eax
cmpl -0x2c(%rbp), %eax
jge 0x5a8e
movq -0x1a0(%rbp), %rsi
leaq 0xc764(%rip), %rdx      # 0x12059
leaq -0x128(%rbp), %rdi
callq 0xe2a0
jmp 0x5903
movq -0x28(%rbp), %rax
movslq -0xe8(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
addq $0x13, %rdx
leaq -0x108(%rbp), %rdi
leaq -0x128(%rbp), %rsi
callq 0xe320
jmp 0x592b
leaq -0x128(%rbp), %rdi
callq 0x3628
movq -0x28(%rbp), %rax
movslq -0xe8(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movzbl 0x12(%rax), %eax
cmpl $0x4, %eax
jne 0x5a60
leaq -0x148(%rbp), %rdi
leaq -0x108(%rbp), %rsi
callq 0x3150
jmp 0x5968
movq -0x198(%rbp), %rsi
leaq 0xc6e3(%rip), %rdx      # 0x12059
leaq -0x188(%rbp), %rdi
callq 0xe2a0
jmp 0x5984
movq -0x28(%rbp), %rax
movslq -0xe8(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
addq $0x13, %rdx
leaq -0x168(%rbp), %rdi
leaq -0x188(%rbp), %rsi
callq 0xe320
jmp 0x59ac
leaq -0x148(%rbp), %rdi
leaq -0x168(%rbp), %rsi
callq 0x56a0
jmp 0x59c1
leaq -0x168(%rbp), %rdi
callq 0x3628
leaq -0x188(%rbp), %rdi
callq 0x3628
leaq -0x148(%rbp), %rdi
callq 0x3628
jmp 0x5a60
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x78(%rbp)
movl %eax, -0x7c(%rbp)
leaq -0x128(%rbp), %rdi
callq 0x3628
jmp 0x5aa0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x78(%rbp)
movl %eax, -0x7c(%rbp)
jmp 0x5a80
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x78(%rbp)
movl %eax, -0x7c(%rbp)
jmp 0x5a52
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x78(%rbp)
movl %eax, -0x7c(%rbp)
jmp 0x5a46
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x78(%rbp)
movl %eax, -0x7c(%rbp)
leaq -0x168(%rbp), %rdi
callq 0x3628
leaq -0x188(%rbp), %rdi
callq 0x3628
leaq -0x148(%rbp), %rdi
callq 0x3628
jmp 0x5a80
leaq -0x108(%rbp), %rdi
callq 0x3628
movl -0xe8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xe8(%rbp)
jmp 0x58d8
leaq -0x108(%rbp), %rdi
callq 0x3628
jmp 0x5aa0
leaq -0x50(%rbp), %rdi
callq 0x3628
addq $0x1b0, %rsp            # imm = 0x1B0
popq %rbp
retq
leaq -0x50(%rbp), %rdi
callq 0x3628
movq -0x78(%rbp), %rdi
callq 0x3570
nopw %cs:(%rax,%rax)