// File: /workspace/github_cpp_makefile_star2_O2/sisong[P]ApkDiffPatch/HDiffPatch/libHDiffPatch/HDiff/diff.cpp
// Function: (anonymous namespace)::_limitCoverLenth(std::vector<(anonymous namespace)::TOldCover, std::allocator<(anonymous namespace)::TOldCover>>&, unsigned long long)
static void _limitCoverLenth(std::vector<TOldCover>& covers,hpatch_StreamPos_t kMaxLen){
        size_t csize=covers.size();
        size_t isize=0;
        for (size_t i=0;i<csize;++i){
            hpatch_StreamPos_t clen=covers[i].length;
            while (clen>kMaxLen){
                ++isize;
                _clipLenByLimit(clen,kMaxLen);
            }
        }
        if (isize==0) return;

        covers.resize(csize+isize);
        memmove(covers.data()+isize,covers.data(),sizeof(TOldCover)*csize);
        size_t insertIndex=0;
        for (size_t i=isize;i<covers.size();++i){
            hpatch_StreamPos_t clen=covers[i].length;
            while (clen>kMaxLen){
                --isize;
                hpatch_StreamPos_t clipLen=_clipLenByLimit(clen,kMaxLen);
                assert(insertIndex<i);
                covers[insertIndex++]=TOldCover(covers[i].oldPos,covers[i].newPos,clipLen);
                covers[i].oldPos+=clipLen;
                covers[i].newPos+=clipLen;
                covers[i].length-=clipLen;
                assert(covers[i].length==clen);
            }
            covers[insertIndex++]=covers[i];
        }
        assert(isize==0);
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rbx
movq 0x8(%rdi), %r15
movq %rdi, 0x10(%rsp)
subq (%rdi), %r15
pushq $0x18
popq %rcx
movq %r15, %rax
cqto
idivq %rcx
movq %rax, %r12
xorl %r14d, %r14d
leaq 0x8(%rsp), %r13
xorl %ebp, %ebp
cmpq %r12, %r14
je 0xef11
movq 0x10(%rsp), %rax
movq (%rax), %rax
imulq $0x18, %r14, %rcx
movq 0x10(%rax,%rcx), %rax
movq %rax, 0x8(%rsp)
cmpq %rbx, %rax
jbe 0xef0c
incq %rbp
movq %r13, %rdi
movq %rbx, %rsi
callq 0x1107c
movq 0x8(%rsp), %rax
jmp 0xeef2
incq %r14
jmp 0xeed7
testq %rbp, %rbp
je 0xf004
addq %rbp, %r12
movq 0x10(%rsp), %r14
movq %r14, %rdi
movq %r12, %rsi
callq 0xf23c
movq (%r14), %rsi
imulq $0x18, %rbp, %rdi
addq %rsi, %rdi
movq %r15, %rdx
callq 0x4540
xorl %r12d, %r12d
movq %rbp, %r13
movq 0x10(%rsp), %rax
movq (%rax), %rcx
movq 0x8(%rax), %rax
subq %rcx, %rax
cqto
pushq $0x18
popq %rsi
idivq %rsi
cmpq %rax, %rbp
jae 0xefff
imulq $0x18, %rbp, %r15
movq 0x10(%rcx,%r15), %rdx
movq %rdx, 0x8(%rsp)
imulq $0x18, %r12, %r14
cmpq %rbx, %rdx
jbe 0xefe0
leaq 0x8(%rsp), %rdi
movq %rbx, %rsi
callq 0x1107c
cmpq %rbp, %r12
jae 0xf013
movq 0x10(%rsp), %rcx
movq (%rcx), %rcx
movq (%rcx,%r15), %rdx
movq 0x8(%rcx,%r15), %rsi
movq %rdx, (%rcx,%r14)
movq %rsi, 0x8(%rcx,%r14)
movq %rax, 0x10(%rcx,%r14)
addq %rax, %rdx
movq %rdx, (%rcx,%r15)
addq %rax, %rsi
movq %rsi, 0x8(%rcx,%r15)
movq 0x10(%rcx,%r15), %rdx
subq %rax, %rdx
movq %rdx, 0x10(%rcx,%r15)
cmpq 0x8(%rsp), %rdx
jne 0xf032
incq %r12
addq $0x18, %r14
decq %r13
jmp 0xef77
incq %r12
movq 0x10(%rcx,%r15), %rax
movq %rax, 0x10(%rcx,%r14)
movups (%rcx,%r15), %xmm0
movups %xmm0, (%rcx,%r14)
incq %rbp
jmp 0xef45
testq %r13, %r13
jne 0xf051
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x41e54(%rip), %rdi     # 0x50e6e
leaq 0x41916(%rip), %rsi     # 0x50937
leaq 0x41e54(%rip), %rcx     # 0x50e7c
movl $0x235, %edx            # imm = 0x235
callq 0x4230
leaq 0x41e9e(%rip), %rdi     # 0x50ed7
leaq 0x418f7(%rip), %rsi     # 0x50937
leaq 0x41e35(%rip), %rcx     # 0x50e7c
movl $0x23a, %edx            # imm = 0x23A
callq 0x4230
leaq 0x41e96(%rip), %rdi     # 0x50eee
leaq 0x418d8(%rip), %rsi     # 0x50937
leaq 0x41e16(%rip), %rcx     # 0x50e7c
movl $0x23e, %edx            # imm = 0x23E
callq 0x4230