// File: /workspace/github_cpp_makefile_star2_O2/deadshot465[P]OwoifyCpp/./owoify.h
// Function: Word::replace(std::__cxx11::basic_regex<wchar_t, std::__cxx11::regex_traits<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::wstring& replaceValue,
		bool replaceReplacedWords = false)
	{
		if (!replaceReplacedWords &&
			searchValueContainsReplacedWords(regex, replaceValue))
			return *this;

		auto replacing_word = m_word;

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

		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, replaceValue));
		}

		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 $0x158, %rsp            # imm = 0x158
movq %rdx, %r14
movq %rsi, %r12
movq %rdi, %rbx
testl %ecx, %ecx
jne 0x957a
movq %rbx, %rdi
movq %r12, %rsi
movq %r14, %rdx
callq 0x97f4
testb %al, %al
jne 0x972a
leaq 0x30(%rsp), %rdi
movq %rbx, %rsi
callq 0x52c0
movq %rbx, 0x8(%rsp)
movq %rbx, %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0x9805
testb %al, %al
je 0x95cf
leaq 0x50(%rsp), %rdi
movq 0x8(%rsp), %rsi
movq %r12, %rdx
movq %r14, %rcx
xorl %r8d, %r8d
callq 0x981d
leaq 0x30(%rsp), %rdi
leaq 0x50(%rsp), %rbx
movq %rbx, %rsi
callq 0x5520
movq %rbx, %rdi
callq 0x5060
movq 0x8(%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rax
leaq (%rsi,%rax,4), %rdx
leaq 0x50(%rsp), %rdi
movq %r12, %rcx
xorl %r8d, %r8d
callq 0x986e
leaq 0xf0(%rsp), %rax
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rax)
movaps %xmm0, (%rax)
movaps %xmm0, -0x10(%rax)
movaps %xmm0, -0x20(%rax)
movaps %xmm0, 0x10(%rsp)
andq $0x0, 0x20(%rsp)
leaq 0x90(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0x9902
leaq 0x90(%rsp), %rbp
leaq 0x118(%rsp), %rbx
leaq 0x138(%rsp), %r13
leaq 0x10(%rsp), %r15
movq %rbp, %rdi
leaq 0xd0(%rsp), %rsi
callq 0x991e
testb %al, %al
je 0x96a2
movq %rbx, %rdi
leaq 0xb0(%rsp), %rsi
xorl %edx, %edx
callq 0x9964
movq %r13, %rdi
movq %rbx, %rsi
movq %r12, %rdx
movq %r14, %rcx
xorl %r8d, %r8d
callq 0x981d
movq %r15, %rdi
movq %r13, %rsi
callq 0x9928
movq %r13, %rdi
callq 0x5060
movq %rbx, %rdi
callq 0x5060
movq %rbp, %rdi
callq 0x9984
jmp 0x9643
leaq 0xb0(%rsp), %rdi
callq 0xa15a
leaq 0x30(%rsp), %rdi
movq 0x8(%rsp), %rsi
callq 0x9a61
testb %al, %al
je 0x96fa
movq 0x10(%rsp), %rbx
movq 0x18(%rsp), %r15
movq 0x8(%rsp), %rax
leaq 0x20(%rax), %r14
cmpq %r15, %rbx
je 0x96eb
movq %r14, %rdi
movq %rbx, %rsi
callq 0xca2c
addq $0x20, %rbx
jmp 0x96d5
leaq 0x30(%rsp), %rsi
movq 0x8(%rsp), %rdi
callq 0x5420
leaq 0x10(%rsp), %rdi
callq 0x775c
leaq 0xf0(%rsp), %rdi
callq 0xa15a
leaq 0x70(%rsp), %rdi
callq 0xa15a
leaq 0x30(%rsp), %rdi
callq 0x5060
movq 0x8(%rsp), %rbx
movq %rbx, %rax
addq $0x158, %rsp            # imm = 0x158
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x974c
jmp 0x9747
jmp 0x974c
jmp 0x9747
movq %rax, %rbx
jmp 0x97a8
movq %rax, %rbx
jmp 0x9787
jmp 0x9765
movq %rax, %rbx
leaq 0x138(%rsp), %rdi
callq 0x5060
jmp 0x976d
movq %rax, %rbx
jmp 0x977a
movq %rax, %rbx
leaq 0x118(%rsp), %rdi
callq 0x5060
leaq 0xb0(%rsp), %rdi
callq 0xa15a
leaq 0x10(%rsp), %rdi
callq 0x775c
leaq 0xf0(%rsp), %rdi
callq 0xa15a
leaq 0x70(%rsp), %rdi
callq 0xa15a
leaq 0x30(%rsp), %rdi
callq 0x5060
movq %rbx, %rdi
callq 0x54a0