// File: sisong[P]ApkDiffPatch/HDiffPatch/libHDiffPatch/HDiff/match_block.cpp
// Function: hdiff_private::TMatchBlock::unpackData(IDiffInsertCover*, void*, unsigned long, bool)
void TMatchBlock::unpackData(IDiffInsertCover* diffi,void* pcovers,size_t coverCount,bool isCover32){
    doUnpackData(oldData,oldData_end,packedCoversForOld);
    oldData_end_cur=oldData_end;
    doUnpackData(newData,newData_end,packedCoversForNew);
    newData_end_cur=newData_end;

    std::vector<hpatch_TCover> clipCovers;
    doClipCover<true>(pcovers,coverCount,isCover32,packedCoversForNew,clipCovers);
    _clearV(packedCoversForNew);
    _insertCovers(clipCovers);

    sortCover<false>(pcovers,coverCount,isCover32);
    clipCovers.clear();
    doClipCover<false>(pcovers,coverCount,isCover32,packedCoversForOld,clipCovers);
    _clearV(packedCoversForOld);
    _insertCovers(clipCovers);
    _clearV(clipCovers);
    _insertCovers(blockCovers);
    _clearV(blockCovers);

    sortCover<true>(pcovers,coverCount,isCover32);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x100, %rsp            # imm = 0x100
movb %r8b, %al
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
andb $0x1, %al
movb %al, -0x21(%rbp)
movq -0x8(%rbp), %rdx
movq %rdx, -0x68(%rbp)
movq 0x18(%rdx), %rdi
movq 0x20(%rdx), %rsi
addq $0x58, %rdx
callq 0x312a0
movq -0x68(%rbp), %rdx
movq 0x20(%rdx), %rax
movq %rax, 0x28(%rdx)
movq (%rdx), %rdi
movq 0x8(%rdx), %rsi
addq $0x70, %rdx
movq %rdx, -0x60(%rbp)
callq 0x312a0
movq -0x68(%rbp), %rax
movq 0x8(%rax), %rcx
movq %rcx, 0x10(%rax)
leaq -0x40(%rbp), %rdi
movq %rdi, -0x58(%rbp)
callq 0x2b4f0
movq -0x60(%rbp), %rcx
movq -0x58(%rbp), %r8
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rsi
movzbl -0x21(%rbp), %edx
andl $0x1, %edx
callq 0x31370
jmp 0x31053
movq -0x68(%rbp), %rdi
addq $0x70, %rdi
callq 0x313d0
jmp 0x31062
movq -0x10(%rbp), %rax
movq %rax, -0x88(%rbp)
movq (%rax), %rax
movq %rax, -0x78(%rbp)
leaq -0x40(%rbp), %rdi
movq %rdi, -0x90(%rbp)
callq 0x2c860
movq -0x90(%rbp), %rdi
movq %rax, -0x80(%rbp)
callq 0x2c560
movq -0x88(%rbp), %rdi
movq -0x80(%rbp), %rsi
movq %rax, %rdx
movq -0x78(%rbp), %rax
xorl %ecx, %ecx
callq *%rax
movq %rax, -0x70(%rbp)
jmp 0x310b0
movq -0x70(%rbp), %rax
movq %rax, -0x18(%rbp)
leaq -0x40(%rbp), %rdi
callq 0x2c560
movq %rax, %rcx
movq -0x20(%rbp), %rax
addq %rcx, %rax
movq %rax, -0x20(%rbp)
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rsi
movzbl -0x21(%rbp), %edx
andl $0x1, %edx
callq 0x31410
jmp 0x310e5
leaq -0x40(%rbp), %rdi
movq %rdi, -0x98(%rbp)
callq 0x33390
movq -0x68(%rbp), %rcx
movq -0x98(%rbp), %r8
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rsi
addq $0x58, %rcx
movzbl -0x21(%rbp), %edx
andl $0x1, %edx
callq 0x31460
jmp 0x3111a
movq -0x68(%rbp), %rdi
addq $0x58, %rdi
callq 0x313d0
jmp 0x31129
movq -0x10(%rbp), %rax
movq %rax, -0xb8(%rbp)
movq (%rax), %rax
movq %rax, -0xa8(%rbp)
leaq -0x40(%rbp), %rdi
movq %rdi, -0xc0(%rbp)
callq 0x2c860
movq -0xc0(%rbp), %rdi
movq %rax, -0xb0(%rbp)
callq 0x2c560
movq -0xb8(%rbp), %rdi
movq -0xb0(%rbp), %rsi
movq %rax, %rdx
movq -0xa8(%rbp), %rax
xorl %ecx, %ecx
callq *%rax
movq %rax, -0xa0(%rbp)
jmp 0x31186
movq -0xa0(%rbp), %rax
movq %rax, -0x18(%rbp)
leaq -0x40(%rbp), %rdi
movq %rdi, -0xc8(%rbp)
callq 0x2c560
movq -0xc8(%rbp), %rdi
movq %rax, %rcx
movq -0x20(%rbp), %rax
addq %rcx, %rax
movq %rax, -0x20(%rbp)
callq 0x313d0
jmp 0x311bd
movq -0x68(%rbp), %rdi
movq -0x10(%rbp), %rax
movq %rax, -0xe8(%rbp)
movq (%rax), %rax
movq %rax, -0xd8(%rbp)
addq $0x40, %rdi
movq %rdi, -0xf0(%rbp)
callq 0x2c860
movq -0xf0(%rbp), %rdi
movq %rax, -0xe0(%rbp)
callq 0x2c560
movq -0xe8(%rbp), %rdi
movq -0xe0(%rbp), %rsi
movq %rax, %rdx
movq -0xd8(%rbp), %rax
xorl %ecx, %ecx
callq *%rax
movq %rax, -0xd0(%rbp)
jmp 0x3121e
movq -0x68(%rbp), %rdi
movq -0xd0(%rbp), %rax
movq %rax, -0x18(%rbp)
addq $0x40, %rdi
movq %rdi, -0xf8(%rbp)
callq 0x2c560
movq -0xf8(%rbp), %rdi
movq %rax, %rcx
movq -0x20(%rbp), %rax
addq %rcx, %rax
movq %rax, -0x20(%rbp)
callq 0x313d0
jmp 0x31259
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rsi
movzbl -0x21(%rbp), %edx
andl $0x1, %edx
callq 0x314c0
jmp 0x3126f
leaq -0x40(%rbp), %rdi
callq 0x2ffa0
addq $0x100, %rsp            # imm = 0x100
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x40(%rbp), %rdi
callq 0x2ffa0
movq -0x48(%rbp), %rdi
callq 0x4680
nop