// File: /workspace/github_cpp_makefile_star2_O3/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, 0x8(%rsp)
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 0x8eda
leaq 0x10(%rsp), %rdi
movl %ebp, %esi
movl %ebx, %edx
movq %r13, %rcx
callq 0xa835
movq 0x138(%rsp), %rdi
cmpq %r14, %rdi
je 0x962b
movq 0x148(%rsp), %rsi
incq %rsi
callq 0x43e0
movl 0x8(%r12), %ebp
leaq 0x128(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x4f20(%rip), %rdx      # 0xe563
leaq 0x118(%rsp), %rdi
movq %rdx, %rsi
callq 0x9234
leaq 0x90(%rsp), %rdi
leaq 0x118(%rsp), %rcx
movl %ebp, %esi
movl $0xffffff9c, %edx       # imm = 0xFFFFFF9C
callq 0xa835
movq 0x118(%rsp), %rdi
cmpq %r14, %rdi
je 0x968c
movq 0x128(%rsp), %rsi
incq %rsi
callq 0x43e0
leaq 0x60(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x90(%rsp), %rsi
movq 0x98(%rsp), %rdx
addq %rsi, %rdx
leaq 0x50(%rsp), %rdi
callq 0x8eda
leaq 0x4f88(%rip), %rsi      # 0xe641
leaq 0x50(%rsp), %rdi
callq 0x47c0
leaq 0x108(%rsp), %r13
movq %r13, -0x10(%r13)
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
addq %rsi, %rdx
leaq 0xf8(%rsp), %rdi
callq 0x8eda
leaq 0x50(%rsp), %rdi
leaq 0xf8(%rsp), %rsi
callq 0xb096
movb $0x1, %bpl
testb %al, %al
jne 0x97ac
leaq 0x40(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x90(%rsp), %rsi
movq 0x98(%rsp), %rdx
addq %rsi, %rdx
leaq 0x30(%rsp), %rdi
callq 0x8eda
leaq 0x4f14(%rip), %rsi      # 0xe648
leaq 0x30(%rsp), %rdi
callq 0x47c0
leaq 0xe8(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
addq %rsi, %rdx
leaq 0xd8(%rsp), %rdi
callq 0x8eda
leaq 0x30(%rsp), %rdi
leaq 0xd8(%rsp), %rsi
callq 0xb096
movl %eax, %ebp
movq 0xd8(%rsp), %rdi
cmpq %r14, %rdi
je 0x9795
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x43e0
movq 0x30(%rsp), %rdi
cmpq %r12, %rdi
je 0x97ac
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x43e0
movq 0xf8(%rsp), %rdi
cmpq %r13, %rdi
je 0x97c9
movq 0x108(%rsp), %rsi
incq %rsi
callq 0x43e0
movq 0x50(%rsp), %rdi
cmpq %r15, %rdi
je 0x97e0
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x43e0
testb %bpl, %bpl
je 0x97f5
movq 0x8(%rsp), %rax
movl $0xffffffef, (%rax)     # imm = 0xFFFFFFEF
jmp 0x9900
movl %ebx, 0x8(%rsp)
leaq 0x9d38(%rip), %rax      # 0x13538
movq (%rax), %rbx
movq 0x8(%rax), %r14
cmpq %r14, %rbx
je 0x98c3
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 0x8eda
movq %r13, 0xb8(%rsp)
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
addq %rsi, %rdx
movq %r12, %rdi
callq 0x8eda
movq %r15, %rdi
movq %r12, %rsi
callq 0xb096
movl %eax, %ebp
movq 0xb8(%rsp), %rdi
cmpq %r13, %rdi
je 0x988b
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x43e0
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x98ad
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x43e0
testb %bpl, %bpl
jne 0x9952
addq $0x20, %rbx
cmpq %r14, %rbx
jne 0x9825
leaq 0x9d1f(%rip), %rax      # 0x135e9
cmpb $0x1, (%rax)
jne 0x9900
movq 0xb0(%rsp), %rax
movq (%rax), %rdx
movq 0x10(%rsp), %rcx
movl 0x8(%rsp), %esi
cmpl $-0x64, %esi
jne 0x9957
leaq 0x4d61(%rip), %rdi      # 0xe650
xorl %ebp, %ebp
movq %rdx, %rsi
movq %rcx, %rdx
xorl %eax, %eax
callq 0x4060
jmp 0x9902
xorl %ebp, %ebp
leaq 0xa0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9923
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x43e0
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x993e
movq 0x20(%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 0x9902
leaq 0x4d01(%rip), %rdi      # 0xe65f
xorl %ebp, %ebp
xorl %eax, %eax
callq 0x4060
jmp 0x9902
movq %rax, %rbx
movq 0xd8(%rsp), %rdi
cmpq %r14, %rdi
je 0x9990
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x43e0
jmp 0x9990
jmp 0x998d
movq %rax, %rbx
movq 0x30(%rsp), %rdi
cmpq %r12, %rdi
je 0x99f1
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x43e0
jmp 0x99f1
jmp 0x99ab
movq %rax, %rbx
jmp 0x9a0e
jmp 0x9a68
movq %rax, %rbx
movq 0x118(%rsp), %rdi
cmpq %r14, %rdi
je 0x9a8c
movq 0x128(%rsp), %rsi
jmp 0x9a84
movq %rax, %rbx
jmp 0x9a8c
movq %rax, %rbx
movq 0x138(%rsp), %rdi
jmp 0x9a95
movq %rax, %rbx
movq 0xf8(%rsp), %rdi
cmpq %r13, %rdi
je 0x9a0e
movq 0x108(%rsp), %rsi
incq %rsi
callq 0x43e0
movq 0x50(%rsp), %rdi
cmpq %r15, %rdi
je 0x9a6b
movq 0x60(%rsp), %rsi
jmp 0x9a5e
movq %rax, %rbx
jmp 0x9a44
movq %rax, %rbx
movq 0xb8(%rsp), %rdi
cmpq %r13, %rdi
je 0x9a44
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x43e0
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x9a6b
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x43e0
jmp 0x9a6b
movq %rax, %rbx
leaq 0xa0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9a8c
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x43e0
leaq 0x20(%rsp), %r14
movq -0x10(%r14), %rdi
cmpq %r14, %rdi
je 0x9aa5
movq (%r14), %rsi
incq %rsi
callq 0x43e0
movq %rbx, %rdi
callq 0x4770
nop