// File: /workspace/github_cpp_makefile_star2_O3/sisong[P]ApkDiffPatch/src/diff/DiffData.cpp
// Function: getCompressedIsNormalizedBy(UnZipper*, int, int, bool)
bool getCompressedIsNormalizedBy(UnZipper* zip,int zlibCompressLevel,int zlibCompressMemLevel,bool testReCompressedByApkV2Sign){
    std::vector<TByte> oldCompressedCode;
    std::vector<TByte> newCompressedCode;
    int fileCount=UnZipper_fileCount(zip);
    for (int i=0; i<fileCount; ++i) {
        if (!UnZipper_file_isCompressed(zip,i)) continue;
        if (testReCompressedByApkV2Sign ^ UnZipper_file_isReCompressedByApkV2Sign(zip,i)) continue;
        check(getNormalizedCompressedCode(zip,i,newCompressedCode,zlibCompressLevel,zlibCompressMemLevel));
        size_t compressedSize=UnZipper_file_compressedSize(zip,i);
        if (compressedSize!=newCompressedCode.size()) return false;
        
        ZipFilePos_t pos=UnZipper_fileData_offset(zip,i);
        oldCompressedCode.resize(compressedSize);
        check(UnZipper_fileData_read(zip,pos,oldCompressedCode.data(),oldCompressedCode.data()+compressedSize));
        if (0!=memcmp(newCompressedCode.data(),oldCompressedCode.data(),compressedSize))
            return false;
    }
    return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movl %ecx, %r15d
movl %edx, 0xc(%rsp)
movl %esi, 0x8(%rsp)
movq %rdi, %r12
xorps %xmm0, %xmm0
movaps %xmm0, 0x30(%rsp)
xorl %eax, %eax
movq %rax, 0x40(%rsp)
movq %rax, 0x20(%rsp)
movaps %xmm0, 0x10(%rsp)
callq 0x3f577
movl %eax, %r13d
testl %eax, %eax
jle 0x7d00
xorl %ebx, %ebx
xorl %r14d, %r14d
movl %r15d, 0x4(%rsp)
movq %r12, %rdi
movl %r14d, %esi
callq 0x3fadd
testb %al, %al
je 0x7cd5
movq %r12, %rdi
movl %r14d, %esi
callq 0x3fab7
cmpb %r15b, %al
jne 0x7cd5
movq %r12, %rdi
movl %r14d, %esi
leaq 0x10(%rsp), %rdx
movl 0x8(%rsp), %ecx
movl 0xc(%rsp), %r8d
callq 0x7dc2
testb %al, %al
je 0x7d2d
movq %r12, %rdi
movl %r14d, %esi
callq 0x40533
movl %eax, %r15d
movq 0x10(%rsp), %rbp
movq 0x18(%rsp), %rax
subq %rbp, %rax
cmpq %r15, %rax
jne 0x7ce9
movq %r12, %rdi
movl %r14d, %esi
callq 0x4057c
movl %eax, %ebp
leaq 0x30(%rsp), %rdi
movq %r15, %rsi
callq 0x9b50
movq 0x30(%rsp), %rdx
leaq (%rdx,%r15), %rcx
movq %r12, %rdi
movl %ebp, %esi
callq 0x4008d
testb %al, %al
je 0x7d58
movq 0x10(%rsp), %rbp
movq 0x30(%rsp), %rsi
movq %rbp, %rdi
movq %r15, %rdx
callq 0x4310
testl %eax, %eax
movl 0x4(%rsp), %r15d
jne 0x7ce9
incl %r14d
cmpl %r13d, %r14d
setge %bl
jne 0x7c1a
movq 0x10(%rsp), %rbp
testq %rbp, %rbp
je 0x7d02
movq 0x20(%rsp), %rsi
subq %rbp, %rsi
movq %rbp, %rdi
callq 0x4300
jmp 0x7d02
movb $0x1, %bl
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x7d19
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x4300
andb $0x1, %bl
movl %ebx, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x52abf(%rip), %rdi     # 0x5a7f3
callq 0x44e0
leaq 0x52310(%rip), %rdi     # 0x5a050
leaq 0x5230f(%rip), %rsi     # 0x5a056
leaq 0x52497(%rip), %rcx     # 0x5a1e5
movl $0xcb, %edx
callq 0x4200
leaq 0x52af7(%rip), %rdi     # 0x5a856
callq 0x44e0
leaq 0x522e5(%rip), %rdi     # 0x5a050
leaq 0x522e4(%rip), %rsi     # 0x5a056
leaq 0x5246c(%rip), %rcx     # 0x5a1e5
movl $0xd1, %edx
callq 0x4200
jmp 0x7d89
jmp 0x7d89
jmp 0x7d89
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x7da3
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x4300
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x7dba
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x4300
movq %rbx, %rdi
callq 0x45e0