// File: /workspace/github_cpp_makefile_star2_O2/sisong[P]ApkDiffPatch/HDiffPatch/libHDiffPatch/HDiff/diff.cpp
// Function: create_diff(unsigned char const*, unsigned char const*, unsigned char const*, unsigned char const*, std::vector<unsigned char, std::allocator<unsigned char>>&, int, bool, unsigned long)
void create_diff(const TByte* newData,const TByte* newData_end,
                 const TByte* oldData,const TByte* oldData_end,
                 std::vector<TByte>& out_diff,
                 int kMinSingleMatchScore,bool isUseBigCacheMatch,size_t threadNum){
    TDiffData diff;
    std::vector<TOldCover> covers;
    get_diff(newData,newData_end,oldData,oldData_end,diff,covers,
             kMinSingleMatchScore,isUseBigCacheMatch,0,0,threadNum);
    serialize_diff(diff,covers,out_diff);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x248, %rsp            # imm = 0x248
movq %r8, 0xb0(%rsp)
movb 0x280(%rsp), %r8b
movq 0x288(%rsp), %r10
xorps %xmm0, %xmm0
leaq 0x30(%rsp), %rax
movaps %xmm0, (%rax)
andq $0x0, 0x10(%rax)
movq %r10, 0x20(%rsp)
movups %xmm0, 0x10(%rsp)
movzbl %r8b, %r8d
movl %r8d, 0x8(%rsp)
movl %r9d, (%rsp)
movl $0x1, 0x28(%rsp)
leaq 0xb8(%rsp), %r8
movq %rax, %r9
callq 0xbbbd
movq 0x30(%rsp), %rcx
movq 0x38(%rsp), %rax
subq %rcx, %rax
pushq $0x18
popq %rsi
cqto
idivq %rsi
movq %rax, %rbx
leaq 0x70(%rsp), %rdx
xorps %xmm0, %xmm0
movaps %xmm0, (%rdx)
andq $0x0, 0x10(%rdx)
leaq 0x50(%rsp), %rdx
andq $0x0, 0x10(%rdx)
leaq 0x90(%rsp), %r13
andq $0x0, 0x10(%r13)
movaps %xmm0, (%rdx)
movaps %xmm0, (%r13)
xorl %r14d, %r14d
pushq $0x1
popq %rbp
movq %rax, 0xa8(%rsp)
xorl %r15d, %r15d
xorl %r12d, %r12d
subq $0x1, %rbx
jb 0xb9a7
movq 0x10(%rcx,%r14), %rsi
leaq 0x70(%rsp), %rdi
callq 0x11aa7
movq 0x30(%rsp), %rax
movq 0x8(%rax,%r14), %rsi
subq %r12, %rsi
jl 0xbb4b
leaq 0x50(%rsp), %rdi
callq 0x11aa7
movq 0x30(%rsp), %rax
movq (%rax,%r14), %rax
xorl %edx, %edx
subq %r15, %rax
setl %dl
movq %rax, %rsi
negq %rsi
cmovsq %rax, %rsi
movq %r13, %rdi
movl %ebp, %ecx
callq 0x11aad
movq 0x30(%rsp), %rcx
movq (%rcx,%r14), %r15
movq 0x10(%rcx,%r14), %r12
addq 0x8(%rcx,%r14), %r12
addq $0x18, %r14
jmp 0xb937
movq 0x38(%rsp), %rax
subq %rcx, %rax
cqto
pushq $0x18
popq %rsi
idivq %rsi
movq %rcx, 0xe8(%rsp)
movq %rax, 0xf0(%rsp)
movb $0x0, 0xf8(%rsp)
andq $0x0, 0xd8(%rsp)
movq 0xb8(%rsp), %rsi
movq 0xc0(%rsp), %rdx
leaq 0x100(%rsp), %rdi
callq 0x3a60a
leaq 0x120(%rsp), %rdi
leaq 0xd8(%rsp), %rsi
leaq 0x100(%rsp), %rdx
callq 0x120bc
movq 0xb0(%rsp), %rbx
movq %rbx, %rdi
movq 0xa8(%rsp), %rsi
callq 0x11aa7
movq 0x78(%rsp), %rsi
subq 0x70(%rsp), %rsi
movq %rbx, %rdi
callq 0x11aa7
movq 0x58(%rsp), %rsi
subq 0x50(%rsp), %rsi
movq %rbx, %rdi
callq 0x11aa7
movq 0x98(%rsp), %rsi
subq 0x90(%rsp), %rsi
movq %rbx, %rdi
callq 0x11aa7
movq 0x128(%rsp), %rsi
movq %rbx, %rdi
callq 0xe3bb
leaq 0x70(%rsp), %rsi
movq %rbx, %rdi
callq 0x11b3b
leaq 0x50(%rsp), %rsi
movq %rbx, %rdi
callq 0x11b3b
leaq 0x90(%rsp), %rsi
movq %rbx, %rdi
callq 0x11b3b
leaq 0x120(%rsp), %rsi
movq %rbx, %rdi
callq 0x11b4e
movq 0xb8(%rsp), %rsi
movq 0xc0(%rsp), %rdx
movq 0xc8(%rsp), %rcx
movq 0xd0(%rsp), %r8
andl $0x0, 0x8(%rsp)
andl $0x0, (%rsp)
leaq 0x188(%rsp), %rdi
leaq 0xd8(%rsp), %r9
callq 0x1f516
leaq 0x188(%rsp), %rsi
pushq $0x1
popq %rdx
movq %rbx, %rdi
callq 0x1755c
leaq 0x188(%rsp), %rdi
callq 0x120e4
leaq 0x90(%rsp), %rdi
callq 0x8b88
leaq 0x50(%rsp), %rdi
callq 0x8b88
leaq 0x70(%rsp), %rdi
callq 0x8b88
leaq 0x30(%rsp), %rdi
callq 0xc678
addq $0x248, %rsp            # imm = 0x248
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x45601(%rip), %rdi     # 0x51153
leaq 0x44dde(%rip), %rsi     # 0x50937
leaq 0x45610(%rip), %rcx     # 0x51170
movl $0x24c, %edx            # imm = 0x24C
callq 0x4230
movq %rax, %rbx
leaq 0x188(%rsp), %rdi
callq 0x120e4
jmp 0xbb8a
jmp 0xbb87
jmp 0xbb87
movq %rax, %rbx
jmp 0xbbab
jmp 0xbb87
movq %rax, %rbx
leaq 0x90(%rsp), %rdi
callq 0x8b88
leaq 0x50(%rsp), %rdi
callq 0x8b88
leaq 0x70(%rsp), %rdi
callq 0x8b88
leaq 0x30(%rsp), %rdi
callq 0xc678
movq %rbx, %rdi
callq 0x4600