// File: /workspace/github_cpp_makefile_star2_O1/deadshot465[P]OwoifyCpp/./owoify.h
// Function: Word::replace(std::__cxx11::basic_regex<wchar_t, std::__cxx11::regex_traits<wchar_t>> const&, std::function<std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t>> (std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t>> const&, std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t>> const&)>, bool)
Word& replace(const std::wregex& regex,
		const std::function<std::wstring(const std::wstring&, const std::wstring&)> func,
		bool replaceReplacedWords = false)
	{
		if (!std::regex_search(m_word, regex))
			return *this;

		auto match = std::wsmatch();
		std::regex_match(m_word, match, regex);
		auto replace_value = func(match[1], match[2]);

		if (!replaceReplacedWords &&
			searchValueContainsReplacedWords(regex, replace_value))
			return *this;

		auto replacing_word = m_word;

		if (std::regex_search(m_word, regex))
			replacing_word = std::regex_replace(m_word, regex, replace_value);

		auto begin = std::wsregex_iterator(m_word.cbegin(), m_word.cend(), regex);
		auto end = std::wsregex_iterator();
		auto replaced_words = std::vector<std::wstring>();

		for (auto i = begin; i != end; ++i)
		{
			replaced_words.emplace_back(std::regex_replace(i->str(), regex, replace_value));
		}

		if (replacing_word != m_word)
		{
			for (const auto& word : replaced_words)
			{
				m_replacedWords.emplace(word);
			}
			m_word = replacing_word;
		}

		return *this;
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1a8, %rsp            # imm = 0x1A8
movl %ecx, %ebp
movq %rdx, %r15
movq %rsi, %rcx
movq %rdi, %rax
movq (%rdi), %rdi
movq %rax, 0x10(%rsp)
movq 0x8(%rax), %rax
leaq (%rdi,%rax,4), %rsi
xorps %xmm0, %xmm0
leaq 0x20(%rsp), %rdx
movaps %xmm0, 0x10(%rdx)
movaps %xmm0, (%rdx)
movq %rcx, 0x18(%rsp)
xorl %r8d, %r8d
callq 0xb047
movl %eax, %ebx
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0xf27d
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x5300
testb %bl, %bl
je 0xf803
xorps %xmm0, %xmm0
leaq 0x100(%rsp), %rdx
movaps %xmm0, 0x10(%rdx)
movaps %xmm0, (%rdx)
movq 0x10(%rsp), %rax
movq (%rax), %rdi
movq 0x8(%rax), %rax
leaq (%rdi,%rax,4), %rsi
movq 0x18(%rsp), %rcx
xorl %r8d, %r8d
callq 0xfa0b
movq 0x100(%rsp), %rcx
movq 0x108(%rsp), %rax
movabsq $-0x5555555555555555, %rbx # imm = 0xAAAAAAAAAAAAAAAB
cmpq %rax, %rcx
je 0xf2ee
movq %rax, %rdx
subq %rcx, %rdx
sarq $0x3, %rdx
imulq %rbx, %rdx
addq $-0x5, %rdx
cmpq $-0x2, %rdx
setb %dl
jmp 0xf2f0
xorl %edx, %edx
addq $0x18, %rcx
addq $-0x48, %rax
testb %dl, %dl
cmovneq %rcx, %rax
cmpb $0x1, 0x10(%rax)
jne 0xf320
movq (%rax), %rsi
movq 0x8(%rax), %rdx
leaq 0x30(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x20(%rsp), %rdi
callq 0xde82
jmp 0xf337
leaq 0x30(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movl $0x0, (%rax)
movq 0x100(%rsp), %rcx
movq 0x108(%rsp), %rax
cmpq %rax, %rcx
je 0xf367
movq %rax, %rdx
subq %rcx, %rdx
sarq $0x3, %rdx
imulq %rbx, %rdx
addq $-0x6, %rdx
cmpq $-0x3, %rdx
setb %dl
jmp 0xf369
xorl %edx, %edx
addq $0x30, %rcx
addq $-0x48, %rax
testb %dl, %dl
cmovneq %rcx, %rax
cmpb $0x1, 0x10(%rax)
leaq 0xb0(%rsp), %r14
jne 0xf39e
movq (%rax), %rsi
movq 0x8(%rax), %rdx
leaq 0xa0(%rsp), %rdi
movq %r14, (%rdi)
callq 0xde82
jmp 0xf3bd
movq %r14, 0xa0(%rsp)
movq $0x0, 0xa8(%rsp)
movl $0x0, 0xb0(%rsp)
cmpq $0x0, 0x10(%r15)
je 0xf81a
leaq 0x140(%rsp), %rbx
leaq 0x20(%rsp), %rdx
leaq 0xa0(%rsp), %rcx
movq %rbx, %rdi
movq %r15, %rsi
callq *0x18(%r15)
movq 0xa0(%rsp), %rdi
cmpq %r14, %rdi
je 0xf409
movq 0xb0(%rsp), %rax
leaq 0x4(,%rax,4), %rsi
callq 0x5300
leaq 0x30(%rsp), %r14
movq -0x10(%r14), %rdi
cmpq %r14, %rdi
je 0xf429
movq 0x30(%rsp), %rax
leaq 0x4(,%rax,4), %rsi
callq 0x5300
testb %bpl, %bpl
jne 0xf474
movq 0x10(%rsp), %rax
movq 0x30(%rax), %r15
movq 0x18(%rsp), %rax
movq %rax, 0x20(%rsp)
movq %rbx, 0x28(%rsp)
testq %r15, %r15
je 0xf474
leaq 0x20(%rsp), %rbx
leaq 0x8(%r15), %rsi
movq %rbx, %rdi
callq 0xae7e
testb %al, %al
jne 0xf7c0
movq (%r15), %r15
testq %r15, %r15
jne 0xf450
testb %al, %al
jne 0xf7c0
leaq 0x70(%rsp), %rax
movq %rax, -0x10(%rax)
movq 0x10(%rsp), %rbx
movq (%rbx), %rsi
movq 0x8(%rbx), %rax
leaq (%rsi,%rax,4), %rdx
leaq 0x60(%rsp), %rdi
callq 0xafb0
movq (%rbx), %rdi
movq 0x8(%rbx), %rax
leaq (%rdi,%rax,4), %rsi
xorps %xmm0, %xmm0
leaq 0x20(%rsp), %rdx
movaps %xmm0, 0x10(%rdx)
movaps %xmm0, (%rdx)
movq 0x18(%rsp), %rcx
xorl %r8d, %r8d
callq 0xb047
movl %eax, %ebx
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0xf4d7
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x5300
testb %bl, %bl
je 0xf549
leaq 0x20(%rsp), %rdi
movq %r14, (%rdi)
movq $0x0, 0x8(%rdi)
xorl %eax, %eax
movl %eax, 0x10(%rdi)
movq 0x10(%rsp), %rcx
movq (%rcx), %rsi
movq 0x8(%rcx), %rcx
leaq (%rsi,%rcx,4), %rdx
movq 0x140(%rsp), %r8
movq 0x148(%rsp), %r9
movl %eax, (%rsp)
movq 0x18(%rsp), %rcx
callq 0xd1ae
leaq 0x60(%rsp), %rdi
leaq 0x20(%rsp), %rbx
movq %rbx, %rsi
callq 0x54e0
movq (%rbx), %rdi
cmpq %r14, %rdi
je 0xf549
movq 0x30(%rsp), %rax
leaq 0x4(,%rax,4), %rsi
callq 0x5300
movq 0x10(%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rax
leaq (%rsi,%rax,4), %rdx
leaq 0x20(%rsp), %rdi
movq 0x18(%rsp), %rcx
xorl %r8d, %r8d
callq 0xac30
xorps %xmm0, %xmm0
movaps %xmm0, 0xd0(%rsp)
movaps %xmm0, 0xc0(%rsp)
movaps %xmm0, 0xb0(%rsp)
movaps %xmm0, 0xa0(%rsp)
movaps %xmm0, 0xe0(%rsp)
movq $0x0, 0xf0(%rsp)
leaq 0x40(%rsp), %rsi
movups -0x20(%rsi), %xmm0
movups -0x14(%rsi), %xmm1
leaq 0x180(%rsp), %rdi
movups %xmm1, -0x14(%rdi)
movaps %xmm0, -0x20(%rdi)
callq 0xbc82
movq 0x58(%rsp), %rax
leaq 0x160(%rsp), %r12
movq %rax, 0x38(%r12)
leaq 0x90(%rsp), %r15
leaq 0xa0(%rsp), %r13
xorl %ebp, %ebp
leaq 0x80(%rsp), %rbx
leaq 0xe0(%rsp), %r14
movq %r12, %rdi
movq %r13, %rsi
callq 0xd400
testb %al, %al
jne 0xf6d5
leaq 0x120(%rsp), %rdi
leaq 0x180(%rsp), %rsi
xorl %edx, %edx
callq 0xad2e
movq %r15, 0x80(%rsp)
movq $0x0, 0x88(%rsp)
movl %ebp, 0x90(%rsp)
movq 0x120(%rsp), %rsi
movq 0x128(%rsp), %rax
leaq (%rsi,%rax,4), %rdx
movq 0x140(%rsp), %r8
movq 0x148(%rsp), %r9
movl %ebp, (%rsp)
movq %rbx, %rdi
movq 0x18(%rsp), %rcx
callq 0xd1ae
movq %r14, %rdi
movq %rbx, %rsi
callq 0xacf8
movq 0x80(%rsp), %rdi
cmpq %r15, %rdi
je 0xf69e
movq 0x90(%rsp), %rax
leaq 0x4(,%rax,4), %rsi
callq 0x5300
movq 0x120(%rsp), %rdi
leaq 0x130(%rsp), %rax
cmpq %rax, %rdi
je 0xf6c8
movq 0x130(%rsp), %rax
leaq 0x4(,%rax,4), %rsi
callq 0x5300
movq %r12, %rdi
callq 0xadaa
jmp 0xf5f8
movq 0x180(%rsp), %rdi
testq %rdi, %rdi
je 0xf6f2
movq 0x190(%rsp), %rsi
subq %rdi, %rsi
callq 0x5300
movq 0x68(%rsp), %rdx
movq 0x10(%rsp), %rax
cmpq 0x8(%rax), %rdx
jne 0xf71d
testq %rdx, %rdx
je 0xf75e
movq 0x10(%rsp), %rax
movq (%rax), %rsi
movq 0x60(%rsp), %rdi
callq 0x52c0
testl %eax, %eax
je 0xf75e
movq 0xe0(%rsp), %rbx
movq 0xe8(%rsp), %r15
cmpq %r15, %rbx
je 0xf74f
movq 0x10(%rsp), %rax
leaq 0x20(%rax), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0xdefe
addq $0x20, %rbx
cmpq %r15, %rbx
jne 0xf73b
leaq 0x60(%rsp), %rsi
movq 0x10(%rsp), %rdi
callq 0x53f0
leaq 0xe0(%rsp), %rdi
callq 0x7af2
movq 0xc0(%rsp), %rdi
testq %rdi, %rdi
je 0xf788
movq 0xd0(%rsp), %rsi
subq %rdi, %rsi
callq 0x5300
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0xf79f
movq 0x50(%rsp), %rsi
subq %rdi, %rsi
callq 0x5300
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0xf7c0
movq 0x70(%rsp), %rax
leaq 0x4(,%rax,4), %rsi
callq 0x5300
leaq 0x150(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xf7e6
movq 0x150(%rsp), %rax
leaq 0x4(,%rax,4), %rsi
callq 0x5300
movq 0x100(%rsp), %rdi
testq %rdi, %rdi
je 0xf803
movq 0x110(%rsp), %rsi
subq %rdi, %rsi
callq 0x5300
movq 0x10(%rsp), %rax
addq $0x1a8, %rsp            # imm = 0x1A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x5100
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r14, %rdi
je 0xf99f
movq 0x30(%rsp), %rax
leaq 0x4(,%rax,4), %rsi
jmp 0xf99a
movq %rax, %rbx
jmp 0xf8a5
jmp 0xf878
jmp 0xf8e4
jmp 0xf8e4
movq %rax, %rbx
jmp 0xf99f
movq %rax, %rbx
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0xf99f
movq 0x30(%rsp), %rsi
jmp 0xf997
jmp 0xf8dc
movq %rax, %rbx
jmp 0xf9e6
movq %rax, %rbx
movq 0xa0(%rsp), %rdi
cmpq %r14, %rdi
je 0xf8a5
movq 0xb0(%rsp), %rax
leaq 0x4(,%rax,4), %rsi
callq 0x5300
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xf9e6
movq 0x30(%rsp), %rax
jmp 0xf9d9
movq %rax, %rbx
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0xfa03
movq 0x30(%rsp), %rsi
jmp 0xf9fb
movq %rax, %rbx
jmp 0xf9c0
movq %rax, %rbx
jmp 0xf95e
jmp 0xf93e
jmp 0xf8ed
movq %rax, %rbx
movq 0x80(%rsp), %rdi
cmpq %r15, %rdi
je 0xf912
movq 0x90(%rsp), %rax
leaq 0x4(,%rax,4), %rsi
callq 0x5300
movq 0x120(%rsp), %rdi
leaq 0x130(%rsp), %rax
cmpq %rax, %rdi
je 0xf941
movq 0x130(%rsp), %rax
leaq 0x4(,%rax,4), %rsi
callq 0x5300
jmp 0xf941
movq %rax, %rbx
movq 0x180(%rsp), %rdi
testq %rdi, %rdi
je 0xf95e
movq 0x190(%rsp), %rsi
subq %rdi, %rsi
callq 0x5300
leaq 0xe0(%rsp), %rdi
callq 0x7af2
movq 0xc0(%rsp), %rdi
testq %rdi, %rdi
je 0xf988
movq 0xd0(%rsp), %rsi
subq %rdi, %rsi
callq 0x5300
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0xf99f
movq 0x50(%rsp), %rsi
subq %rdi, %rsi
callq 0x5300
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0xf9c0
movq 0x70(%rsp), %rax
leaq 0x4(,%rax,4), %rsi
callq 0x5300
leaq 0x150(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xf9e6
movq 0x150(%rsp), %rax
leaq 0x4(,%rax,4), %rsi
callq 0x5300
movq 0x100(%rsp), %rdi
testq %rdi, %rdi
je 0xfa03
movq 0x110(%rsp), %rsi
subq %rdi, %rsi
callq 0x5300
movq %rbx, %rdi
callq 0x5470