// File: /workspace/github_cpp_makefile_star2_O3/sisong[P]ApkDiffPatch/HDiffPatch/libHDiffPatch/HPatch/patch.c
// Function: patch_cache
static hpatch_BOOL _patch_cache(hpatch_TCovers** out_covers,
                                const hpatch_TStreamInput** poldData,hpatch_StreamPos_t newDataSize,
                                const hpatch_TStreamInput*  diffData,hpatch_BOOL isCompressedDiff,
                                hpatch_TDecompress* decompressPlugin,size_t kCacheCount,
                                TByte** ptemp_cache,TByte** ptemp_cache_end,hpatch_BOOL* out_isReadError){
    const hpatch_TStreamInput* oldData=*poldData;
    const hpatch_size_t kMinCacheSize=hpatch_kStreamCacheSize*kCacheCount;
#if (_IS_NEED_CACHE_OLD_BY_COVERS)
    const hpatch_size_t kBestACacheSize=hpatch_kFileIOBufBetterSize;   //内存足够时比较好的hpatch_kStreamCacheSize值;
    const hpatch_size_t _minActiveSize=(1<<20)*8;
    const hpatch_StreamPos_t _betterActiveSize=kBestACacheSize*kCacheCount*2+oldData->streamSize/8;
    const hpatch_size_t kActiveCacheOldMemorySize = //尝试激活CacheOld功能的内存下限;
                (_betterActiveSize>_minActiveSize)?_minActiveSize:(hpatch_size_t)_betterActiveSize;
#endif //_IS_NEED_CACHE_OLD_BY_COVERS
    TByte* temp_cache=*ptemp_cache;
    TByte* temp_cache_end=*ptemp_cache_end;
    *out_isReadError=hpatch_FALSE;
    if ((hpatch_size_t)(temp_cache_end-temp_cache)>=oldData->streamSize+kMinCacheSize
        +sizeof(hpatch_TStreamInput)+sizeof(hpatch_StreamPos_t)){//load all oldData
        hpatch_TStreamInput* replace_oldData=0;
        _cache_alloc(replace_oldData,hpatch_TStreamInput,sizeof(hpatch_TStreamInput),
                     temp_cache,temp_cache_end);
        if (!_cache_load_all(oldData,temp_cache_end-oldData->streamSize,
                             temp_cache_end)){ *out_isReadError=hpatch_TRUE; return _hpatch_FALSE; }
        
        mem_as_hStreamInput(replace_oldData,temp_cache_end-oldData->streamSize,temp_cache_end);
        temp_cache_end-=oldData->streamSize;
        // [          patch cache            |       oldData cache     ]
        // [ (cacheSize-oldData->streamSize) |  (oldData->streamSize)  ]
        *out_covers=0;
        *poldData=replace_oldData;
        *ptemp_cache=temp_cache;
        *ptemp_cache_end=temp_cache_end;
        return hpatch_TRUE;
    }
#if (_IS_NEED_CACHE_OLD_BY_COVERS)
    else if ((hpatch_size_t)(temp_cache_end-temp_cache)>=kActiveCacheOldMemorySize) {
        hpatch_BOOL         isUsedCover32;
        TByte*              temp_cache_end_back=temp_cache_end;
        _TArrayCovers*      arrayCovers=0;
        assert((hpatch_size_t)(temp_cache_end-temp_cache)>kBestACacheSize*kCacheCount);
        assert(kBestACacheSize>sizeof(_TCompressedCovers)+sizeof(_TPackedCovers));
        if (isCompressedDiff){
            hpatch_compressedDiffInfo diffInfo;
            _TCompressedCovers* compressedCovers=0;
            if (!_compressedCovers_open(&compressedCovers,&diffInfo,diffData,decompressPlugin,
                                        temp_cache_end-kBestACacheSize-sizeof(_TCompressedCovers),temp_cache_end))
                { *out_isReadError=hpatch_TRUE; return _hpatch_FALSE; }
            if ((oldData->streamSize!=diffInfo.oldDataSize)||(newDataSize!=diffInfo.newDataSize))
                { *out_isReadError=hpatch_TRUE; return _hpatch_FALSE; }
            temp_cache_end-=kBestACacheSize+sizeof(_TCompressedCovers);
            // [                       ...                                 |   compressedCovers cache   ]
            // [           (cacheSize-kBestACacheSize)                     |      (kBestACacheSize)     ]
            *out_covers=&compressedCovers->base.ICovers;
            isUsedCover32=(diffInfo.oldDataSize|diffInfo.newDataSize)<((hpatch_StreamPos_t)1<<32);
        }else{
            _TPackedCovers* packedCovers=0;
            _THDiffHead     diffHead;
            hpatch_StreamPos_t oldDataSize=oldData->streamSize;
            if (!_packedCovers_open(&packedCovers,&diffHead,diffData,
                                    temp_cache_end-kBestACacheSize*3-sizeof(_TPackedCovers),temp_cache_end))
                { *out_isReadError=hpatch_TRUE; return _hpatch_FALSE; }
            temp_cache_end-=kBestACacheSize*3+sizeof(_TPackedCovers);
            // [                       ...                                 |     packedCovers cache     ]
            // [          (cacheSize-kBestACacheSize*3)                    |    (kBestACacheSize*3)     ]
            *out_covers=&packedCovers->base.ICovers;
            isUsedCover32=(oldDataSize|newDataSize)<((hpatch_StreamPos_t)1<<32);
        }
        
        if (!_arrayCovers_load(&arrayCovers,*out_covers,isUsedCover32,
                               out_isReadError,&temp_cache,temp_cache_end-kBestACacheSize)){
            if (*out_isReadError) return _hpatch_FALSE;
            // [                    patch cache                            |       *edCovers cache      ]
            // [           (cacheSize-kBestACacheSize*?)                   |     (kBestACacheSize*?)    ]
            *ptemp_cache=temp_cache;
            *ptemp_cache_end=temp_cache_end;
            return hpatch_FALSE;
        }else{
            // [         arrayCovers cache         |                         ...                        ]
            // [((new temp_cache)-(old temp_cache))|          (cacheSize-(arrayCovers cache size))      ]
            TByte* old_cache_end;
            hpatch_TStreamInput* replace_oldData=0;
            assert(!(*out_isReadError));
            if (!((*out_covers)->close(*out_covers))) return _hpatch_FALSE;
            *out_covers=&arrayCovers->ICovers;
            temp_cache_end=temp_cache_end_back; //free compressedCovers or packedCovers memory
            old_cache_end=temp_cache_end-kBestACacheSize*kCacheCount;
            // [       arrayCovers cache           |        ...        |      patch reserve cache       ]
            // [                                   |        ...        | (kBestACacheSize*kCacheCount) ]
            if (((hpatch_size_t)(temp_cache_end-temp_cache)<=kBestACacheSize*kCacheCount)
                ||(!_cache_old(&replace_oldData,oldData,arrayCovers,out_isReadError,
                               temp_cache,&old_cache_end,temp_cache_end))){
                if (*out_isReadError) return _hpatch_FALSE;
            // [         arrayCovers cache         |                   patch cache                      ]
                *ptemp_cache=temp_cache;
                *ptemp_cache_end=temp_cache_end;
                return hpatch_FALSE;
            }else{
            // [         arrayCovers cache         | oldData cache |             patch cache            ]
            // [                                   |               |(temp_cache_end-(new old_cache_end))]
                assert(!(*out_isReadError));
                assert((hpatch_size_t)(temp_cache_end-old_cache_end)>=kBestACacheSize*kCacheCount);
                temp_cache=old_cache_end;
                
                *poldData=replace_oldData;
                *ptemp_cache=temp_cache;
                *ptemp_cache_end=temp_cache_end;
                return hpatch_TRUE;
            }
        }
    }
#endif//_IS_NEED_CACHE_OLD_BY_COVERS
    return hpatch_FALSE;//not cache oldData
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1b8, %rsp            # imm = 0x1B8
movq %rdx, %rbp
movq %rdi, 0x8(%rsp)
movq 0x208(%rsp), %rax
movq 0x200(%rsp), %rbx
movq 0x1f8(%rsp), %r13
movq 0x1f0(%rsp), %r11
movq (%rsi), %rdi
movq %r11, %rdx
shlq $0xc, %rdx
movq %rdi, 0x30(%rsp)
movq 0x8(%rdi), %r14
movq (%r13), %r15
movq (%rbx), %r10
movl $0x0, (%rax)
movq %r10, %rax
subq %r15, %rax
addq %r14, %rdx
addq $0x28, %rdx
cmpq %rdx, %rax
jae 0x44a61
movq %r11, %rdx
shlq $0x11, %rdx
movq %r14, %rdi
shrq $0x3, %rdi
addq %rdx, %rdi
movl $0x800000, %edx         # imm = 0x800000
cmpq %rdx, %rdi
cmovaeq %rdx, %rdi
cmpq %rdi, %rax
jb 0x45174
shlq $0x10, %r11
cmpq %r11, %rax
jbe 0x4526d
movq %r11, 0x60(%rsp)
movq %rsi, 0x98(%rsp)
testl %r8d, %r8d
movq %r10, 0x28(%rsp)
leaq 0x68(%rsp), %rdi
je 0x44ad3
movq $0x0, (%rdi)
leaq -0x100b8(%r10), %rbx
leaq 0xa0(%rsp), %rsi
movq %rcx, %rdx
movq %r9, %rcx
movq %rbx, %r8
movq %r10, %r9
callq 0x45e53
testl %eax, %eax
je 0x45166
movq 0x30(%rsp), %rax
movq 0x8(%rax), %r14
cmpq 0xa8(%rsp), %r14
jne 0x45166
cmpq %rbp, 0xa0(%rsp)
je 0x44aff
jmp 0x45166
cmpq $0x28, %rax
jb 0x45174
movq %rsi, %rbp
movq %r10, %rdx
subq %r14, %rdx
movq 0x30(%rsp), %r12
movq %r12, %rdi
xorl %esi, %esi
movq %r10, %rcx
movq %r10, %r14
callq *0x10(%r12)
testl %eax, %eax
je 0x45166
addq $0x7, %r15
andq $-0x8, %r15
leaq 0x20(%r15), %rax
movq 0x8(%r12), %rcx
subq %rcx, %r14
movq %r14, (%r15)
movq %rcx, 0x8(%r15)
leaq -0x16f1(%rip), %rcx     # 0x433c2
movq %rcx, 0x10(%r15)
movq 0x8(%rsp), %rcx
movq $0x0, (%rcx)
movq %r15, (%rbp)
movq %rax, (%r13)
movq %r14, (%rbx)
jmp 0x45174
movq $0x0, (%rdi)
leaq -0x300e8(%r10), %rbx
leaq 0xa0(%rsp), %rsi
movq %rcx, %rdx
movq %rbx, %rcx
movq %r10, %r8
callq 0x45bf3
testl %eax, %eax
je 0x45166
movq 0x68(%rsp), %r13
movq 0x8(%rsp), %rax
movq %r13, (%rax)
orq %rbp, %r14
shrq $0x20, %r14
sete %r12b
leaq -0x10000(%rbx), %rbp
movq %r13, %rdi
callq *(%r13)
movq %rax, %rdi
movb %r12b, 0x20(%rsp)
xorb $0x5, %r12b
movq %rax, %rsi
movl %r12d, %ecx
shlq %cl, %rsi
movq 0x208(%rsp), %rax
movl $0x0, (%rax)
movq %rbp, %rax
subq %r15, %rax
cmpq $0x48, %rax
jb 0x44b6f
leaq 0x7(%r15), %rdx
andq $-0x8, %rdx
leaq 0x40(%rdx), %rcx
subq %rcx, %rbp
movq %rsi, %rax
orq $0x8, %rax
cmpq %rax, %rbp
jae 0x44b8a
movq 0x1f8(%rsp), %rax
movq %r15, (%rax)
movq 0x200(%rsp), %rax
movq %rbx, (%rax)
jmp 0x45174
movq %rsi, 0x18(%rsp)
movq %rdx, 0x10(%rsp)
movq %rcx, %rbp
movq %rdi, %r12
testq %r14, %r14
jne 0x44be9
testq %rdi, %rdi
je 0x44c0f
leaq 0xa0(%rsp), %rbx
movq %r12, %r14
movq %rbp, %r15
movq %r13, %rdi
movq %rbx, %rsi
callq *0x8(%r13)
testl %eax, %eax
je 0x45166
pshufd $0xe8, 0xa0(%rsp), %xmm0 # xmm0 = mem[0,2,2,3]
movq %xmm0, (%r15)
movl 0xb0(%rsp), %eax
movl %eax, 0x8(%r15)
addq $0x10, %r15
decq %r14
jne 0x44bb2
jmp 0x44c0f
testq %rdi, %rdi
je 0x44c0f
movq %r12, %r14
movq %rbp, %rbx
movq %r13, %rdi
movq %rbx, %rsi
callq *0x8(%r13)
testl %eax, %eax
je 0x45166
addq $0x20, %rbx
decq %r14
jne 0x44bf4
movq %r13, %rdi
callq *0x10(%r13)
testl %eax, %eax
je 0x45166
xorl %eax, %eax
movb 0x20(%rsp), %cl
movb %cl, %al
movq 0x10(%rsp), %rcx
movq %rbp, 0x20(%rcx)
movl %eax, 0x38(%rcx)
movq %r12, 0x28(%rcx)
movq $0x0, 0x30(%rcx)
leaq 0x2045(%rip), %rax      # 0x46c8a
movq %rax, 0x18(%rcx)
leaq 0x2040(%rip), %rax      # 0x46c90
movq %rax, 0x10(%rcx)
leaq 0x2043(%rip), %rax      # 0x46c9e
movq %rax, (%rcx)
leaq 0x2042(%rip), %rax      # 0x46ca7
movq %rax, 0x8(%rcx)
movq 0x208(%rsp), %rax
cmpl $0x0, (%rax)
jne 0x4528c
movq 0x8(%rsp), %rax
movq (%rax), %rdi
callq *0x18(%rdi)
testl %eax, %eax
movq 0x200(%rsp), %r14
movq 0x1f8(%rsp), %r15
movq 0x28(%rsp), %rsi
movq 0x208(%rsp), %r11
movq 0x60(%rsp), %rcx
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rax
je 0x45174
movq %rbp, %r8
addq %rax, %r8
movq 0x8(%rsp), %rax
movq %rdi, (%rax)
movq %rsi, %rax
subq %r8, %rax
cmpq %rcx, %rax
jbe 0x44f0c
movq %rsi, %rbx
subq 0x60(%rsp), %rbx
movl $0x0, (%r11)
movq %rbx, %rax
subq %r8, %rax
cmpq $0x28, %rax
jb 0x44f16
leaq 0x20(%r8), %r9
movq %rbx, %rax
subq %r9, %rax
cmpq $0x80, %rax
jb 0x44f0c
leaq 0x98(%r8), %rax
movq 0x28(%rdi), %r13
movl 0x38(%rdi), %ebp
movq %rax, 0x20(%rsp)
subq %rax, %rbx
testl %ebp, %ebp
sete %cl
orb $0x4, %cl
movq %r13, %rdx
shlq %cl, %rdx
leaq 0x8(%rdx), %rax
cmpq %rax, %rbx
jb 0x44f0c
movq %r9, 0x88(%rsp)
movq %r8, 0x50(%rsp)
movq 0x20(%rdi), %rsi
movq 0x20(%rsp), %r12
movq %r12, %rdi
callq 0x4290
testl %ebp, %ebp
je 0x44d6c
leaq 0x207a(%rip), %rcx      # 0x46ddf
movl $0x10, %edx
jmp 0x44d78
leaq 0x2080(%rip), %rcx      # 0x46df3
movl $0x20, %edx
movq %r12, %rdi
movq %r13, %rsi
callq 0x4630
testq %r13, %r13
movq 0x28(%rsp), %rsi
movq 0x208(%rsp), %r11
movq 0x50(%rsp), %r8
movq 0x10(%rsp), %rdx
movq 0x18(%rsp), %r9
je 0x44f0c
addq %rdx, %r9
movl $0x74, %eax
xorl %ecx, %ecx
testl %ebp, %ebp
je 0x44dbd
movl 0x6c(%r9,%rax), %edi
jmp 0x44dc1
movq (%r9,%rax,2), %rdi
addq %rdi, %rcx
cmpq %rbx, %rcx
ja 0x44dd4
addq $0x10, %rax
decq %r13
jne 0x44db2
jmp 0x44dd7
decq %rdi
movq %rdi, 0x8(%rsp)
testq %rdi, %rdi
je 0x44f0c
movq 0x28(%rdx), %r9
testq %r9, %r9
je 0x44f0c
movq %r9, %rcx
shrq $0x3, %rcx
movl 0x38(%rdx), %esi
movq 0x20(%rdx), %rdi
movq $-0x1, %rax
movl $0xc, %edx
xorl %ebx, %ebx
movq %r9, 0x18(%rsp)
movq %r9, %r8
movl %esi, %r10d
xorl %r9d, %r9d
xorl %r13d, %r13d
testl %r10d, %r10d
je 0x44e3d
movl -0x4(%rdi,%rdx), %r11d
cmpq %r11, 0x8(%rsp)
jb 0x44e7a
movl %ebx, (%rdi,%rdx)
movq 0x10(%rsp), %rsi
movl 0x38(%rsi), %esi
jmp 0x44e50
movq -0x8(%rdi,%rdx,2), %r11
xorl %r10d, %r10d
cmpq 0x8(%rsp), %r11
ja 0x44e7a
movq %rbx, (%rdi,%rdx,2)
testl %esi, %esi
je 0x44e5b
movl -0xc(%rdi,%rdx), %r10d
jmp 0x44e60
movq -0x18(%rdi,%rdx,2), %r10
addq %r11, %rbx
incq %r9
cmpq %rax, %r10
cmovbq %r10, %rax
addq %r11, %r10
cmpq %r13, %r10
cmovaq %r10, %r13
movl %esi, %r10d
addq $0x10, %rdx
decq %r8
movq 0x208(%rsp), %r11
jne 0x44e1f
movq %r13, 0x48(%rsp)
cmpq %rcx, %r9
movq 0x28(%rsp), %rsi
movq 0x50(%rsp), %r8
jbe 0x44f0c
testq %rbx, %rbx
je 0x44f0c
movq 0x20(%rsp), %rcx
movq %rbx, 0x78(%rsp)
addq %rbx, %rcx
movq %rsi, %rdx
subq %rcx, %rdx
movq %rcx, 0x58(%rsp)
movq %rcx, 0x38(%rsp)
movq %rsi, %rbx
movq %rdx, 0x80(%rsp)
cmpq $0x2000, %rdx           # imm = 0x2000
jb 0x44f2d
movq 0x58(%rsp), %rcx
leaq 0xfff(%rcx), %rdx
andq $-0x1000, %rdx          # imm = 0xF000
movq 0x28(%rsp), %rcx
movq %rdx, 0x38(%rsp)
subq %rdx, %rcx
cmpq $0x200000, %rcx         # imm = 0x200000
jb 0x44f21
movq 0x38(%rsp), %rbx
addq $0x200000, %rbx         # imm = 0x200000
jmp 0x44f2d
cmpl $0x0, (%r11)
jne 0x45174
movq %r8, (%r15)
movq %rsi, (%r14)
jmp 0x45174
movq 0x28(%rsp), %rbx
andq $-0x1000, %rbx          # imm = 0xF000
movq %rax, %rcx
andq $-0x1000, %rcx          # imm = 0xF000
xorl %r14d, %r14d
cmpq $0x400000, %rax         # imm = 0x400000
cmovaeq %rcx, %r14
movq 0x10(%rsp), %rax
cmpl $0x0, 0x38(%rax)
je 0x44f5d
leaq 0x1eb3(%rip), %rcx      # 0x46e09
movl $0x10, %edx
jmp 0x44f69
leaq 0x1eb7(%rip), %rcx      # 0x46e1b
movl $0x20, %edx
movq 0x18(%rsp), %rsi
callq 0x4630
cmpq 0x48(%rsp), %r14
jae 0x4511c
movq %rbx, %r13
subq 0x38(%rsp), %r13
xorl %ebp, %ebp
movq 0x30(%rsp), %rbx
movq 0x48(%rsp), %r12
movq %r14, %r15
movq %r13, 0x70(%rsp)
movq %r12, %r14
subq %r15, %r14
cmpq %r14, %r13
cmovbq %r13, %r14
movq 0x38(%rsp), %rdx
leaq (%rdx,%r14), %rcx
movq %rbx, %rdi
movq %r15, %rsi
callq *0x10(%rbx)
testl %eax, %eax
sete %al
je 0x45120
addq %r15, %r14
movq 0x18(%rsp), %r8
cmpq %r8, %rbp
movq 0x10(%rsp), %rsi
movq 0x8(%rsp), %rdi
jae 0x450d9
movq %r15, %r9
movl %eax, 0x44(%rsp)
movq %rbp, %r15
shlq $0x4, %r15
orq $0xc, %r15
movq %rbp, %r13
movq %r14, 0x90(%rsp)
movl 0x38(%rsi), %edx
movq 0x20(%rsi), %rcx
testl %edx, %edx
je 0x45018
movl -0x4(%rcx,%r15), %ebx
cmpq %rbx, %rdi
jb 0x45045
movl -0xc(%rcx,%r15), %eax
jmp 0x45027
movq -0x8(%rcx,%r15,2), %rbx
cmpq %rdi, %rbx
ja 0x45045
movq -0x18(%rcx,%r15,2), %rax
addq %rax, %rbx
cmpq %r9, %rbx
jbe 0x45045
movq %rax, %rsi
subq %r14, %rsi
jae 0x450de
testl %edx, %edx
je 0x4504d
movl (%rcx,%r15), %edi
jmp 0x45051
cmpq %rbp, %r13
sete %al
jmp 0x450be
movq (%rcx,%r15,2), %rdi
movq 0x20(%rsp), %rdx
cmpq %r9, %rax
movq %r9, %rsi
cmovaq %rax, %rsi
movq %r9, %rcx
subq %rax, %rcx
movl $0x0, %eax
cmovaeq %rcx, %rax
cmpq %r14, %rbx
setbe %r12b
cmovaeq %r14, %rbx
subq %rsi, %rbx
addq %rdx, %rdi
addq %rax, %rdi
subq %r9, %rsi
addq 0x38(%rsp), %rsi
movq %rbx, %rdx
movq %r9, %r14
callq 0x4290
movq %r14, %r9
movq 0x90(%rsp), %r14
subq %rbx, 0x78(%rsp)
cmpq %rbp, %r13
sete %al
andb %r12b, %al
movq 0x10(%rsp), %rsi
movq 0x8(%rsp), %rdi
movq 0x18(%rsp), %r8
movzbl %al, %eax
addq %rax, %rbp
incq %r13
addq $0x10, %r15
cmpq %r13, %r8
jne 0x44ffc
movq %r14, %r15
jmp 0x450f9
movq %r14, %r15
jmp 0x4510c
andq $-0x1000, %rax          # imm = 0xF000
cmpq $0x400000, %rsi         # imm = 0x400000
cmovbq %r14, %rax
cmpq %rbp, %r13
cmovneq %r14, %rax
movq %rax, %r15
movq 0x30(%rsp), %rbx
movq 0x48(%rsp), %r12
movq 0x70(%rsp), %r13
movl 0x44(%rsp), %eax
cmpq %r8, %rbp
jae 0x45122
cmpq %r12, %r15
jb 0x44f9a
jmp 0x45122
xorl %eax, %eax
jmp 0x45122
movb $0x1, %al
movl %eax, %ebx
movq 0x10(%rsp), %rax
cmpl $0x0, 0x38(%rax)
movq 0x20(%rax), %rdi
movq 0x28(%rax), %rsi
je 0x45145
leaq 0x1cf1(%rip), %rcx      # 0x46e2f
movl $0x10, %edx
jmp 0x45151
leaq 0x1cf7(%rip), %rcx      # 0x46e43
movl $0x20, %edx
callq 0x4630
cmpq $0x0, 0x78(%rsp)
jne 0x452ab
testb %bl, %bl
je 0x45186
movq 0x208(%rsp), %rax
movl $0x1, (%rax)
addq $0x1b8, %rsp            # imm = 0x1B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x10(%rsp), %rax
movdqu (%rax), %xmm0
movups 0x10(%rax), %xmm1
movups 0x20(%rax), %xmm2
movups 0x30(%rax), %xmm3
movq 0x88(%rsp), %rax
movups %xmm3, 0x30(%rax)
movups %xmm2, 0x20(%rax)
movups %xmm1, 0x10(%rax)
movdqu %xmm0, (%rax)
movq 0x50(%rsp), %rcx
movq $0x0, 0x50(%rcx)
movl $0x0, 0x60(%rcx)
movq 0x8(%rsp), %rdx
movq %rdx, 0x68(%rcx)
movq 0x20(%rsp), %rdx
movq %rdx, 0x80(%rcx)
movq 0x58(%rsp), %rdx
movq %rdx, 0x88(%rcx)
pxor %xmm0, %xmm0
movdqu %xmm0, 0x70(%rcx)
movq 0x30(%rsp), %r12
movq %r12, 0x90(%rcx)
movq %rax, (%rcx)
movq 0x8(%r12), %rax
movq %rax, 0x8(%rcx)
leaq 0x1ae6(%rip), %rax      # 0x46cf6
movq %rax, 0x10(%rcx)
movq 0x208(%rsp), %rax
cmpl $0x0, (%rax)
jne 0x452ca
movq 0x80(%rsp), %rax
cmpq 0x60(%rsp), %rax
jb 0x452e9
movq 0x98(%rsp), %rax
movq 0x50(%rsp), %rcx
movq %rcx, (%rax)
movq 0x1f8(%rsp), %rax
movq 0x58(%rsp), %rcx
movq %rcx, (%rax)
movq 0x200(%rsp), %rax
movq 0x28(%rsp), %rcx
movq %rcx, (%rax)
jmp 0x45174
leaq 0x1c9c1(%rip), %rdi     # 0x61c35
leaq 0x1c113(%rip), %rsi     # 0x6138e
leaq 0x1c9fa(%rip), %rcx     # 0x61c7c
movl $0x72b, %edx            # imm = 0x72B
callq 0x4200
leaq 0x1cab2(%rip), %rdi     # 0x61d45
leaq 0x1c0f4(%rip), %rsi     # 0x6138e
leaq 0x1c9db(%rip), %rcx     # 0x61c7c
movl $0x755, %edx            # imm = 0x755
callq 0x4200
leaq 0x1cb9d(%rip), %rdi     # 0x61e4f
leaq 0x1c0d5(%rip), %rsi     # 0x6138e
leaq 0x1cae4(%rip), %rcx     # 0x61da4
movl $0x6a9, %edx            # imm = 0x6A9
callq 0x4200
leaq 0x1ca74(%rip), %rdi     # 0x61d45
leaq 0x1c0b6(%rip), %rsi     # 0x6138e
leaq 0x1c99d(%rip), %rcx     # 0x61c7c
movl $0x767, %edx            # imm = 0x767
callq 0x4200
leaq 0x1ca69(%rip), %rdi     # 0x61d59
leaq 0x1c097(%rip), %rsi     # 0x6138e
leaq 0x1c97e(%rip), %rcx     # 0x61c7c
movl $0x768, %edx            # imm = 0x768
callq 0x4200