// File: /workspace/github_cpp_makefile_star2_O1/mshabbirhasan[P]ups-indel/include/seqan/sequence/string_base.h
// Function: seqan::Size<seqan::String<char, seqan::Alloc<void>>>::Type seqan::ClearSpaceExpandStringBase_<seqan::Tag<seqan::TagGenerous_>>::_clearSpace_<seqan::String<char, seqan::Alloc<void>>>(seqan::String<char, seqan::Alloc<void>>&, seqan::Size<seqan::String<char, seqan::Alloc<void>>>::Type, seqan::Size<seqan::String<char, seqan::Alloc<void>>>::Type, seqan::Size<seqan::String<char, seqan::Alloc<void>>>::Type)
static typename Size<T>::Type
    _clearSpace_(
        T & seq,
        typename Size<T>::Type size,
        typename Size<T>::Type start,
        typename Size<T>::Type end)
    {
        typename Size<T>::Type old_length = length(seq);
        typename Size<T>::Type removed_size = end - start;
        typename Size<T>::Type new_length = old_length - removed_size + size;

        typename Size<T>::Type old_capacity = capacity(seq);
        typename Value<T>::Type * old_array = _reallocateStorage(seq, new_length, TExpand());
        typename Value<T>::Type * seq_array = begin(seq);

        if (old_array)
        {
            SEQAN_CHECKPOINT;
            arrayConstructMove(old_array, old_array + start, seq_array);
            arrayConstructMove(old_array + end, old_array + old_length, seq_array + start + size);
            _deallocateStorage(seq, old_array, old_capacity);
        }
        else
        {
            SEQAN_CHECKPOINT;
            arrayClearSpace(seq_array + start, old_length - start, removed_size, size);
        }

        _setLength(seq, new_length);

        return size;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdx, %r12
movq %rsi, %r15
movq %rdi, %r8
movq (%rdi), %r9
movq 0x8(%rdi), %rbx
movq %rbx, %r10
subq %r9, %r10
movq %rcx, %r14
subq %rdx, %r14
movq %r10, %r13
subq %r14, %r13
addq %rsi, %r13
cmpq %r13, 0x10(%rdi)
jae 0xb69a
movq %r13, %rax
shrq %rax
addq %r13, %rax
cmpq $0x20, %r13
movq %r15, -0x50(%rbp)
movl $0x20, %r15d
cmovaeq %rax, %r15
leaq 0x1(%r15), %rdi
movq %r8, -0x48(%rbp)
movq %rcx, -0x40(%rbp)
movq %r9, -0x38(%rbp)
movq %r10, -0x30(%rbp)
callq 0x3340
movq -0x30(%rbp), %r10
movq -0x38(%rbp), %r9
movq -0x40(%rbp), %rcx
movq -0x48(%rbp), %r8
movq %rax, (%r8)
movq %r15, 0x10(%r8)
movq -0x50(%rbp), %r15
movq %r9, %rdi
jmp 0xb69c
xorl %edi, %edi
movq (%r8), %rax
testq %rdi, %rdi
je 0xb6ed
testq %r12, %r12
je 0xb6b9
xorl %esi, %esi
movb (%rdi,%rsi), %dl
movb %dl, (%rax,%rsi)
incq %rsi
cmpq %rsi, %r12
jne 0xb6ab
movq %r8, %r14
cmpq %rcx, %r10
je 0xb6e3
addq %r12, %rax
addq %r15, %rax
leaq (%rdi,%rcx), %r8
subq %rcx, %rbx
subq %r9, %rbx
xorl %edx, %edx
movb (%r8,%rdx), %sil
movb %sil, (%rax,%rdx)
incq %rdx
cmpq %rdx, %rbx
jne 0xb6d3
callq 0x32f0
movq %r14, %r8
jmp 0xb6f2
cmpq %r15, %r14
jne 0xb70b
addq (%r8), %r13
movq %r13, 0x8(%r8)
movq %r15, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jge 0xb74a
cmpq %rcx, %r10
je 0xb6f2
addq %r15, %r12
movq %rcx, %rdi
notq %rdi
addq %r12, %rdi
addq %rbx, %rdi
subq %r9, %rdi
addq %rax, %rdi
addq %r9, %rcx
subq %rbx, %rcx
notq %r9
addq %rbx, %rax
addq %r9, %rax
xorl %edx, %edx
movb (%rax,%rdx), %sil
movb %sil, (%rdi,%rdx)
decq %rdx
cmpq %rdx, %rcx
jne 0xb738
jmp 0xb6f2
cmpq %rcx, %r10
je 0xb6f2
addq %rax, %r12
addq %rcx, %rax
addq %r15, %r12
subq %rcx, %rbx
subq %r9, %rbx
xorl %ecx, %ecx
movb (%rax,%rcx), %dl
movb %dl, (%r12,%rcx)
incq %rcx
cmpq %rcx, %rbx
jne 0xb760
jmp 0xb6f2
nop