// File: /workspace/github_cpp_makefile_star2_O2/sisong[P]ApkDiffPatch/HDiffPatch/libHDiffPatch/HPatch/patch.c
// Function: packedCovers_open
static hpatch_BOOL _packedCovers_open(_TPackedCovers** out_self,
                                      _THDiffHead* out_diffHead,
                                      const hpatch_TStreamInput* serializedDiff,
                                      TByte* temp_cache,TByte* temp_cache_end){
    hpatch_size_t   cacheSize;
    _TPackedCovers* self=0;
    _cache_alloc(self,_TPackedCovers,sizeof(_TPackedCovers),temp_cache,temp_cache_end);
    cacheSize=(temp_cache_end-temp_cache)/3;
    {
        hpatch_StreamPos_t       diffPos0;
        if (!read_diff_head(out_diffHead,serializedDiff)) return _hpatch_FALSE;
        diffPos0=out_diffHead->headEndPos;
        _TStreamCacheClip_init(&self->code_lengthsClip,serializedDiff,diffPos0,
                               diffPos0+out_diffHead->lengthSize,temp_cache,cacheSize);
        temp_cache+=cacheSize;
        diffPos0+=out_diffHead->lengthSize;
        _TStreamCacheClip_init(&self->code_inc_newPosClip,serializedDiff,diffPos0,
                               diffPos0+out_diffHead->inc_newPosSize,temp_cache,cacheSize);
        temp_cache+=cacheSize;
        diffPos0+=out_diffHead->inc_newPosSize;
        _TStreamCacheClip_init(&self->code_inc_oldPosClip,serializedDiff,diffPos0,
                               diffPos0+out_diffHead->inc_oldPosSize,temp_cache,cacheSize);
    }
    
     _covers_init(&self->base,out_diffHead->coverCount,&self->code_inc_oldPosClip,
                  &self->code_inc_newPosClip,&self->code_lengthsClip,hpatch_FALSE);
    *out_self=self;
    return hpatch_TRUE;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %r8, %rax
subq %rcx, %rax
xorl %ebp, %ebp
cmpq $0xf0, %rax
jb 0x3cc8f
movq %r8, %r14
movq %rcx, %rbx
movq %rdx, %r12
movq %rsi, %r15
movq %rdi, %r13
movq %rsi, %rdi
movq %rdx, %rsi
callq 0x3dbbe
testl %eax, %eax
je 0x3cc8f
addq $0x7, %rbx
andq $-0x8, %rbx
leaq 0xe8(%rbx), %r8
subq %r8, %r14
pushq $0x3
popq %rcx
movq %r14, %rax
cqto
idivq %rcx
movq %rax, %rbp
movq 0x28(%r15), %r14
leaq 0xb8(%rbx), %rdi
movq %rdi, 0x20(%rsp)
movq 0x8(%r15), %rcx
addq %r14, %rcx
movq %r12, %rsi
movq %r14, %rdx
movq %rax, %r9
callq 0x3b1fb
addq 0x8(%r15), %r14
movq %r13, 0x18(%rsp)
leaq (%rbx,%rbp), %r13
addq $0xe8, %r13
leaq 0x88(%rbx), %rdi
movq %rdi, 0x10(%rsp)
movq 0x10(%r15), %rcx
addq %r14, %rcx
movq %r12, %rsi
movq %r14, %rdx
movq %r13, %r8
movq %rbp, %r9
callq 0x3b1fb
addq 0x10(%r15), %r14
addq %rbp, %r13
leaq 0x58(%rbx), %rdi
movq %rdi, 0x8(%rsp)
movq 0x18(%r15), %rcx
addq %r14, %rcx
movq %r12, %rsi
movq %r14, %rdx
movq %r13, %r8
movq %rbp, %r9
callq 0x3b1fb
movq (%r15), %rax
leaq 0x1557(%rip), %rcx      # 0x3e18d
movq %rcx, (%rbx)
leaq 0x1552(%rip), %rcx      # 0x3e192
movq %rcx, 0x8(%rbx)
leaq 0x162b(%rip), %rcx      # 0x3e276
movq %rcx, 0x10(%rbx)
leaq 0xdab(%rip), %rcx       # 0x3da01
movq %rcx, 0x18(%rbx)
movq %rax, 0x20(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x28(%rbx)
movq 0x8(%rsp), %rax
movq %rax, 0x38(%rbx)
movq 0x10(%rsp), %rax
movq %rax, 0x40(%rbx)
movq 0x20(%rsp), %rax
movq %rax, 0x48(%rbx)
andl $0x0, 0x50(%rbx)
movq 0x18(%rsp), %rax
movq %rbx, (%rax)
pushq $0x1
popq %rbp
movl %ebp, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq