// File: /workspace/github_cpp_makefile_star2_O2/chrissimpkins[P]octopus/src/main.cpp
// Function: pathToPosts(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
inline void pathToPosts(string& path_to_posts) {
	string dir1 = "./source/_posts";
	string dir2 = "./_posts";
	string dir3 = "../source/_posts";
	string dir4 = "../_posts";
	string dir5 = "../../source/_posts";
	string dir6 = "../../../source/_posts";
	string dir7 = "../../../../source/_posts";
	string dir8 = "../../../../../source/_posts";
	// test for the correct path to the _posts directory from the pwd
	if (isDirPresent(dir1)) {
		path_to_posts = "./source/_posts";
	}
	else if (isDirPresent(dir2)) {
		path_to_posts = "./_posts";
	}
	else if (isDirPresent(dir3)) {
		path_to_posts = "../source/_posts";
	}
	else if (isDirPresent(dir4)) {
		path_to_posts = "../_posts";
	}
	else if (isDirPresent(dir5)) {
		path_to_posts = "../../source/_posts";
	}
	else if (isDirPresent(dir6)) {
		path_to_posts = "../../../source/_posts";
	}
	else if (isDirPresent(dir7)) {
		path_to_posts = "../../../../source/_posts";
	}
	else if (isDirPresent(dir8)) {
		path_to_posts = "../../../../../source/_posts";
	}
	else {
		// assume user in the _posts directory if other tests do not match (otherwise they are outside of their Octopress site directory altogether)
		path_to_posts = ".";
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movq %rdi, %rbx
leaq 0x429d(%rip), %r14      # 0xc60f
leaq 0xe8(%rsp), %rdi
leaq 0xc8(%rsp), %rdx
movq %r14, %rsi
callq 0x7776
leaq 0x4268(%rip), %r15      # 0xc5f9
leaq 0xc8(%rsp), %rdi
leaq 0xa8(%rsp), %rdx
movq %r15, %rsi
callq 0x7776
leaq 0x425e(%rip), %r12      # 0xc60e
leaq 0xa8(%rsp), %rdi
leaq 0x88(%rsp), %rdx
movq %r12, %rsi
callq 0x7776
leaq 0x4229(%rip), %r13      # 0xc5f8
leaq 0x88(%rsp), %rdi
leaq 0x68(%rsp), %rdx
movq %r13, %rsi
callq 0x7776
leaq 0x4220(%rip), %rsi      # 0xc60b
leaq 0x68(%rsp), %rdi
leaq 0x48(%rsp), %rdx
callq 0x7776
leaq 0x4207(%rip), %rsi      # 0xc608
leaq 0x48(%rsp), %rdi
leaq 0x28(%rsp), %rdx
callq 0x7776
leaq 0x41ee(%rip), %rsi      # 0xc605
leaq 0x28(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0x7776
leaq 0x41d5(%rip), %rbp      # 0xc602
leaq 0x8(%rsp), %rdi
leaq 0x7(%rsp), %rdx
movq %rbp, %rsi
callq 0x7776
leaq 0xe8(%rsp), %rdi
callq 0x8cb8
testl %eax, %eax
jne 0x84ed
leaq 0xc8(%rsp), %rdi
callq 0x8cb8
movq %r15, %r14
testl %eax, %eax
jne 0x84ed
leaq 0xa8(%rsp), %rdi
callq 0x8cb8
movq %r12, %r14
testl %eax, %eax
jne 0x84ed
leaq 0x88(%rsp), %rdi
callq 0x8cb8
movq %r13, %r14
testl %eax, %eax
jne 0x84ed
leaq 0x68(%rsp), %rdi
callq 0x8cb8
leaq 0x4166(%rip), %r14      # 0xc60b
testl %eax, %eax
jne 0x84ed
leaq 0x48(%rsp), %rdi
callq 0x8cb8
leaq 0x414e(%rip), %r14      # 0xc608
testl %eax, %eax
jne 0x84ed
leaq 0x28(%rsp), %rdi
callq 0x8cb8
leaq 0x4136(%rip), %r14      # 0xc605
testl %eax, %eax
jne 0x84ed
leaq 0x8(%rsp), %rdi
callq 0x8cb8
testl %eax, %eax
leaq 0x317e(%rip), %rax      # 0xb664
cmoveq %rax, %rbp
movq %rbp, %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x33e0
leaq 0x8(%rsp), %rdi
callq 0x3100
leaq 0x28(%rsp), %rdi
callq 0x3100
leaq 0x48(%rsp), %rdi
callq 0x3100
leaq 0x68(%rsp), %rdi
callq 0x3100
leaq 0x88(%rsp), %rdi
callq 0x3100
leaq 0xa8(%rsp), %rdi
callq 0x3100
leaq 0xc8(%rsp), %rdi
callq 0x3100
leaq 0xe8(%rsp), %rdi
callq 0x3100
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x3100
jmp 0x8578
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x3100
jmp 0x8587
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0x3100
jmp 0x8596
movq %rax, %rbx
leaq 0x68(%rsp), %rdi
callq 0x3100
jmp 0x85a5
movq %rax, %rbx
leaq 0x88(%rsp), %rdi
callq 0x3100
leaq 0xa8(%rsp), %rdi
callq 0x3100
leaq 0xc8(%rsp), %rdi
callq 0x3100
leaq 0xe8(%rsp), %rdi
callq 0x3100
movq %rbx, %rdi
callq 0x33b0
movq %rax, %rbx
jmp 0x85b2
movq %rax, %rbx
jmp 0x85bf
movq %rax, %rbx
jmp 0x85cc