// File: richardposner[P]BioNetFit2/src/code/Utils.cpp
// Function: commonPath(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&, char)
string commonPath( const std::vector<std::string> & dirs , char separator ) {
	std::vector<std::string>::const_iterator vsi = dirs.begin( ) ;
	int maxCharactersCommon = vsi->length( ) ;
	std::string compareString = *vsi ;
	for ( vsi = dirs.begin( ) + 1 ; vsi != dirs.end( ) ; vsi++ ) {
		std::pair<std::string::const_iterator , std::string::const_iterator> p =
		std::mismatch( compareString.begin( ) , compareString.end( ) , vsi->begin( ) ) ;
		if (( p.first - compareString.begin( ) ) < maxCharactersCommon )
		maxCharactersCommon = p.first - compareString.begin( ) ;
	}
	std::string::size_type found = compareString.rfind( separator , maxCharactersCommon ) ;
	return compareString.substr( 0 , found ) ;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x110, %rsp            # imm = 0x110
movq %rdi, -0xd8(%rbp)
movb %dl, %al
movq %rdi, %rcx
movq %rcx, -0xd0(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movb %al, -0x11(%rbp)
movq -0x10(%rbp), %rdi
callq 0x8a180
movq %rax, -0x20(%rbp)
leaq -0x20(%rbp), %rdi
callq 0x17e8a0
movq %rax, %rdi
callq 0x2ff30
movl %eax, -0x24(%rbp)
leaq -0x20(%rbp), %rdi
callq 0x8a450
movq %rax, %rsi
leaq -0x48(%rbp), %rdi
callq 0x2f300
movq -0x10(%rbp), %rdi
callq 0x8a180
movq %rax, -0x58(%rbp)
leaq -0x58(%rbp), %rdi
movl $0x1, %esi
callq 0x17e8c0
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rdi
callq 0x8a1b0
movq %rax, -0x60(%rbp)
leaq -0x20(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x8a3e0
testb $0x1, %al
jne 0x17df19
jmp 0x17e04a
leaq -0x48(%rbp), %rdi
movq %rdi, -0xf0(%rbp)
callq 0x2fbf0
movq -0xf0(%rbp), %rdi
movq %rax, -0x88(%rbp)
callq 0x2fde0
movq %rax, -0x90(%rbp)
leaq -0x20(%rbp), %rdi
callq 0x17e8a0
movq %rax, %rdi
callq 0x2f590
movq %rax, -0x98(%rbp)
movq -0x88(%rbp), %rdi
movq -0x90(%rbp), %rsi
movq -0x98(%rbp), %rdx
callq 0x17e900
movq %rdx, -0xe8(%rbp)
movq %rax, -0xe0(%rbp)
jmp 0x17df85
movq -0xe8(%rbp), %rax
movq -0xe0(%rbp), %rcx
movq %rcx, -0x80(%rbp)
movq %rax, -0x78(%rbp)
leaq -0x70(%rbp), %rdi
leaq -0x80(%rbp), %rsi
callq 0x17e960
jmp 0x17dfaa
leaq -0x70(%rbp), %rax
movq %rax, -0xf8(%rbp)
leaq -0x48(%rbp), %rdi
callq 0x2fbf0
movq -0xf8(%rbp), %rdi
movq %rax, -0xb0(%rbp)
leaq -0xb0(%rbp), %rsi
callq 0x17e9a0
movslq -0x24(%rbp), %rcx
cmpq %rcx, %rax
jge 0x17e031
leaq -0x70(%rbp), %rax
movq %rax, -0x100(%rbp)
leaq -0x48(%rbp), %rdi
callq 0x2fbf0
movq -0x100(%rbp), %rdi
movq %rax, -0xb8(%rbp)
leaq -0xb8(%rbp), %rsi
callq 0x17e9a0
movl %eax, -0x24(%rbp)
jmp 0x17e031
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xa0(%rbp)
movl %eax, -0xa4(%rbp)
leaq -0x48(%rbp), %rdi
callq 0x311e8
jmp 0x17e0a2
jmp 0x17e033
leaq -0x20(%rbp), %rdi
xorl %esi, %esi
callq 0xe1830
movq %rax, -0xc0(%rbp)
jmp 0x17def6
movsbl -0x11(%rbp), %esi
movslq -0x24(%rbp), %rdx
leaq -0x48(%rbp), %rdi
movq %rdi, -0x108(%rbp)
callq 0x2fad0
movq -0xd8(%rbp), %rdi
movq -0x108(%rbp), %rsi
movq %rax, -0xc8(%rbp)
movq -0xc8(%rbp), %rcx
xorl %eax, %eax
movl %eax, %edx
callq 0x30b40
jmp 0x17e089
leaq -0x48(%rbp), %rdi
callq 0x311e8
movq -0xd0(%rbp), %rax
addq $0x110, %rsp            # imm = 0x110
popq %rbp
retq
movq -0xa0(%rbp), %rdi
callq 0x30170
nop