// 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::__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
movq %rdi, 0x8(%rsp)
jne 0xa73a
movq 0x30(%rbx), %r15
movq %r12, 0x30(%rsp)
movq %r14, 0x38(%rsp)
testq %r15, %r15
je 0xa735
leaq 0x30(%rsp), %rbx
leaq 0x8(%r15), %rsi
movq %rbx, %rdi
callq 0xae7e
testb %al, %al
jne 0xaa5a
movq (%r15), %r15
testq %r15, %r15
jne 0xa70b
testb %al, %al
movq 0x8(%rsp), %rbx
je 0xa73a
jmp 0xaa5f
movq 0x8(%rsp), %rbx
leaq 0x20(%rsp), %rax
movq %rax, -0x10(%rax)
movq (%rbx), %rsi
movq 0x8(%rbx), %rax
leaq (%rsi,%rax,4), %rdx
leaq 0x10(%rsp), %rdi
callq 0xafb0
movq (%rbx), %rdi
movq 0x8(%rbx), %rax
leaq (%rdi,%rax,4), %rsi
xorps %xmm0, %xmm0
leaq 0x30(%rsp), %rdx
movaps %xmm0, 0x10(%rdx)
movaps %xmm0, (%rdx)
movq %r12, %rcx
xorl %r8d, %r8d
callq 0xb047
movl %eax, %ebx
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0xa796
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x5300
testb %bl, %bl
je 0xa803
leaq 0x40(%rsp), %r15
movq %r15, -0x10(%r15)
movq $0x0, -0x8(%r15)
xorl %eax, %eax
movl %eax, (%r15)
movq 0x8(%rsp), %rcx
movq (%rcx), %rsi
movq 0x8(%rcx), %rcx
leaq (%rsi,%rcx,4), %rdx
movq (%r14), %r8
movq 0x8(%r14), %r9
movl %eax, (%rsp)
leaq 0x30(%rsp), %rdi
movq %r12, %rcx
callq 0xd1ae
leaq 0x10(%rsp), %rdi
leaq 0x30(%rsp), %rbx
movq %rbx, %rsi
callq 0x54e0
movq (%rbx), %rdi
cmpq %r15, %rdi
je 0xa803
movq 0x40(%rsp), %rax
leaq 0x4(,%rax,4), %rsi
callq 0x5300
movq 0x8(%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rax
leaq (%rsi,%rax,4), %rdx
leaq 0x30(%rsp), %rdi
movq %r12, %rcx
xorl %r8d, %r8d
callq 0xac30
xorps %xmm0, %xmm0
movaps %xmm0, 0x100(%rsp)
movaps %xmm0, 0xf0(%rsp)
movaps %xmm0, 0xe0(%rsp)
movaps %xmm0, 0xd0(%rsp)
movaps %xmm0, 0x90(%rsp)
movq $0x0, 0xa0(%rsp)
leaq 0x50(%rsp), %rsi
movups -0x20(%rsi), %xmm0
movups -0x14(%rsi), %xmm1
leaq 0x130(%rsp), %rdi
movups %xmm1, -0x14(%rdi)
movaps %xmm0, -0x20(%rdi)
callq 0xbc82
movq 0x68(%rsp), %rax
leaq 0x110(%rsp), %r13
movq %rax, 0x38(%r13)
leaq 0x80(%rsp), %rbx
xorl %ebp, %ebp
leaq 0x70(%rsp), %r15
movq %r13, %rdi
leaq 0xd0(%rsp), %rsi
callq 0xd400
testb %al, %al
jne 0xa96f
leaq 0xb0(%rsp), %rdi
leaq 0x130(%rsp), %rsi
xorl %edx, %edx
callq 0xad2e
movq %rbx, 0x70(%rsp)
movq $0x0, 0x78(%rsp)
movl %ebp, 0x80(%rsp)
movq 0xb0(%rsp), %rsi
movq 0xb8(%rsp), %rax
leaq (%rsi,%rax,4), %rdx
movq (%r14), %r8
movq 0x8(%r14), %r9
movl %ebp, (%rsp)
movq %r15, %rdi
movq %r12, %rcx
callq 0xd1ae
leaq 0x90(%rsp), %rdi
movq %r15, %rsi
callq 0xacf8
movq 0x70(%rsp), %rdi
cmpq %rbx, %rdi
je 0xa938
movq 0x80(%rsp), %rax
leaq 0x4(,%rax,4), %rsi
callq 0x5300
movq 0xb0(%rsp), %rdi
leaq 0xc0(%rsp), %rax
cmpq %rax, %rdi
je 0xa962
movq 0xc0(%rsp), %rax
leaq 0x4(,%rax,4), %rsi
callq 0x5300
movq %r13, %rdi
callq 0xadaa
jmp 0xa89c
movq 0x130(%rsp), %rdi
testq %rdi, %rdi
je 0xa98c
movq 0x140(%rsp), %rsi
subq %rdi, %rsi
callq 0x5300
movq 0x18(%rsp), %rdx
movq 0x8(%rsp), %rax
cmpq 0x8(%rax), %rdx
jne 0xa9b7
testq %rdx, %rdx
je 0xa9f8
movq 0x8(%rsp), %rax
movq (%rax), %rsi
movq 0x10(%rsp), %rdi
callq 0x52c0
testl %eax, %eax
je 0xa9f8
movq 0x90(%rsp), %rbx
movq 0x98(%rsp), %r15
cmpq %r15, %rbx
je 0xa9e9
movq 0x8(%rsp), %rax
leaq 0x20(%rax), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0xdefe
addq $0x20, %rbx
cmpq %r15, %rbx
jne 0xa9d5
leaq 0x10(%rsp), %rsi
movq 0x8(%rsp), %rdi
callq 0x53f0
leaq 0x90(%rsp), %rdi
callq 0x7af2
movq 0xf0(%rsp), %rdi
testq %rdi, %rdi
je 0xaa22
movq 0x100(%rsp), %rsi
subq %rdi, %rsi
callq 0x5300
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0xaa39
movq 0x60(%rsp), %rsi
subq %rdi, %rsi
callq 0x5300
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0xaa5a
movq 0x20(%rsp), %rax
leaq 0x4(,%rax,4), %rsi
callq 0x5300
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
movq %rax, %r14
movq 0x30(%rsp), %rdi
cmpq %r15, %rdi
je 0xab76
movq 0x40(%rsp), %rax
leaq 0x4(,%rax,4), %rsi
jmp 0xab71
jmp 0xaabe
jmp 0xaabe
movq %rax, %r14
jmp 0xab76
movq %rax, %r14
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0xab76
movq 0x40(%rsp), %rsi
jmp 0xab6e
movq %rax, %r14
jmp 0xab35
jmp 0xab15
jmp 0xaac7
movq %rax, %r14
movq 0x70(%rsp), %rdi
cmpq %rbx, %rdi
je 0xaae9
movq 0x80(%rsp), %rax
leaq 0x4(,%rax,4), %rsi
callq 0x5300
movq 0xb0(%rsp), %rdi
leaq 0xc0(%rsp), %rax
cmpq %rax, %rdi
je 0xab18
movq 0xc0(%rsp), %rax
leaq 0x4(,%rax,4), %rsi
callq 0x5300
jmp 0xab18
movq %rax, %r14
movq 0x130(%rsp), %rdi
testq %rdi, %rdi
je 0xab35
movq 0x140(%rsp), %rsi
subq %rdi, %rsi
callq 0x5300
leaq 0x90(%rsp), %rdi
callq 0x7af2
movq 0xf0(%rsp), %rdi
testq %rdi, %rdi
je 0xab5f
movq 0x100(%rsp), %rsi
subq %rdi, %rsi
callq 0x5300
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0xab76
movq 0x60(%rsp), %rsi
subq %rdi, %rsi
callq 0x5300
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0xab97
movq 0x20(%rsp), %rax
leaq 0x4(,%rax,4), %rsi
callq 0x5300
movq %r14, %rdi
callq 0x5470
nop