// File: sisong[P]ApkDiffPatch/HDiffPatch/libHDiffPatch/HDiff/diff.cpp
// Function: get_match_covers_by_sstring(unsigned char const*, unsigned char const*, unsigned char const*, unsigned char const*, hpatch_TOutputCovers*, int, bool, ICoverLinesListener*, unsigned long, bool)
void get_match_covers_by_sstring(const unsigned char* newData,const unsigned char* newData_end,
                                 const unsigned char* oldData,const unsigned char* oldData_end,
                                 hpatch_TOutputCovers* out_covers,int kMinSingleMatchScore,
                                 bool isUseBigCacheMatch,ICoverLinesListener* listener,
                                 size_t threadNum,bool isCanExtendCover){
    std::vector<hpatch_TCover_sz> covers;
    get_match_covers_by_sstring(newData,newData_end,oldData,oldData_end,covers,
                                kMinSingleMatchScore,isUseBigCacheMatch,listener,threadNum,isCanExtendCover);
    const hpatch_TCover_sz* pcovers=covers.data();
    for (size_t i=0;i<covers.size();++i,++pcovers){
        if (sizeof(*pcovers)==sizeof(hpatch_TCover)){
            out_covers->push_cover(out_covers,(const hpatch_TCover*)pcovers);
        }else{
            hpatch_TCover cover; 
            cover.oldPos=pcovers->oldPos;
            cover.newPos=pcovers->newPos;
            cover.length=pcovers->length;
            out_covers->push_cover(out_covers,&cover);
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0xb0, %rsp
movq %rcx, -0x98(%rbp)
movq %rdx, %rax
movq -0x98(%rbp), %rdx
movq %rax, -0x90(%rbp)
movq %rsi, %rax
movq -0x90(%rbp), %rsi
movq %rax, -0x88(%rbp)
movq %rdi, %r10
movq -0x88(%rbp), %rdi
movb 0x28(%rbp), %al
movq 0x20(%rbp), %rcx
movq 0x18(%rbp), %rcx
movb 0x10(%rbp), %cl
movq %r10, -0x18(%rbp)
movq %rdi, -0x20(%rbp)
movq %rsi, -0x28(%rbp)
movq %rdx, -0x30(%rbp)
movq %r8, -0x38(%rbp)
movl %r9d, -0x3c(%rbp)
andb $0x1, %cl
movb %cl, -0x3d(%rbp)
andb $0x1, %al
movb %al, -0x3e(%rbp)
leaq -0x58(%rbp), %rdi
movq %rdi, -0x80(%rbp)
callq 0x29cd0
movq -0x80(%rbp), %r8
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq -0x28(%rbp), %rdx
movq -0x30(%rbp), %rcx
movl -0x3c(%rbp), %r9d
movq 0x18(%rbp), %r11
movq 0x20(%rbp), %rbx
movzbl -0x3d(%rbp), %r10d
movzbl -0x3e(%rbp), %r14d
andl $0x1, %r14d
movq %rsp, %rax
movl %r14d, 0x18(%rax)
movq %rbx, 0x10(%rax)
movq %r11, 0x8(%rax)
andl $0x1, %r10d
movl %r10d, (%rax)
callq 0x1b150
jmp 0x1b38a
leaq -0x58(%rbp), %rdi
callq 0x29db0
movq %rax, -0x70(%rbp)
movq $0x0, -0x78(%rbp)
movq -0x78(%rbp), %rax
movq %rax, -0xa0(%rbp)
leaq -0x58(%rbp), %rdi
callq 0x29dd0
movq %rax, %rcx
movq -0xa0(%rbp), %rax
cmpq %rcx, %rax
jae 0x1b404
movq -0x38(%rbp), %rdi
movq (%rdi), %rax
movq -0x70(%rbp), %rsi
callq *%rax
jmp 0x1b3d1
jmp 0x1b3d3
movq -0x78(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x78(%rbp)
movq -0x70(%rbp), %rax
addq $0x18, %rax
movq %rax, -0x70(%rbp)
jmp 0x1b39f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
leaq -0x58(%rbp), %rdi
callq 0x29d50
jmp 0x1b419
leaq -0x58(%rbp), %rdi
callq 0x29d50
addq $0xb0, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq -0x60(%rbp), %rdi
callq 0x4680
nopw %cs:(%rax,%rax)