// File: chrissimpkins[P]octopus/src/main.cpp
// Function: pathToPublic(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
inline void pathToPublic(string& path_to_public) {
	string dir1 = "./public";
	string dir2 = "../public";
	string dir3 = "../../public";
	string dir4 = "../../../public";
	string dir5 = "../../../../public";
	string dir6 = "../../../../../public";
	// test for the correct path to the public directory from the pwd
	if (isDirPresent(dir1)) {
		path_to_public = "./public";
	}
	else if (isDirPresent(dir2)) {
		path_to_public = "../public";
	}
	else if (isDirPresent(dir3)) {
		path_to_public = "../../public";
	}
	else if (isDirPresent(dir4)) {
		path_to_public = "../../../public";
	}
	else if (isDirPresent(dir5)) {
		path_to_public = "../../../../public";
	}
	else if (isDirPresent(dir6)) {
		path_to_public = "../../../../../public";
	}
	else {
		path_to_public = ".";
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x140, %rsp            # imm = 0x140
movq %rdi, -0x8(%rbp)
leaq -0x29(%rbp), %rdi
movq %rdi, -0x110(%rbp)
callq 0x3510
movq -0x110(%rbp), %rdx
leaq 0x5b0f(%rip), %rsi      # 0x1362c
leaq -0x28(%rbp), %rdi
callq 0xb580
jmp 0xdb28
leaq -0x29(%rbp), %rdi
callq 0x3350
leaq -0x61(%rbp), %rdi
movq %rdi, -0x118(%rbp)
callq 0x3510
movq -0x118(%rbp), %rdx
leaq 0x5adc(%rip), %rsi      # 0x1362b
leaq -0x60(%rbp), %rdi
callq 0xb580
jmp 0xdb5a
leaq -0x61(%rbp), %rdi
callq 0x3350
leaq -0x89(%rbp), %rdi
movq %rdi, -0x120(%rbp)
callq 0x3510
movq -0x120(%rbp), %rdx
leaq 0x5aa4(%rip), %rsi      # 0x13628
leaq -0x88(%rbp), %rdi
callq 0xb580
jmp 0xdb92
leaq -0x89(%rbp), %rdi
callq 0x3350
leaq -0xb1(%rbp), %rdi
movq %rdi, -0x128(%rbp)
callq 0x3510
movq -0x128(%rbp), %rdx
leaq 0x5a66(%rip), %rsi      # 0x13625
leaq -0xb0(%rbp), %rdi
callq 0xb580
jmp 0xdbcd
leaq -0xb1(%rbp), %rdi
callq 0x3350
leaq -0xd9(%rbp), %rdi
movq %rdi, -0x130(%rbp)
callq 0x3510
movq -0x130(%rbp), %rdx
leaq 0x5a28(%rip), %rsi      # 0x13622
leaq -0xd8(%rbp), %rdi
callq 0xb580
jmp 0xdc08
leaq -0xd9(%rbp), %rdi
callq 0x3350
leaq -0x101(%rbp), %rdi
movq %rdi, -0x138(%rbp)
callq 0x3510
movq -0x138(%rbp), %rdx
leaq 0x59ea(%rip), %rsi      # 0x1361f
leaq -0x100(%rbp), %rdi
callq 0xb580
jmp 0xdc43
leaq -0x101(%rbp), %rdi
callq 0x3350
leaq -0x28(%rbp), %rdi
callq 0xdf30
cmpl $0x0, %eax
je 0xdd3d
movq -0x8(%rbp), %rdi
leaq 0x59c0(%rip), %rsi      # 0x1362c
callq 0x3400
jmp 0xdc73
jmp 0xde17
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0x29(%rbp), %rdi
callq 0x3350
jmp 0xde98
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0x61(%rbp), %rdi
callq 0x3350
jmp 0xde8f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0x89(%rbp), %rdi
callq 0x3350
jmp 0xde86
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0xb1(%rbp), %rdi
callq 0x3350
jmp 0xde7a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0xd9(%rbp), %rdi
callq 0x3350
jmp 0xde6e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0x101(%rbp), %rdi
callq 0x3350
jmp 0xde62
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0x100(%rbp), %rdi
callq 0x31b0
jmp 0xde62
leaq -0x60(%rbp), %rdi
callq 0xdf30
cmpl $0x0, %eax
je 0xdd62
movq -0x8(%rbp), %rdi
leaq 0x58d5(%rip), %rsi      # 0x1362b
callq 0x3400
jmp 0xdd5d
jmp 0xde15
leaq -0x88(%rbp), %rdi
callq 0xdf30
cmpl $0x0, %eax
je 0xdd8a
movq -0x8(%rbp), %rdi
leaq 0x58aa(%rip), %rsi      # 0x13628
callq 0x3400
jmp 0xdd85
jmp 0xde13
leaq -0xb0(%rbp), %rdi
callq 0xdf30
cmpl $0x0, %eax
je 0xddaf
movq -0x8(%rbp), %rdi
leaq 0x587f(%rip), %rsi      # 0x13625
callq 0x3400
jmp 0xddad
jmp 0xde11
leaq -0xd8(%rbp), %rdi
callq 0xdf30
cmpl $0x0, %eax
je 0xddd4
movq -0x8(%rbp), %rdi
leaq 0x5857(%rip), %rsi      # 0x13622
callq 0x3400
jmp 0xddd2
jmp 0xde0f
leaq -0x100(%rbp), %rdi
callq 0xdf30
cmpl $0x0, %eax
je 0xddf9
movq -0x8(%rbp), %rdi
leaq 0x582f(%rip), %rsi      # 0x1361f
callq 0x3400
jmp 0xddf7
jmp 0xde0d
movq -0x8(%rbp), %rdi
leaq 0x4860(%rip), %rsi      # 0x12664
callq 0x3400
jmp 0xde0b
jmp 0xde0d
jmp 0xde0f
jmp 0xde11
jmp 0xde13
jmp 0xde15
jmp 0xde17
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 $0x140, %rsp            # imm = 0x140
popq %rbp
retq
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)
nopl (%rax,%rax)