LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/sisong[P]ApkDiffPatch/HDiffPatch/libHDiffPatch/HDiff/match_block.cpp
// Function: hdiff_private::loadOldAndNewStream(hdiff_private::TAutoMem&, hpatch_TStreamInput const*, hpatch_TStreamInput const*)
void loadOldAndNewStream(TAutoMem& out_mem,const hpatch_TStreamInput* oldStream,const hpatch_TStreamInput* newStream){
    size_t old_size=oldStream?(size_t)oldStream->streamSize:0;
    size_t new_size=(size_t)newStream->streamSize;
    _check(newStream->streamSize==new_size,"loadOldAndNew() streamSize");
    if (old_size) _check(oldStream->streamSize+newStream->streamSize==old_size+new_size,"loadOldAndNew() streamSize");
    out_mem.realloc(old_size+new_size);
    if (old_size) _check(oldStream->read(oldStream,0,out_mem.data(),out_mem.data()+old_size),"loadOldAndNew() oldStream->read");
    _check(newStream->read(newStream,0,out_mem.data()+old_size,out_mem.data()+old_size+new_size),"loadOldAndNew() newStream->read");
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rdi, %r15
testq %rsi, %rsi
je 0x17f87
movq %rsi, %r12
movq 0x8(%rsi), %rbp
movq 0x8(%rbx), %r14
testq %rbp, %rbp
je 0x17f8b
leaq (%r14,%rbp), %r13
movq (%r15), %rdx
movq 0x10(%r15), %rax
subq %rdx, %rax
cmpq %r13, %rax
jae 0x17fcd
movq %rdx, %rdi
movq %r13, %rsi
callq 0x4530
testq %rax, %rax
je 0x18067
movq %rax, %rdx
movq %rax, (%r15)
addq %rax, %r13
movq %r13, 0x8(%r15)
movq %r13, 0x10(%r15)
jmp 0x17fd4
movq 0x8(%rbx), %r14
movq (%r15), %rdx
movq 0x10(%r15), %rax
subq %rdx, %rax
cmpq %r14, %rax
jae 0x17fc1
movq %rdx, %rdi
movq %r14, %rsi
callq 0x4530
testq %rax, %rax
je 0x18049
movq %rax, %rdx
movq %rax, (%r15)
addq %r14, %rax
movq %rax, 0x8(%r15)
movq %rax, 0x10(%r15)
jmp 0x17fc9
leaq (%rdx,%r14), %rax
movq %rax, 0x8(%r15)
xorl %ebp, %ebp
jmp 0x17fe9
addq %rdx, %r13
movq %r13, 0x8(%r15)
leaq (%rdx,%rbp), %rcx
movq %r12, %rdi
xorl %esi, %esi
callq *0x10(%r12)
testl %eax, %eax
je 0x1802b
movq (%r15), %rdx
addq %rbp, %rdx
addq %rdx, %r14
movq %rbx, %rdi
xorl %esi, %esi
movq %r14, %rcx
callq *0x10(%rbx)
testl %eax, %eax
je 0x1800d
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x4190
movq %rax, %rbx
leaq 0x44546(%rip), %rsi     # 0x5c567
movq %rax, %rdi
callq 0x4110
jmp 0x18083
movl $0x10, %edi
callq 0x4190
movq %rax, %rbx
leaq 0x44508(%rip), %rsi     # 0x5c547
movq %rax, %rdi
callq 0x4110
jmp 0x18083
movl $0x10, %edi
callq 0x4190
movq %rax, %rbx
leaq 0x442b2(%rip), %rsi     # 0x5c30f
movq %rax, %rdi
callq 0x4110
jmp 0x18083
movl $0x10, %edi
callq 0x4190
movq %rax, %rbx
leaq 0x44294(%rip), %rsi     # 0x5c30f
movq %rax, %rdi
callq 0x4110
movq 0x63f5e(%rip), %rsi     # 0x7bfe8
movq 0x63f27(%rip), %rdx     # 0x7bfb8
movq %rbx, %rdi
callq 0x4590
jmp 0x1809f
jmp 0x1809f
jmp 0x1809f
movq %rax, %r14
movq %rbx, %rdi
callq 0x4260
movq %r14, %rdi
callq 0x45e0
// File: /workspace/github_cpp_makefile_star2_O3/sisong[P]ApkDiffPatch/HDiffPatch/libHDiffPatch/HDiff/match_block.cpp
// Function: create_compressed_diff_block(unsigned char*, unsigned char*, unsigned char*, unsigned char*, std::vector<unsigned char, std::allocator<unsigned char>>&, hdiff_TCompress const*, int, bool, unsigned long, unsigned long)
void create_compressed_diff_block(unsigned char* newData,unsigned char* newData_end,
                                  unsigned char* oldData,unsigned char* oldData_end,
                                  std::vector<unsigned char>& out_diff,const hdiff_TCompress* compressPlugin,
                                  int kMinSingleMatchScore,bool isUseBigCacheMatch,
                                  size_t matchBlockSize,size_t threadNum){
    if (matchBlockSize==0){
        create_compressed_diff(newData,newData_end,oldData,oldData_end,
                               out_diff,compressPlugin,kMinSingleMatchScore,isUseBigCacheMatch,0,threadNum);
        return;
    }
    TCoversOptimMB<TMatchBlock> coversOp(newData,newData_end,oldData,oldData_end,matchBlockSize,threadNum);
    create_compressed_diff(newData,coversOp.matchBlock->newData_end_cur,oldData,coversOp.matchBlock->oldData_end_cur,
                           out_diff,compressPlugin,kMinSingleMatchScore,isUseBigCacheMatch,&coversOp,threadNum);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
movq %r9, %rbx
movq %r8, %r14
movq %rcx, %r8
movq %rdx, %r15
movq %rsi, %rdx
movq %rdi, %r12
movq 0x128(%rsp), %r11
movq 0x120(%rsp), %r9
movb 0x118(%rsp), %bpl
movl 0x110(%rsp), %r10d
testq %r9, %r9
je 0x181b2
subq $0x8, %rsp
leaq 0x10(%rsp), %r13
movq %r13, %rdi
movq %r12, %rsi
movq %r15, %rcx
pushq %r11
callq 0x187be
addq $0x10, %rsp
movq 0x40(%r13), %rax
movq 0x10(%rax), %rsi
movq 0x28(%rax), %rcx
movzbl %bpl, %eax
movq %r12, %rdi
movq %r15, %rdx
movq %r14, %r8
movq %rbx, %r9
pushq 0x128(%rsp)
pushq %r13
pushq %rax
movl 0x128(%rsp), %eax
pushq %rax
callq 0xe4ac
addq $0x20, %rsp
movq 0xc0(%rsp), %rdi
testq %rdi, %rdi
je 0x1816f
movq 0xd0(%rsp), %rsi
subq %rdi, %rsi
callq 0x4300
movq 0xa8(%rsp), %rdi
testq %rdi, %rdi
je 0x1818c
movq 0xb8(%rsp), %rsi
subq %rdi, %rsi
callq 0x4300
movq 0x90(%rsp), %rdi
testq %rdi, %rdi
je 0x181a9
movq 0xa0(%rsp), %rsi
subq %rdi, %rsi
callq 0x4300
addq $0xd8, %rsp
jmp 0x181db
movzbl %bpl, %eax
movq %r12, %rdi
movq %rdx, %rsi
movq %r15, %rdx
movq %r8, %rcx
movq %r14, %r8
movq %rbx, %r9
pushq %r11
pushq $0x0
pushq %rax
pushq %r10
callq 0xe4ac
addq $0xf8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x18868
movq %rbx, %rdi
callq 0x45e0
// File: /workspace/github_cpp_makefile_star2_O3/sisong[P]ApkDiffPatch/HDiffPatch/libHDiffPatch/HDiff/match_block.cpp
// Function: create_compressed_diff_block(unsigned char*, unsigned char*, unsigned char*, unsigned char*, hpatch_TStreamOutput const*, hdiff_TCompress const*, int, bool, unsigned long, unsigned long)
void create_compressed_diff_block(unsigned char* newData,unsigned char* newData_end,
                                  unsigned char* oldData,unsigned char* oldData_end,
                                  const hpatch_TStreamOutput* out_diff,const hdiff_TCompress* compressPlugin,
                                  int kMinSingleMatchScore,bool isUseBigCacheMatch,
                                  size_t matchBlockSize,size_t threadNum){
    if (matchBlockSize==0){
        create_compressed_diff(newData,newData_end,oldData,oldData_end,
                               out_diff,compressPlugin,kMinSingleMatchScore,isUseBigCacheMatch,0,threadNum);
        return;
    }
    TCoversOptimMB<TMatchBlock> coversOp(newData,newData_end,oldData,oldData_end,matchBlockSize,threadNum);
    create_compressed_diff(newData,coversOp.matchBlock->newData_end_cur,oldData,coversOp.matchBlock->oldData_end_cur,
                           out_diff,compressPlugin,kMinSingleMatchScore,isUseBigCacheMatch,&coversOp,threadNum);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
movq %r9, %rbx
movq %r8, %r14
movq %rcx, %r8
movq %rdx, %r15
movq %rsi, %rdx
movq %rdi, %r12
movq 0x128(%rsp), %r11
movq 0x120(%rsp), %r9
movb 0x118(%rsp), %bpl
movl 0x110(%rsp), %r10d
testq %r9, %r9
je 0x182fb
subq $0x8, %rsp
leaq 0x10(%rsp), %r13
movq %r13, %rdi
movq %r12, %rsi
movq %r15, %rcx
pushq %r11
callq 0x187be
addq $0x10, %rsp
movq 0x40(%r13), %rax
movq 0x10(%rax), %rsi
movq 0x28(%rax), %rcx
movzbl %bpl, %eax
movq %r12, %rdi
movq %r15, %rdx
movq %r14, %r8
movq %rbx, %r9
pushq 0x128(%rsp)
pushq %r13
pushq %rax
movl 0x128(%rsp), %eax
pushq %rax
callq 0xf190
addq $0x20, %rsp
movq 0xc0(%rsp), %rdi
testq %rdi, %rdi
je 0x182b8
movq 0xd0(%rsp), %rsi
subq %rdi, %rsi
callq 0x4300
movq 0xa8(%rsp), %rdi
testq %rdi, %rdi
je 0x182d5
movq 0xb8(%rsp), %rsi
subq %rdi, %rsi
callq 0x4300
movq 0x90(%rsp), %rdi
testq %rdi, %rdi
je 0x182f2
movq 0xa0(%rsp), %rsi
subq %rdi, %rsi
callq 0x4300
addq $0xd8, %rsp
jmp 0x18324
movzbl %bpl, %eax
movq %r12, %rdi
movq %rdx, %rsi
movq %r15, %rdx
movq %r8, %rcx
movq %r14, %r8
movq %rbx, %r9
pushq %r11
pushq $0x0
pushq %rax
pushq %r10
callq 0xf190
addq $0xf8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x18868
movq %rbx, %rdi
callq 0x45e0
// File: /workspace/github_cpp_makefile_star2_O3/sisong[P]ApkDiffPatch/HDiffPatch/libHDiffPatch/HDiff/match_block.cpp
// Function: create_compressed_diff_block(hpatch_TStreamInput const*, hpatch_TStreamInput const*, hpatch_TStreamOutput const*, hdiff_TCompress const*, int, bool, unsigned long, unsigned long)
void create_compressed_diff_block(const hpatch_TStreamInput* newData,const hpatch_TStreamInput* oldData,
                                  const hpatch_TStreamOutput* out_diff,const hdiff_TCompress* compressPlugin,
                                  int kMinSingleMatchScore,bool isUseBigCacheMatch,
                                  size_t matchBlockSize,size_t threadNum){
    TAutoMem oldAndNewData;
    loadOldAndNewStream(oldAndNewData,oldData,newData);
    size_t old_size=oldData?(size_t)oldData->streamSize:0;
    unsigned char* pOldData=oldAndNewData.data();
    unsigned char* pNewData=pOldData+old_size;
    create_compressed_diff_block(pNewData,pNewData+(size_t)newData->streamSize,pOldData,pOldData+old_size,
                                 out_diff,compressPlugin,kMinSingleMatchScore,isUseBigCacheMatch,matchBlockSize,threadNum);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %r9d, %ebp
movq %r8, 0x8(%rsp)
movq %rcx, (%rsp)
movq %rdx, %r12
movq %rsi, %r14
movq %rdi, %r13
movq 0x68(%rsp), %r15
movq 0x60(%rsp), %rbx
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %rdi
movaps %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
movq %r13, %rdx
callq 0x17f27
testq %r14, %r14
je 0x18397
movq 0x8(%r14), %rcx
jmp 0x18399
xorl %ecx, %ecx
movq 0x10(%rsp), %r14
addq %r14, %rcx
movq 0x8(%r13), %rsi
addq %rcx, %rsi
movzbl %bpl, %eax
movq %rcx, %rdi
movq %r14, %rdx
movq %r12, %r8
movq (%rsp), %r9
pushq %r15
pushq %rbx
pushq %rax
pushq 0x20(%rsp)
callq 0x181fb
addq $0x20, %rsp
testq %r14, %r14
je 0x183e5
movq %r14, %rdi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x43b0
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x18401
movq %rax, %rbx
movq 0x10(%rsp), %r14
testq %r14, %r14
je 0x1840e
movq %r14, %rdi
callq 0x43b0
movq %rbx, %rdi
callq 0x45e0
// File: /workspace/github_cpp_makefile_star2_O3/sisong[P]ApkDiffPatch/HDiffPatch/libHDiffPatch/HDiff/match_block.cpp
// Function: create_single_compressed_diff_block(unsigned char*, unsigned char*, unsigned char*, unsigned char*, hpatch_TStreamOutput const*, hdiff_TCompress const*, int, unsigned long, bool, unsigned long, unsigned long)
void create_single_compressed_diff_block(unsigned char* newData,unsigned char* newData_end,
                                         unsigned char* oldData,unsigned char* oldData_end,
                                         const hpatch_TStreamOutput* out_diff,const hdiff_TCompress* compressPlugin,
                                         int kMinSingleMatchScore,size_t patchStepMemSize,
                                         bool isUseBigCacheMatch,size_t matchBlockSize,size_t threadNum){
    if (matchBlockSize==0){
        create_single_compressed_diff(newData,newData_end,oldData,oldData_end,
                                      out_diff,compressPlugin,kMinSingleMatchScore,
                                      patchStepMemSize,isUseBigCacheMatch,0,threadNum);
        return;
    }
    TCoversOptimMB<TMatchBlock> coversOp(newData,newData_end,oldData,oldData_end,matchBlockSize,threadNum);
    create_single_compressed_diff(newData,coversOp.matchBlock->newData_end_cur,oldData,coversOp.matchBlock->oldData_end_cur,
                                  out_diff,compressPlugin,kMinSingleMatchScore,
                                  patchStepMemSize,isUseBigCacheMatch,&coversOp,threadNum);                                      
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
movq %r9, %rbx
movq %r8, %r14
movq %rcx, %r8
movq %rdx, %r15
movq %rsi, %rdx
movq %rdi, %r12
movq 0x130(%rsp), %r13
movq 0x128(%rsp), %r9
movb 0x120(%rsp), %bpl
movl 0x110(%rsp), %r10d
testq %r9, %r9
je 0x18523
subq $0x8, %rsp
movq %r13, %rax
leaq 0x10(%rsp), %r13
movq %r13, %rdi
movq %r12, %rsi
movq %r15, %rcx
pushq %rax
callq 0x187be
addq $0x10, %rsp
movq 0x40(%r13), %rax
movq 0x10(%rax), %rsi
movq 0x28(%rax), %rcx
subq $0x8, %rsp
movzbl %bpl, %eax
movq %r12, %rdi
movq %r15, %rdx
movq %r14, %r8
movq %rbx, %r9
pushq 0x138(%rsp)
pushq %r13
pushq %rax
pushq 0x138(%rsp)
movl 0x138(%rsp), %eax
pushq %rax
callq 0xf2cf
addq $0x30, %rsp
movq 0xc0(%rsp), %rdi
testq %rdi, %rdi
je 0x184e0
movq 0xd0(%rsp), %rsi
subq %rdi, %rsi
callq 0x4300
movq 0xa8(%rsp), %rdi
testq %rdi, %rdi
je 0x184fd
movq 0xb8(%rsp), %rsi
subq %rdi, %rsi
callq 0x4300
movq 0x90(%rsp), %rdi
testq %rdi, %rdi
je 0x1851a
movq 0xa0(%rsp), %rsi
subq %rdi, %rsi
callq 0x4300
addq $0xd8, %rsp
jmp 0x18557
subq $0x8, %rsp
movzbl %bpl, %eax
movq %r12, %rdi
movq %rdx, %rsi
movq %r15, %rdx
movq %r8, %rcx
movq %r14, %r8
movq %rbx, %r9
pushq %r13
pushq $0x0
pushq %rax
pushq 0x138(%rsp)
pushq %r10
callq 0xf2cf
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x18868
movq %rbx, %rdi
callq 0x45e0
// File: /workspace/github_cpp_makefile_star2_O3/sisong[P]ApkDiffPatch/HDiffPatch/libHDiffPatch/HDiff/match_block.cpp
// Function: create_single_compressed_diff_block(unsigned char*, unsigned char*, unsigned char*, unsigned char*, std::vector<unsigned char, std::allocator<unsigned char>>&, hdiff_TCompress const*, int, unsigned long, bool, unsigned long, unsigned long)
void create_single_compressed_diff_block(unsigned char* newData,unsigned char* newData_end,
                                         unsigned char* oldData,unsigned char* oldData_end,
                                         std::vector<unsigned char>& out_diff,const hdiff_TCompress* compressPlugin,
                                         int kMinSingleMatchScore,size_t patchStepMemSize,
                                         bool isUseBigCacheMatch,size_t matchBlockSize,size_t threadNum){
    if (matchBlockSize==0){
        create_single_compressed_diff(newData,newData_end,oldData,oldData_end,
                                      out_diff,compressPlugin,kMinSingleMatchScore,
                                      patchStepMemSize,isUseBigCacheMatch,0,threadNum);
        return;
    }
    TCoversOptimMB<TMatchBlock> coversOp(newData,newData_end,oldData,oldData_end,matchBlockSize,threadNum);
    create_single_compressed_diff(newData,coversOp.matchBlock->newData_end_cur,oldData,coversOp.matchBlock->oldData_end_cur,
                                  out_diff,compressPlugin,kMinSingleMatchScore,
                                  patchStepMemSize,isUseBigCacheMatch,&coversOp,threadNum); 
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
movq %r9, %rbx
movq %r8, %r14
movq %rcx, %r8
movq %rdx, %r15
movq %rsi, %rdx
movq %rdi, %r12
movq 0x130(%rsp), %r13
movq 0x128(%rsp), %r9
movb 0x120(%rsp), %bpl
movl 0x110(%rsp), %r10d
testq %r9, %r9
je 0x18684
subq $0x8, %rsp
movq %r13, %rax
leaq 0x10(%rsp), %r13
movq %r13, %rdi
movq %r12, %rsi
movq %r15, %rcx
pushq %rax
callq 0x187be
addq $0x10, %rsp
movq 0x40(%r13), %rax
movq 0x10(%rax), %rsi
movq 0x28(%rax), %rcx
subq $0x8, %rsp
movzbl %bpl, %eax
movq %r12, %rdi
movq %r15, %rdx
movq %r14, %r8
movq %rbx, %r9
pushq 0x138(%rsp)
pushq %r13
pushq %rax
pushq 0x138(%rsp)
movl 0x138(%rsp), %eax
pushq %rax
callq 0xf268
addq $0x30, %rsp
movq 0xc0(%rsp), %rdi
testq %rdi, %rdi
je 0x18641
movq 0xd0(%rsp), %rsi
subq %rdi, %rsi
callq 0x4300
movq 0xa8(%rsp), %rdi
testq %rdi, %rdi
je 0x1865e
movq 0xb8(%rsp), %rsi
subq %rdi, %rsi
callq 0x4300
movq 0x90(%rsp), %rdi
testq %rdi, %rdi
je 0x1867b
movq 0xa0(%rsp), %rsi
subq %rdi, %rsi
callq 0x4300
addq $0xd8, %rsp
jmp 0x186b8
subq $0x8, %rsp
movzbl %bpl, %eax
movq %r12, %rdi
movq %rdx, %rsi
movq %r15, %rdx
movq %r8, %rcx
movq %r14, %r8
movq %rbx, %r9
pushq %r13
pushq $0x0
pushq %rax
pushq 0x138(%rsp)
pushq %r10
callq 0xf268
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x18868
movq %rbx, %rdi
callq 0x45e0
// File: /workspace/github_cpp_makefile_star2_O3/sisong[P]ApkDiffPatch/HDiffPatch/libHDiffPatch/HDiff/match_block.cpp
// Function: create_single_compressed_diff_block(hpatch_TStreamInput const*, hpatch_TStreamInput const*, hpatch_TStreamOutput const*, hdiff_TCompress const*, int, unsigned long, bool, unsigned long, unsigned long)
void create_single_compressed_diff_block(const hpatch_TStreamInput* newData,const hpatch_TStreamInput* oldData,
                                         const hpatch_TStreamOutput* out_diff,const hdiff_TCompress* compressPlugin,
                                         int kMinSingleMatchScore,size_t patchStepMemSize,
                                         bool isUseBigCacheMatch,size_t matchBlockSize,size_t threadNum){
    TAutoMem oldAndNewData;
    loadOldAndNewStream(oldAndNewData,oldData,newData);
    size_t old_size=oldData?(size_t)oldData->streamSize:0;
    unsigned char* pOldData=oldAndNewData.data();
    unsigned char* pNewData=pOldData+old_size;
    create_single_compressed_diff_block(pNewData,pNewData+(size_t)newData->streamSize,pOldData,pOldData+old_size,
                                        out_diff,compressPlugin,kMinSingleMatchScore,
                                        patchStepMemSize,isUseBigCacheMatch,matchBlockSize,threadNum);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %r9, 0x10(%rsp)
movq %r8, 0x18(%rsp)
movq %rcx, 0x8(%rsp)
movq %rdx, %r13
movq %rsi, %r15
movq %rdi, %rbp
movq 0x80(%rsp), %r14
movq 0x78(%rsp), %rbx
movb 0x70(%rsp), %r12b
xorps %xmm0, %xmm0
leaq 0x20(%rsp), %rdi
movaps %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
movq %rbp, %rdx
callq 0x17f27
testq %r15, %r15
je 0x18736
movq 0x8(%r15), %rcx
jmp 0x18738
xorl %ecx, %ecx
movq 0x20(%rsp), %r15
addq %r15, %rcx
movq 0x8(%rbp), %rsi
addq %rcx, %rsi
subq $0x8, %rsp
movzbl %r12b, %eax
movq %rcx, %rdi
movq %r15, %rdx
movq %r13, %r8
movq 0x10(%rsp), %r9
pushq %r14
pushq %rbx
pushq %rax
pushq 0x30(%rsp)
pushq 0x40(%rsp)
callq 0x18416
addq $0x30, %rsp
testq %r15, %r15
je 0x1878d
movq %r15, %rdi
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x43b0
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x187a9
movq %rax, %rbx
movq 0x20(%rsp), %r15
testq %r15, %r15
je 0x187b6
movq %r15, %rdi
callq 0x43b0
movq %rbx, %rdi
callq 0x45e0
// File: /workspace/github_cpp_makefile_star2_O3/sisong[P]ApkDiffPatch/HDiffPatch/libHDiffPatch/HDiff/private_diff/bytes_rle.cpp
// Function: hdiff_private::(anonymous namespace)::TStreamRLE::append(unsigned char const*, unsigned char const*)
void append(const unsigned char* appendData,const unsigned char* appendData_end){
            if (sameCount==0){
                if (appendData!=appendData_end){
                    sameCur=*appendData++;
                    sameCount=1;
                }else{
                    return;
                }
            }
            while (appendData!=appendData_end){
                TByte cur=*appendData++;
                if (cur==sameCur){
                    ++sameCount;
                }else{
                    endSame();
                    sameCur=cur;
                    sameCount=1;
                }
            }
        }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq 0x18(%rdi), %rax
testq %rax, %rax
jne 0x1a9b8
cmpq %rbx, %r14
je 0x1aa59
movb (%r14), %al
incq %r14
movb %al, 0x10(%r15)
movq $0x1, 0x18(%r15)
movl $0x1, %eax
cmpq %rbx, %r14
je 0x1aa59
leaq 0x10(%r15), %r12
movb 0x10(%r15), %cl
movb (%r14), %bpl
cmpb %cl, %bpl
jne 0x1a9d6
incq %rax
jmp 0x1aa47
incb %cl
cmpb $0x2, %cl
movq %rax, %rcx
adcq $0x0, %rcx
cmpq 0x28(%r15), %rcx
jbe 0x1aa07
movq %r15, %rdi
callq 0x1b668
movq (%r15), %rdi
movq 0x8(%r15), %rsi
movzbl 0x10(%r15), %edx
movq 0x18(%r15), %rcx
callq 0x1b747
jmp 0x1aa3e
addq %rax, 0x20(%r15)
subq $0x1, %rax
movq %rax, 0x18(%r15)
jb 0x1aa3e
movq 0x8(%r15), %rdi
movq 0x8(%rdi), %rsi
cmpq 0x10(%rdi), %rsi
je 0x1aa2f
movb (%r12), %al
movb %al, (%rsi)
incq 0x8(%rdi)
jmp 0x1aa37
movq %r12, %rdx
callq 0x1bc5e
subq $0x1, 0x18(%r15)
jae 0x1aa15
movb %bpl, (%r12)
movl $0x1, %eax
incq %r14
movq %rax, 0x18(%r15)
movl %ebp, %ecx
cmpq %rbx, %r14
jne 0x1a9c9
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/sisong[P]ApkDiffPatch/HDiffPatch/libHDiffPatch/HDiff/private_diff/bytes_rle.cpp
// Function: hdiff_private::bytesRLE_save(std::vector<unsigned char, std::allocator<unsigned char>>&, std::vector<unsigned char, std::allocator<unsigned char>>&, hpatch_TStreamInput const*, int)
void bytesRLE_save(std::vector<unsigned char>& out_ctrlBuf,std::vector<unsigned char>& out_codeBuf,
                   const hpatch_TStreamInput* src,int rle_parameter){
    TStreamRLE rle(out_ctrlBuf,out_codeBuf,rle_parameter);
    TByte buf[kStepSize];
    hpatch_StreamPos_t readPos=0;
    while (readPos<src->streamSize){
        size_t len=kStepSize;
        if (len+readPos>src->streamSize)
            len=(size_t)(src->streamSize-readPos);
        if (!src->read(src,readPos,buf,buf+len))
            throw std::runtime_error("bytesRLE_save() src->read()");
        rle.append(buf,buf+len);
        readPos+=len;
    }
    rle.finishAppend();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x4038, %rsp           # imm = 0x4038
movq %rdi, (%rsp)
movq %rsi, 0x8(%rsp)
movb $0x0, 0x10(%rsp)
leal 0x1(%rcx), %eax
cltq
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%rsp)
movq %rax, 0x28(%rsp)
decl %ecx
cmpl $0x20, %ecx
jae 0x1abe2
movq %rdx, %rbx
movq 0x8(%rdx), %rcx
testq %rcx, %rcx
je 0x1ab1e
xorl %r14d, %r14d
movl $0x4000, %ebp           # imm = 0x4000
leaq 0x30(%rsp), %r15
leaq (%r14,%rbp), %rax
movq %rcx, %r12
subq %r14, %r12
cmpq %rcx, %rax
cmovbeq %rbp, %r12
leaq (%rsp,%r12), %r13
addq $0x30, %r13
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
movq %r13, %rcx
callq *0x10(%rbx)
testl %eax, %eax
je 0x1abb0
movq %rsp, %rdi
movq %r15, %rsi
movq %r13, %rdx
callq 0x1a97e
addq %r12, %r14
movq 0x8(%rbx), %rcx
cmpq %rcx, %r14
jb 0x1aab7
movb 0x10(%rsp), %sil
movq 0x18(%rsp), %rcx
movq 0x28(%rsp), %rax
incb %sil
xorl %edx, %edx
cmpb $0x2, %sil
setb %dl
jmp 0x1ab25
movl $0x1, %edx
xorl %ecx, %ecx
addq %rcx, %rdx
cmpq %rax, %rdx
jbe 0x1ab56
movq %rsp, %rbx
movq %rbx, %rdi
callq 0x1b668
movq (%rbx), %rdi
movq 0x8(%rbx), %rsi
movzbl 0x10(%rbx), %edx
movq 0x18(%rbx), %rcx
callq 0x1b747
movq $0x0, 0x18(%rbx)
jmp 0x1ab96
addq %rcx, 0x20(%rsp)
subq $0x1, %rcx
movq %rcx, 0x18(%rsp)
jb 0x1ab96
leaq 0x10(%rsp), %rbx
movq 0x8(%rsp), %rdi
movq 0x8(%rdi), %rsi
cmpq 0x10(%rdi), %rsi
je 0x1ab86
movb 0x10(%rsp), %al
movb %al, (%rsi)
incq 0x8(%rdi)
jmp 0x1ab8e
movq %rbx, %rdx
callq 0x1bc5e
subq $0x1, 0x18(%rsp)
jae 0x1ab6b
movq %rsp, %rdi
callq 0x1b668
addq $0x4038, %rsp           # imm = 0x4038
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x4190
movq %rax, %rbx
leaq 0x41ba9(%rip), %rsi     # 0x5c76d
movq %rax, %rdi
callq 0x4110
movq 0x61415(%rip), %rsi     # 0x7bfe8
movq 0x613de(%rip), %rdx     # 0x7bfb8
movq %rbx, %rdi
callq 0x4590
leaq 0x41c03(%rip), %rdi     # 0x5c7ec
leaq 0x41c41(%rip), %rsi     # 0x5c831
leaq 0x41c74(%rip), %rcx     # 0x5c86b
movl $0x4c, %edx
callq 0x4200
movq %rax, %r14
movq %rbx, %rdi
callq 0x4260
movq %r14, %rdi
callq 0x45e0
// File: /workspace/github_cpp_makefile_star2_O3/sisong[P]ApkDiffPatch/HDiffPatch/libHDiffPatch/HDiff/private_diff/bytes_rle.cpp
// Function: hdiff_private::bytesRLE_save(std::vector<unsigned char, std::allocator<unsigned char>>&, unsigned char const*, unsigned char const*, int)
void bytesRLE_save(std::vector<TByte>& out_code,
                   const TByte* src,const TByte* src_end,int rle_parameter){
    std::vector<TByte> ctrlBuf;
    std::vector<TByte> codeBuf;

    bytesRLE_save(ctrlBuf,codeBuf,src,src_end,rle_parameter);
    packUInt(out_code,(TUInt)ctrlBuf.size());
    pushBack(out_code,ctrlBuf);
    pushBack(out_code,codeBuf);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x58, %rsp
movl %ecx, %r8d
movq %rdx, %rcx
movq %rsi, %rdx
movq %rdi, %rbx
xorps %xmm0, %xmm0
movq %rsp, %rdi
movaps %xmm0, (%rdi)
xorl %eax, %eax
movq %rax, 0x10(%rdi)
leaq 0x20(%rsp), %rsi
movq %rax, 0x10(%rsi)
movaps %xmm0, (%rsi)
callq 0x1a88c
movq 0x8(%rsp), %rdx
subq (%rsp), %rdx
leaq 0x45(%rsp), %rax
leaq 0x50(%rsp), %rdi
movq %rax, (%rdi)
leaq 0x50(%rsp), %rsi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x43254
testl %eax, %eax
je 0x1ace6
movq 0x8(%rbx), %rsi
movq 0x50(%rsp), %rcx
leaq 0x45(%rsp), %rdx
movq %rbx, %rdi
callq 0x9c50
movq (%rsp), %rdx
movq 0x8(%rsp), %rcx
movq 0x8(%rbx), %rsi
movq %rbx, %rdi
callq 0xa020
movq 0x20(%rsp), %rdx
movq 0x28(%rsp), %rcx
movq 0x8(%rbx), %rsi
movq %rbx, %rdi
callq 0xa020
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x1acc8
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x4300
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x1acde
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x4300
addq $0x58, %rsp
popq %rbx
popq %r14
retq
movl $0x10, %edi
callq 0x4190
movq %rax, %r14
leaq 0x3f706(%rip), %rsi     # 0x5a400
movq %rax, %rdi
callq 0x4110
movq 0x612df(%rip), %rsi     # 0x7bfe8
movq 0x612a8(%rip), %rdx     # 0x7bfb8
movq %r14, %rdi
callq 0x4590
movq %rax, %rbx
movq %r14, %rdi
callq 0x4260
jmp 0x1ad28
movq %rax, %rbx
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x1ad3f
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x4300
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x1ad55
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x4300
movq %rbx, %rdi
callq 0x45e0
// File: /workspace/github_cpp_makefile_star2_O3/sisong[P]ApkDiffPatch/HDiffPatch/libHDiffPatch/HDiff/private_diff/bytes_rle.cpp
// Function: hdiff_private::bytesRLE_save(std::vector<unsigned char, std::allocator<unsigned char>>&, hpatch_TStreamInput const*, int)
void bytesRLE_save(std::vector<TByte>& out_code,const hpatch_TStreamInput* src,int rle_parameter){
    std::vector<TByte> ctrlBuf;
    std::vector<TByte> codeBuf;

    bytesRLE_save(ctrlBuf,codeBuf,src,rle_parameter);
    packUInt(out_code,(TUInt)ctrlBuf.size());
    pushBack(out_code,ctrlBuf);
    pushBack(out_code,codeBuf);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x58, %rsp
movl %edx, %ecx
movq %rsi, %rdx
movq %rdi, %rbx
xorps %xmm0, %xmm0
movq %rsp, %rdi
movaps %xmm0, (%rdi)
xorl %eax, %eax
movq %rax, 0x10(%rdi)
leaq 0x20(%rsp), %rsi
movq %rax, 0x10(%rsi)
movaps %xmm0, (%rsi)
callq 0x1aa62
movq 0x8(%rsp), %rdx
subq (%rsp), %rdx
leaq 0x45(%rsp), %rax
leaq 0x50(%rsp), %rdi
movq %rax, (%rdi)
leaq 0x50(%rsp), %rsi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x43254
testl %eax, %eax
je 0x1ae2b
movq 0x8(%rbx), %rsi
movq 0x50(%rsp), %rcx
leaq 0x45(%rsp), %rdx
movq %rbx, %rdi
callq 0x9c50
movq (%rsp), %rdx
movq 0x8(%rsp), %rcx
movq 0x8(%rbx), %rsi
movq %rbx, %rdi
callq 0xa020
movq 0x20(%rsp), %rdx
movq 0x28(%rsp), %rcx
movq 0x8(%rbx), %rsi
movq %rbx, %rdi
callq 0xa020
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x1ae0d
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x4300
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x1ae23
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x4300
addq $0x58, %rsp
popq %rbx
popq %r14
retq
movl $0x10, %edi
callq 0x4190
movq %rax, %r14
leaq 0x3f5c1(%rip), %rsi     # 0x5a400
movq %rax, %rdi
callq 0x4110
movq 0x6119a(%rip), %rsi     # 0x7bfe8
movq 0x61163(%rip), %rdx     # 0x7bfb8
movq %r14, %rdi
callq 0x4590
movq %rax, %rbx
movq %r14, %rdi
callq 0x4260
jmp 0x1ae6d
movq %rax, %rbx
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x1ae84
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x4300
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x1ae9a
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x4300
movq %rbx, %rdi
callq 0x45e0
// File: /workspace/github_cpp_makefile_star2_O3/sisong[P]ApkDiffPatch/HDiffPatch/libHDiffPatch/HDiff/private_diff/bytes_rle.cpp
// Function: hdiff_private::TSingleStreamRLE0::maxCodeSize(unsigned char const*, unsigned char const*) const
hpatch_StreamPos_t TSingleStreamRLE0::maxCodeSize(const unsigned char* appendData,const unsigned char* appendData_end) const{
        TLastType lastType=getLastType(*this);
        hpatch_StreamPos_t curLen0=this->len0;
        hpatch_StreamPos_t curLenv=this->uncompressData.size();
        hpatch_StreamPos_t fixedLen=this->fixed_code.size();
        _maxCodeSize(lastType,curLen0,curLenv,fixedLen,appendData,appendData_end);
        _maxCodeSize_end(lastType,curLen0,curLenv,fixedLen);
        return fixedLen;
    }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rdx, %r9
movq %rsi, %r8
movq 0x18(%rdi), %rdx
movq 0x20(%rdi), %rcx
movq 0x30(%rdi), %rsi
cmpq %rcx, %rdx
je 0x1aed1
testq %rsi, %rsi
jne 0x1af2a
movl $0x1, %r10d
xorl %esi, %esi
jmp 0x1aed4
xorl %r10d, %r10d
leaq 0x4(%rsp), %rax
movl %r10d, (%rax)
leaq 0x18(%rsp), %rbx
movq %rsi, (%rbx)
subq %rdx, %rcx
leaq 0x10(%rsp), %r14
movq %rcx, (%r14)
movq 0x8(%rdi), %rcx
subq (%rdi), %rcx
leaq 0x8(%rsp), %r15
movq %rcx, (%r15)
movq %rax, %rdi
movq %rbx, %rsi
movq %r14, %rdx
movq %r15, %rcx
callq 0x1af49
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x1b0de
movq (%r15), %rax
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
leaq 0x41a32(%rip), %rdi     # 0x5c963
leaq 0x418f9(%rip), %rsi     # 0x5c831
leaq 0x41a31(%rip), %rcx     # 0x5c970
movl $0xb7, %edx
callq 0x4200
// File: /workspace/github_cpp_makefile_star2_O3/sisong[P]ApkDiffPatch/HDiffPatch/libHDiffPatch/HDiff/private_diff/bytes_rle.cpp
// Function: hdiff_private::_maxCodeSize_end(hdiff_private::TLastType&, unsigned long long&, unsigned long long&, unsigned long long&)
static void _maxCodeSize_end(TLastType& lastType,hpatch_StreamPos_t& curLen0,
                                 hpatch_StreamPos_t& curLenv,hpatch_StreamPos_t& fixedLen){
        if (curLenv>0){
            fixedLen += _out_uncompressData_codeSize(curLenv);
            curLenv=0;
        }
        if (curLen0>0){
            fixedLen += _out_0Data_codeSize(curLen0);
            curLen0=0;
        }
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r13
movq %rdi, %r14
movq (%rsi), %r12
testq %r12, %r12
je 0x1b15f
movq %rsi, %r15
movq %r13, (%rsp)
movq %r12, %rax
xorl %r13d, %r13d
shrq $0x1f, %rax
je 0x1b13e
movl $0x7fffffff, %ebp       # imm = 0x7FFFFFFF
movl $0x7fffffff, %edi       # imm = 0x7FFFFFFF
xorl %esi, %esi
callq 0x43313
movl %eax, %ebx
addq %r13, %rbx
xorl %edi, %edi
xorl %esi, %esi
callq 0x43313
movl %eax, %r13d
addq %rbp, %r13
addq %rbx, %r13
addq $-0x7fffffff, %r12      # imm = 0x80000001
cmpq %rbp, %r12
ja 0x1b10f
movq %r12, %rdi
xorl %esi, %esi
callq 0x43313
movl %eax, %eax
addq %r12, %rax
addq %r13, %rax
movq (%rsp), %r13
addq %rax, (%r13)
movq $0x0, (%r15)
movq (%r14), %r15
testq %r15, %r15
je 0x1b1bd
movq %r15, %rax
xorl %r12d, %r12d
shrq $0x1f, %rax
je 0x1b1a3
movl $0x7fffffff, %edi       # imm = 0x7FFFFFFF
xorl %esi, %esi
callq 0x43313
movl %eax, %ebx
addq %r12, %rbx
xorl %edi, %edi
xorl %esi, %esi
callq 0x43313
movl %eax, %r12d
addq %rbx, %r12
addq $-0x7fffffff, %r15      # imm = 0x80000001
cmpq $0x7fffffff, %r15       # imm = 0x7FFFFFFF
ja 0x1b173
movq %r15, %rdi
xorl %esi, %esi
callq 0x43313
movl %eax, %eax
addq %r12, %rax
addq %rax, (%r13)
movq $0x0, (%r14)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/sisong[P]ApkDiffPatch/HDiffPatch/libHDiffPatch/HDiff/private_diff/bytes_rle.cpp
// Function: hdiff_private::TSingleStreamRLE0::maxCodeSize(hpatch_TStreamInput const*) const
hpatch_StreamPos_t TSingleStreamRLE0::maxCodeSize(const hpatch_TStreamInput* appendData) const{
        TLastType lastType=getLastType(*this);
        hpatch_StreamPos_t curLen0=this->len0;
        hpatch_StreamPos_t curLenv=this->uncompressData.size();
        hpatch_StreamPos_t fixedLen=this->fixed_code.size();
        
        TByte buf[kStepSize];
        hpatch_StreamPos_t readPos=0;
        while (readPos<appendData->streamSize){
            size_t len=kStepSize;
            if (len+readPos>appendData->streamSize)
                len=(size_t)(appendData->streamSize-readPos);
            if (!appendData->read(appendData,readPos,buf,buf+len))
                throw std::runtime_error("TSingleStreamRLE0::maxCodeSize() appendData->read()");
            _maxCodeSize(lastType,curLen0,curLenv,fixedLen,buf,buf+len);
            readPos+=len;
        }
        _maxCodeSize_end(lastType,curLen0,curLenv,fixedLen);
        return fixedLen;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x4028, %rsp           # imm = 0x4028
movq %rsi, %rbx
movq 0x18(%rdi), %rax
movq 0x20(%rdi), %rcx
movq 0x30(%rdi), %rdx
cmpq %rcx, %rax
je 0x1b309
testq %rdx, %rdx
jne 0x1b3f0
movl $0x1, %esi
xorl %edx, %edx
jmp 0x1b30b
xorl %esi, %esi
movl %esi, 0x4(%rsp)
movq %rdx, 0x18(%rsp)
subq %rax, %rcx
movq %rcx, 0x10(%rsp)
movq 0x8(%rdi), %rax
subq (%rdi), %rax
movq %rax, 0x8(%rsp)
movq 0x8(%rbx), %rax
testq %rax, %rax
je 0x1b392
xorl %r14d, %r14d
movl $0x4000, %ebp           # imm = 0x4000
leaq 0x20(%rsp), %r15
leaq (%r14,%rbp), %rcx
movq %rax, %r12
subq %r14, %r12
cmpq %rax, %rcx
cmovbeq %rbp, %r12
leaq 0x20(%rsp,%r12), %r13
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
movq %r13, %rcx
callq *0x10(%rbx)
testl %eax, %eax
je 0x1b3be
leaq 0x4(%rsp), %rdi
leaq 0x18(%rsp), %rsi
leaq 0x10(%rsp), %rdx
leaq 0x8(%rsp), %rcx
movq %r15, %r8
movq %r13, %r9
callq 0x1af49
addq %r12, %r14
movq 0x8(%rbx), %rax
cmpq %rax, %r14
jb 0x1b33e
leaq 0x18(%rsp), %rdi
leaq 0x10(%rsp), %rsi
leaq 0x8(%rsp), %rbx
movq %rbx, %rdx
callq 0x1b0de
movq (%rbx), %rax
addq $0x4028, %rsp           # imm = 0x4028
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x4190
movq %rax, %rbx
leaq 0x413b7(%rip), %rsi     # 0x5c789
movq %rax, %rdi
callq 0x4110
movq 0x60c07(%rip), %rsi     # 0x7bfe8
movq 0x60bd0(%rip), %rdx     # 0x7bfb8
movq %rbx, %rdi
callq 0x4590
leaq 0x4156c(%rip), %rdi     # 0x5c963
leaq 0x41433(%rip), %rsi     # 0x5c831
leaq 0x4156b(%rip), %rcx     # 0x5c970
movl $0xb7, %edx
callq 0x4200
movq %rax, %r14
movq %rbx, %rdi
callq 0x4260
movq %r14, %rdi
callq 0x45e0
// File: /workspace/github_cpp_makefile_star2_O3/sisong[P]ApkDiffPatch/HDiffPatch/libHDiffPatch/HDiff/private_diff/bytes_rle.cpp
// Function: hdiff_private::TSingleStreamRLE0::appendByZeroLen(unsigned long long)
void TSingleStreamRLE0::appendByZeroLen(hpatch_StreamPos_t appendZeroLen){
        if (appendZeroLen){
            TLastType lastType=getLastType(*this);
            if (lastType==lastType_v)
                _out_uncompressData(*this);
            len0+=appendZeroLen;
        }
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
testq %rsi, %rsi
je 0x1b44e
movq %rsi, %rbx
movq %rdi, %r14
movq 0x18(%rdi), %rax
cmpq 0x20(%rdi), %rax
je 0x1b44a
cmpq $0x0, 0x30(%r14)
jne 0x1b456
movq %r14, %rdi
callq 0x1b8ec
addq %rbx, 0x30(%r14)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0x41506(%rip), %rdi     # 0x5c963
leaq 0x413cd(%rip), %rsi     # 0x5c831
leaq 0x41505(%rip), %rcx     # 0x5c970
movl $0xb7, %edx
callq 0x4200
nop
// File: /workspace/github_cpp_makefile_star2_O3/sisong[P]ApkDiffPatch/HDiffPatch/libHDiffPatch/HDiff/private_diff/bytes_rle.cpp
// Function: hdiff_private::TSingleStreamRLE0::append(unsigned char const*, unsigned char const*)
void TSingleStreamRLE0::append(const unsigned char* appendData,const unsigned char* appendData_end){
        TLastType lastType=getLastType(*this);
        while (appendData!=appendData_end) {
            unsigned char v;
            size_t sLen0=0;
            do {
                v=*appendData++;
                if (0==v)
                    ++sLen0;
                else
                    break;
            }while (appendData!=appendData_end);
            if (sLen0>0){
                if (lastType==lastType_v)
                    _out_uncompressData(*this);
                len0+=sLen0;
                lastType=lastType_same;
                if (v==0)
                    break;//appendData==appendData_end
            }
            if (lastType==lastType_same)
                _out_0Data(*this);
            uncompressData.push_back(v);
            lastType=lastType_v;
        }
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
movq 0x18(%rdi), %rax
cmpq 0x20(%rdi), %rax
je 0x1b4bf
movl $0x1, %eax
cmpq $0x0, 0x30(%r14)
je 0x1b4c1
leaq 0x414bc(%rip), %rdi     # 0x5c963
leaq 0x41383(%rip), %rsi     # 0x5c831
leaq 0x414bb(%rip), %rcx     # 0x5c970
movl $0xb7, %edx
callq 0x4200
xorl %eax, %eax
cmpq %rbx, %r15
je 0x1b558
leaq 0x18(%r14), %r12
leaq 0x7(%rsp), %r13
movq %rbx, %rdx
subq %r15, %rdx
movq %r15, %rsi
xorl %ebp, %ebp
movq %rsi, %r15
movb (%rsi), %cl
movb %cl, 0x7(%rsp)
testb %cl, %cl
jne 0x1b4fa
leaq 0x1(%r15), %rsi
incq %rbp
cmpq %rbx, %rsi
jne 0x1b4de
movq %rdx, %rbp
testq %rbp, %rbp
je 0x1b522
cmpl $0x1, %eax
jne 0x1b510
movq %r14, %rdi
callq 0x1b8ec
movb 0x7(%rsp), %cl
addq %rbp, 0x30(%r14)
testb %cl, %cl
je 0x1b558
movq %r14, %rdi
callq 0x1bad0
jmp 0x1b526
testl %eax, %eax
je 0x1b518
movq 0x20(%r14), %rsi
cmpq 0x28(%r14), %rsi
je 0x1b53c
movb 0x7(%rsp), %al
movb %al, (%rsi)
incq 0x20(%r14)
jmp 0x1b547
movq %r12, %rdi
movq %r13, %rdx
callq 0x1bc5e
incq %r15
movl $0x1, %eax
cmpq %rbx, %r15
jne 0x1b4d3
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/sisong[P]ApkDiffPatch/HDiffPatch/libHDiffPatch/HDiff/private_diff/bytes_rle.cpp
// Function: hdiff_private::TSingleStreamRLE0::append(hpatch_TStreamInput const*)
void TSingleStreamRLE0::append(const hpatch_TStreamInput* appendData){
        TByte buf[kStepSize];
        hpatch_StreamPos_t readPos=0;
        while (readPos<appendData->streamSize){
            size_t len=kStepSize;
            if (len+readPos>appendData->streamSize)
                len=(size_t)(appendData->streamSize-readPos);
            if (!appendData->read(appendData,readPos,buf,buf+len))
                throw std::runtime_error("TSingleStreamRLE0::append() appendData->read()");
            append(buf,buf+len);
            readPos+=len;
        }
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x4018, %rsp           # imm = 0x4018
movq %rdi, 0x8(%rsp)
movq 0x8(%rsi), %rax
testq %rax, %rax
je 0x1b5df
movq %rsi, %rbx
xorl %r15d, %r15d
movl $0x4000, %ebp           # imm = 0x4000
leaq 0x10(%rsp), %r12
leaq (%r15,%rbp), %rcx
movq %rax, %r14
subq %r15, %r14
cmpq %rax, %rcx
cmovbeq %rbp, %r14
leaq (%rsp,%r14), %r13
addq $0x10, %r13
movq %rbx, %rdi
movq %r15, %rsi
movq %r12, %rdx
movq %r13, %rcx
callq *0x10(%rbx)
testl %eax, %eax
je 0x1b5f1
movq 0x8(%rsp), %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x1b476
addq %r14, %r15
movq 0x8(%rbx), %rax
cmpq %rax, %r15
jb 0x1b597
addq $0x4018, %rsp           # imm = 0x4018
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x4190
movq %rax, %rbx
leaq 0x411b8(%rip), %rsi     # 0x5c7bd
movq %rax, %rdi
callq 0x4110
movq 0x609d4(%rip), %rsi     # 0x7bfe8
movq 0x6099d(%rip), %rdx     # 0x7bfb8
movq %rbx, %rdi
callq 0x4590
movq %rax, %r14
movq %rbx, %rdi
callq 0x4260
movq %r14, %rdi
callq 0x45e0
// File: /workspace/github_cpp_makefile_star2_O3/sisong[P]ApkDiffPatch/HDiffPatch/libHDiffPatch/HDiff/private_diff/bytes_rle.cpp
// Function: hdiff_private::TSingleStreamRLE0::finishAppend()
void TSingleStreamRLE0::finishAppend(){
        if ((fixed_code.empty())||(len0>0))
            _out_0Data(*this);
        if (!uncompressData.empty())
            _out_uncompressData(*this);
    }

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %rax
cmpq 0x8(%rdi), %rax
je 0x1b64a
cmpq $0x0, 0x30(%rbx)
je 0x1b652
movq %rbx, %rdi
callq 0x1bad0
movq 0x18(%rbx), %rax
cmpq 0x20(%rbx), %rax
je 0x1b665
movq %rbx, %rdi
popq %rbx
jmp 0x1b8ec
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/sisong[P]ApkDiffPatch/HDiffPatch/libHDiffPatch/HDiff/private_diff/bytes_rle.cpp
// Function: hdiff_private::(anonymous namespace)::TStreamRLE::endNoSame()
inline void endNoSame(){
            if (notSameCount>1){
                rle_pushNotSameCtrl(ctrlBuf,notSameCount);
                notSameCount=0;
            }else if (notSameCount==1){
                notSameCount=0;
                TByte cur=codeBuf.back();
                codeBuf.pop_back();
                rle_pushSame(ctrlBuf,codeBuf,cur,1);
            }
        }

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movq 0x20(%rdi), %rdx
cmpq $0x2, %rdx
jb 0x1b6c8
movq (%rbx), %r14
decq %rdx
leaq 0x5(%rsp), %rax
leaq 0x10(%rsp), %rdi
movq %rax, (%rdi)
leaq 0x10(%rsp), %rsi
movl $0x3, %ecx
movl $0x2, %r8d
callq 0x43254
testl %eax, %eax
je 0x1b702
movq 0x8(%r14), %rsi
movq 0x10(%rsp), %rcx
leaq 0x5(%rsp), %rdx
movq %r14, %rdi
callq 0x9c50
movq $0x0, 0x20(%rbx)
jmp 0x1b6fa
cmpq $0x1, %rdx
jne 0x1b6fa
movq $0x0, 0x20(%rbx)
movq 0x8(%rbx), %rsi
movq 0x8(%rsi), %rax
movzbl -0x1(%rax), %edx
decq %rax
movq %rax, 0x8(%rsi)
movq (%rbx), %rdi
movl $0x1, %ecx
addq $0x18, %rsp
popq %rbx
popq %r14
jmp 0x1b747
addq $0x18, %rsp
popq %rbx
popq %r14
retq
movl $0x10, %edi
callq 0x4190
movq %rax, %rbx
leaq 0x3ecea(%rip), %rsi     # 0x5a400
movq %rax, %rdi
callq 0x4110
movq 0x608c3(%rip), %rsi     # 0x7bfe8
movq 0x6088c(%rip), %rdx     # 0x7bfb8
movq %rbx, %rdi
callq 0x4590
movq %rax, %r14
movq %rbx, %rdi
callq 0x4260
movq %r14, %rdi
callq 0x45e0
// File: /workspace/github_cpp_makefile_star2_O3/sisong[P]ApkDiffPatch/HDiffPatch/libHDiffPatch/HDiff/private_diff/bytes_rle.cpp
// Function: hdiff_private::(anonymous namespace)::rle_pushSame(std::vector<unsigned char, std::allocator<unsigned char>>&, std::vector<unsigned char, std::allocator<unsigned char>>&, unsigned char, unsigned long long)
static void rle_pushSame(std::vector<TByte>& out_ctrl,std::vector<TByte>& out_code,
                             TByte cur,TUInt count){
        assert(count>0);
        while (count>kMaxBytesRleLen){
            rle_pushSame(out_ctrl,out_code,cur,kMaxBytesRleLen);
            count-=kMaxBytesRleLen;
        }
        enum TByteRleType type;
        if (cur==0)
            type=kByteRleType_rle0;
        else if (cur==255)
            type=kByteRleType_rle255;
        else
            type=kByteRleType_rle;
        const TUInt packCount=(TUInt)(count-1);
        packUIntWithTag(out_ctrl,packCount,type,kByteRleType_bit);
        if (type==kByteRleType_rle)
            out_code.push_back(cur);
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movl %edx, %ebp
movb %bpl, 0xc(%rsp)
testq %rcx, %rcx
je 0x1b868
movq %rcx, %r15
movq %rsi, %r14
movq %rdi, %rbx
movq %rcx, %rax
shrq $0x1f, %rax
je 0x1b79c
movzbl %bpl, %r12d
movl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
movq %rbx, %rdi
movq %r14, %rsi
movl %r12d, %edx
callq 0x1b747
addq $-0x7fffffff, %r15      # imm = 0x80000001
cmpq $0x7fffffff, %r15       # imm = 0x7FFFFFFF
ja 0x1b779
movzbl %bpl, %ecx
testb %bpl, %bpl
je 0x1b7b2
cmpl $0xff, %ecx
jne 0x1b7f5
movl $0x1, %ecx
decq %r15
leaq 0xd(%rsp), %rax
leaq 0x18(%rsp), %rdi
movq %rax, (%rdi)
leaq 0x18(%rsp), %rsi
movq %r15, %rdx
movl $0x2, %r8d
callq 0x43254
testl %eax, %eax
je 0x1b887
movq 0x8(%rbx), %rsi
movq 0x18(%rsp), %rcx
leaq 0xd(%rsp), %rdx
movq %rbx, %rdi
callq 0x9c50
jmp 0x1b85b
decq %r15
leaq 0xd(%rsp), %rax
leaq 0x18(%rsp), %rdi
movq %rax, (%rdi)
leaq 0x18(%rsp), %rsi
movq %r15, %rdx
movl $0x2, %ecx
movl $0x2, %r8d
callq 0x43254
testl %eax, %eax
je 0x1b8a5
movq 0x8(%rbx), %rsi
movq 0x18(%rsp), %rcx
leaq 0xd(%rsp), %rdx
movq %rbx, %rdi
callq 0x9c50
movq 0x8(%r14), %rsi
cmpq 0x10(%r14), %rsi
je 0x1b84e
movb %bpl, (%rsi)
incq 0x8(%r14)
jmp 0x1b85b
leaq 0xc(%rsp), %rdx
movq %r14, %rdi
callq 0x1bc5e
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x4107a(%rip), %rdi     # 0x5c8e9
leaq 0x40fbb(%rip), %rsi     # 0x5c831
leaq 0x41074(%rip), %rcx     # 0x5c8f1
movl $0x2b, %edx
callq 0x4200
movl $0x10, %edi
callq 0x4190
movq %rax, %rbx
leaq 0x3eb65(%rip), %rsi     # 0x5a400
movq %rax, %rdi
callq 0x4110
jmp 0x1b8c1
movl $0x10, %edi
callq 0x4190
movq %rax, %rbx
leaq 0x3eb47(%rip), %rsi     # 0x5a400
movq %rax, %rdi
callq 0x4110
movq 0x60720(%rip), %rsi     # 0x7bfe8
movq 0x606e9(%rip), %rdx     # 0x7bfb8
movq %rbx, %rdi
callq 0x4590
jmp 0x1b8d9
movq %rax, %r14
movq %rbx, %rdi
callq 0x4260
movq %r14, %rdi
callq 0x45e0
// File: /workspace/github_cpp_makefile_star2_O3/sisong[P]ApkDiffPatch/HDiffPatch/libHDiffPatch/HDiff/private_diff/bytes_rle.cpp
// Function: hdiff_private::_out_0Data(hdiff_private::TSingleStreamRLE0&)
inline void _out_0Data(TSingleStreamRLE0& self){
        hpatch_StreamPos_t saved=0;
        while (self.len0-saved>kMaxBytesRleLen){
            packUInt(self.fixed_code,kMaxBytesRleLen);
            packUInt(self.fixed_code,0);
            saved+=kMaxBytesRleLen;
        }
        packUInt(self.fixed_code,(hpatch_StreamPos_t)(self.len0-saved));
        self.len0=0;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movq 0x30(%rdi), %rdx
testq $-0x80000000, %rdx      # imm = 0x80000000
je 0x1bb8f
leaq 0x18(%rsp), %r14
leaq 0x18(%rsp), %r15
xorl %ebp, %ebp
leaq 0xd(%rsp), %r12
movq %rsp, %r13
movq %r12, (%rsp)
movl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
movq %r13, %rdi
movq %r14, %rsi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x43254
testl %eax, %eax
je 0x1bbd9
movq 0x8(%rbx), %rsi
movq (%rsp), %rcx
movq %rbx, %rdi
movq %r12, %rdx
callq 0x9c50
movq %r12, (%rsp)
movq %r13, %rdi
movq %r15, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x43254
testl %eax, %eax
je 0x1bbf7
movq 0x8(%rbx), %rsi
movq (%rsp), %rcx
movq %rbx, %rdi
movq %r12, %rdx
callq 0x9c50
movq 0x30(%rbx), %rdx
leaq (%rdx,%rbp), %rax
addq $-0x7fffffff, %rax      # imm = 0x80000001
addq $-0x7fffffff, %rbp      # imm = 0x80000001
cmpq $0x7fffffff, %rax       # imm = 0x7FFFFFFF
ja 0x1bb06
addq %rbp, %rdx
leaq 0xd(%rsp), %rax
movq %rsp, %rdi
movq %rax, (%rdi)
leaq 0x18(%rsp), %rsi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x43254
testl %eax, %eax
je 0x1bc29
movq 0x8(%rbx), %rsi
movq (%rsp), %rcx
leaq 0xd(%rsp), %rdx
movq %rbx, %rdi
callq 0x9c50
movq $0x0, 0x30(%rbx)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x4190
movq %rax, %r14
leaq 0x3e813(%rip), %rsi     # 0x5a400
movq %rax, %rdi
callq 0x4110
jmp 0x1bc13
movl $0x10, %edi
callq 0x4190
movq %rax, %r14
leaq 0x3e7f5(%rip), %rsi     # 0x5a400
movq %rax, %rdi
callq 0x4110
movq 0x603ce(%rip), %rsi     # 0x7bfe8
movq 0x60397(%rip), %rdx     # 0x7bfb8
movq %r14, %rdi
callq 0x4590
movl $0x10, %edi
callq 0x4190
movq %rax, %r14
leaq 0x3e7c3(%rip), %rsi     # 0x5a400
movq %rax, %rdi
callq 0x4110
jmp 0x1bc13
jmp 0x1bc4b
jmp 0x1bc4b
movq %rax, %rbx
movq %r14, %rdi
callq 0x4260
movq %rbx, %rdi
callq 0x45e0
// File: /workspace/github_cpp_makefile_star2_O3/sisong[P]ApkDiffPatch/HDiffPatch/libHDiffPatch/HDiff/private_diff/suffix_string.cpp
// Function: hdiff_private::TSuffixString::clear_cache()
void TSuffixString::clear_cache(){
#if (_SSTRING_FAST_MATCH>0)
    if (m_isUsedFastMatch) m_fastMatch.clear();
#endif
    if (m_cached2char_range){
        delete [](TChar*)m_cached2char_range;
        m_cached2char_range=0;
    }
    memset(&m_cached1char_range[0],0,sizeof(void*)*(256+1));
    m_cached_SA_begin=0;
    m_cached_SA_end=0;
    m_lower_bound=(t_lower_bound_func)_lower_bound_TInt32;//safe
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
cmpb $0x1, 0x40(%rdi)
jne 0x1bdab
cmpq $0x0, 0x50(%rbx)
je 0x1bdab
movq $0x0, 0x50(%rbx)
movq 0x48(%rbx), %rdi
testq %rdi, %rdi
je 0x1bdab
callq 0x43e0
movq $0x0, 0x48(%rbx)
movq 0x878(%rbx), %rdi
testq %rdi, %rdi
je 0x1bdc7
callq 0x43e0
movq $0x0, 0x878(%rbx)
leaq 0x60(%rbx), %rdi
movl $0x818, %edx            # imm = 0x818
xorl %esi, %esi
callq 0x41c0
leaq 0x842(%rip), %rax       # 0x1c620
movq %rax, 0x880(%rbx)
popq %rbx
retq
nop