// File: /workspace/github_cpp_makefile_star2_O1/sisong[P]ApkDiffPatch/src/normalized/normalized.cpp
// Function: ZipNormalized(char const*, char const*, int, int, bool, unsigned long, bool, int*)
bool ZipNormalized(const char* srcApk,const char* dstApk,int ZipAlignSize,int compressLevel,
                   bool isNotCompressEmptyFile,size_t pageAlignSoFile,bool pageAlignCompatible,int* out_apkFilesRemoved){
    bool result=true;
    bool _isInClear=false;
    int  fileCount=0;
    bool isHaveApkV2Sign=false;
    bool isHaveApkV3Sign=false;
    int  jarSignFileCount=0;
    std::vector<int>   fileIndexs;
    std::vector<std::string>  removedFiles;
    std::vector<std::string> _compressedEmptyFiles; //only for WARNING
    UnZipper unzipper;
    Zipper   zipper;
    UnZipper_init(&unzipper);
    Zipper_init(&zipper);
    
    check(UnZipper_openFile(&unzipper,srcApk));
    fileCount=UnZipper_fileCount(&unzipper);
    check(Zipper_openFile(&zipper,dstApk,fileCount,ZipAlignSize,compressLevel,kDefaultZlibCompressMemLevel,
                          pageAlignSoFile,pageAlignCompatible,kPageAlign_inNormalize));
    isHaveApkV2Sign=UnZipper_isHaveApkV2Sign(&unzipper);
    isHaveApkV3Sign=UnZipper_isHaveApkV3Sign(&unzipper);
    {
        int apkFilesRemoved=0;
        std::vector<TFileValue> files;
        getAllFiles(&unzipper,files);
        apkFilesRemoved=removeNonEmptyDirs(&unzipper,files);
        fileCount=(int)files.size();
        std::sort(files.begin(),files.end(),TFileValue::TCmp(UnZipper_fileCount(&unzipper)));
        for (int i=0; i<fileCount; ++i) {
            int fileIndex=files[i].fileIndex;
            if (UnZipper_file_isApkV1Sign(&unzipper,fileIndex)){
                ++jarSignFileCount;
                if (isHaveApkV2Sign){
                    ++apkFilesRemoved;
                    removedFiles.push_back(files[i].fileName);
                    continue; //remove JarSign(ApkV1Sign) when found ApkV2Sign
                }
            }
            if (UnZipper_file_isStampCertFile(&unzipper,fileIndex)){
                ++apkFilesRemoved;
                removedFiles.push_back(files[i].fileName);
                continue; //remove stamp cert file
            }

            fileIndexs.push_back(fileIndex);
        }
        if (out_apkFilesRemoved)
            *out_apkFilesRemoved=apkFilesRemoved;
    }
    
    printf("\n");
    for (int i=0; i<(int)fileIndexs.size(); ++i) {
        int fileIndex=fileIndexs[i];
        std::string fileName=zipFile_name(&unzipper,fileIndex);
        if (g_isPrintNormalizingFileName)
            hpatch_printPath_utf8(("\""+fileName+"\"\n").c_str());
        if (compressLevel==0){
            check(Zipper_file_append_set_new_isCompress(&zipper,false));
        } else if (isCompressedEmptyFile(&unzipper,fileIndex)){
            if (isNotCompressEmptyFile){
                check(Zipper_file_append_set_new_isCompress(&zipper,false));
                hpatch_printPath_utf8(("NOTE: \""+fileName+"\"").c_str());
                printf(" is a compressed empty file, change to uncompressed!\n");
            }else{
                _compressedEmptyFiles.push_back(fileName);
             }
        }
        bool isAlwaysReCompress=true;
        check(Zipper_file_append_copy(&zipper,&unzipper,fileIndex,isAlwaysReCompress));
    }
    printf("\n");

    //no run: check(Zipper_copyExtra_before_fileHeader(&zipper,&unzipper));
    for (int i=0; i<(int)fileIndexs.size(); ++i) {
        int fileIndex=fileIndexs[i];
        if (compressLevel==0){
            check(Zipper_file_append_set_new_isCompress(&zipper,false));
        } else if (isNotCompressEmptyFile&&isCompressedEmptyFile(&unzipper,fileIndex)){
            check(Zipper_fileHeader_append_set_new_isCompress(&zipper,false));
        }
        check(Zipper_fileHeader_append(&zipper,&unzipper,fileIndex));
    }
    check(Zipper_endCentralDirectory_append(&zipper,&unzipper));
    
    for (int i=0;i<(int)_compressedEmptyFiles.size();++i){
        hpatch_printPath_utf8(("WARNING: \""+_compressedEmptyFiles[i]).c_str());
        printf(" is a compressed empty file, can't patch by old(version<v1.3.5) ZipPatch!)\n");
    }
    if (jarSignFileCount>0){
        if (isHaveApkV2Sign){
            printf("WARNING: src removed JarSign(ApkV1Sign) (%d file, need re-sign)\n",jarSignFileCount);
        }else{
            printf("WARNING: src JarSign(ApkV1Sign) (%d file) has been Normalized, Don't re-sign!\n",jarSignFileCount);
        }
    }
    for (size_t i=0;i<removedFiles.size();++i)
        hpatch_printPath_utf8((std::string("WARNING:   removed file: \"")+removedFiles[i]+"\"\n").c_str());
    if (isHaveApkV2Sign){
        printf(isHaveApkV3Sign?
                "WARNING: src removed ApkV2Sign & ApkV3Sign  data (%d Byte, need re-sign)\n"
               :"WARNING: src removed ApkV2Sign data (%d Byte, need re-sign)\n",
                (int)UnZipper_ApkV2SignSize(&unzipper));
    }
    printf("src fileCount: %d  (filseSize: %" PRIu64 ")\n"
            "out fileCount: %d  (filseSize: %" PRIu64 ")\n\n",
            fileCount,unzipper._fileStream.base.streamSize,
            (int)fileIndexs.size(),zipper._fileStream.out_length);

clear:
    _isInClear=true;
    check(UnZipper_close(&unzipper));
    check(Zipper_close(&zipper));
    return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x318, %rsp            # imm = 0x318
movq %r9, %rbx
movl %r8d, 0xa0(%rsp)
movl %ecx, %r12d
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %r15
xorps %xmm0, %xmm0
movaps %xmm0, 0x60(%rsp)
xorl %eax, %eax
movq %rax, 0x70(%rsp)
movq %rax, 0xd0(%rsp)
movaps %xmm0, 0xc0(%rsp)
movq %rax, 0xf0(%rsp)
movaps %xmm0, 0xe0(%rsp)
leaq 0x108(%rsp), %rdi
callq 0xc794
leaq 0x1b8(%rsp), %rdi
callq 0xd6e6
leaq 0x108(%rsp), %rdi
movq %r15, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0xd03f
testb %al, %al
je 0x48a3
leaq 0x108(%rsp), %rdi
callq 0xc259
subq $0x8, %rsp
movzbl 0x358(%rsp), %r10d
leaq 0x1c0(%rsp), %rdi
movq %r14, %rsi
movl %eax, %edx
movl %ebp, %ecx
movl %r12d, %r8d
movl $0x8, %r9d
pushq $0x1
pushq %r10
pushq %rbx
callq 0xdbd0
addq $0x20, %rsp
testb %al, %al
je 0x48ac
leaq 0x108(%rsp), %rdi
movq 0x50(%rdi), %rax
movq %rax, 0xb8(%rsp)
movq 0x98(%rdi), %rax
movq %rax, 0xb0(%rsp)
callq 0xc77d
movb %al, 0xf(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x30(%rsp)
movq $0x0, 0x40(%rsp)
leaq 0x108(%rsp), %rdi
callq 0xc259
movl %eax, %ebx
movslq %eax, %rsi
leaq 0x30(%rsp), %rdi
callq 0x54a6
movl %r12d, 0xa4(%rsp)
testl %ebx, %ebx
jle 0x46eb
movl %ebx, %eax
movq %rax, 0x58(%rsp)
xorl %r13d, %r13d
leaq 0x108(%rsp), %rbx
leaq 0x10(%rsp), %r14
xorl %r15d, %r15d
movq 0x30(%rsp), %r12
movl %r15d, 0x20(%r12,%r13)
movq %rbx, %rdi
movl %r15d, %esi
callq 0xc262
movl %eax, %ebp
movq %rbx, %rdi
movl %r15d, %esi
callq 0xc276
movslq %ebp, %rdx
addq %rax, %rdx
leaq 0x20(%rsp), %rcx
movq %rcx, 0x10(%rsp)
movq %r14, %rdi
movq %rax, %rsi
callq 0x448a
addq %r13, %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0x3350
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x46dd
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x32b0
incq %r15
addq $0x28, %r13
cmpq %r15, 0x58(%rsp)
jne 0x4676
leaq 0x108(%rsp), %rdi
callq 0xc259
movl %eax, %r15d
movslq %eax, %rsi
leaq 0x10(%rsp), %rdi
leaq 0x80(%rsp), %rdx
callq 0x5742
movl %r15d, %ebp
testl %r15d, %r15d
jle 0x4739
xorl %eax, %eax
xorl %ecx, %ecx
movq 0x30(%rsp), %rdx
addq %rax, %rdx
movq 0x10(%rsp), %rsi
movq %rdx, (%rsi,%rcx,8)
incq %rcx
addq $0x28, %rax
cmpq %rcx, %rbp
jne 0x471c
movq 0x10(%rsp), %rbx
movq 0x18(%rsp), %r14
cmpq %r14, %rbx
je 0x4775
movq %r14, %rax
subq %rbx, %rax
sarq $0x3, %rax
bsrq %rax, %rdx
xorl $0x3f, %edx
addl %edx, %edx
xorq $0x7e, %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x57e7
movq %rbx, %rdi
movq %r14, %rsi
callq 0x589a
movq %r15, 0x100(%rsp)
cmpl $0x2, %r15d
jl 0x4834
movq 0x100(%rsp), %rax
decl %eax
movq %rax, 0x58(%rsp)
xorl %ebx, %ebx
movq 0x10(%rsp), %rax
movq (%rax,%rbx,8), %rax
movl 0x20(%rax), %esi
leaq 0x108(%rsp), %rdi
callq 0xd1aa
testl %eax, %eax
jne 0x4826
movq 0x10(%rsp), %rax
movq (%rax,%rbx,8), %r15
movq 0x8(%rax,%rbx,8), %rax
movq 0x8(%r15), %r14
movq 0x8(%rax), %r12
cmpq %r12, %r14
ja 0x4826
movq (%r15), %r13
movq (%rax), %rsi
movq %r13, %rdi
movq %rsi, 0xa8(%rsp)
movq %r14, %rdx
callq 0x32c0
testl %eax, %eax
jne 0x4826
testq %r14, %r14
je 0x4802
movzbl -0x1(%r13,%r14), %eax
cmpl $0x2f, %eax
je 0x481e
cmpl $0x5c, %eax
je 0x481e
cmpq %r12, %r14
jae 0x4826
movq 0xa8(%rsp), %rax
movzbl (%rax,%r14), %eax
cmpl $0x5c, %eax
je 0x481e
cmpl $0x2f, %eax
jne 0x4826
movl $0xffffffff, 0x20(%r15) # imm = 0xFFFFFFFF
incq %rbx
cmpq %rbx, 0x58(%rsp)
jne 0x4798
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x484b
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x32b0
movq 0x100(%rsp), %r12
testl %r12d, %r12d
jle 0x4945
xorl %ebx, %ebx
xorl %r14d, %r14d
xorl %r15d, %r15d
movq 0x30(%rsp), %rsi
movl 0x20(%rsi,%rbx), %eax
testl %eax, %eax
js 0x4892
movl %r15d, %ecx
cmpq %rcx, %r14
je 0x488f
movslq %r15d, %rcx
leaq (%rcx,%rcx,4), %rcx
leaq (%rsi,%rcx,8), %rdi
addq %rbx, %rsi
movl %eax, 0x20(%rdi)
callq 0x3220
incl %r15d
incq %r14
addq $0x28, %rbx
cmpq %r14, %rbp
jne 0x4864
jmp 0x4948
leaq 0x1c7ad(%rip), %rdi     # 0x21057
jmp 0x48b3
leaq 0x1c7cf(%rip), %rdi     # 0x21082
callq 0x3410
xorl %r12d, %r12d
leaq 0x108(%rsp), %rdi
callq 0xc7a0
testb %al, %al
jne 0x48db
leaq 0x1c9cf(%rip), %rdi     # 0x212a2
callq 0x3410
xorl %r12d, %r12d
leaq 0x1b8(%rsp), %rdi
callq 0xd6f2
testb %al, %al
jne 0x48fb
leaq 0x1c9d0(%rip), %rdi     # 0x212c3
callq 0x3410
xorl %r12d, %r12d
leaq 0xe0(%rsp), %rdi
callq 0x544a
leaq 0xc0(%rsp), %rdi
callq 0x544a
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0x492c
movq 0x70(%rsp), %rsi
subq %rdi, %rsi
callq 0x32b0
andb $0x1, %r12b
movl %r12d, %eax
addq $0x318, %rsp            # imm = 0x318
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %r15d, %r15d
movslq %r15d, %rsi
leaq 0x30(%rsp), %rdi
callq 0x54a6
movq 0x30(%rsp), %r14
movq 0x38(%rsp), %rbx
leaq 0x108(%rsp), %rdi
callq 0xc259
movl %eax, %ebp
movq %rbx, %rax
subq %r14, %rax
sarq $0x3, %rax
movabsq $-0x3333333333333333, %r13 # imm = 0xCCCCCCCCCCCCCCCD
imulq %rax, %r13
cmpq %rbx, %r14
je 0x49b2
bsrq %r13, %rdx
xorl $0x3f, %edx
addl %edx, %edx
xorq $0x7e, %rdx
movq %r14, %rdi
movq %rbx, %rsi
movl %ebp, %ecx
callq 0x5cbc
movq %r14, %rdi
movq %rbx, %rsi
movl %ebp, %edx
callq 0x5da5
subl %r15d, %r12d
testl %r13d, %r13d
movq %r13, 0xa8(%rsp)
jle 0x4a9b
movl %r13d, %ebp
andl $0x7fffffff, %ebp       # imm = 0x7FFFFFFF
xorl %r13d, %r13d
leaq 0x108(%rsp), %rbx
leaq 0xc0(%rsp), %r14
leaq 0x1c5fb(%rip), %r15     # 0x20fe4
movl $0x0, 0x58(%rsp)
movq 0x30(%rsp), %rax
movl 0x20(%rax,%r13), %esi
movl %esi, 0x10(%rsp)
movq %rbx, %rdi
callq 0xc345
testb %al, %al
je 0x4a33
incl 0x58(%rsp)
movq 0xb0(%rsp), %rax
cmpq 0xb8(%rsp), %rax
jae 0x4a33
movq 0x30(%rsp), %rsi
addq %r13, %rsi
movq %r14, %rdi
callq 0x5328
jmp 0x4a5b
movl 0x10(%rsp), %esi
movq %rbx, %rdi
movq %r15, %rdx
movl $0x11, %ecx
callq 0xc3f3
testb %al, %al
je 0x4a60
movq 0x30(%rsp), %rsi
addq %r13, %rsi
movq %r14, %rdi
callq 0x5328
incl %r12d
jmp 0x4a8c
movq 0x68(%rsp), %rsi
cmpq 0x70(%rsp), %rsi
je 0x4a7d
movl 0x10(%rsp), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x68(%rsp)
jmp 0x4a8c
leaq 0x60(%rsp), %rdi
leaq 0x10(%rsp), %rdx
callq 0x6d88
addq $0x28, %r13
decq %rbp
jne 0x49f1
jmp 0x4aa3
movl $0x0, 0x58(%rsp)
movq 0x358(%rsp), %rax
testq %rax, %rax
je 0x4ab3
movl %r12d, (%rax)
leaq 0x30(%rsp), %rdi
callq 0x5366
movl $0xa, %edi
callq 0x3370
movq 0x60(%rsp), %rax
movq 0x68(%rsp), %rcx
subq %rax, %rcx
shrq $0x2, %rcx
movl $0x6, %ebp
movb $0x1, %r12b
testl %ecx, %ecx
jle 0x4dc7
xorl %r15d, %r15d
leaq 0x108(%rsp), %rbx
movl (%rax,%r15,4), %r14d
movq %rbx, %rdi
movl %r14d, %esi
callq 0xc262
movl %eax, %ebp
movq %rbx, %rdi
movl %r14d, %esi
callq 0xc276
movslq %ebp, %rdx
addq %rax, %rdx
leaq 0x20(%rsp), %rcx
movq %rcx, 0x10(%rsp)
leaq 0x10(%rsp), %rdi
movq %rax, %rsi
callq 0x448a
cmpb $0x1, 0x2c78d(%rip)     # 0x312c0
leaq 0x40(%rsp), %rbp
jne 0x4bf1
leaq 0x80(%rsp), %r13
movq %r13, %rdi
leaq 0x1cab3(%rip), %rsi     # 0x21603
leaq 0x10(%rsp), %rdx
callq 0x53c1
movq %r13, %rdi
leaq 0x1b4b3(%rip), %rsi     # 0x20017
callq 0x3520
movq %rbp, 0x30(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x4b8c
movq %rdx, 0x30(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x40(%rsp)
jmp 0x4b93
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
movq 0x8(%rax), %rdx
movq %rdx, 0x38(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x30(%rsp), %rdi
callq 0x14bf8
movq 0x30(%rsp), %rdi
cmpq %rbp, %rdi
je 0x4bcc
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x32b0
movq 0x80(%rsp), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0x4bf1
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x32b0
cmpl $0x0, 0xa4(%rsp)
je 0x4c9f
movq %rbx, %rdi
movl %r14d, %esi
callq 0xd1aa
testl %eax, %eax
jne 0x4d47
movq %rbx, %rdi
movl %r14d, %esi
callq 0xc763
testb %al, %al
je 0x4d47
cmpb $0x0, 0xa0(%rsp)
je 0x4cc2
leaq 0x1b8(%rsp), %rdi
xorl %esi, %esi
callq 0xf750
leaq 0x1c5a4(%rip), %rdi     # 0x211ed
testb %al, %al
je 0x4d71
leaq 0x80(%rsp), %r13
movq %r13, %rdi
leaq 0x1c1a5(%rip), %rsi     # 0x20e08
leaq 0x10(%rsp), %rdx
callq 0x53c1
movq %r13, %rdi
leaq 0x1c98c(%rip), %rsi     # 0x21603
callq 0x3520
movq %rbp, 0x30(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x4cd6
movq %rdx, 0x30(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x40(%rsp)
jmp 0x4cdd
leaq 0x1b8(%rsp), %rdi
xorl %esi, %esi
callq 0xf750
leaq 0x1c538(%rip), %rdi     # 0x211ed
testb %al, %al
jne 0x4d47
jmp 0x4d71
leaq 0xe0(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x5328
jmp 0x4d47
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
movq 0x8(%rax), %rdx
movq %rdx, 0x38(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x30(%rsp), %rdi
callq 0x14bf8
movq 0x30(%rsp), %rdi
cmpq %rbp, %rdi
je 0x4d16
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x32b0
movq 0x80(%rsp), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0x4d3b
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x32b0
leaq 0x1c3e5(%rip), %rdi     # 0x21127
callq 0x3410
leaq 0x1b8(%rsp), %rdi
movq %rbx, %rsi
movl %r14d, %edx
movl $0x1, %ecx
callq 0xf385
leaq 0x1c3f6(%rip), %rdi     # 0x2115c
testb %al, %al
je 0x4d71
xorl %ebp, %ebp
movb $0x1, %r14b
jmp 0x4d81
callq 0x3410
movl $0x2, %ebp
xorl %r14d, %r14d
xorl %r12d, %r12d
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x4d9d
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x32b0
testb %r14b, %r14b
je 0x4dc7
incq %r15
movq 0x60(%rsp), %rax
movq 0x68(%rsp), %rcx
subq %rax, %rcx
shrq $0x2, %rcx
movslq %ecx, %rcx
cmpq %rcx, %r15
jl 0x4af3
movl $0x6, %ebp
cmpl $0x2, %ebp
je 0x48bb
cmpl $0x6, %ebp
jne 0x48fb
movl $0xa, %edi
callq 0x3370
movq 0x60(%rsp), %rax
movq 0x68(%rsp), %rcx
subq %rax, %rcx
shrq $0x2, %rcx
movl $0x9, %edx
testl %ecx, %ecx
jle 0x4ecd
xorl %r15d, %r15d
leaq 0x1b8(%rsp), %rbx
leaq 0x108(%rsp), %r14
leaq 0x1c40e(%rip), %r13     # 0x21229
movl (%rax,%r15,4), %ebp
cmpl $0x0, 0xa4(%rsp)
je 0x4e62
cmpb $0x0, 0xa0(%rsp)
je 0x4e77
movq %r14, %rdi
movl %ebp, %esi
callq 0xd1aa
testl %eax, %eax
jne 0x4e77
movq %r14, %rdi
movl %ebp, %esi
callq 0xc763
testb %al, %al
je 0x4e77
movq %rbx, %rdi
xorl %esi, %esi
callq 0xf78a
leaq 0x1c34b(%rip), %rdi     # 0x211ab
jmp 0x4e73
movq %rbx, %rdi
xorl %esi, %esi
callq 0xf750
leaq 0x1c37a(%rip), %rdi     # 0x211ed
testb %al, %al
je 0x4e91
movq %rbx, %rdi
movq %r14, %rsi
movl %ebp, %edx
callq 0xf48d
movq %r13, %rdi
testb %al, %al
je 0x4e91
xorl %eax, %eax
movb $0x1, %cl
jmp 0x4ea0
callq 0x3410
movl $0x2, %eax
xorl %ecx, %ecx
xorl %r12d, %r12d
testb %cl, %cl
je 0x4ecb
incq %r15
movq 0x60(%rsp), %rax
movq 0x68(%rsp), %rcx
subq %rax, %rcx
shrq $0x2, %rcx
movslq %ecx, %rcx
cmpq %rcx, %r15
jl 0x4e1b
movl $0x9, %edx
jmp 0x4ecd
movl %eax, %edx
cmpl $0x2, %edx
je 0x48bb
cmpl $0x9, %edx
jne 0x48fb
leaq 0x1b8(%rsp), %rdi
leaq 0x108(%rsp), %rsi
callq 0xf4de
testb %al, %al
je 0x51b6
movq 0xe0(%rsp), %rdx
movq 0xe8(%rsp), %rax
subq %rdx, %rax
shrq $0x5, %rax
leaq 0x20(%rsp), %rbp
testl %eax, %eax
jle 0x4f8d
xorl %r13d, %r13d
leaq 0x10(%rsp), %r14
leaq 0x1c3b5(%rip), %r15     # 0x212e0
xorl %ebx, %ebx
addq %r13, %rdx
movq %r14, %rdi
leaq 0x1bed6(%rip), %rsi     # 0x20e10
callq 0x53c1
movq 0x10(%rsp), %rdi
callq 0x14bf8
movq 0x10(%rsp), %rdi
cmpq %rbp, %rdi
je 0x4f60
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x32b0
movq %r15, %rdi
callq 0x3410
incq %rbx
movq 0xe0(%rsp), %rdx
movq 0xe8(%rsp), %rax
subq %rdx, %rax
shrq $0x5, %rax
cltq
addq $0x20, %r13
cmpq %rax, %rbx
jl 0x4f2d
movl 0x58(%rsp), %esi
testl %esi, %esi
jle 0x4fbe
movq 0xb0(%rsp), %rax
cmpq 0xb8(%rsp), %rax
leaq 0x1be6f(%rip), %rax     # 0x20e1b
leaq 0x1bea9(%rip), %rdi     # 0x20e5c
cmovbq %rax, %rdi
xorl %eax, %eax
callq 0x3050
movq 0xc8(%rsp), %rax
cmpq 0xc0(%rsp), %rax
je 0x513f
leaq 0x40(%rsp), %r13
movl $0x8, %ebx
xorl %r14d, %r14d
leaq 0x80(%rsp), %r15
leaq 0x90(%rsp), %rax
movq %rax, 0x80(%rsp)
movq %r15, %rdi
leaq 0x1bea8(%rip), %rsi     # 0x20eab
leaq 0x1bebb(%rip), %rdx     # 0x20ec5
callq 0x448a
movq 0xc0(%rsp), %rax
movq -0x8(%rax,%rbx), %rsi
movq (%rax,%rbx), %rdx
movq %r15, %rdi
callq 0x30d0
movq %r13, 0x30(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x504b
movq %rdx, 0x30(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x40(%rsp)
jmp 0x5053
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq 0x8(%rax), %rdx
movq %rdx, 0x38(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x30(%rsp), %rdi
leaq 0x1afa0(%rip), %rsi     # 0x20017
callq 0x3520
movq %rbp, 0x10(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x509f
movq %rdx, 0x10(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x20(%rsp)
jmp 0x50a6
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
movq 0x8(%rax), %rdx
movq %rdx, 0x18(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x10(%rsp), %rdi
callq 0x14bf8
movq 0x10(%rsp), %rdi
cmpq %rbp, %rdi
je 0x50df
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x32b0
movq 0x30(%rsp), %rdi
cmpq %r13, %rdi
je 0x50f6
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x32b0
movq 0x80(%rsp), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0x511b
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x32b0
movq 0xc8(%rsp), %rax
subq 0xc0(%rsp), %rax
incq %r14
sarq $0x5, %rax
addq $0x20, %rbx
cmpq %rax, %r14
jb 0x4fe9
movq 0xb0(%rsp), %rax
cmpq 0xb8(%rsp), %rax
jae 0x517d
leaq 0x1bd6e(%rip), %rax     # 0x20ec6
leaq 0x1bdb1(%rip), %rdi     # 0x20f10
cmpb $0x0, 0xf(%rsp)
cmovneq %rax, %rdi
movl 0x158(%rsp), %esi
subl 0x1a0(%rsp), %esi
xorl %eax, %eax
callq 0x3050
movq 0x118(%rsp), %rdx
movq 0x68(%rsp), %rcx
subq 0x60(%rsp), %rcx
shrq $0x2, %rcx
movq 0x208(%rsp), %r8
leaq 0x1bdab(%rip), %rdi     # 0x20f4d
movq 0xa8(%rsp), %rsi
xorl %eax, %eax
callq 0x3050
jmp 0x48bb
leaq 0x1c0a9(%rip), %rdi     # 0x21266
jmp 0x48b3
jmp 0x524d
jmp 0x5269
jmp 0x529b
jmp 0x52da
movq %rax, %rbx
jmp 0x5211
movq %rax, %rbx
jmp 0x51fa
movq %rax, %rbx
movq 0x10(%rsp), %rdi
cmpq %rbp, %rdi
je 0x51fa
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x32b0
movq 0x30(%rsp), %rdi
cmpq %r13, %rdi
je 0x5211
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x32b0
movq 0x80(%rsp), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0x52ee
movq 0x90(%rsp), %rsi
jmp 0x52b2
jmp 0x52da
movq %rax, %rbx
movq 0x10(%rsp), %rdi
cmpq %rbp, %rdi
jne 0x52ad
jmp 0x52ee
jmp 0x52bc
movq %rax, %rbx
movq 0x30(%rsp), %rdi
cmpq %rbp, %rdi
je 0x526c
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x32b0
jmp 0x526c
movq %rax, %rbx
movq 0x80(%rsp), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0x529e
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x32b0
jmp 0x529e
jmp 0x529b
jmp 0x52da
jmp 0x52e1
jmp 0x529b
movq %rax, %rbx
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x52ee
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x32b0
jmp 0x52ee
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x52e4
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x32b0
jmp 0x52e4
jmp 0x52da
movq %rax, %rbx
jmp 0x52ee
jmp 0x52e1
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x5366
leaq 0xe0(%rsp), %rdi
callq 0x544a
leaq 0xc0(%rsp), %rdi
callq 0x544a
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0x531f
movq 0x70(%rsp), %rsi
subq %rdi, %rsi
callq 0x32b0
movq %rbx, %rdi
callq 0x34d0
nop