// File: /workspace/github_cpp_makefile_star2_O2/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 $0xd8, %rsp
movq %rcx, %rbx
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r14
leaq 0x50(%rsp), %r13
movq %r13, %rdi
callq 0x353b7
movq %r13, 0x10(%rsp)
movq (%r12), %rsi
movq 0x8(%r12), %rdx
subq %rsi, %rdx
sarq $0x2, %rdx
movq %r14, %rdi
callq 0x3527c
movl %eax, %ebp
leaq 0x18(%rsp), %rdi
leaq 0x30(%rsp), %rdx
movq %rbp, %rsi
callq 0x8384
movq 0x18(%rsp), %rsi
leaq (%rsi,%rbp), %rdx
leaq 0x30(%rsp), %rdi
callq 0x3a656
movq 0x18(%rsp), %rsi
addq %rsi, %rbp
leaq 0xb8(%rsp), %r13
movq %r13, %rdi
movq %rbp, %rdx
callq 0x3a60a
movq (%r12), %rsi
movq 0x8(%r12), %rdx
subq %rsi, %rdx
sarq $0x2, %rdx
leaq 0x30(%rsp), %rcx
movq %r14, %rdi
callq 0x352d0
testb %al, %al
je 0x7bc6
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 0x50(%rsp), %rdi
movq %r14, %rsi
callq 0x35676
testb %al, %al
je 0x7bf1
movq 0x50(%rsp), %rax
movq 0x8(%rax), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x843c
movq 0x50(%rsp), %rdi
movq (%rbx), %rdx
addq %rdx, %r14
xorl %esi, %esi
movq %r14, %rcx
callq *0x10(%rdi)
testl %eax, %eax
je 0x7c1c
leaq 0x18(%rsp), %rdi
callq 0x8b88
leaq 0x10(%rsp), %rdi
callq 0x84d4
movb $0x1, %al
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x47da4(%rip), %rdi     # 0x4f971
callq 0x4510
leaq 0x47477(%rip), %rdi     # 0x4f050
leaq 0x47476(%rip), %rsi     # 0x4f056
leaq 0x4772e(%rip), %rcx     # 0x4f315
movl $0x168, %edx            # imm = 0x168
callq 0x4230
leaq 0x47dd5(%rip), %rdi     # 0x4f9cd
callq 0x4510
leaq 0x4744c(%rip), %rdi     # 0x4f050
leaq 0x4744b(%rip), %rsi     # 0x4f056
leaq 0x47703(%rip), %rcx     # 0x4f315
movl $0x16a, %edx            # imm = 0x16A
callq 0x4230
leaq 0x47e39(%rip), %rdi     # 0x4fa5c
callq 0x4510
leaq 0x47421(%rip), %rdi     # 0x4f050
leaq 0x47420(%rip), %rsi     # 0x4f056
leaq 0x476d8(%rip), %rcx     # 0x4f315
movl $0x16f, %edx            # imm = 0x16F
callq 0x4230
jmp 0x7c49
movq %rax, %rbx
jmp 0x7c5b
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x8b88
leaq 0x10(%rsp), %rdi
callq 0x84d4
movq %rbx, %rdi
callq 0x4600