// File: /workspace/github_cpp_makefile_star2_O1/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, %r13d
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 0x3f9dd
movl %eax, %r15d
testl %eax, %eax
setle %bl
jle 0x7e94
xorl %r14d, %r14d
movl %r15d, 0x4(%rsp)
movq %r12, %rdi
movl %r14d, %esi
callq 0x3fee7
testb %al, %al
je 0x7e85
movq %r12, %rdi
movl %r14d, %esi
callq 0x3febf
cmpb %r13b, %al
jne 0x7e85
movq %r12, %rdi
movl %r14d, %esi
leaq 0x10(%rsp), %rdx
movl 0x8(%rsp), %ecx
movl 0xc(%rsp), %r8d
callq 0x7f6b
testb %al, %al
je 0x7ed6
movq %r12, %rdi
movl %r14d, %esi
callq 0x40941
movl %eax, %r15d
movq 0x18(%rsp), %rax
subq 0x10(%rsp), %rax
cmpq %r15, %rax
jne 0x7e94
movq %r12, %rdi
movl %r14d, %esi
callq 0x4098a
movl %eax, %ebp
leaq 0x30(%rsp), %rdi
movq %r15, %rsi
callq 0x9d84
movq 0x30(%rsp), %rdx
leaq (%rdx,%r15), %rcx
movq %r12, %rdi
movl %ebp, %esi
callq 0x404a5
testb %al, %al
je 0x7f01
movq 0x10(%rsp), %rdi
movq 0x30(%rsp), %rsi
movq %r15, %rdx
callq 0x4310
testl %eax, %eax
movl 0x4(%rsp), %r15d
jne 0x7e94
incl %r14d
cmpl %r15d, %r14d
setge %bl
jne 0x7dd0
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x7eab
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x4300
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x7ec2
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 0x52916(%rip), %rdi     # 0x5a7f3
callq 0x44e0
leaq 0x52167(%rip), %rdi     # 0x5a050
leaq 0x52166(%rip), %rsi     # 0x5a056
leaq 0x522ee(%rip), %rcx     # 0x5a1e5
movl $0xcb, %edx
callq 0x4200
leaq 0x5294e(%rip), %rdi     # 0x5a856
callq 0x44e0
leaq 0x5213c(%rip), %rdi     # 0x5a050
leaq 0x5213b(%rip), %rsi     # 0x5a056
leaq 0x522c3(%rip), %rcx     # 0x5a1e5
movl $0xd1, %edx
callq 0x4200
jmp 0x7f32
jmp 0x7f32
jmp 0x7f32
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x7f4c
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x4300
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x7f63
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x4300
movq %rbx, %rdi
callq 0x45e0