// File: /workspace/github_cpp_makefile_star2_O3/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 0x3dc43
movq (%r12), %rsi
movq 0x8(%r12), %rdx
subq %rsi, %rdx
sarq $0x2, %rdx
movq %r14, %rdi
callq 0x3dac9
movl %eax, %ebp
leaq 0x8(%rsp), %rdi
leaq 0x20(%rsp), %rdx
movq %rbp, %rsi
callq 0x9a74
movq 0x8(%rsp), %rsi
leaq (%rsi,%rbp), %rdx
leaq 0x20(%rsp), %rdi
callq 0x433f7
movq 0x8(%rsp), %rsi
addq %rsi, %rbp
leaq 0xa8(%rsp), %r13
movq %r13, %rdi
movq %rbp, %rdx
callq 0x433a9
movq (%r12), %rsi
movq 0x8(%r12), %rdx
subq %rsi, %rdx
sarq $0x2, %rdx
leaq 0x20(%rsp), %rcx
movq %r14, %rdi
callq 0x3db26
testb %al, %al
je 0x8a9e
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 0x3df20
testb %al, %al
je 0x8ac9
movq 0x40(%rsp), %rax
movq 0x8(%rax), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x9b50
movq 0x40(%rsp), %rdi
movq (%rbx), %rdx
addq %rdx, %r14
xorl %esi, %esi
movq %r14, %rcx
callq *0x10(%rdi)
testl %eax, %eax
je 0x8af4
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x8a80
movq 0x18(%rsp), %rsi
subq %rdi, %rsi
callq 0x4300
leaq 0x40(%rsp), %rdi
callq 0x3dc66
movb $0x1, %al
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x51ecc(%rip), %rdi     # 0x5a971
callq 0x44e0
leaq 0x5159f(%rip), %rdi     # 0x5a050
leaq 0x5159e(%rip), %rsi     # 0x5a056
leaq 0x51856(%rip), %rcx     # 0x5a315
movl $0x168, %edx            # imm = 0x168
callq 0x4200
leaq 0x51efd(%rip), %rdi     # 0x5a9cd
callq 0x44e0
leaq 0x51574(%rip), %rdi     # 0x5a050
leaq 0x51573(%rip), %rsi     # 0x5a056
leaq 0x5182b(%rip), %rcx     # 0x5a315
movl $0x16a, %edx            # imm = 0x16A
callq 0x4200
leaq 0x51f61(%rip), %rdi     # 0x5aa5c
callq 0x44e0
leaq 0x51549(%rip), %rdi     # 0x5a050
leaq 0x51548(%rip), %rsi     # 0x5a056
leaq 0x51800(%rip), %rcx     # 0x5a315
movl $0x16f, %edx            # imm = 0x16F
callq 0x4200
jmp 0x8b54
jmp 0x8b23
movq %rax, %rbx
jmp 0x8b42
movq %rax, %rbx
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x8b42
movq 0x18(%rsp), %rsi
subq %rdi, %rsi
callq 0x4300
leaq 0x40(%rsp), %rdi
callq 0x3dc66
movq %rbx, %rdi
callq 0x45e0
movq %rax, %rdi
callq 0x9b7c