// File: /workspace/github_cpp_makefile_star2_O1/mniip[P]sandbox/main.cpp
// Function: TracedThread::can_write_path(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, int, int&)
bool can_write_path(std::string path, int at, int &error)
	{
		std::string canon = canon_path_at(tid, at, path);
		std::string cwd = canon_path_at(tid, AT_FDCWD, "");
		if(in_dir(cwd + "/http:", canon) || in_dir(cwd + "/https:", canon))
		{
			error = -EEXIST;
			return false;
		}
		for(std::vector<std::string>::const_iterator i = conf_write.begin(), end = conf_write.end(); i != end; i++)
			if(in_dir(*i, canon))
				return true;
		if(conf_report)
			if(at == AT_FDCWD)
				printf("[Write %s=%s]\n", path.c_str(), canon.c_str());
			else
				printf("[Write (%d)%s=%s]\n", at, path.c_str(), canon.c_str());
		return false;
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x158, %rsp            # imm = 0x158
movq %rcx, %r15
movl %edx, %ebx
movq %rsi, %rax
movq %rdi, %r12
movl 0x8(%rdi), %ebp
leaq 0x148(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rsi), %rsi
movq %rax, 0xb0(%rsp)
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x138(%rsp), %r13
movq %r13, %rdi
callq 0x8ff2
leaq 0x30(%rsp), %rdi
movl %ebp, %esi
movl %ebx, 0xc(%rsp)
movl %ebx, %edx
movq %r13, %rcx
callq 0xaa05
movq 0x138(%rsp), %rdi
cmpq %r14, %rdi
je 0x9777
movq 0x148(%rsp), %rsi
incq %rsi
callq 0x43e0
movl 0x8(%r12), %ebp
leaq 0x128(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x5dd4(%rip), %rdx      # 0xf563
leaq 0x118(%rsp), %rdi
movq %rdx, %rsi
callq 0x9376
leaq 0x90(%rsp), %rdi
leaq 0x118(%rsp), %rcx
movl %ebp, %esi
movl $0xffffff9c, %edx       # imm = 0xFFFFFF9C
callq 0xaa05
movq 0x118(%rsp), %rdi
cmpq %r14, %rdi
je 0x97d8
movq 0x128(%rsp), %rsi
incq %rsi
callq 0x43e0
leaq 0x60(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0x90(%rsp), %rsi
movq 0x98(%rsp), %rdx
addq %rsi, %rdx
leaq 0x50(%rsp), %rdi
callq 0x8ff2
leaq 0x5e3c(%rip), %rsi      # 0xf641
leaq 0x50(%rsp), %rdi
callq 0x47c0
leaq 0x108(%rsp), %r13
movq %r13, -0x10(%r13)
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
addq %rsi, %rdx
leaq 0xf8(%rsp), %rdi
callq 0x8ff2
leaq 0x50(%rsp), %rdi
leaq 0xf8(%rsp), %rsi
callq 0xb264
movl %eax, %r12d
movb $0x1, %bpl
testb %al, %al
jne 0x98c2
leaq 0x20(%rsp), %rax
movq %rax, -0x10(%rax)
movq 0x90(%rsp), %rsi
movq 0x98(%rsp), %rdx
addq %rsi, %rdx
leaq 0x10(%rsp), %rdi
callq 0x8ff2
leaq 0x5dca(%rip), %rsi      # 0xf648
leaq 0x10(%rsp), %rdi
callq 0x47c0
leaq 0xe8(%rsp), %rbx
movq %rbx, -0x10(%rbx)
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
addq %rsi, %rdx
leaq 0xd8(%rsp), %rdi
callq 0x8ff2
leaq 0x10(%rsp), %rdi
leaq 0xd8(%rsp), %rsi
callq 0xb264
movl %eax, %ebp
testb %r12b, %r12b
jne 0x9903
leaq 0xe8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x98e8
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x43e0
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9903
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x43e0
movq 0xf8(%rsp), %rdi
cmpq %r13, %rdi
je 0x9920
movq 0x108(%rsp), %rsi
incq %rsi
callq 0x43e0
movq 0x50(%rsp), %rdi
cmpq %r14, %rdi
je 0x9937
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x43e0
testb %bpl, %bpl
je 0x9948
movl $0xffffffef, (%r15)     # imm = 0xFFFFFFEF
jmp 0x9a4f
leaq 0xabe9(%rip), %rax      # 0x14538
movq (%rax), %rbx
movq 0x8(%rax), %r14
cmpq %r14, %rbx
je 0x9a12
leaq 0xc8(%rsp), %r13
leaq 0x70(%rsp), %r15
leaq 0xb8(%rsp), %r12
leaq 0x80(%rsp), %rax
movq %rax, 0x70(%rsp)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x8ff2
movq %r13, 0xb8(%rsp)
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
addq %rsi, %rdx
movq %r12, %rdi
callq 0x8ff2
movq %r15, %rdi
movq %r12, %rsi
callq 0xb264
movl %eax, %ebp
movq 0xb8(%rsp), %rdi
cmpq %r13, %rdi
je 0x99da
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x43e0
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x99fc
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x43e0
testb %bpl, %bpl
jne 0x9aa1
addq $0x20, %rbx
cmpq %r14, %rbx
jne 0x9974
leaq 0xabd0(%rip), %rax      # 0x145e9
cmpb $0x1, (%rax)
jne 0x9a4f
movq 0xb0(%rsp), %rax
movq (%rax), %rdx
movq 0x30(%rsp), %rcx
movl 0xc(%rsp), %esi
cmpl $-0x64, %esi
jne 0x9aa6
leaq 0x5c12(%rip), %rdi      # 0xf650
xorl %ebp, %ebp
movq %rdx, %rsi
movq %rcx, %rdx
xorl %eax, %eax
callq 0x4060
jmp 0x9a51
xorl %ebp, %ebp
leaq 0xa0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9a72
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x43e0
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9a8d
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x43e0
movl %ebp, %eax
addq $0x158, %rsp            # imm = 0x158
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movb $0x1, %bpl
jmp 0x9a51
leaq 0x5bb2(%rip), %rdi      # 0xf65f
xorl %ebp, %ebp
xorl %eax, %eax
callq 0x4060
jmp 0x9a51
movq %rax, %r15
movq 0xd8(%rsp), %rdi
cmpq %rbx, %rdi
je 0x9adf
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x43e0
jmp 0x9adf
jmp 0x9adc
movq %rax, %r15
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x9b45
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x43e0
jmp 0x9b45
jmp 0x9aff
movq %rax, %r15
jmp 0x9b62
jmp 0x9bbc
movq %rax, %r15
movq 0x118(%rsp), %rdi
cmpq %r14, %rdi
je 0x9be0
movq 0x128(%rsp), %rsi
jmp 0x9bd8
movq %rax, %r15
jmp 0x9be0
movq %rax, %r15
movq 0x138(%rsp), %rdi
jmp 0x9be9
movq %rax, %r15
movq 0xf8(%rsp), %rdi
cmpq %r13, %rdi
je 0x9b62
movq 0x108(%rsp), %rsi
incq %rsi
callq 0x43e0
movq 0x50(%rsp), %rdi
cmpq %r14, %rdi
je 0x9bbf
movq 0x60(%rsp), %rsi
jmp 0x9bb2
movq %rax, %r15
jmp 0x9b98
movq %rax, %r15
movq 0xb8(%rsp), %rdi
cmpq %r13, %rdi
je 0x9b98
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x43e0
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x9bbf
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x43e0
jmp 0x9bbf
movq %rax, %r15
leaq 0xa0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9be0
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x43e0
leaq 0x40(%rsp), %r14
movq -0x10(%r14), %rdi
cmpq %r14, %rdi
je 0x9bf9
movq (%r14), %rsi
incq %rsi
callq 0x43e0
movq %r15, %rdi
callq 0x4770
nop