// File: /workspace/github_cpp_makefile_star2_O1/girdhari9[P]TEXPLORER/cmd_functions.cpp
// Function: search_file(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 search_file(string current_path,string file_name){
    struct dirent ** dir_namelist;
    int n = scandir(current_path.c_str(),&dir_namelist,NULL, alphasort);
    while(n--){
        if(n < 2) break;
        if(dir_namelist[n]->d_type == 4){
            string new_current_path = current_path + "/" + dir_namelist[n]->d_name;
            search_file(new_current_path,file_name);
        }
        else if(dir_namelist[n]->d_name == file_name){
            search_v.push_back(current_path);
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq (%rdi), %rdi
movq 0xb772(%rip), %rcx      # 0x10fc8
leaq 0x40(%rsp), %rsi
xorl %edx, %edx
callq 0x2040
cmpl $0x3, %eax
jl 0x59fe
movl %eax, %r12d
incq %r12
leaq 0x20(%rsp), %r15
leaq 0x68(%rsp), %r13
leaq 0x48(%rsp), %rbp
movq 0x40(%rsp), %rax
movq -0x10(%rax,%r12,8), %rsi
cmpb $0x4, 0x12(%rsi)
jne 0x58f7
leaq 0x30(%rsp), %rax
movq %rax, 0x20(%rsp)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x2aec
movq %r15, %rdi
leaq 0x7858(%rip), %rsi      # 0xd10e
callq 0x2450
movq 0x40(%rsp), %rax
movq -0x10(%rax,%r12,8), %rsi
addq $0x13, %rsi
movq %r15, %rdi
callq 0x2450
leaq 0x10(%rsp), %rsi
movq %rsi, (%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x591f
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x5925
addq $0x13, %rsi
movq %rbx, %rdi
callq 0x2080
testl %eax, %eax
jne 0x59f1
leaq 0xbf06(%rip), %rdi      # 0x11818
movq %r14, %rsi
callq 0x5f3e
jmp 0x59f1
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x8(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x5959
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x2230
leaq 0x78(%rsp), %rax
movq %rax, 0x68(%rsp)
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
addq %rsi, %rdx
movq %r13, %rdi
callq 0x2aec
leaq 0x58(%rsp), %rax
movq %rax, 0x48(%rsp)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
movq %rbp, %rdi
callq 0x2aec
movq %r13, %rdi
movq %rbp, %rsi
callq 0x5835
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x59ba
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x2230
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x59d6
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x2230
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x59f1
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2230
decq %r12
cmpq $0x3, %r12
jg 0x5880
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x5a17
movq %rax, %rbx
jmp 0x5a54
movq %rax, %rbx
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x5a8b
movq 0x30(%rsp), %rsi
jmp 0x5a83
movq %rax, %rbx
jmp 0x5a70
movq %rax, %rbx
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x5a54
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x2230
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x5a70
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x2230
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x5a8b
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2230
movq %rbx, %rdi
callq 0x2400