// File: 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
movq %rsp, %rbp
subq $0x1a0, %rsp            # imm = 0x1A0
movq %rdi, -0x8(%rbp)
leaq -0x29(%rbp), %rdi
movq %rdi, -0x160(%rbp)
callq 0x3510
movq -0x160(%rbp), %rdx
leaq 0x6752(%rip), %rsi      # 0x1360f
leaq -0x28(%rbp), %rdi
callq 0xb580
jmp 0xcec8
leaq -0x29(%rbp), %rdi
callq 0x3350
leaq -0x61(%rbp), %rdi
movq %rdi, -0x168(%rbp)
callq 0x3510
movq -0x168(%rbp), %rdx
leaq 0x670a(%rip), %rsi      # 0x135f9
leaq -0x60(%rbp), %rdi
callq 0xb580
jmp 0xcefa
leaq -0x61(%rbp), %rdi
callq 0x3350
leaq -0x89(%rbp), %rdi
movq %rdi, -0x170(%rbp)
callq 0x3510
movq -0x170(%rbp), %rdx
leaq 0x66ea(%rip), %rsi      # 0x1360e
leaq -0x88(%rbp), %rdi
callq 0xb580
jmp 0xcf32
leaq -0x89(%rbp), %rdi
callq 0x3350
leaq -0xb1(%rbp), %rdi
movq %rdi, -0x178(%rbp)
callq 0x3510
movq -0x178(%rbp), %rdx
leaq 0x6699(%rip), %rsi      # 0x135f8
leaq -0xb0(%rbp), %rdi
callq 0xb580
jmp 0xcf6d
leaq -0xb1(%rbp), %rdi
callq 0x3350
leaq -0xd9(%rbp), %rdi
movq %rdi, -0x180(%rbp)
callq 0x3510
movq -0x180(%rbp), %rdx
leaq 0x6671(%rip), %rsi      # 0x1360b
leaq -0xd8(%rbp), %rdi
callq 0xb580
jmp 0xcfa8
leaq -0xd9(%rbp), %rdi
callq 0x3350
leaq -0x101(%rbp), %rdi
movq %rdi, -0x188(%rbp)
callq 0x3510
movq -0x188(%rbp), %rdx
leaq 0x6633(%rip), %rsi      # 0x13608
leaq -0x100(%rbp), %rdi
callq 0xb580
jmp 0xcfe3
leaq -0x101(%rbp), %rdi
callq 0x3350
leaq -0x129(%rbp), %rdi
movq %rdi, -0x190(%rbp)
callq 0x3510
movq -0x190(%rbp), %rdx
leaq 0x65f5(%rip), %rsi      # 0x13605
leaq -0x128(%rbp), %rdi
callq 0xb580
jmp 0xd01e
leaq -0x129(%rbp), %rdi
callq 0x3350
leaq -0x151(%rbp), %rdi
movq %rdi, -0x198(%rbp)
callq 0x3510
movq -0x198(%rbp), %rdx
leaq 0x65b7(%rip), %rsi      # 0x13602
leaq -0x150(%rbp), %rdi
callq 0xb580
jmp 0xd059
leaq -0x151(%rbp), %rdi
callq 0x3350
leaq -0x28(%rbp), %rdi
callq 0xdf30
cmpl $0x0, %eax
je 0xd18d
movq -0x8(%rbp), %rdi
leaq 0x658d(%rip), %rsi      # 0x1360f
callq 0x3400
jmp 0xd089
jmp 0xd2bb
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0x29(%rbp), %rdi
callq 0x3350
jmp 0xd36c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0x61(%rbp), %rdi
callq 0x3350
jmp 0xd363
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0x89(%rbp), %rdi
callq 0x3350
jmp 0xd35a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0xb1(%rbp), %rdi
callq 0x3350
jmp 0xd34e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0xd9(%rbp), %rdi
callq 0x3350
jmp 0xd342
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0x101(%rbp), %rdi
callq 0x3350
jmp 0xd336
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0x129(%rbp), %rdi
callq 0x3350
jmp 0xd32a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0x151(%rbp), %rdi
callq 0x3350
jmp 0xd31e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0x150(%rbp), %rdi
callq 0x31b0
jmp 0xd31e
leaq -0x60(%rbp), %rdi
callq 0xdf30
cmpl $0x0, %eax
je 0xd1b2
movq -0x8(%rbp), %rdi
leaq 0x6453(%rip), %rsi      # 0x135f9
callq 0x3400
jmp 0xd1ad
jmp 0xd2b9
leaq -0x88(%rbp), %rdi
callq 0xdf30
cmpl $0x0, %eax
je 0xd1da
movq -0x8(%rbp), %rdi
leaq 0x6440(%rip), %rsi      # 0x1360e
callq 0x3400
jmp 0xd1d5
jmp 0xd2b7
leaq -0xb0(%rbp), %rdi
callq 0xdf30
cmpl $0x0, %eax
je 0xd202
movq -0x8(%rbp), %rdi
leaq 0x6402(%rip), %rsi      # 0x135f8
callq 0x3400
jmp 0xd1fd
jmp 0xd2b5
leaq -0xd8(%rbp), %rdi
callq 0xdf30
cmpl $0x0, %eax
je 0xd22a
movq -0x8(%rbp), %rdi
leaq 0x63ed(%rip), %rsi      # 0x1360b
callq 0x3400
jmp 0xd225
jmp 0xd2b3
leaq -0x100(%rbp), %rdi
callq 0xdf30
cmpl $0x0, %eax
je 0xd24f
movq -0x8(%rbp), %rdi
leaq 0x63c2(%rip), %rsi      # 0x13608
callq 0x3400
jmp 0xd24d
jmp 0xd2b1
leaq -0x128(%rbp), %rdi
callq 0xdf30
cmpl $0x0, %eax
je 0xd274
movq -0x8(%rbp), %rdi
leaq 0x639a(%rip), %rsi      # 0x13605
callq 0x3400
jmp 0xd272
jmp 0xd2af
leaq -0x150(%rbp), %rdi
callq 0xdf30
cmpl $0x0, %eax
je 0xd299
movq -0x8(%rbp), %rdi
leaq 0x6372(%rip), %rsi      # 0x13602
callq 0x3400
jmp 0xd297
jmp 0xd2ad
movq -0x8(%rbp), %rdi
leaq 0x53c0(%rip), %rsi      # 0x12664
callq 0x3400
jmp 0xd2ab
jmp 0xd2ad
jmp 0xd2af
jmp 0xd2b1
jmp 0xd2b3
jmp 0xd2b5
jmp 0xd2b7
jmp 0xd2b9
jmp 0xd2bb
leaq -0x150(%rbp), %rdi
callq 0x31b0
leaq -0x128(%rbp), %rdi
callq 0x31b0
leaq -0x100(%rbp), %rdi
callq 0x31b0
leaq -0xd8(%rbp), %rdi
callq 0x31b0
leaq -0xb0(%rbp), %rdi
callq 0x31b0
leaq -0x88(%rbp), %rdi
callq 0x31b0
leaq -0x60(%rbp), %rdi
callq 0x31b0
leaq -0x28(%rbp), %rdi
callq 0x31b0
addq $0x1a0, %rsp            # imm = 0x1A0
popq %rbp
retq
leaq -0x128(%rbp), %rdi
callq 0x31b0
leaq -0x100(%rbp), %rdi
callq 0x31b0
leaq -0xd8(%rbp), %rdi
callq 0x31b0
leaq -0xb0(%rbp), %rdi
callq 0x31b0
leaq -0x88(%rbp), %rdi
callq 0x31b0
leaq -0x60(%rbp), %rdi
callq 0x31b0
leaq -0x28(%rbp), %rdi
callq 0x31b0
movq -0x38(%rbp), %rdi
callq 0x3500
nopw %cs:(%rax,%rax)
nop