// File: /workspace/github_cpp_makefile_star2_O3/dadocolussi[P]gdc-circular_queue/tests/catch.hpp
// Function: Catch::replaceInPlace(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
bool replaceInPlace( std::string& str, std::string const& replaceThis, std::string const& withThis ) {
        bool replaced = false;
        std::size_t i = str.find( replaceThis );
        while( i != std::string::npos ) {
            replaced = true;
            str = str.substr( 0, i ) + withThis + str.substr( i+replaceThis.size() );
            if( i < str.size()-withThis.size() )
                i = str.find( replaceThis, i+withThis.size() );
            else
                i = std::string::npos;
        }
        return replaced;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rdx, 0x30(%rsp)
movq %rsi, %r14
movq %rdi, %r15
movq (%rsi), %rsi
movq 0x8(%r14), %rcx
xorl %edx, %edx
callq 0xb7f0
movq %rax, 0x28(%rsp)
cmpq $-0x1, %rax
je 0xfeec
leaq 0x18(%rsp), %rbp
leaq 0x68(%rsp), %r13
movq 0x28(%rsp), %r12
movq %rbp, %rbx
movq %r13, %rbp
leaq 0x78(%rsp), %r13
movq %r13, %rdi
movq %r15, %rsi
xorl %edx, %edx
movq %r12, %rcx
callq 0xb4d0
movq 0x30(%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq %r13, %rdi
callq 0xb110
movq %rbx, 0x8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xfd5c
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0xfd62
movups (%rcx), %xmm0
movups %xmm0, (%rbx)
movq %rbp, %r13
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x8(%r14), %rdx
addq %r12, %rdx
leaq 0x38(%rsp), %rdi
movq %r15, %rsi
movq $-0x1, %rcx
callq 0xb4d0
movq 0x8(%rsp), %rcx
movl $0xf, %edi
movq %rbx, %rbp
cmpq %rbx, %rcx
je 0xfdaf
movq 0x18(%rsp), %rdi
movq 0x10(%rsp), %r8
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
leaq (%rdx,%r8), %rax
cmpq %rdi, %rax
jbe 0xfde0
movl $0xf, %edi
leaq 0x48(%rsp), %r9
cmpq %r9, %rsi
je 0xfddb
movq 0x48(%rsp), %rdi
cmpq %rdi, %rax
jbe 0xfdec
leaq 0x8(%rsp), %rdi
callq 0xb110
jmp 0xfdfa
leaq 0x38(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0xb510
movq %r13, 0x58(%rsp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0xfe1a
movq %rdx, 0x58(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x68(%rsp)
jmp 0xfe22
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x60(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
movq %r15, %rdi
leaq 0x58(%rsp), %rsi
callq 0xb590
movq 0x58(%rsp), %rdi
cmpq %r13, %rdi
je 0xfe63
movq 0x68(%rsp), %rsi
incq %rsi
callq 0xb4a0
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0xfe7f
movq 0x48(%rsp), %rsi
incq %rsi
callq 0xb4a0
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0xfe96
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb4a0
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0xfeb8
movq 0x88(%rsp), %rsi
incq %rsi
callq 0xb4a0
movq 0x8(%r15), %rax
movq 0x30(%rsp), %rcx
movq 0x8(%rcx), %rdx
subq %rdx, %rax
cmpq %rax, %r12
jae 0xfeec
addq %r12, %rdx
movq (%r14), %rsi
movq 0x8(%r14), %rcx
movq %r15, %rdi
callq 0xb7f0
movq %rax, %r12
cmpq $-0x1, %rax
jne 0xfd0a
cmpq $-0x1, 0x28(%rsp)
setne %al
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
jmp 0xff2b
movq %rax, %r14
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0xff2b
movq 0x48(%rsp), %rsi
incq %rsi
callq 0xb4a0
movq 0x8(%rsp), %rdi
cmpq %rbx, %rdi
je 0xff47
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xb4a0
jmp 0xff47
movq %rax, %r14
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0xff69
movq 0x88(%rsp), %rsi
incq %rsi
callq 0xb4a0
movq %r14, %rdi
callq 0xb820
nop