// File: /workspace/github_cpp_makefile_star2_O1/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 %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x40, %rsp
movq %rdx, %rbx
movq %rsi, %r14
leaq 0x55d1(%rip), %rcx      # 0xf672
movl $0x6, %edx
movq %rsi, %rdi
xorl %esi, %esi
callq 0x4520
testl %eax, %eax
je 0xa125
leaq 0x55c6(%rip), %rcx      # 0xf681
movl $0x7, %edx
movq %r14, %rdi
xorl %esi, %esi
callq 0x4520
testl %eax, %eax
jne 0xa1fd
leaq 0x55b0(%rip), %rcx      # 0xf689
movl $0x8, %edx
movq %r14, %rdi
xorl %esi, %esi
callq 0x4520
testl %eax, %eax
je 0xa1fd
movq %rsp, %r15
movl $0x7, %edx
movq %r15, %rdi
movq %r14, %rsi
movq $-0x1, %rcx
callq 0x4400
leaq 0x5578(%rip), %rcx      # 0xf689
movl $0x8, %r8d
movq %r15, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x4450
jmp 0xa176
leaq 0x554d(%rip), %rcx      # 0xf679
movl $0x7, %edx
movq %r14, %rdi
xorl %esi, %esi
callq 0x4520
testl %eax, %eax
je 0xa0b4
movq %rsp, %r15
movl $0x6, %edx
movq %r15, %rdi
movq %r14, %rsi
movq $-0x1, %rcx
callq 0x4400
leaq 0x5515(%rip), %rcx      # 0xf679
movl $0x7, %r8d
movq %r15, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x4450
leaq 0x30(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xa19e
movq %rdx, 0x20(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x30(%rsp)
jmp 0xa1a6
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
leaq 0x20(%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 0xa1e2
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x43e0
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xa1fd
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x43e0
leaq 0xa38c(%rip), %rax      # 0x14590
movq (%rax), %r15
movq 0x8(%rax), %r12
cmpq %r12, %r15
setne %bpl
je 0xa28b
movq 0x8(%r15), %rdx
movq %r14, %rdi
xorl %esi, %esi
movq %r15, %rcx
callq 0x4500
testl %eax, %eax
je 0xa24f
addq $0x20, %r15
cmpq %r12, %r15
setne %bpl
je 0xa28b
movq 0x8(%r15), %rdx
movq %r14, %rdi
xorl %esi, %esi
movq %r15, %rcx
callq 0x4500
addq $0x20, %r15
testl %eax, %eax
jne 0xa22d
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)
movl %ebp, %eax
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0xa29c
movq %rax, %rbx
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xa2ba
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x43e0
movq %rbx, %rdi
callq 0x4770