// File: /workspace/github_cpp_makefile_star2_O3/mniip[P]sandbox/main.cpp
// Function: TracedThread::should_replace_stat(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, stat&, int, int)
bool should_replace_stat(std::string path, struct stat &st, int at, int flags)
	{
		if(path.compare(0, strlen("http:/"), "http:/") == 0 && path.compare(0, strlen("http://"), "http://") != 0)
			path = "http://" + path.substr(strlen("http:/"));
		else if(path.compare(0, strlen("https:/"), "https:/") == 0 && path.compare(0, strlen("https://"), "https://") != 0)
			path = "https://" + path.substr(strlen("https:/"));
		for(std::vector<std::string>::const_iterator i = conf_http.begin(), end = conf_http.end(); i != end; i++)
			if(path.compare(0, i->size(), *i) == 0)
			{
				st.st_dev = 0;
				st.st_ino = 0;
				st.st_mode = 0755 | S_IFREG;
				st.st_nlink = 1;
				st.st_uid = 0;
				st.st_gid = 0;
				st.st_rdev = 0;
				st.st_size = 0;
				st.st_blksize = 0;
				st.st_blocks = 0;

				clock_gettime(CLOCK_REALTIME, &st.st_mtim);
				st.st_atim = st.st_ctim = st.st_mtim;

				return true;
			}
		return false;
	}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdx, %rbx
movq %rsi, %r14
leaq 0x477e(%rip), %rcx      # 0xe672
movl $0x6, %edx
movq %rsi, %rdi
xorl %esi, %esi
callq 0x4520
testl %eax, %eax
je 0x9f7a
leaq 0x4773(%rip), %rcx      # 0xe681
movl $0x7, %edx
movq %r14, %rdi
xorl %esi, %esi
callq 0x4520
testl %eax, %eax
jne 0xa054
leaq 0x475d(%rip), %rcx      # 0xe689
movl $0x8, %edx
movq %r14, %rdi
xorl %esi, %esi
callq 0x4520
testl %eax, %eax
je 0xa054
leaq 0x8(%rsp), %r15
movl $0x7, %edx
movq %r15, %rdi
movq %r14, %rsi
movq $-0x1, %rcx
callq 0x4400
leaq 0x4723(%rip), %rcx      # 0xe689
movl $0x8, %r8d
movq %r15, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x4450
jmp 0x9fcd
leaq 0x46f8(%rip), %rcx      # 0xe679
movl $0x7, %edx
movq %r14, %rdi
xorl %esi, %esi
callq 0x4520
testl %eax, %eax
je 0x9f07
leaq 0x8(%rsp), %r15
movl $0x6, %edx
movq %r15, %rdi
movq %r14, %rsi
movq $-0x1, %rcx
callq 0x4400
leaq 0x46be(%rip), %rcx      # 0xe679
movl $0x7, %r8d
movq %r15, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x4450
leaq 0x38(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x9ff5
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x9ffd
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
leaq 0x28(%rsp), %r15
movq %rdx, 0x8(%r15)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %r14, %rdi
movq %r15, %rsi
callq 0x44b0
movq (%r15), %rdi
cmpq %r12, %rdi
je 0xa039
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x43e0
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xa054
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x43e0
leaq 0x9535(%rip), %rax      # 0x13590
movq (%rax), %r15
movq 0x8(%rax), %r12
cmpq %r12, %r15
je 0xa082
movq 0x8(%r15), %rdx
movq %r14, %rdi
xorl %esi, %esi
movq %r15, %rcx
callq 0x4500
testl %eax, %eax
je 0xa086
addq $0x20, %r15
jmp 0xa062
xorl %eax, %eax
jmp 0xa0c4
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movl $0x81ed, 0x18(%rbx)     # imm = 0x81ED
movq $0x1, 0x10(%rbx)
movq $0x0, 0x1c(%rbx)
leaq 0x58(%rbx), %rsi
movups %xmm0, 0x28(%rbx)
movups %xmm0, 0x38(%rbx)
xorl %edi, %edi
callq 0x43a0
movups 0x58(%rbx), %xmm0
movups %xmm0, 0x68(%rbx)
movups %xmm0, 0x48(%rbx)
movb $0x1, %al
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
jmp 0xa0d2
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xa0f0
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x43e0
movq %rbx, %rdi
callq 0x4770