LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/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 %rsi, %r13
movq %rdi, %r15
testq %rsi, %rsi
je 0x181f2
movq 0x8(%r13), %r14
jmp 0x181f5
xorl %r14d, %r14d
movq 0x8(%rbx), %r12
testq %r14, %r14
je 0x1823c
cmpq %r14, 0x8(%r13)
jne 0x182f4
leaq (%r12,%r14), %rbp
movq (%r15), %rdi
movq 0x10(%r15), %rax
subq %rdi, %rax
cmpq %rbp, %rax
jae 0x1826c
movq %rbp, %rsi
callq 0x4530
testq %rax, %rax
je 0x18312
movq %rax, (%r15)
addq %rax, %rbp
movq %rbp, 0x8(%r15)
movq %rbp, 0x10(%r15)
jmp 0x18273
movq (%r15), %rdi
movq 0x10(%r15), %rax
subq %rdi, %rax
cmpq %r12, %rax
jae 0x182a8
movq %r12, %rsi
callq 0x4530
testq %rax, %rax
je 0x18330
movq %rax, (%r15)
addq %r12, %rax
movq %rax, 0x8(%r15)
movq %rax, 0x10(%r15)
jmp 0x182af
addq %rbp, %rdi
movq %rdi, 0x8(%r15)
movq (%r15), %rdx
leaq (%rdx,%r14), %rcx
movq %r13, %rdi
xorl %esi, %esi
callq *0x10(%r13)
testl %eax, %eax
jne 0x182af
movl $0x10, %edi
callq 0x4190
movq %rax, %rbx
leaq 0x442c7(%rip), %rsi     # 0x5c562
movq %rax, %rdi
callq 0x4110
jmp 0x1834c
addq %r12, %rdi
movq %rdi, 0x8(%r15)
addq (%r15), %r14
addq %r14, %r12
movq %rbx, %rdi
xorl %esi, %esi
movq %r14, %rdx
movq %r12, %rcx
callq *0x10(%rbx)
testl %eax, %eax
je 0x182d6
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 0x44298(%rip), %rsi     # 0x5c582
movq %rax, %rdi
callq 0x4110
jmp 0x1834c
movl $0x10, %edi
callq 0x4190
movq %rax, %rbx
leaq 0x4423f(%rip), %rsi     # 0x5c547
movq %rax, %rdi
callq 0x4110
jmp 0x1834c
movl $0x10, %edi
callq 0x4190
movq %rax, %rbx
leaq 0x43fe9(%rip), %rsi     # 0x5c30f
movq %rax, %rdi
callq 0x4110
jmp 0x1834c
movl $0x10, %edi
callq 0x4190
movq %rax, %rbx
leaq 0x43fcb(%rip), %rsi     # 0x5c30f
movq %rax, %rdi
callq 0x4110
movq 0x63c95(%rip), %rsi     # 0x7bfe8
movq 0x63c5e(%rip), %rdx     # 0x7bfb8
movq %rbx, %rdi
callq 0x4590
jmp 0x1836a
jmp 0x1836a
jmp 0x1836a
jmp 0x1836a
movq %rax, %r14
movq %rbx, %rdi
callq 0x4260
movq %r14, %rdi
callq 0x45e0
// File: /workspace/github_cpp_makefile_star2_O1/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 0x1847d
subq $0x8, %rsp
leaq 0x10(%rsp), %r13
movq %r13, %rdi
movq %r12, %rsi
movq %r15, %rcx
pushq %r11
callq 0x18a84
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 0xe7e9
addq $0x20, %rsp
movq 0xc0(%rsp), %rdi
testq %rdi, %rdi
je 0x1843a
movq 0xd0(%rsp), %rsi
subq %rdi, %rsi
callq 0x4300
movq 0xa8(%rsp), %rdi
testq %rdi, %rdi
je 0x18457
movq 0xb8(%rsp), %rsi
subq %rdi, %rsi
callq 0x4300
movq 0x90(%rsp), %rdi
testq %rdi, %rdi
je 0x18474
movq 0xa0(%rsp), %rsi
subq %rdi, %rsi
callq 0x4300
addq $0xd8, %rsp
jmp 0x184a6
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 0xe7e9
addq $0xf8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x18b2e
movq %rbx, %rdi
callq 0x45e0
// File: /workspace/github_cpp_makefile_star2_O1/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 0x185c6
subq $0x8, %rsp
leaq 0x10(%rsp), %r13
movq %r13, %rdi
movq %r12, %rsi
movq %r15, %rcx
pushq %r11
callq 0x18a84
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 0xf4d0
addq $0x20, %rsp
movq 0xc0(%rsp), %rdi
testq %rdi, %rdi
je 0x18583
movq 0xd0(%rsp), %rsi
subq %rdi, %rsi
callq 0x4300
movq 0xa8(%rsp), %rdi
testq %rdi, %rdi
je 0x185a0
movq 0xb8(%rsp), %rsi
subq %rdi, %rsi
callq 0x4300
movq 0x90(%rsp), %rdi
testq %rdi, %rdi
je 0x185bd
movq 0xa0(%rsp), %rsi
subq %rdi, %rsi
callq 0x4300
addq $0xd8, %rsp
jmp 0x185ef
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 0xf4d0
addq $0xf8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x18b2e
movq %rbx, %rdi
callq 0x45e0
// File: /workspace/github_cpp_makefile_star2_O1/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 $0x18, %rsp
movl %r9d, %ebp
movl %r8d, %ebx
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r13
xorps %xmm0, %xmm0
movq %rsp, %rdi
movaps %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
movq %r13, %rdx
callq 0x181d3
movq 0x58(%rsp), %r10
movq 0x50(%rsp), %rax
testq %r12, %r12
je 0x1865e
movq 0x8(%r12), %rcx
jmp 0x18660
xorl %ecx, %ecx
movq (%rsp), %r12
addq %r12, %rcx
movq 0x8(%r13), %rsi
addq %rcx, %rsi
movzbl %bpl, %r11d
movq %rcx, %rdi
movq %r12, %rdx
movq %r15, %r8
movq %r14, %r9
pushq %r10
pushq %rax
pushq %r11
pushq %rbx
callq 0x184c6
addq $0x20, %rsp
testq %r12, %r12
je 0x186aa
movq %r12, %rdi
callq 0x43b0
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x186bb
movq %rax, %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x186dc
callq 0x43b0
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
movq %rbx, %rdi
callq 0x45e0
// File: /workspace/github_cpp_makefile_star2_O1/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 0x187f1
subq $0x8, %rsp
movq %r13, %rax
leaq 0x10(%rsp), %r13
movq %r13, %rdi
movq %r12, %rsi
movq %r15, %rcx
pushq %rax
callq 0x18a84
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 0xf60f
addq $0x30, %rsp
movq 0xc0(%rsp), %rdi
testq %rdi, %rdi
je 0x187ae
movq 0xd0(%rsp), %rsi
subq %rdi, %rsi
callq 0x4300
movq 0xa8(%rsp), %rdi
testq %rdi, %rdi
je 0x187cb
movq 0xb8(%rsp), %rsi
subq %rdi, %rsi
callq 0x4300
movq 0x90(%rsp), %rdi
testq %rdi, %rdi
je 0x187e8
movq 0xa0(%rsp), %rsi
subq %rdi, %rsi
callq 0x4300
addq $0xd8, %rsp
jmp 0x18825
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 0xf60f
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 0x18b2e
movq %rbx, %rdi
callq 0x45e0
// File: /workspace/github_cpp_makefile_star2_O1/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 0x18952
subq $0x8, %rsp
movq %r13, %rax
leaq 0x10(%rsp), %r13
movq %r13, %rdi
movq %r12, %rsi
movq %r15, %rcx
pushq %rax
callq 0x18a84
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 0xf5a8
addq $0x30, %rsp
movq 0xc0(%rsp), %rdi
testq %rdi, %rdi
je 0x1890f
movq 0xd0(%rsp), %rsi
subq %rdi, %rsi
callq 0x4300
movq 0xa8(%rsp), %rdi
testq %rdi, %rdi
je 0x1892c
movq 0xb8(%rsp), %rsi
subq %rdi, %rsi
callq 0x4300
movq 0x90(%rsp), %rdi
testq %rdi, %rdi
je 0x18949
movq 0xa0(%rsp), %rsi
subq %rdi, %rsi
callq 0x4300
addq $0xd8, %rsp
jmp 0x18986
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 0xf5a8
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 0x18b2e
movq %rbx, %rdi
callq 0x45e0
// File: /workspace/github_cpp_makefile_star2_O1/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 $0x18, %rsp
movq %r9, %r14
movl %r8d, %ebx
movq %rcx, %r15
movq %rdx, %r12
movq %rsi, %r13
movq %rdi, %rbp
xorps %xmm0, %xmm0
movq %rsp, %rdi
movaps %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
movq %rbp, %rdx
callq 0x181d3
movq 0x60(%rsp), %r10
movq 0x58(%rsp), %rax
movb 0x50(%rsp), %dl
testq %r13, %r13
je 0x189f8
movq 0x8(%r13), %rcx
jmp 0x189fa
xorl %ecx, %ecx
movq (%rsp), %r13
addq %r13, %rcx
movq 0x8(%rbp), %rsi
addq %rcx, %rsi
subq $0x8, %rsp
movzbl %dl, %r11d
movq %rcx, %rdi
movq %r13, %rdx
movq %r12, %r8
movq %r15, %r9
pushq %r10
pushq %rax
pushq %r11
pushq %r14
pushq %rbx
callq 0x186e4
addq $0x30, %rsp
testq %r13, %r13
je 0x18a4a
movq %r13, %rdi
callq 0x43b0
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x18a5b
movq %rax, %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x18a7c
callq 0x43b0
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
movq %rbx, %rdi
callq 0x45e0
// File: /workspace/github_cpp_makefile_star2_O1/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
cmpq $0x0, 0x18(%rdi)
jne 0x1acb9
cmpq %rbx, %r14
je 0x1ad67
movb (%r14), %al
incq %r14
movb %al, 0x10(%r15)
movq $0x1, 0x18(%r15)
cmpq %rbx, %r14
je 0x1ad67
leaq 0x10(%r15), %r12
movb (%r14), %bpl
movb (%r12), %al
cmpb %al, %bpl
jne 0x1acdb
movq 0x18(%r15), %rax
incq %rax
jmp 0x1ad57
incb %al
cmpb $0x2, %al
movq 0x18(%r15), %rax
movq %rax, %rcx
adcq $0x0, %rcx
cmpq 0x28(%r15), %rcx
jbe 0x1ad17
movq %r15, %rdi
callq 0x1b958
movq (%r15), %rdi
movq 0x8(%r15), %rsi
movzbl 0x10(%r15), %edx
movq 0x18(%r15), %rcx
callq 0x1ba37
movq $0x0, 0x18(%r15)
jmp 0x1ad4e
addq %rax, 0x20(%r15)
subq $0x1, %rax
movq %rax, 0x18(%r15)
jb 0x1ad4e
movq 0x8(%r15), %rdi
movq 0x8(%rdi), %rsi
cmpq 0x10(%rdi), %rsi
je 0x1ad3f
movb (%r12), %al
movb %al, (%rsi)
incq 0x8(%rdi)
jmp 0x1ad47
movq %r12, %rdx
callq 0x1bf46
subq $0x1, 0x18(%r15)
jae 0x1ad25
movb %bpl, (%r12)
movl $0x1, %eax
incq %r14
movq %rax, 0x18(%r15)
cmpq %rbx, %r14
jne 0x1acc6
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 0x1aedf
movq %rdx, %rbx
movq 0x8(%rdx), %rax
testq %rax, %rax
je 0x1ae0f
xorl %r14d, %r14d
movl $0x4000, %ebp           # imm = 0x4000
leaq 0x30(%rsp), %r15
leaq (%r14,%rbp), %rcx
movq %rax, %r12
subq %r14, %r12
cmpq %rax, %rcx
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 0x1aead
movq %rsp, %rdi
movq %r15, %rsi
movq %r13, %rdx
callq 0x1ac86
addq %r12, %r14
movq 0x8(%rbx), %rax
cmpq %rax, %r14
jb 0x1adc5
movb 0x10(%rsp), %al
incb %al
cmpb $0x2, %al
movq 0x18(%rsp), %rax
movq %rax, %rcx
adcq $0x0, %rcx
cmpq 0x28(%rsp), %rcx
jbe 0x1ae53
movq %rsp, %rbx
movq %rbx, %rdi
callq 0x1b958
movq (%rbx), %rdi
movq 0x8(%rbx), %rsi
movzbl 0x10(%rbx), %edx
movq 0x18(%rbx), %rcx
callq 0x1ba37
movq $0x0, 0x18(%rbx)
jmp 0x1ae93
addq %rax, 0x20(%rsp)
subq $0x1, %rax
movq %rax, 0x18(%rsp)
jb 0x1ae93
leaq 0x10(%rsp), %rbx
movq 0x8(%rsp), %rdi
movq 0x8(%rdi), %rsi
cmpq 0x10(%rdi), %rsi
je 0x1ae83
movb 0x10(%rsp), %al
movb %al, (%rsi)
incq 0x8(%rdi)
jmp 0x1ae8b
movq %rbx, %rdx
callq 0x1bf46
subq $0x1, 0x18(%rsp)
jae 0x1ae68
movq %rsp, %rdi
callq 0x1b958
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 0x418c7(%rip), %rsi     # 0x5c788
movq %rax, %rdi
callq 0x4110
movq 0x61118(%rip), %rsi     # 0x7bfe8
movq 0x610e1(%rip), %rdx     # 0x7bfb8
movq %rbx, %rdi
callq 0x4590
leaq 0x41921(%rip), %rdi     # 0x5c807
leaq 0x4195f(%rip), %rsi     # 0x5c84c
leaq 0x41992(%rip), %rcx     # 0x5c886
movl $0x4c, %edx
callq 0x4200
movq %rax, %r14
movq %rbx, %rdi
callq 0x4260
movq %r14, %rdi
callq 0x45e0
// File: /workspace/github_cpp_makefile_star2_O1/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 0x1ab94
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 0x437d8
testl %eax, %eax
je 0x1afe3
movq 0x8(%rbx), %rsi
movq 0x50(%rsp), %rcx
leaq 0x45(%rsp), %rdx
movq %rbx, %rdi
callq 0x9e84
movq 0x8(%rbx), %rsi
movq (%rsp), %rdx
movq 0x8(%rsp), %rcx
movq %rbx, %rdi
callq 0xa244
movq 0x8(%rbx), %rsi
movq 0x20(%rsp), %rdx
movq 0x28(%rsp), %rcx
movq %rbx, %rdi
callq 0xa244
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x1afc5
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x4300
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x1afdb
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 0x3f409(%rip), %rsi     # 0x5a400
movq %rax, %rdi
callq 0x4110
movq 0x60fe2(%rip), %rsi     # 0x7bfe8
movq 0x60fab(%rip), %rdx     # 0x7bfb8
movq %r14, %rdi
callq 0x4590
movq %rax, %rbx
movq %r14, %rdi
callq 0x4260
jmp 0x1b025
movq %rax, %rbx
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x1b03c
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x4300
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x1b052
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x4300
movq %rbx, %rdi
callq 0x45e0
// File: /workspace/github_cpp_makefile_star2_O1/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 0x1ad70
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 0x437d8
testl %eax, %eax
je 0x1b128
movq 0x8(%rbx), %rsi
movq 0x50(%rsp), %rcx
leaq 0x45(%rsp), %rdx
movq %rbx, %rdi
callq 0x9e84
movq 0x8(%rbx), %rsi
movq (%rsp), %rdx
movq 0x8(%rsp), %rcx
movq %rbx, %rdi
callq 0xa244
movq 0x8(%rbx), %rsi
movq 0x20(%rsp), %rdx
movq 0x28(%rsp), %rcx
movq %rbx, %rdi
callq 0xa244
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x1b10a
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x4300
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x1b120
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 0x3f2c4(%rip), %rsi     # 0x5a400
movq %rax, %rdi
callq 0x4110
movq 0x60e9d(%rip), %rsi     # 0x7bfe8
movq 0x60e66(%rip), %rdx     # 0x7bfb8
movq %r14, %rdi
callq 0x4590
movq %rax, %rbx
movq %r14, %rdi
callq 0x4260
jmp 0x1b16a
movq %rax, %rbx
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x1b181
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x4300
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x1b197
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x4300
movq %rbx, %rdi
callq 0x45e0
nop
// File: /workspace/github_cpp_makefile_star2_O1/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), %rcx
cmpq 0x20(%rdi), %rcx
je 0x1b1e4
movl $0x1, %edx
cmpq $0x0, 0x30(%rdi)
je 0x1b1e6
leaq 0x417b2(%rip), %rdi     # 0x5c97e
leaq 0x41679(%rip), %rsi     # 0x5c84c
leaq 0x417b1(%rip), %rcx     # 0x5c98b
movl $0xb7, %edx
callq 0x4200
xorl %edx, %edx
leaq 0x4(%rsp), %rax
movl %edx, (%rax)
movq 0x30(%rdi), %rdx
leaq 0x18(%rsp), %rbx
movq %rdx, (%rbx)
movq 0x20(%rdi), %rdx
subq %rcx, %rdx
leaq 0x10(%rsp), %r14
movq %rdx, (%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 0x1b243
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x1b3c1
movq (%r15), %rax
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 0x1b442
movq %rsi, %r15
movq %r13, (%rsp)
movq %r12, %rax
xorl %r13d, %r13d
shrq $0x1f, %rax
je 0x1b421
movl $0x7fffffff, %ebp       # imm = 0x7FFFFFFF
movl $0x7fffffff, %edi       # imm = 0x7FFFFFFF
xorl %esi, %esi
callq 0x43897
movl %eax, %ebx
addq %r13, %rbx
xorl %edi, %edi
xorl %esi, %esi
callq 0x43897
movl %eax, %r13d
addq %rbp, %r13
addq %rbx, %r13
addq $-0x7fffffff, %r12      # imm = 0x80000001
cmpq %rbp, %r12
ja 0x1b3f2
movq %r12, %rdi
xorl %esi, %esi
callq 0x43897
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 0x1b4a0
movq %r15, %rax
xorl %r12d, %r12d
shrq $0x1f, %rax
je 0x1b486
movl $0x7fffffff, %edi       # imm = 0x7FFFFFFF
xorl %esi, %esi
callq 0x43897
movl %eax, %ebx
addq %r12, %rbx
xorl %edi, %edi
xorl %esi, %esi
callq 0x43897
movl %eax, %r12d
addq %rbx, %r12
addq $-0x7fffffff, %r15      # imm = 0x80000001
cmpq $0x7fffffff, %r15       # imm = 0x7FFFFFFF
ja 0x1b456
movq %r15, %rdi
xorl %esi, %esi
callq 0x43897
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
nop
// File: /workspace/github_cpp_makefile_star2_O1/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
cmpq 0x20(%rdi), %rax
je 0x1b605
movl $0x1, %ecx
cmpq $0x0, 0x30(%rdi)
je 0x1b607
leaq 0x41391(%rip), %rdi     # 0x5c97e
leaq 0x41258(%rip), %rsi     # 0x5c84c
leaq 0x41390(%rip), %rcx     # 0x5c98b
movl $0xb7, %edx
callq 0x4200
xorl %ecx, %ecx
movl %ecx, 0x4(%rsp)
movq 0x30(%rdi), %rcx
movq %rcx, 0x18(%rsp)
movq 0x20(%rdi), %rcx
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 0x1b699
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 (%rsp,%r12), %r13
addq $0x20, %r13
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
movq %r13, %rcx
callq *0x10(%rbx)
testl %eax, %eax
je 0x1b6c5
leaq 0x4(%rsp), %rdi
leaq 0x18(%rsp), %rsi
leaq 0x10(%rsp), %rdx
leaq 0x8(%rsp), %rcx
movq %r15, %r8
movq %r13, %r9
callq 0x1b243
addq %r12, %r14
movq 0x8(%rbx), %rax
cmpq %rax, %r14
jb 0x1b642
leaq 0x18(%rsp), %rdi
leaq 0x10(%rsp), %rsi
leaq 0x8(%rsp), %rbx
movq %rbx, %rdx
callq 0x1b3c1
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 0x410cb(%rip), %rsi     # 0x5c7a4
movq %rax, %rdi
callq 0x4110
movq 0x60900(%rip), %rsi     # 0x7bfe8
movq 0x608c9(%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_O1/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 0x1b73e
movq %rsi, %rbx
movq %rdi, %r14
movq 0x18(%rdi), %rax
movq 0x20(%rdi), %rcx
cmpq %rcx, %rax
je 0x1b72d
cmpq $0x0, 0x30(%r14)
jne 0x1b746
cmpq %rcx, %rax
je 0x1b73a
movq %r14, %rdi
callq 0x1bbd4
addq %rbx, 0x30(%r14)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0x41231(%rip), %rdi     # 0x5c97e
leaq 0x410f8(%rip), %rsi     # 0x5c84c
leaq 0x41230(%rip), %rcx     # 0x5c98b
movl $0xb7, %edx
callq 0x4200
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 %rdi, %r14
movq 0x18(%rdi), %rax
cmpq 0x20(%rdi), %rax
je 0x1b7ac
movl $0x1, %eax
cmpq $0x0, 0x30(%r14)
je 0x1b7ae
leaq 0x411ea(%rip), %rdi     # 0x5c97e
leaq 0x410b1(%rip), %rsi     # 0x5c84c
leaq 0x411e9(%rip), %rcx     # 0x5c98b
movl $0xb7, %edx
callq 0x4200
xorl %eax, %eax
leaq 0x18(%r14), %r15
leaq 0x7(%rsp), %r12
cmpq %rbx, %rsi
je 0x1b849
movq %rbx, %rcx
subq %rsi, %rcx
xorl %ebp, %ebp
movq %rsi, %r13
movb (%rsi), %dl
movb %dl, 0x7(%rsp)
testb %dl, %dl
jne 0x1b7e4
leaq 0x1(%r13), %rsi
incq %rbp
cmpq %rbx, %rsi
jne 0x1b7c8
movq %rcx, %rbp
testq %rbp, %rbp
je 0x1b803
cmpl $0x1, %eax
jne 0x1b7f6
movq %r14, %rdi
callq 0x1bbd4
addq %rbp, 0x30(%r14)
xorl %eax, %eax
cmpb $0x0, 0x7(%rsp)
je 0x1b839
testl %eax, %eax
jne 0x1b80f
movq %r14, %rdi
callq 0x1bdb8
movq 0x20(%r14), %rsi
cmpq 0x28(%r14), %rsi
je 0x1b825
movb 0x7(%rsp), %al
movb %al, (%rsi)
incq 0x20(%r14)
jmp 0x1b830
movq %r15, %rdi
movq %r12, %rdx
callq 0x1bf46
movb $0x1, %cl
movl $0x1, %eax
jmp 0x1b83b
xorl %ecx, %ecx
incq %r13
movq %r13, %rsi
testb %cl, %cl
jne 0x1b7b7
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 0x1b8cf
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 0x1b8e1
movq 0x8(%rsp), %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x1b766
addq %r14, %r15
movq 0x8(%rbx), %rax
cmpq %rax, %r15
jb 0x1b887
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 0x40ee3(%rip), %rsi     # 0x5c7d8
movq %rax, %rdi
callq 0x4110
movq 0x606e4(%rip), %rsi     # 0x7bfe8
movq 0x606ad(%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_O1/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 0x1b93a
cmpq $0x0, 0x30(%rbx)
je 0x1b942
movq %rbx, %rdi
callq 0x1bdb8
movq 0x18(%rbx), %rax
cmpq 0x20(%rbx), %rax
je 0x1b955
movq %rbx, %rdi
popq %rbx
jmp 0x1bbd4
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0x1b9b8
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 0x437d8
testl %eax, %eax
je 0x1b9f2
movq 0x8(%r14), %rsi
movq 0x10(%rsp), %rcx
leaq 0x5(%rsp), %rdx
movq %r14, %rdi
callq 0x9e84
movq $0x0, 0x20(%rbx)
jmp 0x1b9ea
cmpq $0x1, %rdx
jne 0x1b9ea
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 0x1ba37
addq $0x18, %rsp
popq %rbx
popq %r14
retq
movl $0x10, %edi
callq 0x4190
movq %rax, %rbx
leaq 0x3e9fa(%rip), %rsi     # 0x5a400
movq %rax, %rdi
callq 0x4110
movq 0x605d3(%rip), %rsi     # 0x7bfe8
movq 0x6059c(%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_O1/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 %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movb %dl, 0xc(%rsp)
testq %rcx, %rcx
je 0x1bb50
movq %rcx, %r15
movq %rsi, %r14
movq %rdi, %rbx
movq %rcx, %rax
shrq $0x1f, %rax
je 0x1ba84
movzbl 0xc(%rsp), %edx
movl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1ba37
addq $-0x7fffffff, %r15      # imm = 0x80000001
cmpq $0x7fffffff, %r15       # imm = 0x7FFFFFFF
ja 0x1ba5f
movzbl 0xc(%rsp), %ecx
testl %ecx, %ecx
je 0x1ba9a
cmpl $0xff, %ecx
jne 0x1badd
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 0x437d8
testl %eax, %eax
je 0x1bb6f
movq 0x8(%rbx), %rsi
movq 0x18(%rsp), %rcx
leaq 0xd(%rsp), %rdx
movq %rbx, %rdi
callq 0x9e84
jmp 0x1bb46
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 0x437d8
testl %eax, %eax
je 0x1bb8d
movq 0x8(%rbx), %rsi
movq 0x18(%rsp), %rcx
leaq 0xd(%rsp), %rdx
movq %rbx, %rdi
callq 0x9e84
movq 0x8(%r14), %rsi
cmpq 0x10(%r14), %rsi
je 0x1bb39
movb 0xc(%rsp), %al
movb %al, (%rsi)
incq 0x8(%r14)
jmp 0x1bb46
leaq 0xc(%rsp), %rdx
movq %r14, %rdi
callq 0x1bf46
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
leaq 0x40dad(%rip), %rdi     # 0x5c904
leaq 0x40cee(%rip), %rsi     # 0x5c84c
leaq 0x40da7(%rip), %rcx     # 0x5c90c
movl $0x2b, %edx
callq 0x4200
movl $0x10, %edi
callq 0x4190
movq %rax, %rbx
leaq 0x3e87d(%rip), %rsi     # 0x5a400
movq %rax, %rdi
callq 0x4110
jmp 0x1bba9
movl $0x10, %edi
callq 0x4190
movq %rax, %rbx
leaq 0x3e85f(%rip), %rsi     # 0x5a400
movq %rax, %rdi
callq 0x4110
movq 0x60438(%rip), %rsi     # 0x7bfe8
movq 0x60401(%rip), %rdx     # 0x7bfb8
movq %rbx, %rdi
callq 0x4590
jmp 0x1bbc1
movq %rax, %r14
movq %rbx, %rdi
callq 0x4260
movq %r14, %rdi
callq 0x45e0
// File: /workspace/github_cpp_makefile_star2_O1/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 0x1be77
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 0x437d8
testl %eax, %eax
je 0x1bec1
movq 0x8(%rbx), %rsi
movq (%rsp), %rcx
movq %rbx, %rdi
movq %r12, %rdx
callq 0x9e84
movq %r12, (%rsp)
movq %r13, %rdi
movq %r15, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x437d8
testl %eax, %eax
je 0x1bedf
movq 0x8(%rbx), %rsi
movq (%rsp), %rcx
movq %rbx, %rdi
movq %r12, %rdx
callq 0x9e84
movq 0x30(%rbx), %rdx
leaq (%rdx,%rbp), %rax
addq $-0x7fffffff, %rax      # imm = 0x80000001
addq $-0x7fffffff, %rbp      # imm = 0x80000001
cmpq $0x7fffffff, %rax       # imm = 0x7FFFFFFF
ja 0x1bdee
addq %rbp, %rdx
leaq 0xd(%rsp), %rax
movq %rsp, %rdi
movq %rax, (%rdi)
leaq 0x18(%rsp), %rsi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x437d8
testl %eax, %eax
je 0x1bf11
movq 0x8(%rbx), %rsi
movq (%rsp), %rcx
leaq 0xd(%rsp), %rdx
movq %rbx, %rdi
callq 0x9e84
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 0x3e52b(%rip), %rsi     # 0x5a400
movq %rax, %rdi
callq 0x4110
jmp 0x1befb
movl $0x10, %edi
callq 0x4190
movq %rax, %r14
leaq 0x3e50d(%rip), %rsi     # 0x5a400
movq %rax, %rdi
callq 0x4110
movq 0x600e6(%rip), %rsi     # 0x7bfe8
movq 0x600af(%rip), %rdx     # 0x7bfb8
movq %r14, %rdi
callq 0x4590
movl $0x10, %edi
callq 0x4190
movq %rax, %r14
leaq 0x3e4db(%rip), %rsi     # 0x5a400
movq %rax, %rdi
callq 0x4110
jmp 0x1befb
jmp 0x1bf33
jmp 0x1bf33
movq %rax, %rbx
movq %r14, %rdi
callq 0x4260
movq %rbx, %rdi
callq 0x45e0
// File: /workspace/github_cpp_makefile_star2_O1/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 0x1c093
cmpq $0x0, 0x50(%rbx)
je 0x1c093
movq $0x0, 0x50(%rbx)
movq 0x48(%rbx), %rdi
testq %rdi, %rdi
je 0x1c093
callq 0x43e0
movq $0x0, 0x48(%rbx)
movq 0x878(%rbx), %rdi
testq %rdi, %rdi
je 0x1c0af
callq 0x43e0
movq $0x0, 0x878(%rbx)
leaq 0x60(%rbx), %rdi
movl $0x818, %edx            # imm = 0x818
xorl %esi, %esi
callq 0x41c0
leaq 0x918(%rip), %rax       # 0x1c9de
movq %rax, 0x880(%rbx)
popq %rbx
retq
nop