// File: /workspace/github_cpp_makefile_star2_O3/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 0xb712(%rip), %rcx      # 0x10fc8
leaq 0x40(%rsp), %rsi
xorl %edx, %edx
callq 0x2040
cmpl $0x3, %eax
jl 0x5a5e
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 0x5957
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 0x7828(%rip), %rsi      # 0xd13e
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 0x597f
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x5985
addq $0x13, %rsi
movq %rbx, %rdi
callq 0x2080
testl %eax, %eax
jne 0x5a51
leaq 0xbea6(%rip), %rdi      # 0x11818
movq %r14, %rsi
callq 0x5fbe
jmp 0x5a51
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 0x59b9
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 0x5895
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x5a1a
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x2230
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x5a36
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x2230
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x5a51
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2230
decq %r12
cmpq $0x3, %r12
ja 0x58e0
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x5a77
movq %rax, %rbx
jmp 0x5ab4
movq %rax, %rbx
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x5aeb
movq 0x30(%rsp), %rsi
jmp 0x5ae3
movq %rax, %rbx
jmp 0x5ad0
movq %rax, %rbx
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x5ab4
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x2230
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x5ad0
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x2230
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x5aeb
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2230
movq %rbx, %rdi
callq 0x2400