// File: /workspace/github_cpp_makefile_star2_O1/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, %rbx
movq %rsi, %rax
movq %rdi, %r15
movq (%rsi), %rsi
movq %rax, 0x50(%rsp)
movq 0x8(%rax), %rcx
xorl %edx, %edx
callq 0xc7f0
movq %rax, 0x48(%rsp)
cmpq $-0x1, %rax
je 0x10ee8
leaq 0x38(%rsp), %rbp
leaq 0x68(%rsp), %r13
movq 0x48(%rsp), %r12
movq %rbp, %r14
movq %r13, %rbp
leaq 0x78(%rsp), %r13
movq %r13, %rdi
movq %r15, %rsi
xorl %edx, %edx
movq %r12, %rcx
callq 0xc4d0
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
movq %r13, %rdi
callq 0xc110
movq %r14, 0x28(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x10d49
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x10d50
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq %rbp, %r13
movq 0x8(%rax), %rdx
movq %rdx, 0x30(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x50(%rsp), %rax
movq 0x8(%rax), %rdx
addq %r12, %rdx
leaq 0x8(%rsp), %rdi
movq %r15, %rsi
movq $-0x1, %rcx
callq 0xc4d0
movq 0x28(%rsp), %rcx
movl $0xf, %esi
movq %r14, %rbp
cmpq %r14, %rcx
je 0x10da2
movq 0x38(%rsp), %rsi
movq 0x30(%rsp), %r8
movq 0x10(%rsp), %rdx
leaq (%rdx,%r8), %rax
cmpq %rsi, %rax
jbe 0x10dd0
movl $0xf, %esi
leaq 0x18(%rsp), %rdi
cmpq %rdi, 0x8(%rsp)
je 0x10dcb
movq 0x18(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x10de1
movq 0x8(%rsp), %rsi
leaq 0x28(%rsp), %rdi
callq 0xc110
jmp 0x10def
leaq 0x8(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0xc510
movq %r13, 0x58(%rsp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0x10e0f
movq %rdx, 0x58(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x68(%rsp)
jmp 0x10e17
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 0xc590
movq 0x58(%rsp), %rdi
cmpq %r13, %rdi
je 0x10e58
movq 0x68(%rsp), %rsi
incq %rsi
callq 0xc4a0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x10e74
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xc4a0
movq 0x28(%rsp), %rdi
cmpq %rbp, %rdi
je 0x10e8b
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xc4a0
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0x10ead
movq 0x88(%rsp), %rsi
incq %rsi
callq 0xc4a0
movq 0x8(%r15), %rcx
movq 0x8(%rbx), %rdx
subq %rdx, %rcx
movq $-0x1, %rax
cmpq %rcx, %r12
jae 0x10edb
addq %r12, %rdx
movq 0x50(%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rcx
movq %r15, %rdi
callq 0xc7f0
movq %rax, %r12
cmpq $-0x1, %rax
jne 0x10cfc
cmpq $-0x1, 0x48(%rsp)
setne %al
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x10f43
movq %rax, %rbx
jmp 0x10f2c
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x10f2c
movq 0x18(%rsp), %rsi
incq %rsi
callq 0xc4a0
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
je 0x10f43
movq 0x38(%rsp), %rsi
incq %rsi
callq 0xc4a0
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0x10f65
movq 0x88(%rsp), %rsi
incq %rsi
callq 0xc4a0
movq %rbx, %rdi
callq 0xc820
nop