// File: 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
movq %rsp, %rbp
subq $0x90, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x316dc
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x40(%rbp)
jmp 0x316e4
xorl %eax, %eax
movq %rax, -0x40(%rbp)
jmp 0x316e4
movq -0x40(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
cmpq -0x28(%rbp), %rax
je 0x31759
movl $0x10, %edi
callq 0x41e0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x48(%rbp)
leaq 0x7e485(%rip), %rsi     # 0xafba6
callq 0x4140
jmp 0x31728
movq -0x48(%rbp), %rdi
movq 0xb48bd(%rip), %rsi     # 0xe5ff0
movq 0xb4886(%rip), %rdx     # 0xe5fc0
callq 0x4630
movq -0x48(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
callq 0x42e0
jmp 0x3193f
cmpq $0x0, -0x20(%rbp)
je 0x317d2
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x18(%rbp), %rcx
addq 0x8(%rcx), %rax
movq -0x20(%rbp), %rcx
addq -0x28(%rbp), %rcx
cmpq %rcx, %rax
je 0x317d0
movl $0x10, %edi
callq 0x41e0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x50(%rbp)
leaq 0x7e40e(%rip), %rsi     # 0xafba6
callq 0x4140
jmp 0x3179f
movq -0x50(%rbp), %rdi
movq 0xb4846(%rip), %rsi     # 0xe5ff0
movq 0xb480f(%rip), %rdx     # 0xe5fc0
callq 0x4630
movq -0x50(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
callq 0x42e0
jmp 0x3193f
jmp 0x317d2
movq -0x8(%rbp), %rdi
movq -0x20(%rbp), %rsi
addq -0x28(%rbp), %rsi
callq 0x301a0
cmpq $0x0, -0x20(%rbp)
je 0x31889
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x58(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x8(%rbp), %rdi
callq 0x29c40
movq %rax, -0x60(%rbp)
movq -0x8(%rbp), %rdi
callq 0x29c40
movq -0x68(%rbp), %rdi
movq -0x60(%rbp), %rdx
movq %rax, %rcx
movq -0x58(%rbp), %rax
addq -0x20(%rbp), %rcx
xorl %esi, %esi
callq *%rax
cmpl $0x0, %eax
jne 0x31887
movl $0x10, %edi
callq 0x41e0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x70(%rbp)
leaq 0x7e372(%rip), %rsi     # 0xafbc1
callq 0x4140
jmp 0x31856
movq -0x70(%rbp), %rdi
movq 0xb478f(%rip), %rsi     # 0xe5ff0
movq 0xb4758(%rip), %rdx     # 0xe5fc0
callq 0x4630
movq -0x70(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
callq 0x42e0
jmp 0x3193f
jmp 0x31889
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x78(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x88(%rbp)
movq -0x8(%rbp), %rdi
callq 0x29c40
addq -0x20(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0x8(%rbp), %rdi
callq 0x29c40
movq -0x88(%rbp), %rdi
movq -0x80(%rbp), %rdx
movq %rax, %rcx
movq -0x78(%rbp), %rax
addq -0x20(%rbp), %rcx
addq -0x28(%rbp), %rcx
xorl %esi, %esi
callq *%rax
cmpl $0x0, %eax
jne 0x31936
movl $0x10, %edi
callq 0x41e0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x90(%rbp)
leaq 0x7e2e6(%rip), %rsi     # 0xafbe1
callq 0x4140
jmp 0x31902
movq -0x90(%rbp), %rdi
movq 0xb46e0(%rip), %rsi     # 0xe5ff0
movq 0xb46a9(%rip), %rdx     # 0xe5fc0
callq 0x4630
movq -0x90(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
callq 0x42e0
jmp 0x3193f
addq $0x90, %rsp
popq %rbp
retq
movq -0x30(%rbp), %rdi
callq 0x4680
nopl (%rax,%rax)