// File: /workspace/github_cpp_makefile_star2_O1/sisong[P]ApkDiffPatch/src/diff/DiffData.cpp
// Function: readZipStreamData(UnZipper*, std::vector<unsigned int, std::allocator<unsigned int>> const&, std::vector<unsigned int, std::allocator<unsigned int>> const&, std::vector<unsigned char, std::allocator<unsigned char>>&)
bool readZipStreamData(UnZipper* zip,const std::vector<uint32_t>& refList,
                       const std::vector<uint32_t>& refNotDecompressList,
                       std::vector<unsigned char>& out_data){
    size_t outSize=0;
    OldStream stream;
    OldStream_init(&stream);
    t_auto_OldStream _t_auto_OldStream(&stream);
    
    ZipFilePos_t decompressSumSize=OldStream_getDecompressSumSize(zip,refList.data(),refList.size());
    std::vector<TByte> decompressData(decompressSumSize);
    hpatch_TStreamOutput out_decompressStream;
    hpatch_TStreamInput  in_decompressStream;
    mem_as_hStreamOutput(&out_decompressStream,decompressData.data(),decompressData.data()+decompressSumSize);
    mem_as_hStreamInput(&in_decompressStream,decompressData.data(),decompressData.data()+decompressSumSize);
    check(OldStream_getDecompressData(zip,refList.data(),refList.size(),&out_decompressStream));
    check(OldStream_open(&stream,zip,refList.data(),refList.size(),refNotDecompressList.data(),
                         refNotDecompressList.size(),&in_decompressStream));
    
    outSize=(size_t)stream.stream->streamSize;
    assert(outSize==stream.stream->streamSize);
    out_data.resize(outSize);
    check(stream.stream->read(stream.stream,0,out_data.data(),out_data.data()+outSize));
    return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movq %rcx, %rbx
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r14
leaq 0x40(%rsp), %rdi
callq 0x3e0a0
movq (%r12), %rsi
movq 0x8(%r12), %rdx
subq %rsi, %rdx
sarq $0x2, %rdx
movq %r14, %rdi
callq 0x3df0d
movl %eax, %ebp
leaq 0x8(%rsp), %rdi
leaq 0x20(%rsp), %rdx
movq %rbp, %rsi
callq 0x9ca8
movq 0x8(%rsp), %rsi
leaq (%rsi,%rbp), %rdx
leaq 0x20(%rsp), %rdi
callq 0x4397b
movq 0x8(%rsp), %rsi
addq %rsi, %rbp
leaq 0xa8(%rsp), %r13
movq %r13, %rdi
movq %rbp, %rdx
callq 0x4392d
movq (%r12), %rsi
movq 0x8(%r12), %rdx
subq %rsi, %rdx
sarq $0x2, %rdx
leaq 0x20(%rsp), %rcx
movq %r14, %rdi
callq 0x3df6a
testb %al, %al
je 0x8caf
movq (%r12), %rdx
movq 0x8(%r12), %rcx
subq %rdx, %rcx
sarq $0x2, %rcx
movq (%r15), %r8
movq 0x8(%r15), %r9
subq %r8, %r9
sarq $0x2, %r9
movq %r13, (%rsp)
leaq 0x40(%rsp), %rdi
movq %r14, %rsi
callq 0x3e379
testb %al, %al
je 0x8cda
movq 0x40(%rsp), %rax
movq 0x8(%rax), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x9d84
movq 0x40(%rsp), %rdi
movq (%rbx), %rdx
addq %rdx, %r14
xorl %esi, %esi
movq %r14, %rcx
callq *0x10(%rdi)
testl %eax, %eax
je 0x8d05
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x8c91
movq 0x18(%rsp), %rsi
subq %rdi, %rsi
callq 0x4300
leaq 0x40(%rsp), %rdi
callq 0x3e0c3
movb $0x1, %al
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x51cbb(%rip), %rdi     # 0x5a971
callq 0x44e0
leaq 0x5138e(%rip), %rdi     # 0x5a050
leaq 0x5138d(%rip), %rsi     # 0x5a056
leaq 0x51645(%rip), %rcx     # 0x5a315
movl $0x168, %edx            # imm = 0x168
callq 0x4200
leaq 0x51cec(%rip), %rdi     # 0x5a9cd
callq 0x44e0
leaq 0x51363(%rip), %rdi     # 0x5a050
leaq 0x51362(%rip), %rsi     # 0x5a056
leaq 0x5161a(%rip), %rcx     # 0x5a315
movl $0x16a, %edx            # imm = 0x16A
callq 0x4200
leaq 0x51d50(%rip), %rdi     # 0x5aa5c
callq 0x44e0
leaq 0x51338(%rip), %rdi     # 0x5a050
leaq 0x51337(%rip), %rsi     # 0x5a056
leaq 0x515ef(%rip), %rcx     # 0x5a315
movl $0x16f, %edx            # imm = 0x16F
callq 0x4200
jmp 0x8d65
jmp 0x8d34
movq %rax, %rbx
jmp 0x8d53
movq %rax, %rbx
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x8d53
movq 0x18(%rsp), %rsi
subq %rdi, %rsi
callq 0x4300
leaq 0x40(%rsp), %rdi
callq 0x3e0c3
movq %rbx, %rdi
callq 0x45e0
movq %rax, %rdi
callq 0x9db0