_ZNK4Ogre10DataStream4sizeEv:
  186|    627|        size_t size(void) const { return mSize; }

_ZN4Ogre13OptimisedUtilC2Ev:
   64|      2|        OptimisedUtil(void) {}

_ZNK4Ogre9SharedPtrINS_10DataStreamEEptEv:
   63|  1.25k|        T* operator->() const { return shared_ptr<T>::operator->(); }

_ZN4Ogre14ArchiveManager12getSingletonEv:
   40|      1|    {  
   41|       |        assert( msSingleton );  return ( *msSingleton );  
   42|      1|    }
_ZN4Ogre14ArchiveManagerC2Ev:
   45|      1|    {
   46|      1|    }
_ZN4Ogre14ArchiveManager17addArchiveFactoryEPNS_14ArchiveFactoryE:
  126|      1|    {
  127|      1|        mArchFactories.emplace(factory->getType(), factory);
  128|      1|        LogManager::getSingleton().logMessage("ArchiveFactory for type '" + factory->getType() + "' registered");
  129|      1|    }

_ZN4Ogre16MemoryDataStreamC2EPvmbb:
  188|  4.16k|        : DataStream(static_cast<uint16>(readOnly ? READ : (READ | WRITE)))
  ------------------
  |  Branch (188:42): [True: 0, False: 4.16k]
  ------------------
  189|  4.16k|    {
  190|  4.16k|        mData = mPos = static_cast<uchar*>(pMem);
  191|  4.16k|        mSize = inSize;
  192|  4.16k|        mEnd = mData + mSize;
  193|  4.16k|        mFreeOnClose = freeOnClose;
  194|       |        assert(mEnd >= mPos);
  195|  4.16k|    }
_ZN4Ogre16MemoryDataStreamC2ERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEmbb:
  325|  3.32k|        : DataStream(name, static_cast<uint16>(readOnly ? READ : (READ | WRITE)))
  ------------------
  |  Branch (325:48): [True: 3.32k, False: 0]
  ------------------
  326|  3.32k|    {
  327|  3.32k|        mSize = inSize;
  328|  3.32k|        mData = OGRE_ALLOC_T(uchar, mSize, MEMCATEGORY_GENERAL);
  329|  3.32k|        mPos = mData;
  330|  3.32k|        mEnd = mData + mSize;
  331|  3.32k|        mFreeOnClose = freeOnClose;
  332|       |        assert(mEnd >= mPos);
  333|  3.32k|    }
_ZN4Ogre16MemoryDataStreamD2Ev:
  336|  7.49k|    {
  337|  7.49k|        close();
  338|  7.49k|    }
_ZN4Ogre16MemoryDataStream4readEPvm:
  341|  20.0k|    {
  342|       |        // Read over end of memory?
  343|  20.0k|        if (mPos >= mEnd)
  ------------------
  |  Branch (343:13): [True: 475, False: 19.5k]
  ------------------
  344|    475|            return 0;
  345|  19.5k|        size_t cnt = std::min(count, static_cast<size_t>(mEnd - mPos));
  346|  19.5k|        if (cnt == 0)
  ------------------
  |  Branch (346:13): [True: 42, False: 19.5k]
  ------------------
  347|     42|            return 0;
  348|       |
  349|  19.5k|        assert (cnt<=count);
  350|       |
  351|  19.5k|        memcpy(buf, mPos, cnt);
  352|  19.5k|        mPos += cnt;
  353|  19.5k|        return cnt;
  354|  19.5k|    }
_ZN4Ogre16MemoryDataStream4seekEm:
  443|  19.4k|    {
  444|  19.4k|        if (mData + pos > mEnd)
  ------------------
  |  Branch (444:13): [True: 0, False: 19.4k]
  ------------------
  445|      0|            pos = static_cast<size_t>(mEnd - mData); // will trigger eof
  446|  19.4k|        mPos = mData + pos;
  447|  19.4k|    }
_ZN4Ogre16MemoryDataStream5closeEv:
  461|  7.49k|    {
  462|  7.49k|        mAccess = 0;
  463|  7.49k|        if (mFreeOnClose && mData)
  ------------------
  |  Branch (463:13): [True: 3.32k, False: 4.16k]
  |  Branch (463:29): [True: 3.32k, False: 0]
  ------------------
  464|  3.32k|        {
  465|       |            OGRE_FREE(mData, MEMCATEGORY_GENERAL);
  466|  3.32k|            mData = 0;
  467|  3.32k|        }
  468|  7.49k|    }

_ZN4Ogre9ExceptionC2EiRKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES9_PKcSB_l:
   43|  6.89k|        line( lin ),
   44|  6.89k|        typeName(typ),
   45|  6.89k|        description( desc ),
   46|  6.89k|        source( src ),
   47|  6.89k|        file( fil )
   48|  6.89k|    {
   49|  6.89k|        StringStream ss;
   50|       |
   51|  6.89k|        ss << typeName << ": "
   52|  6.89k|           << description
   53|  6.89k|           << " in " << source;
   54|       |
   55|  6.89k|        if( line > 0 )
  ------------------
  |  Branch (55:13): [True: 6.89k, False: 0]
  ------------------
   56|  6.89k|        {
   57|  6.89k|            ss << " at " << file << " (line " << line << ")";
   58|  6.89k|        }
   59|       |
   60|  6.89k|        fullDesc = ss.str();
   61|  6.89k|    }

_ZN4Ogre3LogC2ERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEbb:
   54|      1|        mLogLevel(LML_NORMAL), mDebugOut(debuggerOutput),
   55|      1|        mSuppressFile(suppressFile), mTimeStamp(true), mLogName(name), mTermHasColours(false)
   56|      1|    {
   57|      1|        if (!mSuppressFile)
  ------------------
  |  Branch (57:13): [True: 0, False: 1]
  ------------------
   58|      0|        {
   59|      0|            FileSystemUtil::openOutputFile(mLog, name);
   60|       |
   61|       |#if (OGRE_PLATFORM == OGRE_PLATFORM_WIN32 || OGRE_PLATFORM == OGRE_PLATFORM_WINRT) && _WIN32_WINNT >= _WIN32_WINNT_VISTA
   62|       |            // Register log file to be collected by Windows Error Reporting
   63|       |            const std::wstring wname = FileSystemUtil::toWide(name);
   64|       |            if (!wname.empty())
   65|       |                WerRegisterFile(wname.c_str(), WerRegFileTypeOther, WER_FILE_ANONYMOUS_DATA);
   66|       |#endif
   67|      0|        }
   68|       |
   69|      1|#if OGRE_PLATFORM != OGRE_PLATFORM_WINRT
   70|      1|        char* val = getenv("OGRE_MIN_LOGLEVEL");
   71|      1|        int min_lml;
   72|      1|        if(val && StringConverter::parse(val, min_lml))
  ------------------
  |  Branch (72:12): [True: 0, False: 1]
  |  Branch (72:12): [True: 0, False: 1]
  |  Branch (72:19): [True: 0, False: 0]
  ------------------
   73|      0|            setMinLogLevel(LogMessageLevel(min_lml));
   74|       |
   75|      1|        if(mDebugOut)
  ------------------
  |  Branch (75:12): [True: 0, False: 1]
  ------------------
   76|      0|        {
   77|      0|            val = getenv("TERM");
   78|      0|            mTermHasColours = val && String(val).find("xterm") != String::npos;
  ------------------
  |  Branch (78:31): [True: 0, False: 0]
  |  Branch (78:38): [True: 0, False: 0]
  ------------------
   79|      0|        }
   80|      1|#endif
   81|      1|    }
_ZN4Ogre3Log10logMessageERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_15LogMessageLevelEb:
   94|      4|    {
   95|      4|        OGRE_LOCK_AUTO_MUTEX;
   96|      4|        if (lml >= mLogLevel)
  ------------------
  |  Branch (96:13): [True: 0, False: 4]
  ------------------
   97|      0|        {
   98|      0|            bool skipThisMessage = false;
   99|      0|            for(auto & l : mListeners)
  ------------------
  |  Branch (99:26): [True: 0, False: 0]
  ------------------
  100|      0|                l->messageLogged( message, lml, maskDebug, mLogName, skipThisMessage);
  101|       |            
  102|      0|            if (!skipThisMessage)
  ------------------
  |  Branch (102:17): [True: 0, False: 0]
  ------------------
  103|      0|            {
  104|      0|                if (mDebugOut && !maskDebug)
  ------------------
  |  Branch (104:21): [True: 0, False: 0]
  |  Branch (104:34): [True: 0, False: 0]
  ------------------
  105|      0|                {
  106|       |#    if (OGRE_PLATFORM == OGRE_PLATFORM_WIN32 || OGRE_PLATFORM == OGRE_PLATFORM_WINRT) && OGRE_DEBUG_MODE
  107|       |                    OutputDebugStringA("Ogre: ");
  108|       |                    OutputDebugStringA(message.c_str());
  109|       |                    OutputDebugStringA("\n");
  110|       |#    endif
  111|       |
  112|      0|                    std::ostream& os = int(lml) >= int(LML_WARNING) ? std::cerr : std::cout;
  ------------------
  |  Branch (112:40): [True: 0, False: 0]
  ------------------
  113|       |
  114|      0|                    if(mTermHasColours) {
  ------------------
  |  Branch (114:24): [True: 0, False: 0]
  ------------------
  115|      0|                        if(lml == LML_WARNING)
  ------------------
  |  Branch (115:28): [True: 0, False: 0]
  ------------------
  116|      0|                            os << YELLOW;
  117|      0|                        if(lml == LML_CRITICAL)
  ------------------
  |  Branch (117:28): [True: 0, False: 0]
  ------------------
  118|      0|                            os << RED;
  119|      0|                    }
  120|       |
  121|      0|                    os << message;
  122|       |
  123|      0|                    if(mTermHasColours) {
  ------------------
  |  Branch (123:24): [True: 0, False: 0]
  ------------------
  124|      0|                        os << RESET;
  125|      0|                    }
  126|       |
  127|      0|                    os << std::endl;
  128|      0|                }
  129|       |
  130|       |                // Write time into log
  131|      0|                if (!mSuppressFile)
  ------------------
  |  Branch (131:21): [True: 0, False: 0]
  ------------------
  132|      0|                {
  133|      0|                    if (mTimeStamp)
  ------------------
  |  Branch (133:25): [True: 0, False: 0]
  ------------------
  134|      0|                    {
  135|      0|                        auto t = std::time(nullptr);
  136|      0|                        auto pTime = std::localtime(&t);
  137|      0|                        mLog << std::put_time(pTime, "%H:%M:%S: ");
  138|      0|                    }
  139|      0|                    mLog << message << std::endl;
  140|       |
  141|       |                    // Flush stcmdream to ensure it is written (incase of a crash, we need log to be up to date)
  142|      0|                    mLog.flush();
  143|      0|                }
  144|      0|            }
  145|      0|        }
  146|      4|    }
_ZN4Ogre3Log14setMinLogLevelENS_15LogMessageLevelE:
  170|      1|    {
  171|      1|        OGRE_LOCK_AUTO_MUTEX;
  172|      1|        mLogLevel = lml;
  173|      1|    }

_ZN4Ogre10LogManager12getSingletonEv:
   39|      4|    {  
   40|       |        assert( msSingleton );  return ( *msSingleton );  
   41|      4|    }
_ZN4Ogre10LogManagerC2Ev:
   44|      1|    {
   45|       |        mDefaultLog = NULL;
   46|      1|    }
_ZN4Ogre10LogManager9createLogERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEbbb:
   61|      1|    {
   62|      1|        OGRE_LOCK_AUTO_MUTEX;
   63|       |
   64|      1|        Log* newLog = OGRE_NEW Log(name, debuggerOutput, suppressFileOutput);
   65|       |
   66|      1|        if( !mDefaultLog || defaultLog )
  ------------------
  |  Branch (66:13): [True: 1, False: 0]
  |  Branch (66:29): [True: 0, False: 0]
  ------------------
   67|      1|        {
   68|      1|            mDefaultLog = newLog;
   69|      1|        }
   70|       |
   71|      1|        mLogs.emplace(name, newLog);
   72|       |
   73|      1|        return newLog;
   74|      1|    }
_ZN4Ogre10LogManager10logMessageERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_15LogMessageLevelEb:
  125|      4|    {
  126|      4|        OGRE_LOCK_AUTO_MUTEX;
  127|      4|        if (mDefaultLog)
  ------------------
  |  Branch (127:13): [True: 4, False: 0]
  ------------------
  128|      4|        {
  129|      4|            mDefaultLog->logMessage(message, lml, maskDebug);
  130|      4|        }
  131|      4|    }
_ZN4Ogre10LogManager14setMinLogLevelENS_15LogMessageLevelE:
  155|      1|    {
  156|      1|        OGRE_LOCK_AUTO_MUTEX;
  157|      1|        if (mDefaultLog)
  ------------------
  |  Branch (157:13): [True: 1, False: 0]
  ------------------
  158|      1|        {
  159|      1|            mDefaultLog->setMinLogLevel(lml);
  160|      1|        }
  161|      1|    }

_ZN4Ogre13OptimisedUtil21_detectImplementationEv:
  326|      2|    {
  327|       |        //
  328|       |        // Some speed test results (averaged number of CPU timestamp (RDTSC) per-function call):
  329|       |        //
  330|       |        //   Dagon SkeletonAnimation sample - softwareVertexSkinning:
  331|       |        //
  332|       |        //                                      Pentium 4 3.0G HT       Athlon XP 2500+     Athlon 64 X2 Dual Core 3800+
  333|       |        //
  334|       |        //      Shared Buffers, General C       763677                  462903              473038
  335|       |        //      Shared Buffers, Unrolled SSE    210030 *best*           369762              228328 *best*
  336|       |        //      Shared Buffers, General SSE     286202                  352412 *best*       302796
  337|       |        //
  338|       |        //      Separated Buffers, General C    762640                  464840              478740
  339|       |        //      Separated Buffers, Unrolled SSE 219222 *best*           287992 *best*       238770 *best*
  340|       |        //      Separated Buffers, General SSE  290129                  341614              307262
  341|       |        //
  342|       |        //      PosOnly, General C              388663                  257350              262831
  343|       |        //      PosOnly, Unrolled SSE           139814 *best*           200323 *best*       168995 *best*
  344|       |        //      PosOnly, General SSE            172693                  213704              175447
  345|       |        //
  346|       |        //   Another my own test scene - softwareVertexSkinning:
  347|       |        //
  348|       |        //                                      Pentium P4 3.0G HT      Athlon XP 2500+
  349|       |        //
  350|       |        //      Shared Buffers, General C       74527                   -
  351|       |        //      Shared Buffers, Unrolled SSE    22743 *best*            -
  352|       |        //      Shared Buffers, General SSE     28527                   -
  353|       |        //
  354|       |        //
  355|       |        // Note that speed test appears unaligned load/store instruction version
  356|       |        // loss performance 5%-10% than aligned load/store version, even if both
  357|       |        // of them access to aligned data. Thus, we should use aligned load/store
  358|       |        // as soon as possible.
  359|       |        //
  360|       |        //
  361|       |        // We are pick up the implementation based on test results above.
  362|       |        //
  363|       |#ifdef __DO_PROFILE__
  364|       |        {
  365|       |            static OptimisedUtilProfiler msOptimisedUtilProfiler;
  366|       |            return &msOptimisedUtilProfiler;
  367|       |        }
  368|       |
  369|       |#else   // !__DO_PROFILE__
  370|       |
  371|      2|#if __OGRE_HAVE_SSE
  372|      2|        if (PlatformInformation::getCpuFeatures() & PlatformInformation::CPU_FEATURE_SSE)
  ------------------
  |  Branch (372:13): [True: 2, False: 0]
  ------------------
  373|      2|        {
  374|      2|            return _getOptimisedUtilSSE();
  375|      2|        }
  376|      0|        else
  377|       |#elif __OGRE_HAVE_NEON
  378|       |        if (PlatformInformation::getCpuFeatures() & PlatformInformation::CPU_FEATURE_NEON)
  379|       |        {
  380|       |            return _getOptimisedUtilSSE();
  381|       |        }
  382|       |        else
  383|       |#endif  // __OGRE_HAVE_SSE
  384|      0|        {
  385|      0|            return _getOptimisedUtilGeneral();
  386|      0|        }
  387|       |
  388|      2|#endif  // __DO_PROFILE__
  389|      2|    }

_ZN4Ogre16OptimisedUtilSSEC2Ev:
  900|      2|        : mPreferGeneralVersionForSharedBuffers(false)
  901|      2|    {
  902|       |        // For AMD Athlon XP (but not that for Althon 64), it's prefer to never use
  903|       |        // unrolled version for shared buffers at all, I guess because that version
  904|       |        // run out of usable CPU registers, or L1/L2 cache related problem, causing
  905|       |        // slight performance loss than general version.
  906|       |        //
  907|      2|#if OGRE_CPU == OGRE_CPU_X86
  908|      2|        if (PlatformInformation::getCpuIdentifier().find("AuthenticAMD") != String::npos)
  ------------------
  |  Branch (908:13): [True: 0, False: 2]
  ------------------
  909|      0|        {
  910|       |            // How can I check it's an Athlon XP but not Althon 64?
  911|       |            // Ok, just test whether supports SSE2/SSE3 or not, if not,
  912|       |            // assume general version faster than unrolled version :)
  913|       |            //
  914|      0|            if (!(PlatformInformation::getCpuFeatures() &
  ------------------
  |  Branch (914:17): [True: 0, False: 0]
  ------------------
  915|      0|                (PlatformInformation::CPU_FEATURE_SSE2 | PlatformInformation::CPU_FEATURE_SSE3)))
  916|      0|            {
  917|      0|                mPreferGeneralVersionForSharedBuffers = true;
  918|      0|            }
  919|      0|        }
  920|      2|#endif
  921|      2|    }
_ZN4Ogre20_getOptimisedUtilSSEEv:
 1993|      2|    {
 1994|      2|        static OptimisedUtilSSE msOptimisedUtilSSE;
 1995|      2|        return &msOptimisedUtilSSE;
 1996|      2|    }

_ZN4Ogre19PlatformInformation16getCpuIdentifierEv:
  675|      2|    {
  676|      2|        static const String sIdentifier = _detectCpuIdentifier();
  677|      2|        return sIdentifier;
  678|      2|    }
_ZN4Ogre19PlatformInformation14getCpuFeaturesEv:
  681|      2|    {
  682|      2|        static const uint sFeatures = _detectCpuFeatures();
  683|      2|        return sFeatures;
  684|      2|    }
OgrePlatformInformation.cpp:_ZN4OgreL20_detectCpuIdentifierEv:
  427|      2|    {
  428|       |        // Supports CPUID instruction ?
  429|      2|        if (_isSupportCpuid())
  ------------------
  |  Branch (429:13): [True: 2, False: 0]
  ------------------
  430|      2|        {
  431|      2|            CpuidResult result;
  432|      2|            uint nExIds;
  433|      2|            char CPUString[0x20];
  434|      2|            char CPUBrandString[0x40];
  435|       |
  436|      2|            StringStream detailedIdentStr;
  437|       |
  438|       |
  439|       |            // Has standard feature ?
  440|      2|            if (_performCpuid(0, result))
  ------------------
  |  Branch (440:17): [True: 2, False: 0]
  ------------------
  441|      2|            {
  442|      2|                memset(CPUString, 0, sizeof(CPUString));
  443|      2|                memset(CPUBrandString, 0, sizeof(CPUBrandString));
  444|       |
  445|       |                //*((int*)CPUString) = result._ebx;
  446|       |                //*((int*)(CPUString+4)) = result._edx;
  447|       |                //*((int*)(CPUString+8)) = result._ecx;
  448|      2|                memcpy(CPUString, &result._ebx, sizeof(int));
  449|      2|                memcpy(CPUString+4, &result._edx, sizeof(int));
  450|      2|                memcpy(CPUString+8, &result._ecx, sizeof(int));
  451|       |
  452|      2|                detailedIdentStr << CPUString;
  453|       |
  454|       |                // Calling _performCpuid with 0x80000000 as the query argument
  455|       |                // gets the number of valid extended IDs.
  456|      2|                nExIds = _performCpuid(0x80000000, result);
  457|       |
  458|     20|                for (uint i=0x80000000; i<=nExIds; ++i)
  ------------------
  |  Branch (458:41): [True: 18, False: 2]
  ------------------
  459|     18|                {
  460|     18|                    _performCpuid(i, result);
  461|       |
  462|       |                    // Interpret CPU brand string and cache information.
  463|     18|                    if  (i == 0x80000002)
  ------------------
  |  Branch (463:26): [True: 2, False: 16]
  ------------------
  464|      2|                    {
  465|      2|                        memcpy(CPUBrandString + 0, &result._eax, sizeof(result._eax));
  466|      2|                        memcpy(CPUBrandString + 4, &result._ebx, sizeof(result._ebx));
  467|      2|                        memcpy(CPUBrandString + 8, &result._ecx, sizeof(result._ecx));
  468|      2|                        memcpy(CPUBrandString + 12, &result._edx, sizeof(result._edx));
  469|      2|                    }
  470|     16|                    else if  (i == 0x80000003)
  ------------------
  |  Branch (470:31): [True: 2, False: 14]
  ------------------
  471|      2|                    {
  472|      2|                        memcpy(CPUBrandString + 16 + 0, &result._eax, sizeof(result._eax));
  473|      2|                        memcpy(CPUBrandString + 16 + 4, &result._ebx, sizeof(result._ebx));
  474|      2|                        memcpy(CPUBrandString + 16 + 8, &result._ecx, sizeof(result._ecx));
  475|      2|                        memcpy(CPUBrandString + 16 + 12, &result._edx, sizeof(result._edx));
  476|      2|                    }
  477|     14|                    else if  (i == 0x80000004)
  ------------------
  |  Branch (477:31): [True: 2, False: 12]
  ------------------
  478|      2|                    {
  479|      2|                        memcpy(CPUBrandString + 32 + 0, &result._eax, sizeof(result._eax));
  480|      2|                        memcpy(CPUBrandString + 32 + 4, &result._ebx, sizeof(result._ebx));
  481|      2|                        memcpy(CPUBrandString + 32 + 8, &result._ecx, sizeof(result._ecx));
  482|      2|                        memcpy(CPUBrandString + 32 + 12, &result._edx, sizeof(result._edx));
  483|      2|                    }
  484|     18|                }
  485|       |
  486|      2|                String brand(CPUBrandString);
  487|      2|                StringUtil::trim(brand);
  488|      2|                if (!brand.empty())
  ------------------
  |  Branch (488:21): [True: 2, False: 0]
  ------------------
  489|      2|                    detailedIdentStr << ": " << brand;
  490|       |
  491|      2|                return detailedIdentStr.str();
  492|      2|            }
  493|      2|        }
  494|       |
  495|      0|        return "X86";
  496|      2|    }
OgrePlatformInformation.cpp:_ZN4OgreL13_performCpuidEiRNS_11CpuidResultE:
  151|     30|    {
  152|       |#if OGRE_COMPILER == OGRE_COMPILER_MSVC
  153|       |        int CPUInfo[4];
  154|       |        __cpuid(CPUInfo, query);
  155|       |        result._eax = CPUInfo[0];
  156|       |        result._ebx = CPUInfo[1];
  157|       |        result._ecx = CPUInfo[2];
  158|       |        result._edx = CPUInfo[3];
  159|       |        return result._eax;
  160|       |#elif (OGRE_COMPILER == OGRE_COMPILER_GNUC || OGRE_COMPILER == OGRE_COMPILER_CLANG) && OGRE_PLATFORM != OGRE_PLATFORM_EMSCRIPTEN
  161|       |        #if OGRE_ARCH_TYPE == OGRE_ARCHITECTURE_64
  162|     30|        __asm__
  163|     30|        (
  164|     30|            "cpuid": "=a" (result._eax), "=b" (result._ebx), "=c" (result._ecx), "=d" (result._edx) : "a" (query)
  165|     30|        );
  166|       |        #else
  167|       |        __asm__
  168|       |        (
  169|       |            "pushl  %%ebx           \n\t"
  170|       |            "cpuid                  \n\t"
  171|       |            "movl   %%ebx, %%edi    \n\t"
  172|       |            "popl   %%ebx           \n\t"
  173|       |            : "=a" (result._eax), "=D" (result._ebx), "=c" (result._ecx), "=d" (result._edx)
  174|       |            : "a" (query)
  175|       |        );
  176|       |       #endif // OGRE_ARCHITECTURE_64
  177|     30|        return result._eax;
  178|       |
  179|       |#else
  180|       |        // TODO: Supports other compiler
  181|       |        return 0;
  182|       |#endif
  183|     30|    }
OgrePlatformInformation.cpp:_ZN4OgreL18_detectCpuFeaturesEv:
  408|      2|    {
  409|      2|        uint features = queryCpuFeatures();
  410|       |
  411|      2|        const uint sse_features = 0
  412|      2|            | PlatformInformation::CPU_FEATURE_SSE
  413|      2|            | PlatformInformation::CPU_FEATURE_SSE2
  414|      2|            | PlatformInformation::CPU_FEATURE_SSE3
  415|      2|            | PlatformInformation::CPU_FEATURE_SSE41
  416|      2|            | PlatformInformation::CPU_FEATURE_SSE42;
  417|       |
  418|      2|        if ((features & sse_features) && !_checkOperatingSystemSupportSSE())
  ------------------
  |  Branch (418:13): [True: 2, False: 0]
  |  Branch (418:42): [True: 0, False: 2]
  ------------------
  419|      0|        {
  420|      0|            features &= ~sse_features;
  421|      0|        }
  422|       |
  423|      2|        return features;
  424|      2|    }
OgrePlatformInformation.cpp:_ZN4OgreL16queryCpuFeaturesEv:
  266|      2|    {
  267|       |
  268|      2|#define CPUID_FUNC_VENDOR_ID                 0x0
  269|      2|#define CPUID_FUNC_STANDARD_FEATURES         0x1
  270|      2|#define CPUID_FUNC_EXTENSION_QUERY           0x80000000
  271|      2|#define CPUID_FUNC_EXTENDED_FEATURES         0x80000001
  272|      2|#define CPUID_FUNC_ADVANCED_POWER_MANAGEMENT 0x80000007
  273|       |
  274|      2|#define CPUID_STD_FPU               (1<<0)
  275|      2|#define CPUID_STD_TSC               (1<<4)
  276|      2|#define CPUID_STD_CMOV              (1<<15)
  277|      2|#define CPUID_STD_MMX               (1<<23)
  278|      2|#define CPUID_STD_SSE               (1<<25)
  279|      2|#define CPUID_STD_SSE2              (1<<26)
  280|      2|#define CPUID_STD_HTT               (1<<28)     // EDX[28] - Bit 28 set indicates  Hyper-Threading Technology is supported in hardware.
  281|       |
  282|      2|#define CPUID_STD_SSE3              (1<<0)      // ECX[0]  - Bit 0 of standard function 1 indicate SSE3 supported
  283|      2|#define CPUID_STD_SSE41             (1<<19)     // ECX[19] - Bit 0 of standard function 1 indicate SSE41 supported
  284|      2|#define CPUID_STD_SSE42             (1<<20)     // ECX[20] - Bit 0 of standard function 1 indicate SSE42 supported
  285|       |
  286|      2|#define CPUID_FAMILY_ID_MASK        0x0F00      // EAX[11:8] - Bit 11 thru 8 contains family  processor id
  287|      2|#define CPUID_EXT_FAMILY_ID_MASK    0x0F00000   // EAX[23:20] - Bit 23 thru 20 contains extended family processor id
  288|      2|#define CPUID_PENTIUM4_ID           0x0F00      // Pentium 4 family processor id
  289|       |
  290|      2|#define CPUID_EXT_3DNOW             (1<<31)
  291|      2|#define CPUID_EXT_AMD_3DNOWEXT      (1<<30)
  292|      2|#define CPUID_EXT_AMD_MMXEXT        (1<<22)
  293|       |
  294|       |
  295|      2|#define CPUID_APM_INVARIANT_TSC     (1<<8)      // EDX[8] - Bit 8 of function 0x80000007 indicates support for invariant TSC.
  296|       |
  297|      2|        uint features = 0;
  298|       |
  299|       |        // Supports CPUID instruction ?
  300|      2|        if (_isSupportCpuid())
  ------------------
  |  Branch (300:13): [True: 2, False: 0]
  ------------------
  301|      2|        {
  302|      2|            CpuidResult result;
  303|       |
  304|       |            // Has standard feature ?
  305|      2|            if (_performCpuid(CPUID_FUNC_VENDOR_ID, result))
  ------------------
  |  |  268|      2|#define CPUID_FUNC_VENDOR_ID                 0x0
  ------------------
  |  Branch (305:17): [True: 2, False: 0]
  ------------------
  306|      2|            {
  307|       |                // Check vendor strings
  308|      2|                if (memcmp(&result._ebx, "GenuineIntel", 12) == 0)
  ------------------
  |  Branch (308:21): [True: 2, False: 0]
  ------------------
  309|      2|                {
  310|      2|                    if (result._eax > 2)
  ------------------
  |  Branch (310:25): [True: 2, False: 0]
  ------------------
  311|      2|                        features |= PlatformInformation::CPU_FEATURE_PRO;
  312|       |
  313|       |                    // Check standard feature
  314|      2|                    _performCpuid(CPUID_FUNC_STANDARD_FEATURES, result);
  ------------------
  |  |  269|      2|#define CPUID_FUNC_STANDARD_FEATURES         0x1
  ------------------
  315|       |
  316|      2|                    if (result._edx & CPUID_STD_FPU)
  ------------------
  |  |  274|      2|#define CPUID_STD_FPU               (1<<0)
  ------------------
  |  Branch (316:25): [True: 2, False: 0]
  ------------------
  317|      2|                        features |= PlatformInformation::CPU_FEATURE_FPU;
  318|      2|                    if (result._edx & CPUID_STD_TSC)
  ------------------
  |  |  275|      2|#define CPUID_STD_TSC               (1<<4)
  ------------------
  |  Branch (318:25): [True: 2, False: 0]
  ------------------
  319|      2|                        features |= PlatformInformation::CPU_FEATURE_TSC;
  320|      2|                    if (result._edx & CPUID_STD_CMOV)
  ------------------
  |  |  276|      2|#define CPUID_STD_CMOV              (1<<15)
  ------------------
  |  Branch (320:25): [True: 2, False: 0]
  ------------------
  321|      2|                        features |= PlatformInformation::CPU_FEATURE_CMOV;
  322|      2|                    if (result._edx & CPUID_STD_MMX)
  ------------------
  |  |  277|      2|#define CPUID_STD_MMX               (1<<23)
  ------------------
  |  Branch (322:25): [True: 2, False: 0]
  ------------------
  323|      2|                        features |= PlatformInformation::CPU_FEATURE_MMX;
  324|      2|                    if (result._edx & CPUID_STD_SSE)
  ------------------
  |  |  278|      2|#define CPUID_STD_SSE               (1<<25)
  ------------------
  |  Branch (324:25): [True: 2, False: 0]
  ------------------
  325|      2|                        features |= PlatformInformation::CPU_FEATURE_MMXEXT | PlatformInformation::CPU_FEATURE_SSE;
  326|      2|                    if (result._edx & CPUID_STD_SSE2)
  ------------------
  |  |  279|      2|#define CPUID_STD_SSE2              (1<<26)
  ------------------
  |  Branch (326:25): [True: 2, False: 0]
  ------------------
  327|      2|                        features |= PlatformInformation::CPU_FEATURE_SSE2;
  328|      2|                    if (result._ecx & CPUID_STD_SSE3)
  ------------------
  |  |  282|      2|#define CPUID_STD_SSE3              (1<<0)      // ECX[0]  - Bit 0 of standard function 1 indicate SSE3 supported
  ------------------
  |  Branch (328:25): [True: 2, False: 0]
  ------------------
  329|      2|                        features |= PlatformInformation::CPU_FEATURE_SSE3;
  330|      2|                    if (result._ecx & CPUID_STD_SSE41)
  ------------------
  |  |  283|      2|#define CPUID_STD_SSE41             (1<<19)     // ECX[19] - Bit 0 of standard function 1 indicate SSE41 supported
  ------------------
  |  Branch (330:25): [True: 2, False: 0]
  ------------------
  331|      2|                        features |= PlatformInformation::CPU_FEATURE_SSE41;
  332|      2|                    if (result._ecx & CPUID_STD_SSE42)
  ------------------
  |  |  284|      2|#define CPUID_STD_SSE42             (1<<20)     // ECX[20] - Bit 0 of standard function 1 indicate SSE42 supported
  ------------------
  |  Branch (332:25): [True: 2, False: 0]
  ------------------
  333|      2|                        features |= PlatformInformation::CPU_FEATURE_SSE42;
  334|       |
  335|       |                    // Check to see if this is a Pentium 4 or later processor
  336|      2|                    if ((result._eax & CPUID_EXT_FAMILY_ID_MASK) ||
  ------------------
  |  |  287|      2|#define CPUID_EXT_FAMILY_ID_MASK    0x0F00000   // EAX[23:20] - Bit 23 thru 20 contains extended family processor id
  ------------------
  |  Branch (336:25): [True: 0, False: 2]
  ------------------
  337|      2|                        (result._eax & CPUID_FAMILY_ID_MASK) == CPUID_PENTIUM4_ID)
  ------------------
  |  |  286|      2|#define CPUID_FAMILY_ID_MASK        0x0F00      // EAX[11:8] - Bit 11 thru 8 contains family  processor id
  ------------------
                                      (result._eax & CPUID_FAMILY_ID_MASK) == CPUID_PENTIUM4_ID)
  ------------------
  |  |  288|      2|#define CPUID_PENTIUM4_ID           0x0F00      // Pentium 4 family processor id
  ------------------
  |  Branch (337:25): [True: 0, False: 2]
  ------------------
  338|      0|                    {
  339|       |                        // Check hyper-threading technology
  340|      0|                        if (result._edx & CPUID_STD_HTT)
  ------------------
  |  |  280|      0|#define CPUID_STD_HTT               (1<<28)     // EDX[28] - Bit 28 set indicates  Hyper-Threading Technology is supported in hardware.
  ------------------
  |  Branch (340:29): [True: 0, False: 0]
  ------------------
  341|      0|                            features |= PlatformInformation::CPU_FEATURE_HTT;
  342|      0|                    }
  343|       |
  344|       |
  345|      2|                    const uint maxExtensionFunctionSupport = _performCpuid(CPUID_FUNC_EXTENSION_QUERY, result);
  ------------------
  |  |  270|      2|#define CPUID_FUNC_EXTENSION_QUERY           0x80000000
  ------------------
  346|      2|                    if (maxExtensionFunctionSupport >= CPUID_FUNC_ADVANCED_POWER_MANAGEMENT)
  ------------------
  |  |  272|      2|#define CPUID_FUNC_ADVANCED_POWER_MANAGEMENT 0x80000007
  ------------------
  |  Branch (346:25): [True: 2, False: 0]
  ------------------
  347|      2|                    {
  348|      2|                        _performCpuid(CPUID_FUNC_ADVANCED_POWER_MANAGEMENT, result);
  ------------------
  |  |  272|      2|#define CPUID_FUNC_ADVANCED_POWER_MANAGEMENT 0x80000007
  ------------------
  349|       |
  350|      2|                        if (result._edx & CPUID_APM_INVARIANT_TSC)
  ------------------
  |  |  295|      2|#define CPUID_APM_INVARIANT_TSC     (1<<8)      // EDX[8] - Bit 8 of function 0x80000007 indicates support for invariant TSC.
  ------------------
  |  Branch (350:29): [True: 2, False: 0]
  ------------------
  351|      2|                            features |= PlatformInformation::CPU_FEATURE_INVARIANT_TSC;
  352|      2|                    }
  353|      2|                }
  354|      0|                else if (memcmp(&result._ebx, "AuthenticAMD", 12) == 0)
  ------------------
  |  Branch (354:26): [True: 0, False: 0]
  ------------------
  355|      0|                {
  356|      0|                    features |= PlatformInformation::CPU_FEATURE_PRO;
  357|       |
  358|       |                    // Check standard feature
  359|      0|                    _performCpuid(CPUID_FUNC_STANDARD_FEATURES, result);
  ------------------
  |  |  269|      0|#define CPUID_FUNC_STANDARD_FEATURES         0x1
  ------------------
  360|       |
  361|      0|                    if (result._edx & CPUID_STD_FPU)
  ------------------
  |  |  274|      0|#define CPUID_STD_FPU               (1<<0)
  ------------------
  |  Branch (361:25): [True: 0, False: 0]
  ------------------
  362|      0|                        features |= PlatformInformation::CPU_FEATURE_FPU;
  363|      0|                    if (result._edx & CPUID_STD_TSC)
  ------------------
  |  |  275|      0|#define CPUID_STD_TSC               (1<<4)
  ------------------
  |  Branch (363:25): [True: 0, False: 0]
  ------------------
  364|      0|                        features |= PlatformInformation::CPU_FEATURE_TSC;
  365|      0|                    if (result._edx & CPUID_STD_CMOV)
  ------------------
  |  |  276|      0|#define CPUID_STD_CMOV              (1<<15)
  ------------------
  |  Branch (365:25): [True: 0, False: 0]
  ------------------
  366|      0|                        features |= PlatformInformation::CPU_FEATURE_CMOV;
  367|      0|                    if (result._edx & CPUID_STD_MMX)
  ------------------
  |  |  277|      0|#define CPUID_STD_MMX               (1<<23)
  ------------------
  |  Branch (367:25): [True: 0, False: 0]
  ------------------
  368|      0|                        features |= PlatformInformation::CPU_FEATURE_MMX;
  369|      0|                    if (result._edx & CPUID_STD_SSE)
  ------------------
  |  |  278|      0|#define CPUID_STD_SSE               (1<<25)
  ------------------
  |  Branch (369:25): [True: 0, False: 0]
  ------------------
  370|      0|                        features |= PlatformInformation::CPU_FEATURE_SSE;
  371|      0|                    if (result._edx & CPUID_STD_SSE2)
  ------------------
  |  |  279|      0|#define CPUID_STD_SSE2              (1<<26)
  ------------------
  |  Branch (371:25): [True: 0, False: 0]
  ------------------
  372|      0|                        features |= PlatformInformation::CPU_FEATURE_SSE2;
  373|       |
  374|      0|                    if (result._ecx & CPUID_STD_SSE3)
  ------------------
  |  |  282|      0|#define CPUID_STD_SSE3              (1<<0)      // ECX[0]  - Bit 0 of standard function 1 indicate SSE3 supported
  ------------------
  |  Branch (374:25): [True: 0, False: 0]
  ------------------
  375|      0|                        features |= PlatformInformation::CPU_FEATURE_SSE3;
  376|       |
  377|       |                    // Has extended feature ?
  378|      0|                    const uint maxExtensionFunctionSupport = _performCpuid(CPUID_FUNC_EXTENSION_QUERY, result);
  ------------------
  |  |  270|      0|#define CPUID_FUNC_EXTENSION_QUERY           0x80000000
  ------------------
  379|      0|                    if (maxExtensionFunctionSupport >= CPUID_FUNC_EXTENDED_FEATURES)
  ------------------
  |  |  271|      0|#define CPUID_FUNC_EXTENDED_FEATURES         0x80000001
  ------------------
  |  Branch (379:25): [True: 0, False: 0]
  ------------------
  380|      0|                    {
  381|       |                        // Check extended feature
  382|      0|                        _performCpuid(CPUID_FUNC_EXTENDED_FEATURES, result);
  ------------------
  |  |  271|      0|#define CPUID_FUNC_EXTENDED_FEATURES         0x80000001
  ------------------
  383|       |
  384|      0|                        if (result._edx & CPUID_EXT_3DNOW)
  ------------------
  |  |  290|      0|#define CPUID_EXT_3DNOW             (1<<31)
  ------------------
  |  Branch (384:29): [True: 0, False: 0]
  ------------------
  385|      0|                            features |= PlatformInformation::CPU_FEATURE_3DNOW;
  386|      0|                        if (result._edx & CPUID_EXT_AMD_3DNOWEXT)
  ------------------
  |  |  291|      0|#define CPUID_EXT_AMD_3DNOWEXT      (1<<30)
  ------------------
  |  Branch (386:29): [True: 0, False: 0]
  ------------------
  387|      0|                            features |= PlatformInformation::CPU_FEATURE_3DNOWEXT;
  388|      0|                        if (result._edx & CPUID_EXT_AMD_MMXEXT)
  ------------------
  |  |  292|      0|#define CPUID_EXT_AMD_MMXEXT        (1<<22)
  ------------------
  |  Branch (388:29): [True: 0, False: 0]
  ------------------
  389|      0|                            features |= PlatformInformation::CPU_FEATURE_MMXEXT;
  390|      0|                    }
  391|       |
  392|       |
  393|      0|                    if (maxExtensionFunctionSupport >= CPUID_FUNC_ADVANCED_POWER_MANAGEMENT)
  ------------------
  |  |  272|      0|#define CPUID_FUNC_ADVANCED_POWER_MANAGEMENT 0x80000007
  ------------------
  |  Branch (393:25): [True: 0, False: 0]
  ------------------
  394|      0|                    {
  395|      0|                        _performCpuid(CPUID_FUNC_ADVANCED_POWER_MANAGEMENT, result);
  ------------------
  |  |  272|      0|#define CPUID_FUNC_ADVANCED_POWER_MANAGEMENT 0x80000007
  ------------------
  396|       |
  397|      0|                        if (result._edx & CPUID_APM_INVARIANT_TSC)
  ------------------
  |  |  295|      0|#define CPUID_APM_INVARIANT_TSC     (1<<8)      // EDX[8] - Bit 8 of function 0x80000007 indicates support for invariant TSC.
  ------------------
  |  Branch (397:29): [True: 0, False: 0]
  ------------------
  398|      0|                            features |= PlatformInformation::CPU_FEATURE_INVARIANT_TSC;
  399|      0|                    }
  400|      0|                }
  401|      2|            }
  402|      2|        }
  403|       |
  404|      2|        return features;
  405|      2|    }
OgrePlatformInformation.cpp:_ZN4OgreL31_checkOperatingSystemSupportSSEEv:
  202|      2|    {
  203|       |#if OGRE_COMPILER == OGRE_COMPILER_MSVC
  204|       |        /*
  205|       |            The FP part of SSE introduces a new architectural state and therefore
  206|       |            requires support from the operating system. So even if CPUID indicates
  207|       |            support for SSE FP, the application might not be able to use it. If
  208|       |            CPUID indicates support for SSE FP, check here whether it is also
  209|       |            supported by the OS, and turn off the SSE FP feature bit if there
  210|       |            is no OS support for SSE FP.
  211|       |
  212|       |            Operating systems that do not support SSE FP return an illegal
  213|       |            instruction exception if execution of an SSE FP instruction is performed.
  214|       |            Here, a sample SSE FP instruction is executed, and is checked for an
  215|       |            exception using the (non-standard) __try/__except mechanism
  216|       |            of Microsoft Visual C/C++.
  217|       |        */
  218|       |        // Visual Studio 2005, Both AMD and Intel x64 support SSE
  219|       |        // note that even though this is a build rather than runtime setting, all
  220|       |        // 64-bit CPUs support this so since binary is 64-bit only we're ok
  221|       |    #if _MSC_VER >= 1400 && defined(_M_X64)
  222|       |            return true;
  223|       |    #else
  224|       |        __try
  225|       |        {
  226|       |            __asm orps  xmm0, xmm0
  227|       |            return true;
  228|       |        }
  229|       |        __except(EXCEPTION_EXECUTE_HANDLER)
  230|       |        {
  231|       |            return false;
  232|       |        }
  233|       |    #endif
  234|       |#elif (OGRE_COMPILER == OGRE_COMPILER_GNUC || OGRE_COMPILER == OGRE_COMPILER_CLANG) && OGRE_PLATFORM != OGRE_PLATFORM_EMSCRIPTEN
  235|       |        #if OGRE_ARCH_TYPE == OGRE_ARCHITECTURE_64 
  236|      2|            return true;
  237|       |        #else
  238|       |        // Does gcc have __try/__except similar mechanism?
  239|       |        // Use signal, setjmp/longjmp instead.
  240|       |        void (*oldHandler)(int);
  241|       |        oldHandler = signal(SIGILL, _illegalHandler);
  242|       |
  243|       |        if (setjmp(sIllegalJmpBuf))
  244|       |        {
  245|       |            signal(SIGILL, oldHandler);
  246|       |            return false;
  247|       |        }
  248|       |        else
  249|       |        {
  250|       |            __asm__ __volatile__ ("orps %xmm0, %xmm0");
  251|       |            signal(SIGILL, oldHandler);
  252|       |            return true;
  253|       |        }
  254|       |       #endif
  255|       |#else
  256|       |        // TODO: Supports other compiler, assumed is supported by default
  257|       |        return true;
  258|       |#endif
  259|      2|    }
OgrePlatformInformation.cpp:_ZN4OgreL15_isSupportCpuidEv:
   83|      4|    {
   84|       |#if OGRE_COMPILER == OGRE_COMPILER_MSVC
   85|       |        // Visual Studio 2005 & 64-bit compilers always supports __cpuid intrinsic
   86|       |        // note that even though this is a build rather than runtime setting, all
   87|       |        // 64-bit CPUs support this so since binary is 64-bit only we're ok
   88|       |    #if _MSC_VER >= 1400 && defined(_M_X64)
   89|       |        return true;
   90|       |    #else
   91|       |        // If we can modify flag register bit 21, the cpu is supports CPUID instruction
   92|       |        __asm
   93|       |        {
   94|       |            // Read EFLAG
   95|       |            pushfd
   96|       |            pop     eax
   97|       |            mov     ecx, eax
   98|       |
   99|       |            // Modify bit 21
  100|       |            xor     eax, 0x200000
  101|       |            push    eax
  102|       |            popfd
  103|       |
  104|       |            // Read back EFLAG
  105|       |            pushfd
  106|       |            pop     eax
  107|       |
  108|       |            // Restore EFLAG
  109|       |            push    ecx
  110|       |            popfd
  111|       |
  112|       |            // Check bit 21 modifiable
  113|       |            xor     eax, ecx
  114|       |            neg     eax
  115|       |            sbb     eax, eax
  116|       |
  117|       |            // Return values in eax, no return statement requirement here for VC.
  118|       |        }
  119|       |    #endif
  120|       |#elif (OGRE_COMPILER == OGRE_COMPILER_GNUC || OGRE_COMPILER == OGRE_COMPILER_CLANG) && OGRE_PLATFORM != OGRE_PLATFORM_EMSCRIPTEN
  121|       |        #if OGRE_ARCH_TYPE == OGRE_ARCHITECTURE_64
  122|      4|           return true;
  123|       |       #else
  124|       |        unsigned oldFlags, newFlags;
  125|       |        __asm__
  126|       |        (
  127|       |            "pushfl         \n\t"
  128|       |            "pop    %0      \n\t"
  129|       |            "mov    %0, %1  \n\t"
  130|       |            "xor    %2, %0  \n\t"
  131|       |            "push   %0      \n\t"
  132|       |            "popfl          \n\t"
  133|       |            "pushfl         \n\t"
  134|       |            "pop    %0      \n\t"
  135|       |            "push   %1      \n\t"
  136|       |            "popfl          \n\t"
  137|       |            : "=r" (oldFlags), "=r" (newFlags)
  138|       |            : "n" (0x200000)
  139|       |        );
  140|       |        return oldFlags != newFlags;
  141|       |       #endif // 64
  142|       |#else
  143|       |        // TODO: Supports other compiler
  144|       |        return false;
  145|       |#endif
  146|      4|    }

_ZN4Ogre20ResourceGroupManagerC2Ev:
   58|      1|        : mLoadingListener(0), mCurrentGroup(0)
   59|      1|    {
   60|       |        // Create the 'General' group
   61|      1|        createResourceGroup(DEFAULT_RESOURCE_GROUP_NAME, true); // the "General" group is synonymous to global pool
   62|       |        // Create the 'Internal' group
   63|      1|        createResourceGroup(INTERNAL_RESOURCE_GROUP_NAME, true);
   64|       |        // Create the 'Autodetect' group (only used for temp storage)
   65|      1|        createResourceGroup(AUTODETECT_RESOURCE_GROUP_NAME, true); // autodetect includes the global pool
   66|       |        // default world group to the default group
   67|      1|        mWorldGroupName = DEFAULT_RESOURCE_GROUP_NAME;
   68|      1|    }
_ZN4Ogre20ResourceGroupManager19createResourceGroupERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEb:
   83|      3|    {
   84|      3|        LogManager::getSingleton().logMessage("Creating resource group " + name);
   85|      3|        if (getResourceGroup(name))
  ------------------
  |  Branch (85:13): [True: 0, False: 3]
  ------------------
   86|      0|        {
   87|      0|            OGRE_EXCEPT(Exception::ERR_DUPLICATE_ITEM, 
   88|      0|                "Resource group with name '" + name + "' already exists!", 
   89|      0|                "ResourceGroupManager::createResourceGroup");
   90|      0|        }
   91|      3|        ResourceGroup* grp = OGRE_NEW_T(ResourceGroup, MEMCATEGORY_RESOURCE)();
   92|      3|        grp->groupStatus = ResourceGroup::UNINITIALSED;
   93|      3|        grp->name = name;
   94|      3|        grp->inGlobalPool = inGlobalPool;
   95|      3|        grp->customStageCount = 0;
   96|       |
   97|      3|        OGRE_LOCK_AUTO_MUTEX;
   98|      3|        mResourceGroupMap.emplace(name, grp);
   99|      3|    }
_ZNK4Ogre20ResourceGroupManager16getResourceGroupERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEb:
 1003|      3|    {
 1004|      3|        OGRE_LOCK_AUTO_MUTEX;
 1005|      3|        ResourceGroupMap::const_iterator i = mResourceGroupMap.find(name);
 1006|       |
 1007|      3|        if (i == mResourceGroupMap.end())
  ------------------
  |  Branch (1007:13): [True: 3, False: 0]
  ------------------
 1008|      3|        {
 1009|      3|            if (throwOnFailure)
  ------------------
  |  Branch (1009:17): [True: 0, False: 3]
  ------------------
 1010|      3|                OGRE_EXCEPT(Exception::ERR_ITEM_NOT_FOUND, "Cannot locate a resource group called '" + name + "'");
 1011|       |
 1012|      3|            return nullptr;
 1013|      3|        }
 1014|       |
 1015|      0|        return i->second;
 1016|      3|    }

_ZN4Ogre16StreamSerialiser14makeIdentifierERA5_Kc:
  146|      2|    {
  147|      2|        uint32 ret = 0;
  148|     10|        for (size_t i = 0; i < 4; ++i)
  ------------------
  |  Branch (148:28): [True: 8, False: 2]
  ------------------
  149|      8|        {
  150|      8|            ret += (code[i] << (i * 8));
  151|      8|        }
  152|      2|        return ret;
  153|       |
  154|      2|    }

_ZN4Ogre10StringUtil4trimERNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEbb:
   42|      2|    {
   43|       |        /*
   44|       |        size_t lspaces, rspaces, len = length(), i;
   45|       |
   46|       |        lspaces = rspaces = 0;
   47|       |
   48|       |        if( left )
   49|       |        {
   50|       |            // Find spaces / tabs on the left
   51|       |            for( i = 0;
   52|       |                i < len && ( at(i) == ' ' || at(i) == '\t' || at(i) == '\r');
   53|       |                ++lspaces, ++i );
   54|       |        }
   55|       |        
   56|       |        if( right && lspaces < len )
   57|       |        {
   58|       |            // Find spaces / tabs on the right
   59|       |            for( i = len - 1;
   60|       |                i >= 0 && ( at(i) == ' ' || at(i) == '\t' || at(i) == '\r');
   61|       |                rspaces++, i-- );
   62|       |        }
   63|       |
   64|       |        *this = substr(lspaces, len-lspaces-rspaces);
   65|       |        */
   66|      2|        static const String delims = " \t\r\n";
   67|      2|        if(right)
  ------------------
  |  Branch (67:12): [True: 2, False: 0]
  ------------------
   68|      2|            str.erase(str.find_last_not_of(delims)+1); // trim right
   69|      2|        if(left)
  ------------------
  |  Branch (69:12): [True: 2, False: 0]
  ------------------
   70|      2|            str.erase(0, str.find_first_not_of(delims)); // trim left
   71|      2|    }
_ZN4Ogre10StringUtil13splitFilenameERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERS7_SA_:
  358|  13.9k|    {
  359|  13.9k|        String path = qualifiedName;
  360|       |        // Replace \ with / first
  361|  13.9k|        std::replace( path.begin(), path.end(), '\\', '/' );
  362|       |        // split based on final /
  363|  13.9k|        size_t i = path.find_last_of('/');
  364|       |
  365|  13.9k|        if (i == String::npos)
  ------------------
  |  Branch (365:13): [True: 10.8k, False: 3.17k]
  ------------------
  366|  10.8k|        {
  367|  10.8k|            outPath.clear();
  368|  10.8k|            outBasename = qualifiedName;
  369|  10.8k|        }
  370|  3.17k|        else
  371|  3.17k|        {
  372|  3.17k|            outBasename = path.substr(i+1, path.size() - i - 1);
  373|  3.17k|            outPath = path.substr(0, i+1);
  374|  3.17k|        }
  375|       |
  376|  13.9k|    }

_ZN4Ogre7SamplerC2Ev:
   39|      2|        : mBorderColour(ColourValue::Black)
   40|      2|        , mMaxAniso(1)
   41|      2|        , mMipmapBias(0)
   42|      2|        , mMinFilter(FO_LINEAR)
   43|      2|        , mMagFilter(FO_LINEAR)
   44|      2|        , mMipFilter(FO_POINT)
   45|      2|        , mCompareFunc(CMPF_GREATER_EQUAL)
   46|      2|        , mCompareEnabled(false)
   47|      2|        , mDirty(true)
   48|      2|    {
   49|      2|        setAddressingMode(TAM_WRAP);
   50|      2|    }
_ZN4Ogre7Sampler17setAddressingModeERKNS0_17UVWAddressingModeE:
   54|      2|    {
   55|      2|        mAddressMode = uvw;
   56|      2|        mDirty = true;
   57|      2|    }

_ZN4Ogre25EmbeddedZipArchiveFactoryC2Ev:
  386|      1|    EmbeddedZipArchiveFactory::EmbeddedZipArchiveFactory() {}
_ZN4Ogre25EmbeddedZipArchiveFactory14createInstanceERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEb:
  390|  4.16k|    {
  391|  4.16k|        auto it = gEmbeddedFileDataList->find(name);
  392|  4.16k|        if(it == gEmbeddedFileDataList->end())
  ------------------
  |  Branch (392:12): [True: 0, False: 4.16k]
  ------------------
  393|      0|            return NULL;
  394|       |
  395|       |        // TODO: decryptFunc
  396|       |
  397|  4.16k|        return new ZipArchive(name, getType(), it->second.fileData, it->second.fileSize);
  398|  4.16k|    }
_ZN4Ogre25EmbeddedZipArchiveFactory15destroyInstanceEPNS_7ArchiveE:
  400|  4.16k|    {
  401|  4.16k|        removeEmbbeddedFile(ptr->getName());
  402|  4.16k|        ZipArchiveFactory::destroyInstance(ptr);
  403|  4.16k|    }
_ZNK4Ogre25EmbeddedZipArchiveFactory7getTypeEv:
  406|  4.16k|    {
  407|  4.16k|        static String name = "EmbeddedZip";
  408|  4.16k|        return name;
  409|  4.16k|    }
_ZN4Ogre25EmbeddedZipArchiveFactory16addEmbbeddedFileERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEPKhmPFbmPvmE:
  413|  4.16k|    {
  414|  4.16k|        static bool needToInit = true;
  415|  4.16k|        if(needToInit)
  ------------------
  |  Branch (415:12): [True: 1, False: 4.16k]
  ------------------
  416|      1|        {
  417|      1|            needToInit = false;
  418|       |
  419|       |            // we can't be sure when global variables get initialized
  420|       |            // meaning it is possible our list has not been init when this
  421|       |            // function is being called. The solution is to use local
  422|       |            // static members in this function an init the pointers for the
  423|       |            // global here. We know for use that the local static variables
  424|       |            // are create in this stage.
  425|      1|            static EmbbedFileDataList sEmbbedFileDataList;
  426|      1|            gEmbeddedFileDataList = &sEmbbedFileDataList;
  427|      1|        }
  428|       |
  429|  4.16k|        EmbeddedFileData newEmbeddedFileData;
  430|  4.16k|        newEmbeddedFileData.curPos = 0;
  431|  4.16k|        newEmbeddedFileData.isFileOpened = false;
  432|  4.16k|        newEmbeddedFileData.fileData = fileData;
  433|  4.16k|        newEmbeddedFileData.fileSize = fileSize;
  434|  4.16k|        newEmbeddedFileData.decryptFunc = decryptFunc;
  435|  4.16k|        gEmbeddedFileDataList->emplace(name, newEmbeddedFileData);
  436|  4.16k|    }
_ZN4Ogre25EmbeddedZipArchiveFactory19removeEmbbeddedFileERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  439|  4.16k|    {
  440|  4.16k|        gEmbeddedFileDataList->erase(name);
  441|  4.16k|    }
OgreZip.cpp:_ZN4Ogre12_GLOBAL__N_110ZipArchiveC2ERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEESA_PKhm:
  101|  4.16k|        : Archive(name, archType), mZipArchive()
  102|  4.16k|    {
  103|  4.16k|        if(externBuf)
  ------------------
  |  Branch (103:12): [True: 4.16k, False: 0]
  ------------------
  104|  4.16k|            mStream.reset(new MemoryDataStream(const_cast<uint8*>(externBuf), externBufSz));
  105|  4.16k|    }
OgreZip.cpp:_ZN4Ogre12_GLOBAL__N_110ZipArchiveD2Ev:
  108|  4.16k|    {
  109|  4.16k|        unload();
  110|  4.16k|    }
OgreZip.cpp:_ZN4Ogre12_GLOBAL__N_110ZipArchive4loadEv:
  113|  4.16k|    {
  114|  4.16k|        OGRE_LOCK_AUTO_MUTEX;
  115|  4.16k|        if (!mZipArchive.m_pState)
  ------------------
  |  Branch (115:13): [True: 4.16k, False: 0]
  ------------------
  116|  4.16k|        {
  117|  4.16k|            if(!mStream)
  ------------------
  |  Branch (117:16): [True: 0, False: 4.16k]
  ------------------
  118|      0|                mStream = _openFileStream(mName, std::ios::binary);
  119|       |
  120|  4.16k|            mZipArchive.m_pRead = readZipStream;
  121|  4.16k|            mZipArchive.m_pIO_opaque = mStream.get();
  122|       |
  123|  4.16k|            if (!mz_zip_reader_init(&mZipArchive, mStream->size(), 0))
  ------------------
  |  Branch (123:17): [True: 1.33k, False: 2.82k]
  ------------------
  124|  4.16k|                OGRE_EXCEPT(Exception::ERR_INVALIDPARAMS,
  125|  2.82k|                            "could not open zip archive " + mName + ": " +
  126|  2.82k|                                mz_zip_get_error_string(mz_zip_get_last_error(&mZipArchive)));
  127|       |
  128|       |            // Cache names
  129|  2.82k|            mz_uint n = mz_zip_reader_get_num_files(&mZipArchive);
  130|       |            // ZIP filenames are length prefixed by a 16 bit field
  131|  2.82k|            std::vector<char> nameBuf(MZ_UINT16_MAX + 1);
  ------------------
  |  |  702|  2.82k|#define MZ_UINT16_MAX (0xFFFFU)
  ------------------
  132|  15.9k|            for (mz_uint i = 0; i < n; ++i)
  ------------------
  |  Branch (132:33): [True: 13.3k, False: 2.68k]
  ------------------
  133|  13.3k|            {
  134|  13.3k|                mz_zip_archive_file_stat stat;
  135|  13.3k|                if (!mz_zip_reader_file_stat(&mZipArchive, i, &stat))
  ------------------
  |  Branch (135:21): [True: 146, False: 13.1k]
  ------------------
  136|  13.3k|                    OGRE_EXCEPT(Exception::ERR_INVALIDPARAMS,
  137|  13.1k|                                "corrupt zip archive " + mName + ": " +
  138|  13.1k|                                    mz_zip_get_error_string(mz_zip_get_last_error(&mZipArchive)));
  139|       |
  140|  13.1k|                if (!mz_zip_reader_get_filename(&mZipArchive, i, nameBuf.data(), nameBuf.size()))
  ------------------
  |  Branch (140:21): [True: 0, False: 13.1k]
  ------------------
  141|  13.1k|                    OGRE_EXCEPT(Exception::ERR_INVALIDPARAMS,
  142|  13.1k|                                "corrupt zip archive " + mName + ": " +
  143|  13.1k|                                    mz_zip_get_error_string(mz_zip_get_last_error(&mZipArchive)));
  144|       |
  145|  13.1k|                FileInfo info;
  146|  13.1k|                info.archive = this;
  147|  13.1k|                info.filename = nameBuf.data();
  148|       |                // Get basename / path
  149|  13.1k|                StringUtil::splitFilename(info.filename, info.basename, info.path);
  150|       |
  151|       |                // Get sizes
  152|  13.1k|                info.uncompressedSize = stat.m_uncomp_size;
  153|  13.1k|                info.compressedSize = stat.m_comp_size;
  154|       |
  155|       |                // miniz also honours the DOS directory attribute, but zip directories
  156|       |                // are the entries whose name ends in '/', which is what we strip below
  157|  13.1k|                if (!info.filename.empty() && info.filename.back() == '/')
  ------------------
  |  Branch (157:21): [True: 11.0k, False: 2.07k]
  |  Branch (157:47): [True: 825, False: 10.2k]
  ------------------
  158|    825|                {
  159|    825|                    info.filename = info.filename.substr(0, info.filename.length() - 1);
  160|    825|                    StringUtil::splitFilename(info.filename, info.basename, info.path);
  161|       |                    // Set compressed size to -1 for folders; anyway nobody will check
  162|       |                    // the compressed size of a folder, and if he does, its useless anyway
  163|    825|                    info.compressedSize = size_t(-1);
  164|    825|                }
  165|       |#if !OGRE_RESOURCEMANAGER_STRICT
  166|       |                else
  167|       |                {
  168|       |                    info.filename = info.basename;
  169|       |                }
  170|       |#endif
  171|  13.1k|                mFileList.push_back(info);
  172|  13.1k|            }
  173|  2.82k|        }
  174|  4.16k|    }
OgreZip.cpp:_ZN4Ogre12_GLOBAL__N_113readZipStreamEPvmS1_m:
   39|  19.4k|    {
   40|  19.4k|        auto* stream = static_cast<DataStream*>(opaque);
   41|       |        // offsets come from the archive and may point outside of it, e.g. a
   42|       |        // zip64 local header offset that was never validated
   43|  19.4k|        if (fileOfs >= stream->size())
  ------------------
  |  Branch (43:13): [True: 78, False: 19.4k]
  ------------------
   44|     78|            return 0;
   45|  19.4k|        stream->seek(static_cast<size_t>(fileOfs));
   46|  19.4k|        return stream->read(buf, n);
   47|  19.4k|    }
OgreZip.cpp:_ZN4Ogre12_GLOBAL__N_110ZipArchive6unloadEv:
  177|  6.84k|    {
  178|  6.84k|        OGRE_LOCK_AUTO_MUTEX;
  179|  6.84k|        if (mZipArchive.m_pState)
  ------------------
  |  Branch (179:13): [True: 2.82k, False: 4.01k]
  ------------------
  180|  2.82k|        {
  181|  2.82k|            mz_zip_reader_end(&mZipArchive);
  182|  2.82k|            mFileList.clear();
  183|  2.82k|            mStream.reset();
  184|  2.82k|        }
  185|       |    
  186|  6.84k|    }
OgreZip.cpp:_ZNK4Ogre12_GLOBAL__N_110ZipArchive4openERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEb:
  189|  6.04k|    {
  190|       |        // zip is not threadsafe
  191|  6.04k|        OGRE_LOCK_AUTO_MUTEX;
  192|  6.04k|        String lookUpFileName = filename;
  193|  6.04k|        mz_uint32 entryIndex = 0;
  194|       |
  195|  6.04k|#if OGRE_RESOURCEMANAGER_STRICT
  196|  6.04k|        bool open = mz_zip_reader_locate_file_v2(&mZipArchive, lookUpFileName.c_str(), NULL,
  197|  6.04k|                                                 MZ_ZIP_FLAG_CASE_SENSITIVE, &entryIndex);
  198|       |#else
  199|       |        bool open = mz_zip_reader_locate_file_v2(&mZipArchive, lookUpFileName.c_str(), NULL, 0, &entryIndex);
  200|       |        if (!open) // Try if we find the file
  201|       |        {
  202|       |            String basename, path;
  203|       |            StringUtil::splitFilename(lookUpFileName, basename, path);
  204|       |            const FileInfoListPtr fileNfo = findFileInfo(basename, true);
  205|       |            if (fileNfo->size() == 1) // If there are more files with the same do not open anyone
  206|       |            {
  207|       |                Ogre::FileInfo info = fileNfo->at(0);
  208|       |                lookUpFileName = info.path + info.basename;
  209|       |                open = mz_zip_reader_locate_file_v2(&mZipArchive, lookUpFileName.c_str(), NULL, 0, &entryIndex);
  210|       |            }
  211|       |        }
  212|       |#endif
  213|       |
  214|  6.04k|        if (!open)
  ------------------
  |  Branch (214:13): [True: 965, False: 5.07k]
  ------------------
  215|    965|        {
  216|    965|            OGRE_EXCEPT(Exception::ERR_FILE_NOT_FOUND, "could not open "+lookUpFileName);
  217|    965|        }
  218|       |
  219|  5.07k|        mz_zip_archive_file_stat stat;
  220|  5.07k|        if (!mz_zip_reader_file_stat(&mZipArchive, entryIndex, &stat))
  ------------------
  |  Branch (220:13): [True: 0, False: 5.07k]
  ------------------
  221|      0|        {
  222|      0|            OGRE_EXCEPT(Exception::ERR_FILE_NOT_FOUND,
  223|      0|                        "could not read " + lookUpFileName + ": " +
  224|      0|                            mz_zip_get_error_string(mz_zip_get_last_error(&mZipArchive)));
  225|      0|        }
  226|       |
  227|       |        // Construct & return stream
  228|  5.07k|        size_t entrySize = stat.m_uncomp_size;
  229|  5.07k|        size_t compSize  = stat.m_comp_size;
  230|       |        // repetitive log files have a typical ratio of ~50:1, XML 30:1, images 5:1
  231|  5.07k|        const size_t MAX_RATIO = 100;
  232|  5.07k|        if ((entrySize > 0 && (compSize == 0 || entrySize / compSize > MAX_RATIO)) || compSize > mStream->size())
  ------------------
  |  Branch (232:14): [True: 4.25k, False: 821]
  |  Branch (232:32): [True: 48, False: 4.20k]
  |  Branch (232:49): [True: 630, False: 3.57k]
  |  Branch (232:87): [True: 1.07k, False: 3.32k]
  ------------------
  233|  1.74k|        {
  234|  1.74k|            OGRE_EXCEPT(Exception::ERR_INVALIDPARAMS,
  235|  1.74k|                        "zip entry has suspicious compression ratio (possible decompression bomb): " + lookUpFileName);
  236|  1.74k|        }
  237|  3.32k|        auto ret = std::make_shared<MemoryDataStream>(lookUpFileName, entrySize, true, true);
  238|       |
  239|  3.32k|        if (!mz_zip_reader_extract_to_mem_no_alloc(&mZipArchive, entryIndex, ret->getPtr(), ret->size(), 0,
  ------------------
  |  Branch (239:13): [True: 2.70k, False: 627]
  ------------------
  240|  3.32k|                                                   NULL, 0))
  241|  2.70k|        {
  242|  2.70k|            OGRE_EXCEPT(Exception::ERR_FILE_NOT_FOUND, "could not read "+lookUpFileName);
  243|  2.70k|        }
  244|       |
  245|    627|        return ret;
  246|  3.32k|    }
OgreZip.cpp:_ZNK4Ogre12_GLOBAL__N_110ZipArchive4listEbb:
  259|  2.68k|    {
  260|  2.68k|        OGRE_LOCK_AUTO_MUTEX;
  261|  2.68k|        auto ret = std::make_shared<StringVector>();
  262|       |
  263|  2.68k|        for (auto& f : mFileList)
  ------------------
  |  Branch (263:22): [True: 12.4k, False: 2.68k]
  ------------------
  264|  12.4k|            if ((dirs == (f.compressedSize == size_t (-1))) &&
  ------------------
  |  Branch (264:17): [True: 11.6k, False: 818]
  ------------------
  265|  11.6k|                (recursive || f.path.empty()))
  ------------------
  |  Branch (265:18): [True: 11.6k, False: 0]
  |  Branch (265:31): [True: 0, False: 0]
  ------------------
  266|  11.6k|                ret->push_back(f.filename);
  267|       |
  268|  2.68k|        return ret;
  269|  2.68k|    }

mz_crc32:
   97|    300|{
   98|    300|    static const mz_uint32 s_crc_table[256] = {
   99|    300|        0x00000000, 0x77073096, 0xEE0E612C, 0x990951BA, 0x076DC419, 0x706AF48F, 0xE963A535,
  100|    300|        0x9E6495A3, 0x0EDB8832, 0x79DCB8A4, 0xE0D5E91E, 0x97D2D988, 0x09B64C2B, 0x7EB17CBD,
  101|    300|        0xE7B82D07, 0x90BF1D91, 0x1DB71064, 0x6AB020F2, 0xF3B97148, 0x84BE41DE, 0x1ADAD47D,
  102|    300|        0x6DDDE4EB, 0xF4D4B551, 0x83D385C7, 0x136C9856, 0x646BA8C0, 0xFD62F97A, 0x8A65C9EC,
  103|    300|        0x14015C4F, 0x63066CD9, 0xFA0F3D63, 0x8D080DF5, 0x3B6E20C8, 0x4C69105E, 0xD56041E4,
  104|    300|        0xA2677172, 0x3C03E4D1, 0x4B04D447, 0xD20D85FD, 0xA50AB56B, 0x35B5A8FA, 0x42B2986C,
  105|    300|        0xDBBBC9D6, 0xACBCF940, 0x32D86CE3, 0x45DF5C75, 0xDCD60DCF, 0xABD13D59, 0x26D930AC,
  106|    300|        0x51DE003A, 0xC8D75180, 0xBFD06116, 0x21B4F4B5, 0x56B3C423, 0xCFBA9599, 0xB8BDA50F,
  107|    300|        0x2802B89E, 0x5F058808, 0xC60CD9B2, 0xB10BE924, 0x2F6F7C87, 0x58684C11, 0xC1611DAB,
  108|    300|        0xB6662D3D, 0x76DC4190, 0x01DB7106, 0x98D220BC, 0xEFD5102A, 0x71B18589, 0x06B6B51F,
  109|    300|        0x9FBFE4A5, 0xE8B8D433, 0x7807C9A2, 0x0F00F934, 0x9609A88E, 0xE10E9818, 0x7F6A0DBB,
  110|    300|        0x086D3D2D, 0x91646C97, 0xE6635C01, 0x6B6B51F4, 0x1C6C6162, 0x856530D8, 0xF262004E,
  111|    300|        0x6C0695ED, 0x1B01A57B, 0x8208F4C1, 0xF50FC457, 0x65B0D9C6, 0x12B7E950, 0x8BBEB8EA,
  112|    300|        0xFCB9887C, 0x62DD1DDF, 0x15DA2D49, 0x8CD37CF3, 0xFBD44C65, 0x4DB26158, 0x3AB551CE,
  113|    300|        0xA3BC0074, 0xD4BB30E2, 0x4ADFA541, 0x3DD895D7, 0xA4D1C46D, 0xD3D6F4FB, 0x4369E96A,
  114|    300|        0x346ED9FC, 0xAD678846, 0xDA60B8D0, 0x44042D73, 0x33031DE5, 0xAA0A4C5F, 0xDD0D7CC9,
  115|    300|        0x5005713C, 0x270241AA, 0xBE0B1010, 0xC90C2086, 0x5768B525, 0x206F85B3, 0xB966D409,
  116|    300|        0xCE61E49F, 0x5EDEF90E, 0x29D9C998, 0xB0D09822, 0xC7D7A8B4, 0x59B33D17, 0x2EB40D81,
  117|    300|        0xB7BD5C3B, 0xC0BA6CAD, 0xEDB88320, 0x9ABFB3B6, 0x03B6E20C, 0x74B1D29A, 0xEAD54739,
  118|    300|        0x9DD277AF, 0x04DB2615, 0x73DC1683, 0xE3630B12, 0x94643B84, 0x0D6D6A3E, 0x7A6A5AA8,
  119|    300|        0xE40ECF0B, 0x9309FF9D, 0x0A00AE27, 0x7D079EB1, 0xF00F9344, 0x8708A3D2, 0x1E01F268,
  120|    300|        0x6906C2FE, 0xF762575D, 0x806567CB, 0x196C3671, 0x6E6B06E7, 0xFED41B76, 0x89D32BE0,
  121|    300|        0x10DA7A5A, 0x67DD4ACC, 0xF9B9DF6F, 0x8EBEEFF9, 0x17B7BE43, 0x60B08ED5, 0xD6D6A3E8,
  122|    300|        0xA1D1937E, 0x38D8C2C4, 0x4FDFF252, 0xD1BB67F1, 0xA6BC5767, 0x3FB506DD, 0x48B2364B,
  123|    300|        0xD80D2BDA, 0xAF0A1B4C, 0x36034AF6, 0x41047A60, 0xDF60EFC3, 0xA867DF55, 0x316E8EEF,
  124|    300|        0x4669BE79, 0xCB61B38C, 0xBC66831A, 0x256FD2A0, 0x5268E236, 0xCC0C7795, 0xBB0B4703,
  125|    300|        0x220216B9, 0x5505262F, 0xC5BA3BBE, 0xB2BD0B28, 0x2BB45A92, 0x5CB36A04, 0xC2D7FFA7,
  126|    300|        0xB5D0CF31, 0x2CD99E8B, 0x5BDEAE1D, 0x9B64C2B0, 0xEC63F226, 0x756AA39C, 0x026D930A,
  127|    300|        0x9C0906A9, 0xEB0E363F, 0x72076785, 0x05005713, 0x95BF4A82, 0xE2B87A14, 0x7BB12BAE,
  128|    300|        0x0CB61B38, 0x92D28E9B, 0xE5D5BE0D, 0x7CDCEFB7, 0x0BDBDF21, 0x86D3D2D4, 0xF1D4E242,
  129|    300|        0x68DDB3F8, 0x1FDA836E, 0x81BE16CD, 0xF6B9265B, 0x6FB077E1, 0x18B74777, 0x88085AE6,
  130|    300|        0xFF0F6A70, 0x66063BCA, 0x11010B5C, 0x8F659EFF, 0xF862AE69, 0x616BFFD3, 0x166CCF45,
  131|    300|        0xA00AE278, 0xD70DD2EE, 0x4E048354, 0x3903B3C2, 0xA7672661, 0xD06016F7, 0x4969474D,
  132|    300|        0x3E6E77DB, 0xAED16A4A, 0xD9D65ADC, 0x40DF0B66, 0x37D83BF0, 0xA9BCAE53, 0xDEBB9EC5,
  133|    300|        0x47B2CF7F, 0x30B5FFE9, 0xBDBDF21C, 0xCABAC28A, 0x53B39330, 0x24B4A3A6, 0xBAD03605,
  134|    300|        0xCDD70693, 0x54DE5729, 0x23D967BF, 0xB3667A2E, 0xC4614AB8, 0x5D681B02, 0x2A6F2B94,
  135|    300|        0xB40BBE37, 0xC30C8EA1, 0x5A05DF1B, 0x2D02EF8D
  136|    300|    };
  137|       |
  138|    300|    mz_uint32 crc32 = (mz_uint32)crc ^ 0xFFFFFFFF;
  139|    300|    const mz_uint8 *pByte_buf = (const mz_uint8 *)ptr;
  140|       |
  141|   294k|    while (buf_len >= 4)
  ------------------
  |  Branch (141:12): [True: 294k, False: 300]
  ------------------
  142|   294k|    {
  143|   294k|        crc32 = (crc32 >> 8) ^ s_crc_table[(crc32 ^ pByte_buf[0]) & 0xFF];
  144|   294k|        crc32 = (crc32 >> 8) ^ s_crc_table[(crc32 ^ pByte_buf[1]) & 0xFF];
  145|   294k|        crc32 = (crc32 >> 8) ^ s_crc_table[(crc32 ^ pByte_buf[2]) & 0xFF];
  146|   294k|        crc32 = (crc32 >> 8) ^ s_crc_table[(crc32 ^ pByte_buf[3]) & 0xFF];
  147|   294k|        pByte_buf += 4;
  148|   294k|        buf_len -= 4;
  149|   294k|    }
  150|       |
  151|    670|    while (buf_len)
  ------------------
  |  Branch (151:12): [True: 370, False: 300]
  ------------------
  152|    370|    {
  153|    370|        crc32 = (crc32 >> 8) ^ s_crc_table[(crc32 ^ pByte_buf[0]) & 0xFF];
  154|    370|        ++pByte_buf;
  155|    370|        --buf_len;
  156|    370|    }
  157|       |
  158|    300|    return ~crc32;
  159|    300|}
miniz_def_alloc_func:
  168|  5.96k|    {
  169|  5.96k|        (void)opaque, (void)items, (void)size;
  170|  5.96k|        return MZ_MALLOC(items * size);
  ------------------
  |  |  672|  5.96k|#define MZ_MALLOC(x) malloc(x)
  ------------------
  171|  5.96k|    }
miniz_def_free_func:
  173|  18.4k|    {
  174|  18.4k|        (void)opaque, (void)address;
  175|  18.4k|        MZ_FREE(address);
  ------------------
  |  |  673|  18.4k|#define MZ_FREE(x) free(x)
  ------------------
  176|  18.4k|    }
miniz_def_realloc_func:
  178|  9.70k|    {
  179|  9.70k|        (void)opaque, (void)address, (void)items, (void)size;
  180|  9.70k|        return MZ_REALLOC(address, items * size);
  ------------------
  |  |  674|  9.70k|#define MZ_REALLOC(p, x) realloc(p, x)
  ------------------
  181|  9.70k|    }
tinfl_decompress:
 2488|  1.80k|    {
 2489|  1.80k|        static const mz_uint16 s_length_base[31] = { 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0 };
 2490|  1.80k|        static const mz_uint8 s_length_extra[31] = { 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0, 0, 0 };
 2491|  1.80k|        static const mz_uint16 s_dist_base[32] = { 1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577, 0, 0 };
 2492|  1.80k|        static const mz_uint8 s_dist_extra[32] = { 0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13 };
 2493|  1.80k|        static const mz_uint8 s_length_dezigzag[19] = { 16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15 };
 2494|  1.80k|        static const mz_uint16 s_min_table_sizes[3] = { 257, 1, 4 };
 2495|       |
 2496|  1.80k|        mz_int16 *pTrees[3];
 2497|  1.80k|        mz_uint8 *pCode_sizes[3];
 2498|       |
 2499|  1.80k|        tinfl_status status = TINFL_STATUS_FAILED;
 2500|  1.80k|        mz_uint32 num_bits, dist, counter, num_extra;
 2501|  1.80k|        tinfl_bit_buf_t bit_buf;
 2502|  1.80k|        const mz_uint8 *pIn_buf_cur = pIn_buf_next, *const pIn_buf_end = pIn_buf_next + *pIn_buf_size;
 2503|  1.80k|        mz_uint8 *pOut_buf_cur = pOut_buf_next, *const pOut_buf_end = pOut_buf_next ? pOut_buf_next + *pOut_buf_size : NULL;
  ------------------
  |  Branch (2503:71): [True: 1.80k, False: 0]
  ------------------
 2504|  1.80k|        size_t out_buf_size_mask = (decomp_flags & TINFL_FLAG_USING_NON_WRAPPING_OUTPUT_BUF) ? (size_t)-1 : ((pOut_buf_next - pOut_buf_start) + *pOut_buf_size) - 1, dist_from_out_buf_start;
  ------------------
  |  Branch (2504:36): [True: 1.80k, False: 0]
  ------------------
 2505|       |
 2506|       |        /* Ensure the output buffer's size is a power of 2, unless the output buffer is large enough to hold the entire output file (in which case it doesn't matter). */
 2507|  1.80k|        if (((out_buf_size_mask + 1) & out_buf_size_mask) || (pOut_buf_next < pOut_buf_start))
  ------------------
  |  Branch (2507:13): [True: 0, False: 1.80k]
  |  Branch (2507:62): [True: 0, False: 1.80k]
  ------------------
 2508|      0|        {
 2509|      0|            *pIn_buf_size = *pOut_buf_size = 0;
 2510|      0|            return TINFL_STATUS_BAD_PARAM;
 2511|      0|        }
 2512|       |
 2513|  1.80k|        pTrees[0] = r->m_tree_0;
 2514|  1.80k|        pTrees[1] = r->m_tree_1;
 2515|  1.80k|        pTrees[2] = r->m_tree_2;
 2516|  1.80k|        pCode_sizes[0] = r->m_code_size_0;
 2517|  1.80k|        pCode_sizes[1] = r->m_code_size_1;
 2518|  1.80k|        pCode_sizes[2] = r->m_code_size_2;
 2519|       |
 2520|  1.80k|        num_bits = r->m_num_bits;
 2521|  1.80k|        bit_buf = r->m_bit_buf;
 2522|  1.80k|        dist = r->m_dist;
 2523|  1.80k|        counter = r->m_counter;
 2524|  1.80k|        num_extra = r->m_num_extra;
 2525|  1.80k|        dist_from_out_buf_start = r->m_dist_from_out_buf_start;
 2526|  1.80k|        TINFL_CR_BEGIN
  ------------------
  |  | 2342|  3.60k|    switch (r->m_state) \
  |  |  ------------------
  |  |  |  Branch (2342:13): [True: 1.80k, False: 0]
  |  |  ------------------
  |  | 2343|  3.60k|    {                   \
  |  | 2344|  1.80k|        case 0:
  |  |  ------------------
  |  |  |  Branch (2344:9): [True: 1.80k, False: 0]
  |  |  ------------------
  ------------------
 2527|       |
 2528|  1.80k|        bit_buf = num_bits = dist = counter = num_extra = r->m_zhdr0 = r->m_zhdr1 = 0;
 2529|  1.80k|        r->m_z_adler32 = r->m_check_adler32 = 1;
 2530|  1.80k|        if (decomp_flags & TINFL_FLAG_PARSE_ZLIB_HEADER)
  ------------------
  |  Branch (2530:13): [True: 0, False: 1.80k]
  ------------------
 2531|      0|        {
 2532|      0|            TINFL_GET_BYTE(1, r->m_zhdr0);
  ------------------
  |  | 2366|      0|    do                                                                                                                                                           \
  |  | 2367|      0|    {                                                                                                                                                            \
  |  | 2368|      0|        while (pIn_buf_cur >= pIn_buf_end)                                                                                                                       \
  |  |  ------------------
  |  |  |  Branch (2368:16): [True: 0, False: 0]
  |  |  ------------------
  |  | 2369|      0|        {                                                                                                                                                        \
  |  | 2370|      0|            TINFL_CR_RETURN(state_index, (decomp_flags & TINFL_FLAG_HAS_MORE_INPUT) ? TINFL_STATUS_NEEDS_MORE_INPUT : TINFL_STATUS_FAILED_CANNOT_MAKE_PROGRESS); \
  |  |  ------------------
  |  |  |  | 2346|      0|    do                                       \
  |  |  |  | 2347|      0|    {                                        \
  |  |  |  | 2348|      0|        status = result;                     \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (2348:18): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  | 2349|      0|        r->m_state = state_index;            \
  |  |  |  | 2350|      0|        goto common_exit;                    \
  |  |  |  | 2351|      0|        case state_index:;                   \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (2351:9): [True: 0, False: 1.80k]
  |  |  |  |  ------------------
  |  |  |  | 2352|      0|    }                                        \
  |  |  |  | 2353|      0|    MZ_MACRO_END
  |  |  |  |  ------------------
  |  |  |  |  |  |  644|      0|#define MZ_MACRO_END while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (644:29): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  | 2371|      0|        }                                                                                                                                                        \
  |  | 2372|      0|        c = *pIn_buf_cur++;                                                                                                                                      \
  |  | 2373|      0|    }                                                                                                                                                            \
  |  | 2374|      0|    MZ_MACRO_END
  |  |  ------------------
  |  |  |  |  644|      0|#define MZ_MACRO_END while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (644:29): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2533|      0|            TINFL_GET_BYTE(2, r->m_zhdr1);
  ------------------
  |  | 2366|      0|    do                                                                                                                                                           \
  |  | 2367|      0|    {                                                                                                                                                            \
  |  | 2368|      0|        while (pIn_buf_cur >= pIn_buf_end)                                                                                                                       \
  |  |  ------------------
  |  |  |  Branch (2368:16): [True: 0, False: 0]
  |  |  ------------------
  |  | 2369|      0|        {                                                                                                                                                        \
  |  | 2370|      0|            TINFL_CR_RETURN(state_index, (decomp_flags & TINFL_FLAG_HAS_MORE_INPUT) ? TINFL_STATUS_NEEDS_MORE_INPUT : TINFL_STATUS_FAILED_CANNOT_MAKE_PROGRESS); \
  |  |  ------------------
  |  |  |  | 2346|      0|    do                                       \
  |  |  |  | 2347|      0|    {                                        \
  |  |  |  | 2348|      0|        status = result;                     \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (2348:18): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  | 2349|      0|        r->m_state = state_index;            \
  |  |  |  | 2350|      0|        goto common_exit;                    \
  |  |  |  | 2351|      0|        case state_index:;                   \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (2351:9): [True: 0, False: 1.80k]
  |  |  |  |  ------------------
  |  |  |  | 2352|      0|    }                                        \
  |  |  |  | 2353|      0|    MZ_MACRO_END
  |  |  |  |  ------------------
  |  |  |  |  |  |  644|      0|#define MZ_MACRO_END while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (644:29): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  | 2371|      0|        }                                                                                                                                                        \
  |  | 2372|      0|        c = *pIn_buf_cur++;                                                                                                                                      \
  |  | 2373|      0|    }                                                                                                                                                            \
  |  | 2374|      0|    MZ_MACRO_END
  |  |  ------------------
  |  |  |  |  644|      0|#define MZ_MACRO_END while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (644:29): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2534|      0|            counter = (((r->m_zhdr0 * 256 + r->m_zhdr1) % 31 != 0) || (r->m_zhdr1 & 32) || ((r->m_zhdr0 & 15) != 8));
  ------------------
  |  Branch (2534:24): [True: 0, False: 0]
  |  Branch (2534:71): [True: 0, False: 0]
  |  Branch (2534:92): [True: 0, False: 0]
  ------------------
 2535|      0|            if (!(decomp_flags & TINFL_FLAG_USING_NON_WRAPPING_OUTPUT_BUF))
  ------------------
  |  Branch (2535:17): [True: 0, False: 0]
  ------------------
 2536|      0|                counter |= (((1U << (8U + (r->m_zhdr0 >> 4))) > 32768U) || ((out_buf_size_mask + 1) < (size_t)((size_t)1 << (8U + (r->m_zhdr0 >> 4)))));
  ------------------
  |  Branch (2536:29): [True: 0, False: 0]
  |  Branch (2536:76): [True: 0, False: 0]
  ------------------
 2537|      0|            if (counter)
  ------------------
  |  Branch (2537:17): [True: 0, False: 0]
  ------------------
 2538|      0|            {
 2539|      0|                TINFL_CR_RETURN_FOREVER(36, TINFL_STATUS_FAILED);
  ------------------
  |  | 2355|      0|    do                                               \
  |  | 2356|      0|    {                                                \
  |  | 2357|      0|        for (;;)                                     \
  |  | 2358|      0|        {                                            \
  |  | 2359|      0|            TINFL_CR_RETURN(state_index, result);    \
  |  |  ------------------
  |  |  |  | 2346|      0|    do                                       \
  |  |  |  | 2347|      0|    {                                        \
  |  |  |  | 2348|      0|        status = result;                     \
  |  |  |  | 2349|      0|        r->m_state = state_index;            \
  |  |  |  | 2350|      0|        goto common_exit;                    \
  |  |  |  | 2351|      0|        case state_index:;                   \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (2351:9): [True: 0, False: 1.80k]
  |  |  |  |  ------------------
  |  |  |  | 2352|      0|    }                                        \
  |  |  |  | 2353|      0|    MZ_MACRO_END
  |  |  |  |  ------------------
  |  |  |  |  |  |  644|      0|#define MZ_MACRO_END while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (644:29): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  | 2360|      0|        }                                            \
  |  | 2361|      0|    }                                                \
  |  | 2362|      0|    MZ_MACRO_END
  |  |  ------------------
  |  |  |  |  644|      0|#define MZ_MACRO_END while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (644:29): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2540|      0|            }
 2541|      0|        }
 2542|       |
 2543|  1.80k|        do
 2544|  7.44k|        {
 2545|  7.44k|            TINFL_GET_BITS(3, r->m_final, 3);
  ------------------
  |  | 2396|  7.44k|    do                                       \
  |  | 2397|  7.44k|    {                                        \
  |  | 2398|  7.44k|        if (num_bits < (mz_uint)(n))         \
  |  |  ------------------
  |  |  |  Branch (2398:13): [True: 3.57k, False: 3.87k]
  |  |  ------------------
  |  | 2399|  7.44k|        {                                    \
  |  | 2400|  3.57k|            TINFL_NEED_BITS(state_index, n); \
  |  |  ------------------
  |  |  |  | 2377|  3.57k|    do                                                 \
  |  |  |  | 2378|  3.57k|    {                                                  \
  |  |  |  | 2379|  3.57k|        mz_uint c;                                     \
  |  |  |  | 2380|  3.57k|        TINFL_GET_BYTE(state_index, c);                \
  |  |  |  |  ------------------
  |  |  |  |  |  | 2366|  3.57k|    do                                                                                                                                                           \
  |  |  |  |  |  | 2367|  3.57k|    {                                                                                                                                                            \
  |  |  |  |  |  | 2368|  3.57k|        while (pIn_buf_cur >= pIn_buf_end)                                                                                                                       \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (2368:16): [True: 26, False: 3.54k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  | 2369|  3.57k|        {                                                                                                                                                        \
  |  |  |  |  |  | 2370|     26|            TINFL_CR_RETURN(state_index, (decomp_flags & TINFL_FLAG_HAS_MORE_INPUT) ? TINFL_STATUS_NEEDS_MORE_INPUT : TINFL_STATUS_FAILED_CANNOT_MAKE_PROGRESS); \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  | 2346|     26|    do                                       \
  |  |  |  |  |  |  |  | 2347|     26|    {                                        \
  |  |  |  |  |  |  |  | 2348|     52|        status = result;                     \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (2348:18): [True: 0, False: 26]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  | 2349|     26|        r->m_state = state_index;            \
  |  |  |  |  |  |  |  | 2350|     26|        goto common_exit;                    \
  |  |  |  |  |  |  |  | 2351|     26|        case state_index:;                   \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (2351:9): [True: 0, False: 1.80k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  | 2352|      0|    }                                        \
  |  |  |  |  |  |  |  | 2353|     26|    MZ_MACRO_END
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  644|     26|#define MZ_MACRO_END while (0)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (644:29): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  | 2371|     26|        }                                                                                                                                                        \
  |  |  |  |  |  | 2372|  3.57k|        c = *pIn_buf_cur++;                                                                                                                                      \
  |  |  |  |  |  | 2373|  3.54k|    }                                                                                                                                                            \
  |  |  |  |  |  | 2374|  3.57k|    MZ_MACRO_END
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  644|  3.57k|#define MZ_MACRO_END while (0)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (644:29): [Folded, False: 3.54k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  | 2381|  3.57k|        bit_buf |= (((tinfl_bit_buf_t)c) << num_bits); \
  |  |  |  | 2382|  3.54k|        num_bits += 8;                                 \
  |  |  |  | 2383|  3.54k|    } while (num_bits < (mz_uint)(n))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (2383:14): [True: 0, False: 3.54k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  | 2401|  3.57k|        }                                    \
  |  | 2402|  7.44k|        b = bit_buf & ((1 << (n)) - 1);      \
  |  | 2403|  7.41k|        bit_buf >>= (n);                     \
  |  | 2404|  7.41k|        num_bits -= (n);                     \
  |  | 2405|  7.41k|    }                                        \
  |  | 2406|  7.44k|    MZ_MACRO_END
  |  |  ------------------
  |  |  |  |  644|  7.44k|#define MZ_MACRO_END while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (644:29): [Folded, False: 7.41k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2546|  7.41k|            r->m_type = r->m_final >> 1;
 2547|  7.41k|            if (r->m_type == 0)
  ------------------
  |  Branch (2547:17): [True: 2.34k, False: 5.07k]
  ------------------
 2548|  2.34k|            {
 2549|  2.34k|                TINFL_SKIP_BITS(5, num_bits & 7);
  ------------------
  |  | 2385|  2.34k|    do                                       \
  |  | 2386|  2.34k|    {                                        \
  |  | 2387|  2.34k|        if (num_bits < (mz_uint)(n))         \
  |  |  ------------------
  |  |  |  Branch (2387:13): [True: 0, False: 2.34k]
  |  |  ------------------
  |  | 2388|  2.34k|        {                                    \
  |  | 2389|      0|            TINFL_NEED_BITS(state_index, n); \
  |  |  ------------------
  |  |  |  | 2377|      0|    do                                                 \
  |  |  |  | 2378|      0|    {                                                  \
  |  |  |  | 2379|      0|        mz_uint c;                                     \
  |  |  |  | 2380|      0|        TINFL_GET_BYTE(state_index, c);                \
  |  |  |  |  ------------------
  |  |  |  |  |  | 2366|      0|    do                                                                                                                                                           \
  |  |  |  |  |  | 2367|      0|    {                                                                                                                                                            \
  |  |  |  |  |  | 2368|      0|        while (pIn_buf_cur >= pIn_buf_end)                                                                                                                       \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (2368:16): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  | 2369|      0|        {                                                                                                                                                        \
  |  |  |  |  |  | 2370|      0|            TINFL_CR_RETURN(state_index, (decomp_flags & TINFL_FLAG_HAS_MORE_INPUT) ? TINFL_STATUS_NEEDS_MORE_INPUT : TINFL_STATUS_FAILED_CANNOT_MAKE_PROGRESS); \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  | 2346|      0|    do                                       \
  |  |  |  |  |  |  |  | 2347|      0|    {                                        \
  |  |  |  |  |  |  |  | 2348|      0|        status = result;                     \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (2348:18): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  | 2349|      0|        r->m_state = state_index;            \
  |  |  |  |  |  |  |  | 2350|      0|        goto common_exit;                    \
  |  |  |  |  |  |  |  | 2351|      0|        case state_index:;                   \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (2351:9): [True: 0, False: 1.80k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  | 2352|      0|    }                                        \
  |  |  |  |  |  |  |  | 2353|      0|    MZ_MACRO_END
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  644|      0|#define MZ_MACRO_END while (0)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (644:29): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  | 2371|      0|        }                                                                                                                                                        \
  |  |  |  |  |  | 2372|      0|        c = *pIn_buf_cur++;                                                                                                                                      \
  |  |  |  |  |  | 2373|      0|    }                                                                                                                                                            \
  |  |  |  |  |  | 2374|      0|    MZ_MACRO_END
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  644|      0|#define MZ_MACRO_END while (0)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (644:29): [Folded, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  | 2381|      0|        bit_buf |= (((tinfl_bit_buf_t)c) << num_bits); \
  |  |  |  | 2382|      0|        num_bits += 8;                                 \
  |  |  |  | 2383|      0|    } while (num_bits < (mz_uint)(n))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (2383:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  | 2390|      0|        }                                    \
  |  | 2391|  2.34k|        bit_buf >>= (n);                     \
  |  | 2392|  2.34k|        num_bits -= (n);                     \
  |  | 2393|  2.34k|    }                                        \
  |  | 2394|  2.34k|    MZ_MACRO_END
  |  |  ------------------
  |  |  |  |  644|  2.34k|#define MZ_MACRO_END while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (644:29): [Folded, False: 2.34k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2550|  11.6k|                for (counter = 0; counter < 4; ++counter)
  ------------------
  |  Branch (2550:35): [True: 9.31k, False: 2.31k]
  ------------------
 2551|  9.31k|                {
 2552|  9.31k|                    if (num_bits)
  ------------------
  |  Branch (2552:25): [True: 7.42k, False: 1.89k]
  ------------------
 2553|  7.42k|                        TINFL_GET_BITS(6, r->m_raw_header[counter], 8);
  ------------------
  |  | 2396|  7.42k|    do                                       \
  |  | 2397|  7.42k|    {                                        \
  |  | 2398|  7.42k|        if (num_bits < (mz_uint)(n))         \
  |  |  ------------------
  |  |  |  Branch (2398:13): [True: 0, False: 7.42k]
  |  |  ------------------
  |  | 2399|  7.42k|        {                                    \
  |  | 2400|      0|            TINFL_NEED_BITS(state_index, n); \
  |  |  ------------------
  |  |  |  | 2377|      0|    do                                                 \
  |  |  |  | 2378|      0|    {                                                  \
  |  |  |  | 2379|      0|        mz_uint c;                                     \
  |  |  |  | 2380|      0|        TINFL_GET_BYTE(state_index, c);                \
  |  |  |  |  ------------------
  |  |  |  |  |  | 2366|      0|    do                                                                                                                                                           \
  |  |  |  |  |  | 2367|      0|    {                                                                                                                                                            \
  |  |  |  |  |  | 2368|      0|        while (pIn_buf_cur >= pIn_buf_end)                                                                                                                       \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (2368:16): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  | 2369|      0|        {                                                                                                                                                        \
  |  |  |  |  |  | 2370|      0|            TINFL_CR_RETURN(state_index, (decomp_flags & TINFL_FLAG_HAS_MORE_INPUT) ? TINFL_STATUS_NEEDS_MORE_INPUT : TINFL_STATUS_FAILED_CANNOT_MAKE_PROGRESS); \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  | 2346|      0|    do                                       \
  |  |  |  |  |  |  |  | 2347|      0|    {                                        \
  |  |  |  |  |  |  |  | 2348|      0|        status = result;                     \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (2348:18): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  | 2349|      0|        r->m_state = state_index;            \
  |  |  |  |  |  |  |  | 2350|      0|        goto common_exit;                    \
  |  |  |  |  |  |  |  | 2351|      0|        case state_index:;                   \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (2351:9): [True: 0, False: 1.80k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  | 2352|      0|    }                                        \
  |  |  |  |  |  |  |  | 2353|      0|    MZ_MACRO_END
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  644|      0|#define MZ_MACRO_END while (0)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (644:29): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  | 2371|      0|        }                                                                                                                                                        \
  |  |  |  |  |  | 2372|      0|        c = *pIn_buf_cur++;                                                                                                                                      \
  |  |  |  |  |  | 2373|      0|    }                                                                                                                                                            \
  |  |  |  |  |  | 2374|      0|    MZ_MACRO_END
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  644|      0|#define MZ_MACRO_END while (0)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (644:29): [Folded, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  | 2381|      0|        bit_buf |= (((tinfl_bit_buf_t)c) << num_bits); \
  |  |  |  | 2382|      0|        num_bits += 8;                                 \
  |  |  |  | 2383|      0|    } while (num_bits < (mz_uint)(n))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (2383:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  | 2401|      0|        }                                    \
  |  | 2402|  7.42k|        b = bit_buf & ((1 << (n)) - 1);      \
  |  | 2403|  7.42k|        bit_buf >>= (n);                     \
  |  | 2404|  7.42k|        num_bits -= (n);                     \
  |  | 2405|  7.42k|    }                                        \
  |  | 2406|  7.42k|    MZ_MACRO_END
  |  |  ------------------
  |  |  |  |  644|  7.42k|#define MZ_MACRO_END while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (644:29): [Folded, False: 7.42k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2554|  1.89k|                    else
 2555|  1.89k|                        TINFL_GET_BYTE(7, r->m_raw_header[counter]);
  ------------------
  |  | 2366|  1.89k|    do                                                                                                                                                           \
  |  | 2367|  1.89k|    {                                                                                                                                                            \
  |  | 2368|  1.89k|        while (pIn_buf_cur >= pIn_buf_end)                                                                                                                       \
  |  |  ------------------
  |  |  |  Branch (2368:16): [True: 35, False: 1.85k]
  |  |  ------------------
  |  | 2369|  1.89k|        {                                                                                                                                                        \
  |  | 2370|     35|            TINFL_CR_RETURN(state_index, (decomp_flags & TINFL_FLAG_HAS_MORE_INPUT) ? TINFL_STATUS_NEEDS_MORE_INPUT : TINFL_STATUS_FAILED_CANNOT_MAKE_PROGRESS); \
  |  |  ------------------
  |  |  |  | 2346|     35|    do                                       \
  |  |  |  | 2347|     35|    {                                        \
  |  |  |  | 2348|     70|        status = result;                     \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (2348:18): [True: 0, False: 35]
  |  |  |  |  ------------------
  |  |  |  | 2349|     35|        r->m_state = state_index;            \
  |  |  |  | 2350|     35|        goto common_exit;                    \
  |  |  |  | 2351|     35|        case state_index:;                   \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (2351:9): [True: 0, False: 1.80k]
  |  |  |  |  ------------------
  |  |  |  | 2352|      0|    }                                        \
  |  |  |  | 2353|     35|    MZ_MACRO_END
  |  |  |  |  ------------------
  |  |  |  |  |  |  644|     35|#define MZ_MACRO_END while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (644:29): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  | 2371|     35|        }                                                                                                                                                        \
  |  | 2372|  1.89k|        c = *pIn_buf_cur++;                                                                                                                                      \
  |  | 2373|  1.85k|    }                                                                                                                                                            \
  |  | 2374|  1.89k|    MZ_MACRO_END
  |  |  ------------------
  |  |  |  |  644|  1.89k|#define MZ_MACRO_END while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (644:29): [Folded, False: 1.85k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2556|  9.31k|                }
 2557|  2.31k|                if ((counter = (r->m_raw_header[0] | (r->m_raw_header[1] << 8))) != (mz_uint)(0xFFFF ^ (r->m_raw_header[2] | (r->m_raw_header[3] << 8))))
  ------------------
  |  Branch (2557:21): [True: 108, False: 2.20k]
  ------------------
 2558|    108|                {
 2559|    108|                    TINFL_CR_RETURN_FOREVER(39, TINFL_STATUS_FAILED);
  ------------------
  |  | 2355|    108|    do                                               \
  |  | 2356|    108|    {                                                \
  |  | 2357|    108|        for (;;)                                     \
  |  | 2358|    108|        {                                            \
  |  | 2359|    108|            TINFL_CR_RETURN(state_index, result);    \
  |  |  ------------------
  |  |  |  | 2346|    108|    do                                       \
  |  |  |  | 2347|    108|    {                                        \
  |  |  |  | 2348|    108|        status = result;                     \
  |  |  |  | 2349|    108|        r->m_state = state_index;            \
  |  |  |  | 2350|    108|        goto common_exit;                    \
  |  |  |  | 2351|    108|        case state_index:;                   \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (2351:9): [True: 0, False: 1.80k]
  |  |  |  |  ------------------
  |  |  |  | 2352|      0|    }                                        \
  |  |  |  | 2353|    108|    MZ_MACRO_END
  |  |  |  |  ------------------
  |  |  |  |  |  |  644|    108|#define MZ_MACRO_END while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (644:29): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  | 2360|    108|        }                                            \
  |  | 2361|    108|    }                                                \
  |  | 2362|    108|    MZ_MACRO_END
  |  |  ------------------
  |  |  |  |  644|    108|#define MZ_MACRO_END while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (644:29): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2560|    108|                }
 2561|  2.72k|                while ((counter) && (num_bits))
  ------------------
  |  Branch (2561:24): [True: 1.72k, False: 996]
  |  Branch (2561:37): [True: 522, False: 1.20k]
  ------------------
 2562|    522|                {
 2563|    522|                    TINFL_GET_BITS(51, dist, 8);
  ------------------
  |  | 2396|    522|    do                                       \
  |  | 2397|    522|    {                                        \
  |  | 2398|    522|        if (num_bits < (mz_uint)(n))         \
  |  |  ------------------
  |  |  |  Branch (2398:13): [True: 0, False: 522]
  |  |  ------------------
  |  | 2399|    522|        {                                    \
  |  | 2400|      0|            TINFL_NEED_BITS(state_index, n); \
  |  |  ------------------
  |  |  |  | 2377|      0|    do                                                 \
  |  |  |  | 2378|      0|    {                                                  \
  |  |  |  | 2379|      0|        mz_uint c;                                     \
  |  |  |  | 2380|      0|        TINFL_GET_BYTE(state_index, c);                \
  |  |  |  |  ------------------
  |  |  |  |  |  | 2366|      0|    do                                                                                                                                                           \
  |  |  |  |  |  | 2367|      0|    {                                                                                                                                                            \
  |  |  |  |  |  | 2368|      0|        while (pIn_buf_cur >= pIn_buf_end)                                                                                                                       \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (2368:16): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  | 2369|      0|        {                                                                                                                                                        \
  |  |  |  |  |  | 2370|      0|            TINFL_CR_RETURN(state_index, (decomp_flags & TINFL_FLAG_HAS_MORE_INPUT) ? TINFL_STATUS_NEEDS_MORE_INPUT : TINFL_STATUS_FAILED_CANNOT_MAKE_PROGRESS); \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  | 2346|      0|    do                                       \
  |  |  |  |  |  |  |  | 2347|      0|    {                                        \
  |  |  |  |  |  |  |  | 2348|      0|        status = result;                     \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (2348:18): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  | 2349|      0|        r->m_state = state_index;            \
  |  |  |  |  |  |  |  | 2350|      0|        goto common_exit;                    \
  |  |  |  |  |  |  |  | 2351|      0|        case state_index:;                   \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (2351:9): [True: 0, False: 1.80k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  | 2352|      0|    }                                        \
  |  |  |  |  |  |  |  | 2353|      0|    MZ_MACRO_END
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  644|      0|#define MZ_MACRO_END while (0)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (644:29): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  | 2371|      0|        }                                                                                                                                                        \
  |  |  |  |  |  | 2372|      0|        c = *pIn_buf_cur++;                                                                                                                                      \
  |  |  |  |  |  | 2373|      0|    }                                                                                                                                                            \
  |  |  |  |  |  | 2374|      0|    MZ_MACRO_END
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  644|      0|#define MZ_MACRO_END while (0)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (644:29): [Folded, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  | 2381|      0|        bit_buf |= (((tinfl_bit_buf_t)c) << num_bits); \
  |  |  |  | 2382|      0|        num_bits += 8;                                 \
  |  |  |  | 2383|      0|    } while (num_bits < (mz_uint)(n))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (2383:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  | 2401|      0|        }                                    \
  |  | 2402|    522|        b = bit_buf & ((1 << (n)) - 1);      \
  |  | 2403|    522|        bit_buf >>= (n);                     \
  |  | 2404|    522|        num_bits -= (n);                     \
  |  | 2405|    522|    }                                        \
  |  | 2406|    522|    MZ_MACRO_END
  |  |  ------------------
  |  |  |  |  644|    522|#define MZ_MACRO_END while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (644:29): [Folded, False: 522]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2564|    522|                    while (pOut_buf_cur >= pOut_buf_end)
  ------------------
  |  Branch (2564:28): [True: 0, False: 522]
  ------------------
 2565|      0|                    {
 2566|      0|                        TINFL_CR_RETURN(52, TINFL_STATUS_HAS_MORE_OUTPUT);
  ------------------
  |  | 2346|      0|    do                                       \
  |  | 2347|      0|    {                                        \
  |  | 2348|      0|        status = result;                     \
  |  | 2349|      0|        r->m_state = state_index;            \
  |  | 2350|      0|        goto common_exit;                    \
  |  | 2351|      0|        case state_index:;                   \
  |  |  ------------------
  |  |  |  Branch (2351:9): [True: 0, False: 1.80k]
  |  |  ------------------
  |  | 2352|      0|    }                                        \
  |  | 2353|      0|    MZ_MACRO_END
  |  |  ------------------
  |  |  |  |  644|      0|#define MZ_MACRO_END while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (644:29): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2567|      0|                    }
 2568|    522|                    *pOut_buf_cur++ = (mz_uint8)dist;
 2569|    522|                    counter--;
 2570|    522|                }
 2571|  3.40k|                while (counter)
  ------------------
  |  Branch (2571:24): [True: 1.30k, False: 2.10k]
  ------------------
 2572|  1.30k|                {
 2573|  1.30k|                    size_t n;
 2574|  1.30k|                    while (pOut_buf_cur >= pOut_buf_end)
  ------------------
  |  Branch (2574:28): [True: 32, False: 1.27k]
  ------------------
 2575|     32|                    {
 2576|     32|                        TINFL_CR_RETURN(9, TINFL_STATUS_HAS_MORE_OUTPUT);
  ------------------
  |  | 2346|     32|    do                                       \
  |  | 2347|     32|    {                                        \
  |  | 2348|     32|        status = result;                     \
  |  | 2349|     32|        r->m_state = state_index;            \
  |  | 2350|     32|        goto common_exit;                    \
  |  | 2351|     32|        case state_index:;                   \
  |  |  ------------------
  |  |  |  Branch (2351:9): [True: 0, False: 1.80k]
  |  |  ------------------
  |  | 2352|      0|    }                                        \
  |  | 2353|     32|    MZ_MACRO_END
  |  |  ------------------
  |  |  |  |  644|     32|#define MZ_MACRO_END while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (644:29): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2577|     32|                    }
 2578|  1.27k|                    while (pIn_buf_cur >= pIn_buf_end)
  ------------------
  |  Branch (2578:28): [True: 64, False: 1.20k]
  ------------------
 2579|     64|                    {
 2580|     64|                        TINFL_CR_RETURN(38, (decomp_flags & TINFL_FLAG_HAS_MORE_INPUT) ? TINFL_STATUS_NEEDS_MORE_INPUT : TINFL_STATUS_FAILED_CANNOT_MAKE_PROGRESS);
  ------------------
  |  | 2346|     64|    do                                       \
  |  | 2347|     64|    {                                        \
  |  | 2348|    128|        status = result;                     \
  |  |  ------------------
  |  |  |  Branch (2348:18): [True: 0, False: 64]
  |  |  ------------------
  |  | 2349|     64|        r->m_state = state_index;            \
  |  | 2350|     64|        goto common_exit;                    \
  |  | 2351|     64|        case state_index:;                   \
  |  |  ------------------
  |  |  |  Branch (2351:9): [True: 0, False: 1.80k]
  |  |  ------------------
  |  | 2352|      0|    }                                        \
  |  | 2353|     64|    MZ_MACRO_END
  |  |  ------------------
  |  |  |  |  644|     64|#define MZ_MACRO_END while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (644:29): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2581|     64|                    }
 2582|  1.20k|                    n = MZ_MIN(MZ_MIN((size_t)(pOut_buf_end - pOut_buf_cur), (size_t)(pIn_buf_end - pIn_buf_cur)), counter);
  ------------------
  |  |  678|  2.41k|#define MZ_MIN(a, b) (((a) < (b)) ? (a) : (b))
  |  |  ------------------
  |  |  |  Branch (678:23): [True: 96, False: 1.11k]
  |  |  |  Branch (678:25): [True: 270, False: 936]
  |  |  |  Branch (678:38): [True: 32, False: 64]
  |  |  ------------------
  ------------------
 2583|  1.20k|                    TINFL_MEMCPY(pOut_buf_cur, pIn_buf_cur, n);
  ------------------
  |  | 2338|  1.20k|#define TINFL_MEMCPY(d, s, l) memcpy(d, s, l)
  ------------------
 2584|  1.20k|                    pIn_buf_cur += n;
 2585|  1.20k|                    pOut_buf_cur += n;
 2586|  1.20k|                    counter -= (mz_uint)n;
 2587|  1.20k|                }
 2588|  2.20k|            }
 2589|  5.07k|            else if (r->m_type == 3)
  ------------------
  |  Branch (2589:22): [True: 49, False: 5.02k]
  ------------------
 2590|     49|            {
 2591|     49|                TINFL_CR_RETURN_FOREVER(10, TINFL_STATUS_FAILED);
  ------------------
  |  | 2355|     49|    do                                               \
  |  | 2356|     49|    {                                                \
  |  | 2357|     49|        for (;;)                                     \
  |  | 2358|     49|        {                                            \
  |  | 2359|     49|            TINFL_CR_RETURN(state_index, result);    \
  |  |  ------------------
  |  |  |  | 2346|     49|    do                                       \
  |  |  |  | 2347|     49|    {                                        \
  |  |  |  | 2348|     49|        status = result;                     \
  |  |  |  | 2349|     49|        r->m_state = state_index;            \
  |  |  |  | 2350|     49|        goto common_exit;                    \
  |  |  |  | 2351|     49|        case state_index:;                   \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (2351:9): [True: 0, False: 1.80k]
  |  |  |  |  ------------------
  |  |  |  | 2352|      0|    }                                        \
  |  |  |  | 2353|     49|    MZ_MACRO_END
  |  |  |  |  ------------------
  |  |  |  |  |  |  644|     49|#define MZ_MACRO_END while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (644:29): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  | 2360|     49|        }                                            \
  |  | 2361|     49|    }                                                \
  |  | 2362|     49|    MZ_MACRO_END
  |  |  ------------------
  |  |  |  |  644|     49|#define MZ_MACRO_END while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (644:29): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2592|     49|            }
 2593|  5.02k|            else
 2594|  5.02k|            {
 2595|  5.02k|                if (r->m_type == 1)
  ------------------
  |  Branch (2595:21): [True: 3.60k, False: 1.42k]
  ------------------
 2596|  3.60k|                {
 2597|  3.60k|                    mz_uint8 *p = r->m_code_size_0;
 2598|  3.60k|                    mz_uint i;
 2599|  3.60k|                    r->m_table_sizes[0] = 288;
 2600|  3.60k|                    r->m_table_sizes[1] = 32;
 2601|  3.60k|                    TINFL_MEMSET(r->m_code_size_1, 5, 32);
  ------------------
  |  | 2339|  3.60k|#define TINFL_MEMSET(p, c, l) memset(p, c, l)
  ------------------
 2602|   522k|                    for (i = 0; i <= 143; ++i)
  ------------------
  |  Branch (2602:33): [True: 519k, False: 3.60k]
  ------------------
 2603|   519k|                        *p++ = 8;
 2604|   407k|                    for (; i <= 255; ++i)
  ------------------
  |  Branch (2604:28): [True: 403k, False: 3.60k]
  ------------------
 2605|   403k|                        *p++ = 9;
 2606|  90.1k|                    for (; i <= 279; ++i)
  ------------------
  |  Branch (2606:28): [True: 86.5k, False: 3.60k]
  ------------------
 2607|  86.5k|                        *p++ = 7;
 2608|  32.4k|                    for (; i <= 287; ++i)
  ------------------
  |  Branch (2608:28): [True: 28.8k, False: 3.60k]
  ------------------
 2609|  28.8k|                        *p++ = 8;
 2610|  3.60k|                }
 2611|  1.42k|                else
 2612|  1.42k|                {
 2613|  5.62k|                    for (counter = 0; counter < 3; counter++)
  ------------------
  |  Branch (2613:39): [True: 4.23k, False: 1.38k]
  ------------------
 2614|  4.23k|                    {
 2615|  4.23k|                        TINFL_GET_BITS(11, r->m_table_sizes[counter], "\05\05\04"[counter]);
  ------------------
  |  | 2396|  4.23k|    do                                       \
  |  | 2397|  4.23k|    {                                        \
  |  | 2398|  4.23k|        if (num_bits < (mz_uint)(n))         \
  |  |  ------------------
  |  |  |  Branch (2398:13): [True: 1.71k, False: 2.52k]
  |  |  ------------------
  |  | 2399|  4.23k|        {                                    \
  |  | 2400|  1.71k|            TINFL_NEED_BITS(state_index, n); \
  |  |  ------------------
  |  |  |  | 2377|  1.71k|    do                                                 \
  |  |  |  | 2378|  1.71k|    {                                                  \
  |  |  |  | 2379|  1.71k|        mz_uint c;                                     \
  |  |  |  | 2380|  1.71k|        TINFL_GET_BYTE(state_index, c);                \
  |  |  |  |  ------------------
  |  |  |  |  |  | 2366|  1.71k|    do                                                                                                                                                           \
  |  |  |  |  |  | 2367|  1.71k|    {                                                                                                                                                            \
  |  |  |  |  |  | 2368|  1.71k|        while (pIn_buf_cur >= pIn_buf_end)                                                                                                                       \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (2368:16): [True: 32, False: 1.67k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  | 2369|  1.71k|        {                                                                                                                                                        \
  |  |  |  |  |  | 2370|     32|            TINFL_CR_RETURN(state_index, (decomp_flags & TINFL_FLAG_HAS_MORE_INPUT) ? TINFL_STATUS_NEEDS_MORE_INPUT : TINFL_STATUS_FAILED_CANNOT_MAKE_PROGRESS); \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  | 2346|     32|    do                                       \
  |  |  |  |  |  |  |  | 2347|     32|    {                                        \
  |  |  |  |  |  |  |  | 2348|     64|        status = result;                     \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (2348:18): [True: 0, False: 32]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  | 2349|     32|        r->m_state = state_index;            \
  |  |  |  |  |  |  |  | 2350|     32|        goto common_exit;                    \
  |  |  |  |  |  |  |  | 2351|     32|        case state_index:;                   \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (2351:9): [True: 0, False: 1.80k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  | 2352|      0|    }                                        \
  |  |  |  |  |  |  |  | 2353|     32|    MZ_MACRO_END
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  644|     32|#define MZ_MACRO_END while (0)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (644:29): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  | 2371|     32|        }                                                                                                                                                        \
  |  |  |  |  |  | 2372|  1.71k|        c = *pIn_buf_cur++;                                                                                                                                      \
  |  |  |  |  |  | 2373|  1.67k|    }                                                                                                                                                            \
  |  |  |  |  |  | 2374|  1.71k|    MZ_MACRO_END
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  644|  1.71k|#define MZ_MACRO_END while (0)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (644:29): [Folded, False: 1.67k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  | 2381|  1.71k|        bit_buf |= (((tinfl_bit_buf_t)c) << num_bits); \
  |  |  |  | 2382|  1.67k|        num_bits += 8;                                 \
  |  |  |  | 2383|  1.67k|    } while (num_bits < (mz_uint)(n))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (2383:14): [True: 0, False: 1.67k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  | 2401|  1.71k|        }                                    \
  |  | 2402|  4.23k|        b = bit_buf & ((1 << (n)) - 1);      \
  |  | 2403|  4.20k|        bit_buf >>= (n);                     \
  |  | 2404|  4.20k|        num_bits -= (n);                     \
  |  | 2405|  4.20k|    }                                        \
  |  | 2406|  4.23k|    MZ_MACRO_END
  |  |  ------------------
  |  |  |  |  644|  4.23k|#define MZ_MACRO_END while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (644:29): [Folded, False: 4.20k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2616|  4.20k|                        r->m_table_sizes[counter] += s_min_table_sizes[counter];
 2617|  4.20k|                    }
 2618|  1.38k|                    MZ_CLEAR_ARR(r->m_code_size_2);
  ------------------
  |  |  680|  1.38k|#define MZ_CLEAR_ARR(obj) memset((obj), 0, sizeof(obj))
  ------------------
 2619|  22.6k|                    for (counter = 0; counter < r->m_table_sizes[2]; counter++)
  ------------------
  |  Branch (2619:39): [True: 21.3k, False: 1.35k]
  ------------------
 2620|  21.3k|                    {
 2621|  21.3k|                        mz_uint s;
 2622|  21.3k|                        TINFL_GET_BITS(14, s, 3);
  ------------------
  |  | 2396|  21.3k|    do                                       \
  |  | 2397|  21.3k|    {                                        \
  |  | 2398|  21.3k|        if (num_bits < (mz_uint)(n))         \
  |  |  ------------------
  |  |  |  Branch (2398:13): [True: 6.77k, False: 14.5k]
  |  |  ------------------
  |  | 2399|  21.3k|        {                                    \
  |  | 2400|  6.77k|            TINFL_NEED_BITS(state_index, n); \
  |  |  ------------------
  |  |  |  | 2377|  6.77k|    do                                                 \
  |  |  |  | 2378|  6.77k|    {                                                  \
  |  |  |  | 2379|  6.77k|        mz_uint c;                                     \
  |  |  |  | 2380|  6.77k|        TINFL_GET_BYTE(state_index, c);                \
  |  |  |  |  ------------------
  |  |  |  |  |  | 2366|  6.77k|    do                                                                                                                                                           \
  |  |  |  |  |  | 2367|  6.77k|    {                                                                                                                                                            \
  |  |  |  |  |  | 2368|  6.77k|        while (pIn_buf_cur >= pIn_buf_end)                                                                                                                       \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (2368:16): [True: 29, False: 6.74k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  | 2369|  6.77k|        {                                                                                                                                                        \
  |  |  |  |  |  | 2370|     29|            TINFL_CR_RETURN(state_index, (decomp_flags & TINFL_FLAG_HAS_MORE_INPUT) ? TINFL_STATUS_NEEDS_MORE_INPUT : TINFL_STATUS_FAILED_CANNOT_MAKE_PROGRESS); \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  | 2346|     29|    do                                       \
  |  |  |  |  |  |  |  | 2347|     29|    {                                        \
  |  |  |  |  |  |  |  | 2348|     58|        status = result;                     \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (2348:18): [True: 0, False: 29]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  | 2349|     29|        r->m_state = state_index;            \
  |  |  |  |  |  |  |  | 2350|     29|        goto common_exit;                    \
  |  |  |  |  |  |  |  | 2351|     29|        case state_index:;                   \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (2351:9): [True: 0, False: 1.80k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  | 2352|      0|    }                                        \
  |  |  |  |  |  |  |  | 2353|     29|    MZ_MACRO_END
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  644|     29|#define MZ_MACRO_END while (0)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (644:29): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  | 2371|     29|        }                                                                                                                                                        \
  |  |  |  |  |  | 2372|  6.77k|        c = *pIn_buf_cur++;                                                                                                                                      \
  |  |  |  |  |  | 2373|  6.74k|    }                                                                                                                                                            \
  |  |  |  |  |  | 2374|  6.77k|    MZ_MACRO_END
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  644|  6.77k|#define MZ_MACRO_END while (0)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (644:29): [Folded, False: 6.74k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  | 2381|  6.77k|        bit_buf |= (((tinfl_bit_buf_t)c) << num_bits); \
  |  |  |  | 2382|  6.74k|        num_bits += 8;                                 \
  |  |  |  | 2383|  6.74k|    } while (num_bits < (mz_uint)(n))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (2383:14): [True: 0, False: 6.74k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  | 2401|  6.77k|        }                                    \
  |  | 2402|  21.3k|        b = bit_buf & ((1 << (n)) - 1);      \
  |  | 2403|  21.2k|        bit_buf >>= (n);                     \
  |  | 2404|  21.2k|        num_bits -= (n);                     \
  |  | 2405|  21.2k|    }                                        \
  |  | 2406|  21.3k|    MZ_MACRO_END
  |  |  ------------------
  |  |  |  |  644|  21.3k|#define MZ_MACRO_END while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (644:29): [Folded, False: 21.2k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2623|  21.2k|                        r->m_code_size_2[s_length_dezigzag[counter]] = (mz_uint8)s;
 2624|  21.2k|                    }
 2625|  1.35k|                    r->m_table_sizes[2] = 19;
 2626|  1.35k|                }
 2627|  15.4k|                for (; (int)r->m_type >= 0; r->m_type--)
  ------------------
  |  Branch (2627:24): [True: 10.7k, False: 4.68k]
  ------------------
 2628|  10.7k|                {
 2629|  10.7k|                    int tree_next, tree_cur;
 2630|  10.7k|                    mz_int16 *pLookUp;
 2631|  10.7k|                    mz_int16 *pTree;
 2632|  10.7k|                    mz_uint8 *pCode_size;
 2633|  10.7k|                    mz_uint i, j, used_syms, total, sym_index, next_code[17], total_syms[16];
 2634|  10.7k|                    pLookUp = r->m_look_up[r->m_type];
 2635|  10.7k|                    pTree = pTrees[r->m_type];
 2636|  10.7k|                    pCode_size = pCode_sizes[r->m_type];
 2637|  10.7k|                    MZ_CLEAR_ARR(total_syms);
  ------------------
  |  |  680|  10.7k|#define MZ_CLEAR_ARR(obj) memset((obj), 0, sizeof(obj))
  ------------------
 2638|  10.7k|                    TINFL_MEMSET(pLookUp, 0, sizeof(r->m_look_up[0]));
  ------------------
  |  | 2339|  10.7k|#define TINFL_MEMSET(p, c, l) memset(p, c, l)
  ------------------
 2639|  10.7k|                    tinfl_clear_tree(r);
 2640|  1.50M|                    for (i = 0; i < r->m_table_sizes[r->m_type]; ++i)
  ------------------
  |  Branch (2640:33): [True: 1.49M, False: 10.7k]
  ------------------
 2641|  1.49M|                        total_syms[pCode_size[i]]++;
 2642|  10.7k|                    used_syms = 0, total = 0;
 2643|  10.7k|                    next_code[0] = next_code[1] = 0;
 2644|   172k|                    for (i = 1; i <= 15; ++i)
  ------------------
  |  Branch (2644:33): [True: 161k, False: 10.7k]
  ------------------
 2645|   161k|                    {
 2646|   161k|                        used_syms += total_syms[i];
 2647|   161k|                        next_code[i + 1] = (total = ((total + total_syms[i]) << 1));
 2648|   161k|                    }
 2649|  10.7k|                    if ((65536 != total) && (used_syms > 1))
  ------------------
  |  Branch (2649:25): [True: 2.19k, False: 8.57k]
  |  Branch (2649:45): [True: 91, False: 2.10k]
  ------------------
 2650|     91|                    {
 2651|     91|                        TINFL_CR_RETURN_FOREVER(35, TINFL_STATUS_FAILED);
  ------------------
  |  | 2355|     91|    do                                               \
  |  | 2356|     91|    {                                                \
  |  | 2357|     91|        for (;;)                                     \
  |  | 2358|     91|        {                                            \
  |  | 2359|     91|            TINFL_CR_RETURN(state_index, result);    \
  |  |  ------------------
  |  |  |  | 2346|     91|    do                                       \
  |  |  |  | 2347|     91|    {                                        \
  |  |  |  | 2348|     91|        status = result;                     \
  |  |  |  | 2349|     91|        r->m_state = state_index;            \
  |  |  |  | 2350|     91|        goto common_exit;                    \
  |  |  |  | 2351|     91|        case state_index:;                   \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (2351:9): [True: 0, False: 1.80k]
  |  |  |  |  ------------------
  |  |  |  | 2352|      0|    }                                        \
  |  |  |  | 2353|     91|    MZ_MACRO_END
  |  |  |  |  ------------------
  |  |  |  |  |  |  644|     91|#define MZ_MACRO_END while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (644:29): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  | 2360|     91|        }                                            \
  |  | 2361|     91|    }                                                \
  |  | 2362|     91|    MZ_MACRO_END
  |  |  ------------------
  |  |  |  |  644|     91|#define MZ_MACRO_END while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (644:29): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2652|     91|                    }
 2653|  1.50M|                    for (tree_next = -1, sym_index = 0; sym_index < r->m_table_sizes[r->m_type]; ++sym_index)
  ------------------
  |  Branch (2653:57): [True: 1.49M, False: 10.6k]
  ------------------
 2654|  1.49M|                    {
 2655|  1.49M|                        mz_uint rev_code = 0, l, cur_code, code_size = pCode_size[sym_index];
 2656|  1.49M|                        if (!code_size)
  ------------------
  |  Branch (2656:29): [True: 307k, False: 1.18M]
  ------------------
 2657|   307k|                            continue;
 2658|  1.18M|                        cur_code = next_code[code_size]++;
 2659|  10.6M|                        for (l = code_size; l > 0; l--, cur_code >>= 1)
  ------------------
  |  Branch (2659:45): [True: 9.43M, False: 1.18M]
  ------------------
 2660|  9.43M|                            rev_code = (rev_code << 1) | (cur_code & 1);
 2661|  1.18M|                        if (code_size <= TINFL_FAST_LOOKUP_BITS)
  ------------------
  |  Branch (2661:29): [True: 1.17M, False: 8.85k]
  ------------------
 2662|  1.17M|                        {
 2663|  1.17M|                            mz_int16 k = (mz_int16)((code_size << 9) | sym_index);
 2664|  10.0M|                            while (rev_code < TINFL_FAST_LOOKUP_SIZE)
  ------------------
  |  Branch (2664:36): [True: 8.83M, False: 1.17M]
  ------------------
 2665|  8.83M|                            {
 2666|  8.83M|                                pLookUp[rev_code] = k;
 2667|  8.83M|                                rev_code += (1 << code_size);
 2668|  8.83M|                            }
 2669|  1.17M|                            continue;
 2670|  1.17M|                        }
 2671|  8.85k|                        if (0 == (tree_cur = pLookUp[rev_code & (TINFL_FAST_LOOKUP_SIZE - 1)]))
  ------------------
  |  Branch (2671:29): [True: 4.05k, False: 4.79k]
  ------------------
 2672|  4.05k|                        {
 2673|  4.05k|                            pLookUp[rev_code & (TINFL_FAST_LOOKUP_SIZE - 1)] = (mz_int16)tree_next;
 2674|  4.05k|                            tree_cur = tree_next;
 2675|  4.05k|                            tree_next -= 2;
 2676|  4.05k|                        }
 2677|  8.85k|                        rev_code >>= (TINFL_FAST_LOOKUP_BITS - 1);
 2678|  18.3k|                        for (j = code_size; j > (TINFL_FAST_LOOKUP_BITS + 1); j--)
  ------------------
  |  Branch (2678:45): [True: 9.49k, False: 8.85k]
  ------------------
 2679|  9.49k|                        {
 2680|  9.49k|                            tree_cur -= ((rev_code >>= 1) & 1);
 2681|  9.49k|                            if (!pTree[-tree_cur - 1])
  ------------------
  |  Branch (2681:33): [True: 5.69k, False: 3.80k]
  ------------------
 2682|  5.69k|                            {
 2683|  5.69k|                                pTree[-tree_cur - 1] = (mz_int16)tree_next;
 2684|  5.69k|                                tree_cur = tree_next;
 2685|  5.69k|                                tree_next -= 2;
 2686|  5.69k|                            }
 2687|  3.80k|                            else
 2688|  3.80k|                                tree_cur = pTree[-tree_cur - 1];
 2689|  9.49k|                        }
 2690|  8.85k|                        tree_cur -= ((rev_code >>= 1) & 1);
 2691|  8.85k|                        pTree[-tree_cur - 1] = (mz_int16)sym_index;
 2692|  8.85k|                    }
 2693|  10.6k|                    if (r->m_type == 2)
  ------------------
  |  Branch (2693:25): [True: 1.29k, False: 9.38k]
  ------------------
 2694|  1.29k|                    {
 2695|   178k|                        for (counter = 0; counter < (r->m_table_sizes[0] + r->m_table_sizes[1]);)
  ------------------
  |  Branch (2695:43): [True: 177k, False: 1.14k]
  ------------------
 2696|   177k|                        {
 2697|   177k|                            mz_uint s;
 2698|   177k|                            TINFL_HUFF_DECODE(16, dist, r->m_look_up[2], r->m_tree_2);
  ------------------
  |  | 2444|   177k|    do                                                                                                                              \
  |  | 2445|   177k|    {                                                                                                                               \
  |  | 2446|   177k|        int temp;                                                                                                                   \
  |  | 2447|   177k|        mz_uint code_len, c;                                                                                                        \
  |  | 2448|   177k|        if (num_bits < 15)                                                                                                          \
  |  |  ------------------
  |  |  |  Branch (2448:13): [True: 17.0k, False: 160k]
  |  |  ------------------
  |  | 2449|   177k|        {                                                                                                                           \
  |  | 2450|  17.0k|            if ((pIn_buf_end - pIn_buf_cur) < 2)                                                                                    \
  |  |  ------------------
  |  |  |  Branch (2450:17): [True: 1.15k, False: 15.9k]
  |  |  ------------------
  |  | 2451|  17.0k|            {                                                                                                                       \
  |  | 2452|  1.15k|                TINFL_HUFF_BITBUF_FILL(state_index, pLookUp, pTree);                                                                \
  |  |  ------------------
  |  |  |  | 2413|  1.15k|    do                                                               \
  |  |  |  | 2414|  1.22k|    {                                                                \
  |  |  |  | 2415|  1.22k|        temp = pLookUp[bit_buf & (TINFL_FAST_LOOKUP_SIZE - 1)];      \
  |  |  |  | 2416|  1.22k|        if (temp >= 0)                                               \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (2416:13): [True: 1.22k, False: 0]
  |  |  |  |  ------------------
  |  |  |  | 2417|  1.22k|        {                                                            \
  |  |  |  | 2418|  1.22k|            code_len = temp >> 9;                                    \
  |  |  |  | 2419|  1.22k|            if ((code_len) && (num_bits >= code_len))                \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (2419:17): [True: 1.14k, False: 88]
  |  |  |  |  |  Branch (2419:31): [True: 1.05k, False: 85]
  |  |  |  |  ------------------
  |  |  |  | 2420|  1.22k|                break;                                               \
  |  |  |  | 2421|  1.22k|        }                                                            \
  |  |  |  | 2422|  1.22k|        else if (num_bits > TINFL_FAST_LOOKUP_BITS)                  \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (2422:18): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  | 2423|      0|        {                                                            \
  |  |  |  | 2424|      0|            code_len = TINFL_FAST_LOOKUP_BITS;                       \
  |  |  |  | 2425|      0|            do                                                       \
  |  |  |  | 2426|      0|            {                                                        \
  |  |  |  | 2427|      0|                temp = pTree[~temp + ((bit_buf >> code_len++) & 1)]; \
  |  |  |  | 2428|      0|            } while ((temp < 0) && (num_bits >= (code_len + 1)));    \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (2428:22): [True: 0, False: 0]
  |  |  |  |  |  Branch (2428:36): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  | 2429|      0|            if (temp >= 0)                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (2429:17): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  | 2430|      0|                break;                                               \
  |  |  |  | 2431|      0|        }                                                            \
  |  |  |  | 2432|  1.22k|        TINFL_GET_BYTE(state_index, c);                              \
  |  |  |  |  ------------------
  |  |  |  |  |  | 2366|    173|    do                                                                                                                                                           \
  |  |  |  |  |  | 2367|    173|    {                                                                                                                                                            \
  |  |  |  |  |  | 2368|    173|        while (pIn_buf_cur >= pIn_buf_end)                                                                                                                       \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (2368:16): [True: 74, False: 99]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  | 2369|    173|        {                                                                                                                                                        \
  |  |  |  |  |  | 2370|     74|            TINFL_CR_RETURN(state_index, (decomp_flags & TINFL_FLAG_HAS_MORE_INPUT) ? TINFL_STATUS_NEEDS_MORE_INPUT : TINFL_STATUS_FAILED_CANNOT_MAKE_PROGRESS); \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  | 2346|     74|    do                                       \
  |  |  |  |  |  |  |  | 2347|     74|    {                                        \
  |  |  |  |  |  |  |  | 2348|    148|        status = result;                     \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (2348:18): [True: 0, False: 74]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  | 2349|     74|        r->m_state = state_index;            \
  |  |  |  |  |  |  |  | 2350|     74|        goto common_exit;                    \
  |  |  |  |  |  |  |  | 2351|     74|        case state_index:;                   \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (2351:9): [True: 0, False: 1.80k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  | 2352|      0|    }                                        \
  |  |  |  |  |  |  |  | 2353|     74|    MZ_MACRO_END
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  644|     74|#define MZ_MACRO_END while (0)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (644:29): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  | 2371|     74|        }                                                                                                                                                        \
  |  |  |  |  |  | 2372|    173|        c = *pIn_buf_cur++;                                                                                                                                      \
  |  |  |  |  |  | 2373|     99|    }                                                                                                                                                            \
  |  |  |  |  |  | 2374|  1.22k|    MZ_MACRO_END
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  644|  1.22k|#define MZ_MACRO_END while (0)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (644:29): [Folded, False: 99]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  | 2433|    173|        bit_buf |= (((tinfl_bit_buf_t)c) << num_bits);               \
  |  |  |  | 2434|     99|        num_bits += 8;                                               \
  |  |  |  | 2435|     99|    } while (num_bits < 15);
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (2435:14): [True: 70, False: 29]
  |  |  |  |  ------------------
  |  |  ------------------
  |  | 2453|  1.08k|            }                                                                                                                       \
  |  | 2454|  17.0k|            else                                                                                                                    \
  |  | 2455|  17.0k|            {                                                                                                                       \
  |  | 2456|  15.9k|                bit_buf |= (((tinfl_bit_buf_t)pIn_buf_cur[0]) << num_bits) | (((tinfl_bit_buf_t)pIn_buf_cur[1]) << (num_bits + 8)); \
  |  | 2457|  15.9k|                pIn_buf_cur += 2;                                                                                                   \
  |  | 2458|  15.9k|                num_bits += 16;                                                                                                     \
  |  | 2459|  15.9k|            }                                                                                                                       \
  |  | 2460|  17.0k|        }                                                                                                                           \
  |  | 2461|   177k|        if ((temp = pLookUp[bit_buf & (TINFL_FAST_LOOKUP_SIZE - 1)]) >= 0)                                                          \
  |  |  ------------------
  |  |  |  Branch (2461:13): [True: 177k, False: 0]
  |  |  ------------------
  |  | 2462|   177k|            code_len = temp >> 9, temp &= 511;                                                                                      \
  |  | 2463|   177k|        else                                                                                                                        \
  |  | 2464|   177k|        {                                                                                                                           \
  |  | 2465|      0|            code_len = TINFL_FAST_LOOKUP_BITS;                                                                                      \
  |  | 2466|      0|            do                                                                                                                      \
  |  | 2467|      0|            {                                                                                                                       \
  |  | 2468|      0|                temp = pTree[~temp + ((bit_buf >> code_len++) & 1)];                                                                \
  |  | 2469|      0|            } while (temp < 0);                                                                                                     \
  |  |  ------------------
  |  |  |  Branch (2469:22): [True: 0, False: 0]
  |  |  ------------------
  |  | 2470|      0|        }                                                                                                                           \
  |  | 2471|   177k|        sym = temp;                                                                                                                 \
  |  | 2472|   177k|        bit_buf >>= code_len;                                                                                                       \
  |  | 2473|   177k|        num_bits -= code_len;                                                                                                       \
  |  | 2474|   177k|    }                                                                                                                               \
  |  | 2475|   177k|    MZ_MACRO_END
  |  |  ------------------
  |  |  |  |  644|   177k|#define MZ_MACRO_END while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (644:29): [Folded, False: 177k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2699|   177k|                            if (dist < 16)
  ------------------
  |  Branch (2699:33): [True: 163k, False: 13.7k]
  ------------------
 2700|   163k|                            {
 2701|   163k|                                r->m_len_codes[counter++] = (mz_uint8)dist;
 2702|   163k|                                continue;
 2703|   163k|                            }
 2704|  13.7k|                            if ((dist == 16) && (!counter))
  ------------------
  |  Branch (2704:33): [True: 4.99k, False: 8.78k]
  |  Branch (2704:49): [True: 27, False: 4.96k]
  ------------------
 2705|     27|                            {
 2706|     27|                                TINFL_CR_RETURN_FOREVER(17, TINFL_STATUS_FAILED);
  ------------------
  |  | 2355|     27|    do                                               \
  |  | 2356|     27|    {                                                \
  |  | 2357|     27|        for (;;)                                     \
  |  | 2358|     27|        {                                            \
  |  | 2359|     27|            TINFL_CR_RETURN(state_index, result);    \
  |  |  ------------------
  |  |  |  | 2346|     27|    do                                       \
  |  |  |  | 2347|     27|    {                                        \
  |  |  |  | 2348|     27|        status = result;                     \
  |  |  |  | 2349|     27|        r->m_state = state_index;            \
  |  |  |  | 2350|     27|        goto common_exit;                    \
  |  |  |  | 2351|     27|        case state_index:;                   \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (2351:9): [True: 0, False: 1.80k]
  |  |  |  |  ------------------
  |  |  |  | 2352|      0|    }                                        \
  |  |  |  | 2353|     27|    MZ_MACRO_END
  |  |  |  |  ------------------
  |  |  |  |  |  |  644|     27|#define MZ_MACRO_END while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (644:29): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  | 2360|     27|        }                                            \
  |  | 2361|     27|    }                                                \
  |  | 2362|     27|    MZ_MACRO_END
  |  |  ------------------
  |  |  |  |  644|     27|#define MZ_MACRO_END while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (644:29): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2707|     27|                            }
 2708|  13.7k|                            num_extra = "\02\03\07"[dist - 16];
 2709|  13.7k|                            TINFL_GET_BITS(18, s, num_extra);
  ------------------
  |  | 2396|  13.7k|    do                                       \
  |  | 2397|  13.7k|    {                                        \
  |  | 2398|  13.7k|        if (num_bits < (mz_uint)(n))         \
  |  |  ------------------
  |  |  |  Branch (2398:13): [True: 76, False: 13.6k]
  |  |  ------------------
  |  | 2399|  13.7k|        {                                    \
  |  | 2400|     76|            TINFL_NEED_BITS(state_index, n); \
  |  |  ------------------
  |  |  |  | 2377|     76|    do                                                 \
  |  |  |  | 2378|     76|    {                                                  \
  |  |  |  | 2379|     76|        mz_uint c;                                     \
  |  |  |  | 2380|     76|        TINFL_GET_BYTE(state_index, c);                \
  |  |  |  |  ------------------
  |  |  |  |  |  | 2366|     76|    do                                                                                                                                                           \
  |  |  |  |  |  | 2367|     76|    {                                                                                                                                                            \
  |  |  |  |  |  | 2368|     76|        while (pIn_buf_cur >= pIn_buf_end)                                                                                                                       \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (2368:16): [True: 50, False: 26]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  | 2369|     76|        {                                                                                                                                                        \
  |  |  |  |  |  | 2370|     50|            TINFL_CR_RETURN(state_index, (decomp_flags & TINFL_FLAG_HAS_MORE_INPUT) ? TINFL_STATUS_NEEDS_MORE_INPUT : TINFL_STATUS_FAILED_CANNOT_MAKE_PROGRESS); \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  | 2346|     50|    do                                       \
  |  |  |  |  |  |  |  | 2347|     50|    {                                        \
  |  |  |  |  |  |  |  | 2348|    100|        status = result;                     \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (2348:18): [True: 0, False: 50]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  | 2349|     50|        r->m_state = state_index;            \
  |  |  |  |  |  |  |  | 2350|     50|        goto common_exit;                    \
  |  |  |  |  |  |  |  | 2351|     50|        case state_index:;                   \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (2351:9): [True: 0, False: 1.80k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  | 2352|      0|    }                                        \
  |  |  |  |  |  |  |  | 2353|     50|    MZ_MACRO_END
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  644|     50|#define MZ_MACRO_END while (0)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (644:29): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  | 2371|     50|        }                                                                                                                                                        \
  |  |  |  |  |  | 2372|     76|        c = *pIn_buf_cur++;                                                                                                                                      \
  |  |  |  |  |  | 2373|     26|    }                                                                                                                                                            \
  |  |  |  |  |  | 2374|     76|    MZ_MACRO_END
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  644|     76|#define MZ_MACRO_END while (0)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (644:29): [Folded, False: 26]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  | 2381|     76|        bit_buf |= (((tinfl_bit_buf_t)c) << num_bits); \
  |  |  |  | 2382|     26|        num_bits += 8;                                 \
  |  |  |  | 2383|     26|    } while (num_bits < (mz_uint)(n))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (2383:14): [True: 0, False: 26]
  |  |  |  |  ------------------
  |  |  ------------------
  |  | 2401|     76|        }                                    \
  |  | 2402|  13.7k|        b = bit_buf & ((1 << (n)) - 1);      \
  |  | 2403|  13.6k|        bit_buf >>= (n);                     \
  |  | 2404|  13.6k|        num_bits -= (n);                     \
  |  | 2405|  13.6k|    }                                        \
  |  | 2406|  13.7k|    MZ_MACRO_END
  |  |  ------------------
  |  |  |  |  644|  13.7k|#define MZ_MACRO_END while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (644:29): [Folded, False: 13.6k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2710|  13.6k|                            s += "\03\03\013"[dist - 16];
 2711|  13.6k|                            TINFL_MEMSET(r->m_len_codes + counter, (dist == 16) ? r->m_len_codes[counter - 1] : 0, s);
  ------------------
  |  | 2339|  27.3k|#define TINFL_MEMSET(p, c, l) memset(p, c, l)
  |  |  ------------------
  |  |  |  Branch (2339:41): [True: 4.96k, False: 8.73k]
  |  |  ------------------
  ------------------
 2712|  13.6k|                            counter += s;
 2713|  13.6k|                        }
 2714|  1.14k|                        if ((r->m_table_sizes[0] + r->m_table_sizes[1]) != counter)
  ------------------
  |  Branch (2714:29): [True: 40, False: 1.10k]
  ------------------
 2715|     40|                        {
 2716|     40|                            TINFL_CR_RETURN_FOREVER(21, TINFL_STATUS_FAILED);
  ------------------
  |  | 2355|     40|    do                                               \
  |  | 2356|     40|    {                                                \
  |  | 2357|     40|        for (;;)                                     \
  |  | 2358|     40|        {                                            \
  |  | 2359|     40|            TINFL_CR_RETURN(state_index, result);    \
  |  |  ------------------
  |  |  |  | 2346|     40|    do                                       \
  |  |  |  | 2347|     40|    {                                        \
  |  |  |  | 2348|     40|        status = result;                     \
  |  |  |  | 2349|     40|        r->m_state = state_index;            \
  |  |  |  | 2350|     40|        goto common_exit;                    \
  |  |  |  | 2351|     40|        case state_index:;                   \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (2351:9): [True: 0, False: 1.80k]
  |  |  |  |  ------------------
  |  |  |  | 2352|      0|    }                                        \
  |  |  |  | 2353|     40|    MZ_MACRO_END
  |  |  |  |  ------------------
  |  |  |  |  |  |  644|     40|#define MZ_MACRO_END while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (644:29): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  | 2360|     40|        }                                            \
  |  | 2361|     40|    }                                                \
  |  | 2362|     40|    MZ_MACRO_END
  |  |  ------------------
  |  |  |  |  644|     40|#define MZ_MACRO_END while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (644:29): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2717|     40|                        }
 2718|  1.10k|                        TINFL_MEMCPY(r->m_code_size_0, r->m_len_codes, r->m_table_sizes[0]);
  ------------------
  |  | 2338|  1.10k|#define TINFL_MEMCPY(d, s, l) memcpy(d, s, l)
  ------------------
 2719|  1.10k|                        TINFL_MEMCPY(r->m_code_size_1, r->m_len_codes + r->m_table_sizes[0], r->m_table_sizes[1]);
  ------------------
  |  | 2338|  1.10k|#define TINFL_MEMCPY(d, s, l) memcpy(d, s, l)
  ------------------
 2720|  1.10k|                    }
 2721|  10.6k|                }
 2722|  4.68k|                for (;;)
 2723|   178k|                {
 2724|   178k|                    mz_uint8 *pSrc;
 2725|   178k|                    for (;;)
 2726|   350k|                    {
 2727|   350k|                        if (((pIn_buf_end - pIn_buf_cur) < 4) || ((pOut_buf_end - pOut_buf_cur) < 2))
  ------------------
  |  Branch (2727:29): [True: 14.4k, False: 336k]
  |  Branch (2727:66): [True: 1.69k, False: 334k]
  ------------------
 2728|  16.1k|                        {
 2729|  16.1k|                            TINFL_HUFF_DECODE(23, counter, r->m_look_up[0], r->m_tree_0);
  ------------------
  |  | 2444|  16.1k|    do                                                                                                                              \
  |  | 2445|  16.1k|    {                                                                                                                               \
  |  | 2446|  16.1k|        int temp;                                                                                                                   \
  |  | 2447|  16.1k|        mz_uint code_len, c;                                                                                                        \
  |  | 2448|  16.1k|        if (num_bits < 15)                                                                                                          \
  |  |  ------------------
  |  |  |  Branch (2448:13): [True: 2.47k, False: 13.6k]
  |  |  ------------------
  |  | 2449|  16.1k|        {                                                                                                                           \
  |  | 2450|  2.47k|            if ((pIn_buf_end - pIn_buf_cur) < 2)                                                                                    \
  |  |  ------------------
  |  |  |  Branch (2450:17): [True: 1.88k, False: 582]
  |  |  ------------------
  |  | 2451|  2.47k|            {                                                                                                                       \
  |  | 2452|  1.88k|                TINFL_HUFF_BITBUF_FILL(state_index, pLookUp, pTree);                                                                \
  |  |  ------------------
  |  |  |  | 2413|  1.88k|    do                                                               \
  |  |  |  | 2414|  2.11k|    {                                                                \
  |  |  |  | 2415|  2.11k|        temp = pLookUp[bit_buf & (TINFL_FAST_LOOKUP_SIZE - 1)];      \
  |  |  |  | 2416|  2.11k|        if (temp >= 0)                                               \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (2416:13): [True: 1.86k, False: 252]
  |  |  |  |  ------------------
  |  |  |  | 2417|  2.11k|        {                                                            \
  |  |  |  | 2418|  1.86k|            code_len = temp >> 9;                                    \
  |  |  |  | 2419|  1.86k|            if ((code_len) && (num_bits >= code_len))                \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (2419:17): [True: 1.81k, False: 47]
  |  |  |  |  |  Branch (2419:31): [True: 1.50k, False: 310]
  |  |  |  |  ------------------
  |  |  |  | 2420|  1.86k|                break;                                               \
  |  |  |  | 2421|  1.86k|        }                                                            \
  |  |  |  | 2422|  2.11k|        else if (num_bits > TINFL_FAST_LOOKUP_BITS)                  \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (2422:18): [True: 131, False: 121]
  |  |  |  |  ------------------
  |  |  |  | 2423|    252|        {                                                            \
  |  |  |  | 2424|    131|            code_len = TINFL_FAST_LOOKUP_BITS;                       \
  |  |  |  | 2425|    131|            do                                                       \
  |  |  |  | 2426|    277|            {                                                        \
  |  |  |  | 2427|    277|                temp = pTree[~temp + ((bit_buf >> code_len++) & 1)]; \
  |  |  |  | 2428|    277|            } while ((temp < 0) && (num_bits >= (code_len + 1)));    \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (2428:22): [True: 173, False: 104]
  |  |  |  |  |  Branch (2428:36): [True: 146, False: 27]
  |  |  |  |  ------------------
  |  |  |  | 2429|    131|            if (temp >= 0)                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (2429:17): [True: 104, False: 27]
  |  |  |  |  ------------------
  |  |  |  | 2430|    131|                break;                                               \
  |  |  |  | 2431|    131|        }                                                            \
  |  |  |  | 2432|  2.11k|        TINFL_GET_BYTE(state_index, c);                              \
  |  |  |  |  ------------------
  |  |  |  |  |  | 2366|    505|    do                                                                                                                                                           \
  |  |  |  |  |  | 2367|    505|    {                                                                                                                                                            \
  |  |  |  |  |  | 2368|    505|        while (pIn_buf_cur >= pIn_buf_end)                                                                                                                       \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (2368:16): [True: 231, False: 274]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  | 2369|    505|        {                                                                                                                                                        \
  |  |  |  |  |  | 2370|    231|            TINFL_CR_RETURN(state_index, (decomp_flags & TINFL_FLAG_HAS_MORE_INPUT) ? TINFL_STATUS_NEEDS_MORE_INPUT : TINFL_STATUS_FAILED_CANNOT_MAKE_PROGRESS); \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  | 2346|    231|    do                                       \
  |  |  |  |  |  |  |  | 2347|    231|    {                                        \
  |  |  |  |  |  |  |  | 2348|    462|        status = result;                     \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (2348:18): [True: 0, False: 231]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  | 2349|    231|        r->m_state = state_index;            \
  |  |  |  |  |  |  |  | 2350|    231|        goto common_exit;                    \
  |  |  |  |  |  |  |  | 2351|    231|        case state_index:;                   \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (2351:9): [True: 0, False: 1.80k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  | 2352|      0|    }                                        \
  |  |  |  |  |  |  |  | 2353|    231|    MZ_MACRO_END
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  644|    231|#define MZ_MACRO_END while (0)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (644:29): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  | 2371|    231|        }                                                                                                                                                        \
  |  |  |  |  |  | 2372|    505|        c = *pIn_buf_cur++;                                                                                                                                      \
  |  |  |  |  |  | 2373|    274|    }                                                                                                                                                            \
  |  |  |  |  |  | 2374|  2.11k|    MZ_MACRO_END
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  644|  2.11k|#define MZ_MACRO_END while (0)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (644:29): [Folded, False: 274]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  | 2433|    505|        bit_buf |= (((tinfl_bit_buf_t)c) << num_bits);               \
  |  |  |  | 2434|    274|        num_bits += 8;                                               \
  |  |  |  | 2435|    274|    } while (num_bits < 15);
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (2435:14): [True: 228, False: 46]
  |  |  |  |  ------------------
  |  |  ------------------
  |  | 2453|  1.65k|            }                                                                                                                       \
  |  | 2454|  2.47k|            else                                                                                                                    \
  |  | 2455|  2.47k|            {                                                                                                                       \
  |  | 2456|    582|                bit_buf |= (((tinfl_bit_buf_t)pIn_buf_cur[0]) << num_bits) | (((tinfl_bit_buf_t)pIn_buf_cur[1]) << (num_bits + 8)); \
  |  | 2457|    582|                pIn_buf_cur += 2;                                                                                                   \
  |  | 2458|    582|                num_bits += 16;                                                                                                     \
  |  | 2459|    582|            }                                                                                                                       \
  |  | 2460|  2.47k|        }                                                                                                                           \
  |  | 2461|  16.1k|        if ((temp = pLookUp[bit_buf & (TINFL_FAST_LOOKUP_SIZE - 1)]) >= 0)                                                          \
  |  |  ------------------
  |  |  |  Branch (2461:13): [True: 15.5k, False: 371]
  |  |  ------------------
  |  | 2462|  15.9k|            code_len = temp >> 9, temp &= 511;                                                                                      \
  |  | 2463|  15.9k|        else                                                                                                                        \
  |  | 2464|  15.9k|        {                                                                                                                           \
  |  | 2465|    371|            code_len = TINFL_FAST_LOOKUP_BITS;                                                                                      \
  |  | 2466|    371|            do                                                                                                                      \
  |  | 2467|  1.05k|            {                                                                                                                       \
  |  | 2468|  1.05k|                temp = pTree[~temp + ((bit_buf >> code_len++) & 1)];                                                                \
  |  | 2469|  1.05k|            } while (temp < 0);                                                                                                     \
  |  |  ------------------
  |  |  |  Branch (2469:22): [True: 680, False: 371]
  |  |  ------------------
  |  | 2470|    371|        }                                                                                                                           \
  |  | 2471|  15.9k|        sym = temp;                                                                                                                 \
  |  | 2472|  15.9k|        bit_buf >>= code_len;                                                                                                       \
  |  | 2473|  15.9k|        num_bits -= code_len;                                                                                                       \
  |  | 2474|  15.9k|    }                                                                                                                               \
  |  | 2475|  16.1k|    MZ_MACRO_END
  |  |  ------------------
  |  |  |  |  644|  16.1k|#define MZ_MACRO_END while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (644:29): [Folded, False: 15.9k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2730|  15.9k|                            if (counter >= 256)
  ------------------
  |  Branch (2730:33): [True: 3.83k, False: 12.0k]
  ------------------
 2731|  3.83k|                                break;
 2732|  12.0k|                            while (pOut_buf_cur >= pOut_buf_end)
  ------------------
  |  Branch (2732:36): [True: 119, False: 11.9k]
  ------------------
 2733|    119|                            {
 2734|    119|                                TINFL_CR_RETURN(24, TINFL_STATUS_HAS_MORE_OUTPUT);
  ------------------
  |  | 2346|    119|    do                                       \
  |  | 2347|    119|    {                                        \
  |  | 2348|    119|        status = result;                     \
  |  | 2349|    119|        r->m_state = state_index;            \
  |  | 2350|    119|        goto common_exit;                    \
  |  | 2351|    119|        case state_index:;                   \
  |  |  ------------------
  |  |  |  Branch (2351:9): [True: 0, False: 1.80k]
  |  |  ------------------
  |  | 2352|      0|    }                                        \
  |  | 2353|    119|    MZ_MACRO_END
  |  |  ------------------
  |  |  |  |  644|    119|#define MZ_MACRO_END while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (644:29): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2735|    119|                            }
 2736|  11.9k|                            *pOut_buf_cur++ = (mz_uint8)counter;
 2737|  11.9k|                        }
 2738|   334k|                        else
 2739|   334k|                        {
 2740|   334k|                            int sym2;
 2741|   334k|                            mz_uint code_len;
 2742|   334k|#if TINFL_USE_64BIT_BITBUF
 2743|   334k|                            if (num_bits < 30)
  ------------------
  |  Branch (2743:33): [True: 86.5k, False: 247k]
  ------------------
 2744|  86.5k|                            {
 2745|  86.5k|                                bit_buf |= (((tinfl_bit_buf_t)MZ_READ_LE32(pIn_buf_cur)) << num_bits);
  ------------------
  |  |  688|  86.5k|#define MZ_READ_LE32(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U) | ((mz_uint32)(((const mz_uint8 *)(p))[2]) << 16U) | ((mz_uint32)(((const mz_uint8 *)(p))[3]) << 24U))
  ------------------
 2746|  86.5k|                                pIn_buf_cur += 4;
 2747|  86.5k|                                num_bits += 32;
 2748|  86.5k|                            }
 2749|       |#else
 2750|       |                        if (num_bits < 15)
 2751|       |                        {
 2752|       |                            bit_buf |= (((tinfl_bit_buf_t)MZ_READ_LE16(pIn_buf_cur)) << num_bits);
 2753|       |                            pIn_buf_cur += 2;
 2754|       |                            num_bits += 16;
 2755|       |                        }
 2756|       |#endif /* TINFL_USE_64BIT_BITBUF */
 2757|   334k|                            if ((sym2 = r->m_look_up[0][bit_buf & (TINFL_FAST_LOOKUP_SIZE - 1)]) >= 0)
  ------------------
  |  Branch (2757:33): [True: 326k, False: 7.54k]
  ------------------
 2758|   326k|                                code_len = sym2 >> 9;
 2759|  7.54k|                            else
 2760|  7.54k|                            {
 2761|  7.54k|                                code_len = TINFL_FAST_LOOKUP_BITS;
 2762|  7.54k|                                do
 2763|  15.6k|                                {
 2764|  15.6k|                                    sym2 = r->m_tree_0[~sym2 + ((bit_buf >> code_len++) & 1)];
 2765|  15.6k|                                } while (sym2 < 0);
  ------------------
  |  Branch (2765:42): [True: 8.05k, False: 7.54k]
  ------------------
 2766|  7.54k|                            }
 2767|   334k|                            counter = sym2;
 2768|   334k|                            bit_buf >>= code_len;
 2769|   334k|                            num_bits -= code_len;
 2770|   334k|                            if (code_len == 0)
  ------------------
  |  Branch (2770:33): [True: 104, False: 334k]
  ------------------
 2771|    104|                            {
 2772|    104|                                TINFL_CR_RETURN_FOREVER(40, TINFL_STATUS_FAILED);
  ------------------
  |  | 2355|    104|    do                                               \
  |  | 2356|    104|    {                                                \
  |  | 2357|    104|        for (;;)                                     \
  |  | 2358|    104|        {                                            \
  |  | 2359|    104|            TINFL_CR_RETURN(state_index, result);    \
  |  |  ------------------
  |  |  |  | 2346|    104|    do                                       \
  |  |  |  | 2347|    104|    {                                        \
  |  |  |  | 2348|    104|        status = result;                     \
  |  |  |  | 2349|    104|        r->m_state = state_index;            \
  |  |  |  | 2350|    104|        goto common_exit;                    \
  |  |  |  | 2351|    104|        case state_index:;                   \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (2351:9): [True: 0, False: 1.80k]
  |  |  |  |  ------------------
  |  |  |  | 2352|      0|    }                                        \
  |  |  |  | 2353|    104|    MZ_MACRO_END
  |  |  |  |  ------------------
  |  |  |  |  |  |  644|    104|#define MZ_MACRO_END while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (644:29): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  | 2360|    104|        }                                            \
  |  | 2361|    104|    }                                                \
  |  | 2362|    104|    MZ_MACRO_END
  |  |  ------------------
  |  |  |  |  644|    104|#define MZ_MACRO_END while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (644:29): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2773|    104|                            }
 2774|   334k|                            if (counter & 256)
  ------------------
  |  Branch (2774:33): [True: 152k, False: 182k]
  ------------------
 2775|   152k|                                break;
 2776|       |
 2777|       |#if !TINFL_USE_64BIT_BITBUF
 2778|       |                            if (num_bits < 15)
 2779|       |                            {
 2780|       |                                bit_buf |= (((tinfl_bit_buf_t)MZ_READ_LE16(pIn_buf_cur)) << num_bits);
 2781|       |                                pIn_buf_cur += 2;
 2782|       |                                num_bits += 16;
 2783|       |                            }
 2784|       |#endif /* !TINFL_USE_64BIT_BITBUF */
 2785|   182k|                            if ((sym2 = r->m_look_up[0][bit_buf & (TINFL_FAST_LOOKUP_SIZE - 1)]) >= 0)
  ------------------
  |  Branch (2785:33): [True: 179k, False: 2.53k]
  ------------------
 2786|   179k|                                code_len = sym2 >> 9;
 2787|  2.53k|                            else
 2788|  2.53k|                            {
 2789|  2.53k|                                code_len = TINFL_FAST_LOOKUP_BITS;
 2790|  2.53k|                                do
 2791|  3.14k|                                {
 2792|  3.14k|                                    sym2 = r->m_tree_0[~sym2 + ((bit_buf >> code_len++) & 1)];
 2793|  3.14k|                                } while (sym2 < 0);
  ------------------
  |  Branch (2793:42): [True: 611, False: 2.53k]
  ------------------
 2794|  2.53k|                            }
 2795|   182k|                            bit_buf >>= code_len;
 2796|   182k|                            num_bits -= code_len;
 2797|   182k|                            if (code_len == 0)
  ------------------
  |  Branch (2797:33): [True: 34, False: 182k]
  ------------------
 2798|     34|                            {
 2799|     34|                                TINFL_CR_RETURN_FOREVER(54, TINFL_STATUS_FAILED);
  ------------------
  |  | 2355|     34|    do                                               \
  |  | 2356|     34|    {                                                \
  |  | 2357|     34|        for (;;)                                     \
  |  | 2358|     34|        {                                            \
  |  | 2359|     34|            TINFL_CR_RETURN(state_index, result);    \
  |  |  ------------------
  |  |  |  | 2346|     34|    do                                       \
  |  |  |  | 2347|     34|    {                                        \
  |  |  |  | 2348|     34|        status = result;                     \
  |  |  |  | 2349|     34|        r->m_state = state_index;            \
  |  |  |  | 2350|     34|        goto common_exit;                    \
  |  |  |  | 2351|     34|        case state_index:;                   \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (2351:9): [True: 0, False: 1.80k]
  |  |  |  |  ------------------
  |  |  |  | 2352|      0|    }                                        \
  |  |  |  | 2353|     34|    MZ_MACRO_END
  |  |  |  |  ------------------
  |  |  |  |  |  |  644|     34|#define MZ_MACRO_END while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (644:29): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  | 2360|     34|        }                                            \
  |  | 2361|     34|    }                                                \
  |  | 2362|     34|    MZ_MACRO_END
  |  |  ------------------
  |  |  |  |  644|     34|#define MZ_MACRO_END while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (644:29): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2800|     34|                            }
 2801|       |
 2802|   182k|                            pOut_buf_cur[0] = (mz_uint8)counter;
 2803|   182k|                            if (sym2 & 256)
  ------------------
  |  Branch (2803:33): [True: 22.2k, False: 159k]
  ------------------
 2804|  22.2k|                            {
 2805|  22.2k|                                pOut_buf_cur++;
 2806|  22.2k|                                counter = sym2;
 2807|  22.2k|                                break;
 2808|  22.2k|                            }
 2809|   159k|                            pOut_buf_cur[1] = (mz_uint8)sym2;
 2810|   159k|                            pOut_buf_cur += 2;
 2811|   159k|                        }
 2812|   350k|                    }
 2813|   178k|                    if ((counter &= 511) == 256)
  ------------------
  |  Branch (2813:25): [True: 3.75k, False: 174k]
  ------------------
 2814|  3.75k|                        break;
 2815|       |
 2816|   174k|                    num_extra = s_length_extra[counter - 257];
 2817|   174k|                    counter = s_length_base[counter - 257];
 2818|   174k|                    if (num_extra)
  ------------------
  |  Branch (2818:25): [True: 20.7k, False: 153k]
  ------------------
 2819|  20.7k|                    {
 2820|  20.7k|                        mz_uint extra_bits;
 2821|  20.7k|                        TINFL_GET_BITS(25, extra_bits, num_extra);
  ------------------
  |  | 2396|  20.7k|    do                                       \
  |  | 2397|  20.7k|    {                                        \
  |  | 2398|  20.7k|        if (num_bits < (mz_uint)(n))         \
  |  |  ------------------
  |  |  |  Branch (2398:13): [True: 73, False: 20.7k]
  |  |  ------------------
  |  | 2399|  20.7k|        {                                    \
  |  | 2400|     73|            TINFL_NEED_BITS(state_index, n); \
  |  |  ------------------
  |  |  |  | 2377|     73|    do                                                 \
  |  |  |  | 2378|     73|    {                                                  \
  |  |  |  | 2379|     73|        mz_uint c;                                     \
  |  |  |  | 2380|     73|        TINFL_GET_BYTE(state_index, c);                \
  |  |  |  |  ------------------
  |  |  |  |  |  | 2366|     73|    do                                                                                                                                                           \
  |  |  |  |  |  | 2367|     73|    {                                                                                                                                                            \
  |  |  |  |  |  | 2368|     73|        while (pIn_buf_cur >= pIn_buf_end)                                                                                                                       \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (2368:16): [True: 41, False: 32]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  | 2369|     73|        {                                                                                                                                                        \
  |  |  |  |  |  | 2370|     41|            TINFL_CR_RETURN(state_index, (decomp_flags & TINFL_FLAG_HAS_MORE_INPUT) ? TINFL_STATUS_NEEDS_MORE_INPUT : TINFL_STATUS_FAILED_CANNOT_MAKE_PROGRESS); \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  | 2346|     41|    do                                       \
  |  |  |  |  |  |  |  | 2347|     41|    {                                        \
  |  |  |  |  |  |  |  | 2348|     82|        status = result;                     \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (2348:18): [True: 0, False: 41]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  | 2349|     41|        r->m_state = state_index;            \
  |  |  |  |  |  |  |  | 2350|     41|        goto common_exit;                    \
  |  |  |  |  |  |  |  | 2351|     41|        case state_index:;                   \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (2351:9): [True: 0, False: 1.80k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  | 2352|      0|    }                                        \
  |  |  |  |  |  |  |  | 2353|     41|    MZ_MACRO_END
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  644|     41|#define MZ_MACRO_END while (0)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (644:29): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  | 2371|     41|        }                                                                                                                                                        \
  |  |  |  |  |  | 2372|     73|        c = *pIn_buf_cur++;                                                                                                                                      \
  |  |  |  |  |  | 2373|     32|    }                                                                                                                                                            \
  |  |  |  |  |  | 2374|     73|    MZ_MACRO_END
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  644|     73|#define MZ_MACRO_END while (0)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (644:29): [Folded, False: 32]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  | 2381|     73|        bit_buf |= (((tinfl_bit_buf_t)c) << num_bits); \
  |  |  |  | 2382|     32|        num_bits += 8;                                 \
  |  |  |  | 2383|     32|    } while (num_bits < (mz_uint)(n))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (2383:14): [True: 0, False: 32]
  |  |  |  |  ------------------
  |  |  ------------------
  |  | 2401|     73|        }                                    \
  |  | 2402|  20.7k|        b = bit_buf & ((1 << (n)) - 1);      \
  |  | 2403|  20.7k|        bit_buf >>= (n);                     \
  |  | 2404|  20.7k|        num_bits -= (n);                     \
  |  | 2405|  20.7k|    }                                        \
  |  | 2406|  20.7k|    MZ_MACRO_END
  |  |  ------------------
  |  |  |  |  644|  20.7k|#define MZ_MACRO_END while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (644:29): [Folded, False: 20.7k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2822|  20.7k|                        counter += extra_bits;
 2823|  20.7k|                    }
 2824|       |
 2825|   174k|                    TINFL_HUFF_DECODE(26, dist, r->m_look_up[1], r->m_tree_1);
  ------------------
  |  | 2444|   174k|    do                                                                                                                              \
  |  | 2445|   174k|    {                                                                                                                               \
  |  | 2446|   174k|        int temp;                                                                                                                   \
  |  | 2447|   174k|        mz_uint code_len, c;                                                                                                        \
  |  | 2448|   174k|        if (num_bits < 15)                                                                                                          \
  |  |  ------------------
  |  |  |  Branch (2448:13): [True: 1.18k, False: 173k]
  |  |  ------------------
  |  | 2449|   174k|        {                                                                                                                           \
  |  | 2450|  1.18k|            if ((pIn_buf_end - pIn_buf_cur) < 2)                                                                                    \
  |  |  ------------------
  |  |  |  Branch (2450:17): [True: 562, False: 619]
  |  |  ------------------
  |  | 2451|  1.18k|            {                                                                                                                       \
  |  | 2452|    562|                TINFL_HUFF_BITBUF_FILL(state_index, pLookUp, pTree);                                                                \
  |  |  ------------------
  |  |  |  | 2413|    562|    do                                                               \
  |  |  |  | 2414|    676|    {                                                                \
  |  |  |  | 2415|    676|        temp = pLookUp[bit_buf & (TINFL_FAST_LOOKUP_SIZE - 1)];      \
  |  |  |  | 2416|    676|        if (temp >= 0)                                               \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (2416:13): [True: 536, False: 140]
  |  |  |  |  ------------------
  |  |  |  | 2417|    676|        {                                                            \
  |  |  |  | 2418|    536|            code_len = temp >> 9;                                    \
  |  |  |  | 2419|    536|            if ((code_len) && (num_bits >= code_len))                \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (2419:17): [True: 428, False: 108]
  |  |  |  |  |  Branch (2419:31): [True: 362, False: 66]
  |  |  |  |  ------------------
  |  |  |  | 2420|    536|                break;                                               \
  |  |  |  | 2421|    536|        }                                                            \
  |  |  |  | 2422|    676|        else if (num_bits > TINFL_FAST_LOOKUP_BITS)                  \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (2422:18): [True: 63, False: 77]
  |  |  |  |  ------------------
  |  |  |  | 2423|    140|        {                                                            \
  |  |  |  | 2424|     63|            code_len = TINFL_FAST_LOOKUP_BITS;                       \
  |  |  |  | 2425|     63|            do                                                       \
  |  |  |  | 2426|    185|            {                                                        \
  |  |  |  | 2427|    185|                temp = pTree[~temp + ((bit_buf >> code_len++) & 1)]; \
  |  |  |  | 2428|    185|            } while ((temp < 0) && (num_bits >= (code_len + 1)));    \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (2428:22): [True: 152, False: 33]
  |  |  |  |  |  Branch (2428:36): [True: 122, False: 30]
  |  |  |  |  ------------------
  |  |  |  | 2429|     63|            if (temp >= 0)                                           \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (2429:17): [True: 33, False: 30]
  |  |  |  |  ------------------
  |  |  |  | 2430|     63|                break;                                               \
  |  |  |  | 2431|     63|        }                                                            \
  |  |  |  | 2432|    676|        TINFL_GET_BYTE(state_index, c);                              \
  |  |  |  |  ------------------
  |  |  |  |  |  | 2366|    281|    do                                                                                                                                                           \
  |  |  |  |  |  | 2367|    281|    {                                                                                                                                                            \
  |  |  |  |  |  | 2368|    281|        while (pIn_buf_cur >= pIn_buf_end)                                                                                                                       \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (2368:16): [True: 117, False: 164]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  | 2369|    281|        {                                                                                                                                                        \
  |  |  |  |  |  | 2370|    117|            TINFL_CR_RETURN(state_index, (decomp_flags & TINFL_FLAG_HAS_MORE_INPUT) ? TINFL_STATUS_NEEDS_MORE_INPUT : TINFL_STATUS_FAILED_CANNOT_MAKE_PROGRESS); \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  | 2346|    117|    do                                       \
  |  |  |  |  |  |  |  | 2347|    117|    {                                        \
  |  |  |  |  |  |  |  | 2348|    234|        status = result;                     \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (2348:18): [True: 0, False: 117]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  | 2349|    117|        r->m_state = state_index;            \
  |  |  |  |  |  |  |  | 2350|    117|        goto common_exit;                    \
  |  |  |  |  |  |  |  | 2351|    117|        case state_index:;                   \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (2351:9): [True: 0, False: 1.80k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  | 2352|      0|    }                                        \
  |  |  |  |  |  |  |  | 2353|    117|    MZ_MACRO_END
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  644|    117|#define MZ_MACRO_END while (0)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (644:29): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  | 2371|    117|        }                                                                                                                                                        \
  |  |  |  |  |  | 2372|    281|        c = *pIn_buf_cur++;                                                                                                                                      \
  |  |  |  |  |  | 2373|    164|    }                                                                                                                                                            \
  |  |  |  |  |  | 2374|    676|    MZ_MACRO_END
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  644|    676|#define MZ_MACRO_END while (0)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (644:29): [Folded, False: 164]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  | 2433|    281|        bit_buf |= (((tinfl_bit_buf_t)c) << num_bits);               \
  |  |  |  | 2434|    164|        num_bits += 8;                                               \
  |  |  |  | 2435|    164|    } while (num_bits < 15);
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (2435:14): [True: 114, False: 50]
  |  |  |  |  ------------------
  |  |  ------------------
  |  | 2453|    445|            }                                                                                                                       \
  |  | 2454|  1.18k|            else                                                                                                                    \
  |  | 2455|  1.18k|            {                                                                                                                       \
  |  | 2456|    619|                bit_buf |= (((tinfl_bit_buf_t)pIn_buf_cur[0]) << num_bits) | (((tinfl_bit_buf_t)pIn_buf_cur[1]) << (num_bits + 8)); \
  |  | 2457|    619|                pIn_buf_cur += 2;                                                                                                   \
  |  | 2458|    619|                num_bits += 16;                                                                                                     \
  |  | 2459|    619|            }                                                                                                                       \
  |  | 2460|  1.18k|        }                                                                                                                           \
  |  | 2461|   174k|        if ((temp = pLookUp[bit_buf & (TINFL_FAST_LOOKUP_SIZE - 1)]) >= 0)                                                          \
  |  |  ------------------
  |  |  |  Branch (2461:13): [True: 171k, False: 2.28k]
  |  |  ------------------
  |  | 2462|   174k|            code_len = temp >> 9, temp &= 511;                                                                                      \
  |  | 2463|   174k|        else                                                                                                                        \
  |  | 2464|   174k|        {                                                                                                                           \
  |  | 2465|  2.28k|            code_len = TINFL_FAST_LOOKUP_BITS;                                                                                      \
  |  | 2466|  2.28k|            do                                                                                                                      \
  |  | 2467|  9.43k|            {                                                                                                                       \
  |  | 2468|  9.43k|                temp = pTree[~temp + ((bit_buf >> code_len++) & 1)];                                                                \
  |  | 2469|  9.43k|            } while (temp < 0);                                                                                                     \
  |  |  ------------------
  |  |  |  Branch (2469:22): [True: 7.15k, False: 2.28k]
  |  |  ------------------
  |  | 2470|  2.28k|        }                                                                                                                           \
  |  | 2471|   174k|        sym = temp;                                                                                                                 \
  |  | 2472|   174k|        bit_buf >>= code_len;                                                                                                       \
  |  | 2473|   174k|        num_bits -= code_len;                                                                                                       \
  |  | 2474|   174k|    }                                                                                                                               \
  |  | 2475|   174k|    MZ_MACRO_END
  |  |  ------------------
  |  |  |  |  644|   174k|#define MZ_MACRO_END while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (644:29): [Folded, False: 174k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2826|   174k|                    num_extra = s_dist_extra[dist];
 2827|   174k|                    dist = s_dist_base[dist];
 2828|   174k|                    if (num_extra)
  ------------------
  |  Branch (2828:25): [True: 13.4k, False: 160k]
  ------------------
 2829|  13.4k|                    {
 2830|  13.4k|                        mz_uint extra_bits;
 2831|  13.4k|                        TINFL_GET_BITS(27, extra_bits, num_extra);
  ------------------
  |  | 2396|  13.4k|    do                                       \
  |  | 2397|  13.4k|    {                                        \
  |  | 2398|  13.4k|        if (num_bits < (mz_uint)(n))         \
  |  |  ------------------
  |  |  |  Branch (2398:13): [True: 500, False: 12.9k]
  |  |  ------------------
  |  | 2399|  13.4k|        {                                    \
  |  | 2400|    500|            TINFL_NEED_BITS(state_index, n); \
  |  |  ------------------
  |  |  |  | 2377|    500|    do                                                 \
  |  |  |  | 2378|    530|    {                                                  \
  |  |  |  | 2379|    530|        mz_uint c;                                     \
  |  |  |  | 2380|    530|        TINFL_GET_BYTE(state_index, c);                \
  |  |  |  |  ------------------
  |  |  |  |  |  | 2366|    530|    do                                                                                                                                                           \
  |  |  |  |  |  | 2367|    530|    {                                                                                                                                                            \
  |  |  |  |  |  | 2368|    530|        while (pIn_buf_cur >= pIn_buf_end)                                                                                                                       \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (2368:16): [True: 79, False: 451]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  | 2369|    530|        {                                                                                                                                                        \
  |  |  |  |  |  | 2370|     79|            TINFL_CR_RETURN(state_index, (decomp_flags & TINFL_FLAG_HAS_MORE_INPUT) ? TINFL_STATUS_NEEDS_MORE_INPUT : TINFL_STATUS_FAILED_CANNOT_MAKE_PROGRESS); \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  | 2346|     79|    do                                       \
  |  |  |  |  |  |  |  | 2347|     79|    {                                        \
  |  |  |  |  |  |  |  | 2348|    158|        status = result;                     \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (2348:18): [True: 0, False: 79]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  | 2349|     79|        r->m_state = state_index;            \
  |  |  |  |  |  |  |  | 2350|     79|        goto common_exit;                    \
  |  |  |  |  |  |  |  | 2351|     79|        case state_index:;                   \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (2351:9): [True: 0, False: 1.80k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  | 2352|      0|    }                                        \
  |  |  |  |  |  |  |  | 2353|     79|    MZ_MACRO_END
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  644|     79|#define MZ_MACRO_END while (0)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (644:29): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  | 2371|     79|        }                                                                                                                                                        \
  |  |  |  |  |  | 2372|    530|        c = *pIn_buf_cur++;                                                                                                                                      \
  |  |  |  |  |  | 2373|    451|    }                                                                                                                                                            \
  |  |  |  |  |  | 2374|    530|    MZ_MACRO_END
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  644|    530|#define MZ_MACRO_END while (0)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (644:29): [Folded, False: 451]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  | 2381|    530|        bit_buf |= (((tinfl_bit_buf_t)c) << num_bits); \
  |  |  |  | 2382|    451|        num_bits += 8;                                 \
  |  |  |  | 2383|    451|    } while (num_bits < (mz_uint)(n))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (2383:14): [True: 30, False: 421]
  |  |  |  |  ------------------
  |  |  ------------------
  |  | 2401|    500|        }                                    \
  |  | 2402|  13.4k|        b = bit_buf & ((1 << (n)) - 1);      \
  |  | 2403|  13.4k|        bit_buf >>= (n);                     \
  |  | 2404|  13.4k|        num_bits -= (n);                     \
  |  | 2405|  13.4k|    }                                        \
  |  | 2406|  13.4k|    MZ_MACRO_END
  |  |  ------------------
  |  |  |  |  644|  13.4k|#define MZ_MACRO_END while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (644:29): [Folded, False: 13.4k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2832|  13.4k|                        dist += extra_bits;
 2833|  13.4k|                    }
 2834|       |
 2835|   174k|                    dist_from_out_buf_start = pOut_buf_cur - pOut_buf_start;
 2836|   174k|                    if ((dist == 0 || dist > dist_from_out_buf_start || dist_from_out_buf_start == 0) && (decomp_flags & TINFL_FLAG_USING_NON_WRAPPING_OUTPUT_BUF))
  ------------------
  |  Branch (2836:26): [True: 32, False: 174k]
  |  Branch (2836:39): [True: 106, False: 173k]
  |  Branch (2836:73): [True: 0, False: 173k]
  |  Branch (2836:106): [True: 138, False: 0]
  ------------------
 2837|    138|                    {
 2838|    138|                        TINFL_CR_RETURN_FOREVER(37, TINFL_STATUS_FAILED);
  ------------------
  |  | 2355|    138|    do                                               \
  |  | 2356|    138|    {                                                \
  |  | 2357|    138|        for (;;)                                     \
  |  | 2358|    138|        {                                            \
  |  | 2359|    138|            TINFL_CR_RETURN(state_index, result);    \
  |  |  ------------------
  |  |  |  | 2346|    138|    do                                       \
  |  |  |  | 2347|    138|    {                                        \
  |  |  |  | 2348|    138|        status = result;                     \
  |  |  |  | 2349|    138|        r->m_state = state_index;            \
  |  |  |  | 2350|    138|        goto common_exit;                    \
  |  |  |  | 2351|    138|        case state_index:;                   \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (2351:9): [True: 0, False: 1.80k]
  |  |  |  |  ------------------
  |  |  |  | 2352|      0|    }                                        \
  |  |  |  | 2353|    138|    MZ_MACRO_END
  |  |  |  |  ------------------
  |  |  |  |  |  |  644|    138|#define MZ_MACRO_END while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (644:29): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  | 2360|    138|        }                                            \
  |  | 2361|    138|    }                                                \
  |  | 2362|    138|    MZ_MACRO_END
  |  |  ------------------
  |  |  |  |  644|    138|#define MZ_MACRO_END while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (644:29): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2839|    138|                    }
 2840|       |
 2841|   173k|                    pSrc = pOut_buf_start + ((dist_from_out_buf_start - dist) & out_buf_size_mask);
 2842|       |
 2843|   173k|                    if ((MZ_MAX(pOut_buf_cur, pSrc) + counter) > pOut_buf_end)
  ------------------
  |  |  677|   173k|#define MZ_MAX(a, b) (((a) > (b)) ? (a) : (b))
  |  |  ------------------
  |  |  |  Branch (677:23): [True: 173k, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (2843:25): [True: 66, False: 173k]
  ------------------
 2844|     66|                    {
 2845|    984|                        while (counter--)
  ------------------
  |  Branch (2845:32): [True: 984, False: 0]
  ------------------
 2846|    984|                        {
 2847|    984|                            while (pOut_buf_cur >= pOut_buf_end)
  ------------------
  |  Branch (2847:36): [True: 66, False: 918]
  ------------------
 2848|     66|                            {
 2849|     66|                                TINFL_CR_RETURN(53, TINFL_STATUS_HAS_MORE_OUTPUT);
  ------------------
  |  | 2346|     66|    do                                       \
  |  | 2347|     66|    {                                        \
  |  | 2348|     66|        status = result;                     \
  |  | 2349|     66|        r->m_state = state_index;            \
  |  | 2350|     66|        goto common_exit;                    \
  |  | 2351|     66|        case state_index:;                   \
  |  |  ------------------
  |  |  |  Branch (2351:9): [True: 0, False: 1.80k]
  |  |  ------------------
  |  | 2352|      0|    }                                        \
  |  | 2353|     66|    MZ_MACRO_END
  |  |  ------------------
  |  |  |  |  644|     66|#define MZ_MACRO_END while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (644:29): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2850|     66|                            }
 2851|    918|                            *pOut_buf_cur++ = pOut_buf_start[(dist_from_out_buf_start++ - dist) & out_buf_size_mask];
 2852|    918|                        }
 2853|      0|                        continue;
 2854|     66|                    }
 2855|       |#if MINIZ_USE_UNALIGNED_LOADS_AND_STORES
 2856|       |                    else if ((counter >= 9) && (counter <= dist))
 2857|       |                    {
 2858|       |                        const mz_uint8 *pSrc_end = pSrc + (counter & ~7);
 2859|       |                        do
 2860|       |                        {
 2861|       |#ifdef MINIZ_UNALIGNED_USE_MEMCPY
 2862|       |                            memcpy(pOut_buf_cur, pSrc, sizeof(mz_uint32) * 2);
 2863|       |#else
 2864|       |                            ((mz_uint32 *)pOut_buf_cur)[0] = ((const mz_uint32 *)pSrc)[0];
 2865|       |                            ((mz_uint32 *)pOut_buf_cur)[1] = ((const mz_uint32 *)pSrc)[1];
 2866|       |#endif /* MINIZ_UNALIGNED_USE_MEMCPY */
 2867|       |                            pOut_buf_cur += 8;
 2868|       |                        } while ((pSrc += 8) < pSrc_end);
 2869|       |                        if ((counter &= 7) < 3)
 2870|       |                        {
 2871|       |                            if (counter)
 2872|       |                            {
 2873|       |                                pOut_buf_cur[0] = pSrc[0];
 2874|       |                                if (counter > 1)
 2875|       |                                    pOut_buf_cur[1] = pSrc[1];
 2876|       |                                pOut_buf_cur += counter;
 2877|       |                            }
 2878|       |                            continue;
 2879|       |                        }
 2880|       |                    }
 2881|       |#endif /* MINIZ_USE_UNALIGNED_LOADS_AND_STORES */
 2882|   811k|                    while (counter > 2)
  ------------------
  |  Branch (2882:28): [True: 637k, False: 173k]
  ------------------
 2883|   637k|                    {
 2884|   637k|                        pOut_buf_cur[0] = pSrc[0];
 2885|   637k|                        pOut_buf_cur[1] = pSrc[1];
 2886|   637k|                        pOut_buf_cur[2] = pSrc[2];
 2887|   637k|                        pOut_buf_cur += 3;
 2888|   637k|                        pSrc += 3;
 2889|   637k|                        counter -= 3;
 2890|   637k|                    }
 2891|   173k|                    if (counter > 0)
  ------------------
  |  Branch (2891:25): [True: 153k, False: 20.0k]
  ------------------
 2892|   153k|                    {
 2893|   153k|                        pOut_buf_cur[0] = pSrc[0];
 2894|   153k|                        if (counter > 1)
  ------------------
  |  Branch (2894:29): [True: 91.5k, False: 62.3k]
  ------------------
 2895|  91.5k|                            pOut_buf_cur[1] = pSrc[1];
 2896|   153k|                        pOut_buf_cur += counter;
 2897|   153k|                    }
 2898|   173k|                }
 2899|  4.68k|            }
 2900|  7.41k|        } while (!(r->m_final & 1));
  ------------------
  |  Branch (2900:18): [True: 5.64k, False: 215]
  ------------------
 2901|       |
 2902|       |        /* Ensure byte alignment and put back any bytes from the bitbuf if we've looked ahead too far on gzip, or other Deflate streams followed by arbitrary data. */
 2903|       |        /* I'm being super conservative here. A number of simplifications can be made to the byte alignment part, and the Adler32 check shouldn't ever need to worry about reading from the bitbuf now. */
 2904|    215|        TINFL_SKIP_BITS(32, num_bits & 7);
  ------------------
  |  | 2385|    215|    do                                       \
  |  | 2386|    215|    {                                        \
  |  | 2387|    215|        if (num_bits < (mz_uint)(n))         \
  |  |  ------------------
  |  |  |  Branch (2387:13): [True: 0, False: 215]
  |  |  ------------------
  |  | 2388|    215|        {                                    \
  |  | 2389|      0|            TINFL_NEED_BITS(state_index, n); \
  |  |  ------------------
  |  |  |  | 2377|      0|    do                                                 \
  |  |  |  | 2378|      0|    {                                                  \
  |  |  |  | 2379|      0|        mz_uint c;                                     \
  |  |  |  | 2380|      0|        TINFL_GET_BYTE(state_index, c);                \
  |  |  |  |  ------------------
  |  |  |  |  |  | 2366|      0|    do                                                                                                                                                           \
  |  |  |  |  |  | 2367|      0|    {                                                                                                                                                            \
  |  |  |  |  |  | 2368|      0|        while (pIn_buf_cur >= pIn_buf_end)                                                                                                                       \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (2368:16): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  | 2369|      0|        {                                                                                                                                                        \
  |  |  |  |  |  | 2370|      0|            TINFL_CR_RETURN(state_index, (decomp_flags & TINFL_FLAG_HAS_MORE_INPUT) ? TINFL_STATUS_NEEDS_MORE_INPUT : TINFL_STATUS_FAILED_CANNOT_MAKE_PROGRESS); \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  | 2346|      0|    do                                       \
  |  |  |  |  |  |  |  | 2347|      0|    {                                        \
  |  |  |  |  |  |  |  | 2348|      0|        status = result;                     \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (2348:18): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  | 2349|      0|        r->m_state = state_index;            \
  |  |  |  |  |  |  |  | 2350|      0|        goto common_exit;                    \
  |  |  |  |  |  |  |  | 2351|      0|        case state_index:;                   \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (2351:9): [True: 0, False: 1.80k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  | 2352|      0|    }                                        \
  |  |  |  |  |  |  |  | 2353|      0|    MZ_MACRO_END
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  644|      0|#define MZ_MACRO_END while (0)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (644:29): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  | 2371|      0|        }                                                                                                                                                        \
  |  |  |  |  |  | 2372|      0|        c = *pIn_buf_cur++;                                                                                                                                      \
  |  |  |  |  |  | 2373|      0|    }                                                                                                                                                            \
  |  |  |  |  |  | 2374|      0|    MZ_MACRO_END
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  644|      0|#define MZ_MACRO_END while (0)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (644:29): [Folded, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  | 2381|      0|        bit_buf |= (((tinfl_bit_buf_t)c) << num_bits); \
  |  |  |  | 2382|      0|        num_bits += 8;                                 \
  |  |  |  | 2383|      0|    } while (num_bits < (mz_uint)(n))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (2383:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  | 2390|      0|        }                                    \
  |  | 2391|    215|        bit_buf >>= (n);                     \
  |  | 2392|    215|        num_bits -= (n);                     \
  |  | 2393|    215|    }                                        \
  |  | 2394|  1.80k|    MZ_MACRO_END
  |  |  ------------------
  |  |  |  |  644|  1.80k|#define MZ_MACRO_END while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (644:29): [Folded, False: 215]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2905|    604|        while ((pIn_buf_cur > pIn_buf_next) && (num_bits >= 8))
  ------------------
  |  Branch (2905:16): [True: 604, False: 0]
  |  Branch (2905:48): [True: 389, False: 215]
  ------------------
 2906|    389|        {
 2907|    389|            --pIn_buf_cur;
 2908|    389|            num_bits -= 8;
 2909|    389|        }
 2910|    215|        bit_buf &= ~(~(tinfl_bit_buf_t)0 << num_bits);
 2911|    215|        MZ_ASSERT(!num_bits); /* if this assert fires then we've read beyond the end of non-deflate/zlib streams with following data (such as gzip streams). */
  ------------------
  |  |  665|    215|#define MZ_ASSERT(x) assert(x)
  ------------------
 2912|       |
 2913|    215|        if (decomp_flags & TINFL_FLAG_PARSE_ZLIB_HEADER)
  ------------------
  |  Branch (2913:13): [True: 0, False: 215]
  ------------------
 2914|      0|        {
 2915|      0|            for (counter = 0; counter < 4; ++counter)
  ------------------
  |  Branch (2915:31): [True: 0, False: 0]
  ------------------
 2916|      0|            {
 2917|      0|                mz_uint s;
 2918|      0|                if (num_bits)
  ------------------
  |  Branch (2918:21): [True: 0, False: 0]
  ------------------
 2919|      0|                    TINFL_GET_BITS(41, s, 8);
  ------------------
  |  | 2396|      0|    do                                       \
  |  | 2397|      0|    {                                        \
  |  | 2398|      0|        if (num_bits < (mz_uint)(n))         \
  |  |  ------------------
  |  |  |  Branch (2398:13): [True: 0, False: 0]
  |  |  ------------------
  |  | 2399|      0|        {                                    \
  |  | 2400|      0|            TINFL_NEED_BITS(state_index, n); \
  |  |  ------------------
  |  |  |  | 2377|      0|    do                                                 \
  |  |  |  | 2378|      0|    {                                                  \
  |  |  |  | 2379|      0|        mz_uint c;                                     \
  |  |  |  | 2380|      0|        TINFL_GET_BYTE(state_index, c);                \
  |  |  |  |  ------------------
  |  |  |  |  |  | 2366|      0|    do                                                                                                                                                           \
  |  |  |  |  |  | 2367|      0|    {                                                                                                                                                            \
  |  |  |  |  |  | 2368|      0|        while (pIn_buf_cur >= pIn_buf_end)                                                                                                                       \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (2368:16): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  | 2369|      0|        {                                                                                                                                                        \
  |  |  |  |  |  | 2370|      0|            TINFL_CR_RETURN(state_index, (decomp_flags & TINFL_FLAG_HAS_MORE_INPUT) ? TINFL_STATUS_NEEDS_MORE_INPUT : TINFL_STATUS_FAILED_CANNOT_MAKE_PROGRESS); \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  | 2346|      0|    do                                       \
  |  |  |  |  |  |  |  | 2347|      0|    {                                        \
  |  |  |  |  |  |  |  | 2348|      0|        status = result;                     \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (2348:18): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  | 2349|      0|        r->m_state = state_index;            \
  |  |  |  |  |  |  |  | 2350|      0|        goto common_exit;                    \
  |  |  |  |  |  |  |  | 2351|      0|        case state_index:;                   \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (2351:9): [True: 0, False: 1.80k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  | 2352|      0|    }                                        \
  |  |  |  |  |  |  |  | 2353|      0|    MZ_MACRO_END
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  644|      0|#define MZ_MACRO_END while (0)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (644:29): [Folded, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  | 2371|      0|        }                                                                                                                                                        \
  |  |  |  |  |  | 2372|      0|        c = *pIn_buf_cur++;                                                                                                                                      \
  |  |  |  |  |  | 2373|      0|    }                                                                                                                                                            \
  |  |  |  |  |  | 2374|      0|    MZ_MACRO_END
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  644|      0|#define MZ_MACRO_END while (0)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (644:29): [Folded, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  | 2381|      0|        bit_buf |= (((tinfl_bit_buf_t)c) << num_bits); \
  |  |  |  | 2382|      0|        num_bits += 8;                                 \
  |  |  |  | 2383|      0|    } while (num_bits < (mz_uint)(n))
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (2383:14): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  | 2401|      0|        }                                    \
  |  | 2402|      0|        b = bit_buf & ((1 << (n)) - 1);      \
  |  | 2403|      0|        bit_buf >>= (n);                     \
  |  | 2404|      0|        num_bits -= (n);                     \
  |  | 2405|      0|    }                                        \
  |  | 2406|      0|    MZ_MACRO_END
  |  |  ------------------
  |  |  |  |  644|      0|#define MZ_MACRO_END while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (644:29): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2920|      0|                else
 2921|      0|                    TINFL_GET_BYTE(42, s);
  ------------------
  |  | 2366|      0|    do                                                                                                                                                           \
  |  | 2367|      0|    {                                                                                                                                                            \
  |  | 2368|      0|        while (pIn_buf_cur >= pIn_buf_end)                                                                                                                       \
  |  |  ------------------
  |  |  |  Branch (2368:16): [True: 0, False: 0]
  |  |  ------------------
  |  | 2369|      0|        {                                                                                                                                                        \
  |  | 2370|      0|            TINFL_CR_RETURN(state_index, (decomp_flags & TINFL_FLAG_HAS_MORE_INPUT) ? TINFL_STATUS_NEEDS_MORE_INPUT : TINFL_STATUS_FAILED_CANNOT_MAKE_PROGRESS); \
  |  |  ------------------
  |  |  |  | 2346|      0|    do                                       \
  |  |  |  | 2347|      0|    {                                        \
  |  |  |  | 2348|      0|        status = result;                     \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (2348:18): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  | 2349|      0|        r->m_state = state_index;            \
  |  |  |  | 2350|      0|        goto common_exit;                    \
  |  |  |  | 2351|      0|        case state_index:;                   \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (2351:9): [True: 0, False: 1.80k]
  |  |  |  |  ------------------
  |  |  |  | 2352|      0|    }                                        \
  |  |  |  | 2353|      0|    MZ_MACRO_END
  |  |  |  |  ------------------
  |  |  |  |  |  |  644|      0|#define MZ_MACRO_END while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (644:29): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  | 2371|      0|        }                                                                                                                                                        \
  |  | 2372|      0|        c = *pIn_buf_cur++;                                                                                                                                      \
  |  | 2373|      0|    }                                                                                                                                                            \
  |  | 2374|      0|    MZ_MACRO_END
  |  |  ------------------
  |  |  |  |  644|      0|#define MZ_MACRO_END while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (644:29): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2922|      0|                r->m_z_adler32 = (r->m_z_adler32 << 8) | s;
 2923|      0|            }
 2924|      0|        }
 2925|  1.80k|        TINFL_CR_RETURN_FOREVER(34, TINFL_STATUS_DONE);
  ------------------
  |  | 2355|    215|    do                                               \
  |  | 2356|    215|    {                                                \
  |  | 2357|    215|        for (;;)                                     \
  |  | 2358|    215|        {                                            \
  |  | 2359|    215|            TINFL_CR_RETURN(state_index, result);    \
  |  |  ------------------
  |  |  |  | 2346|    215|    do                                       \
  |  |  |  | 2347|    215|    {                                        \
  |  |  |  | 2348|    215|        status = result;                     \
  |  |  |  | 2349|    215|        r->m_state = state_index;            \
  |  |  |  | 2350|    215|        goto common_exit;                    \
  |  |  |  | 2351|    215|        case state_index:;                   \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (2351:9): [True: 0, False: 1.80k]
  |  |  |  |  ------------------
  |  |  |  | 2352|      0|    }                                        \
  |  |  |  | 2353|    215|    MZ_MACRO_END
  |  |  |  |  ------------------
  |  |  |  |  |  |  644|    215|#define MZ_MACRO_END while (0)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (644:29): [Folded, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  | 2360|    215|        }                                            \
  |  | 2361|    215|    }                                                \
  |  | 2362|    215|    MZ_MACRO_END
  |  |  ------------------
  |  |  |  |  644|    215|#define MZ_MACRO_END while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (644:29): [Folded, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2926|       |
 2927|  1.80k|        TINFL_CR_FINISH
  ------------------
  |  | 2363|  1.80k|#define TINFL_CR_FINISH }
  ------------------
 2928|       |
 2929|  1.80k|    common_exit:
 2930|       |        /* As long as we aren't telling the caller that we NEED more input to make forward progress: */
 2931|       |        /* Put back any bytes from the bitbuf in case we've looked ahead too far on gzip, or other Deflate streams followed by arbitrary data. */
 2932|       |        /* We need to be very careful here to NOT push back any bytes we definitely know we need to make forward progress, though, or we'll lock the caller up into an inf loop. */
 2933|  1.80k|        if ((status != TINFL_STATUS_NEEDS_MORE_INPUT) && (status != TINFL_STATUS_FAILED_CANNOT_MAKE_PROGRESS))
  ------------------
  |  Branch (2933:13): [True: 1.80k, False: 0]
  |  Branch (2933:58): [True: 1.02k, False: 778]
  ------------------
 2934|  1.02k|        {
 2935|  2.62k|            while ((pIn_buf_cur > pIn_buf_next) && (num_bits >= 8))
  ------------------
  |  Branch (2935:20): [True: 2.62k, False: 0]
  |  Branch (2935:52): [True: 1.60k, False: 1.02k]
  ------------------
 2936|  1.60k|            {
 2937|  1.60k|                --pIn_buf_cur;
 2938|  1.60k|                num_bits -= 8;
 2939|  1.60k|            }
 2940|  1.02k|        }
 2941|  1.80k|        r->m_num_bits = num_bits;
 2942|  1.80k|        r->m_bit_buf = bit_buf & ~(~(tinfl_bit_buf_t)0 << num_bits);
 2943|  1.80k|        r->m_dist = dist;
 2944|  1.80k|        r->m_counter = counter;
 2945|  1.80k|        r->m_num_extra = num_extra;
 2946|  1.80k|        r->m_dist_from_out_buf_start = dist_from_out_buf_start;
 2947|  1.80k|        *pIn_buf_size = pIn_buf_cur - pIn_buf_next;
 2948|  1.80k|        *pOut_buf_size = pOut_buf_cur - pOut_buf_next;
 2949|  1.80k|        if ((decomp_flags & (TINFL_FLAG_PARSE_ZLIB_HEADER | TINFL_FLAG_COMPUTE_ADLER32)) && (status >= 0))
  ------------------
  |  Branch (2949:13): [True: 0, False: 1.80k]
  |  Branch (2949:93): [True: 0, False: 0]
  ------------------
 2950|      0|        {
 2951|      0|            const mz_uint8 *ptr = pOut_buf_next;
 2952|      0|            size_t buf_len = *pOut_buf_size;
 2953|      0|            mz_uint32 i, s1 = r->m_check_adler32 & 0xffff, s2 = r->m_check_adler32 >> 16;
 2954|      0|            size_t block_len = buf_len % 5552;
 2955|      0|            while (buf_len)
  ------------------
  |  Branch (2955:20): [True: 0, False: 0]
  ------------------
 2956|      0|            {
 2957|      0|                for (i = 0; i + 7 < block_len; i += 8, ptr += 8)
  ------------------
  |  Branch (2957:29): [True: 0, False: 0]
  ------------------
 2958|      0|                {
 2959|      0|                    s1 += ptr[0], s2 += s1;
 2960|      0|                    s1 += ptr[1], s2 += s1;
 2961|      0|                    s1 += ptr[2], s2 += s1;
 2962|      0|                    s1 += ptr[3], s2 += s1;
 2963|      0|                    s1 += ptr[4], s2 += s1;
 2964|      0|                    s1 += ptr[5], s2 += s1;
 2965|      0|                    s1 += ptr[6], s2 += s1;
 2966|      0|                    s1 += ptr[7], s2 += s1;
 2967|      0|                }
 2968|      0|                for (; i < block_len; ++i)
  ------------------
  |  Branch (2968:24): [True: 0, False: 0]
  ------------------
 2969|      0|                    s1 += *ptr++, s2 += s1;
 2970|      0|                s1 %= 65521U, s2 %= 65521U;
 2971|      0|                buf_len -= block_len;
 2972|      0|                block_len = 5552;
 2973|      0|            }
 2974|      0|            r->m_check_adler32 = (s2 << 16) + s1;
 2975|      0|            if ((status == TINFL_STATUS_DONE) && (decomp_flags & TINFL_FLAG_PARSE_ZLIB_HEADER) && (r->m_check_adler32 != r->m_z_adler32))
  ------------------
  |  Branch (2975:17): [True: 0, False: 0]
  |  Branch (2975:50): [True: 0, False: 0]
  |  Branch (2975:99): [True: 0, False: 0]
  ------------------
 2976|      0|                status = TINFL_STATUS_ADLER32_MISMATCH;
 2977|      0|        }
 2978|  1.80k|        return status;
 2979|  1.80k|    }
mz_zip_reader_end:
 4106|  2.82k|    {
 4107|  2.82k|        return mz_zip_reader_end_internal(pZip, MZ_TRUE);
  ------------------
  |  |  638|  2.82k|#define MZ_TRUE (1)
  ------------------
 4108|  2.82k|    }
mz_zip_reader_init:
 4110|  4.16k|    {
 4111|  4.16k|        if ((!pZip) || (!pZip->m_pRead))
  ------------------
  |  Branch (4111:13): [True: 0, False: 4.16k]
  |  Branch (4111:24): [True: 0, False: 4.16k]
  ------------------
 4112|      0|            return mz_zip_set_error(pZip, MZ_ZIP_INVALID_PARAMETER);
 4113|       |
 4114|  4.16k|        if (!mz_zip_reader_init_internal(pZip, flags))
  ------------------
  |  Branch (4114:13): [True: 0, False: 4.16k]
  ------------------
 4115|      0|            return MZ_FALSE;
  ------------------
  |  |  637|      0|#define MZ_FALSE (0)
  ------------------
 4116|       |
 4117|  4.16k|        pZip->m_zip_type = MZ_ZIP_TYPE_USER;
 4118|  4.16k|        pZip->m_archive_size = size;
 4119|       |
 4120|  4.16k|        if (!mz_zip_reader_read_central_dir(pZip, flags))
  ------------------
  |  Branch (4120:13): [True: 1.33k, False: 2.82k]
  ------------------
 4121|  1.33k|        {
 4122|  1.33k|            mz_zip_reader_end_internal(pZip, MZ_FALSE);
  ------------------
  |  |  637|  1.33k|#define MZ_FALSE (0)
  ------------------
 4123|  1.33k|            return MZ_FALSE;
  ------------------
  |  |  637|  1.33k|#define MZ_FALSE (0)
  ------------------
 4124|  1.33k|        }
 4125|       |
 4126|  2.82k|        return MZ_TRUE;
  ------------------
  |  |  638|  2.82k|#define MZ_TRUE (1)
  ------------------
 4127|  4.16k|    }
mz_zip_reader_is_file_encrypted:
 4295|  21.7k|    {
 4296|  21.7k|        mz_uint m_bit_flag;
 4297|  21.7k|        const mz_uint8 *p = mz_zip_get_cdh(pZip, file_index);
 4298|  21.7k|        if (!p)
  ------------------
  |  Branch (4298:13): [True: 0, False: 21.7k]
  ------------------
 4299|      0|        {
 4300|      0|            mz_zip_set_error(pZip, MZ_ZIP_INVALID_PARAMETER);
 4301|      0|            return MZ_FALSE;
  ------------------
  |  |  637|      0|#define MZ_FALSE (0)
  ------------------
 4302|      0|        }
 4303|       |
 4304|  21.7k|        m_bit_flag = MZ_READ_LE16(p + MZ_ZIP_CDH_BIT_FLAG_OFS);
  ------------------
  |  |  687|  21.7k|#define MZ_READ_LE16(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U))
  ------------------
 4305|  21.7k|        return (m_bit_flag & (MZ_ZIP_GENERAL_PURPOSE_BIT_FLAG_IS_ENCRYPTED | MZ_ZIP_GENERAL_PURPOSE_BIT_FLAG_USES_STRONG_ENCRYPTION)) != 0;
 4306|  21.7k|    }
mz_zip_reader_is_file_supported:
 4309|  21.7k|    {
 4310|  21.7k|        mz_uint bit_flag;
 4311|  21.7k|        mz_uint method;
 4312|       |
 4313|  21.7k|        const mz_uint8 *p = mz_zip_get_cdh(pZip, file_index);
 4314|  21.7k|        if (!p)
  ------------------
  |  Branch (4314:13): [True: 0, False: 21.7k]
  ------------------
 4315|      0|        {
 4316|      0|            mz_zip_set_error(pZip, MZ_ZIP_INVALID_PARAMETER);
 4317|      0|            return MZ_FALSE;
  ------------------
  |  |  637|      0|#define MZ_FALSE (0)
  ------------------
 4318|      0|        }
 4319|       |
 4320|  21.7k|        method = MZ_READ_LE16(p + MZ_ZIP_CDH_METHOD_OFS);
  ------------------
  |  |  687|  21.7k|#define MZ_READ_LE16(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U))
  ------------------
 4321|  21.7k|        bit_flag = MZ_READ_LE16(p + MZ_ZIP_CDH_BIT_FLAG_OFS);
  ------------------
  |  |  687|  21.7k|#define MZ_READ_LE16(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U))
  ------------------
 4322|       |
 4323|  21.7k|        if ((method != 0) && (method != MZ_DEFLATED))
  ------------------
  |  |  270|  15.9k|#define MZ_DEFLATED 8
  ------------------
  |  Branch (4323:13): [True: 15.9k, False: 5.80k]
  |  Branch (4323:30): [True: 8.00k, False: 7.91k]
  ------------------
 4324|  8.00k|        {
 4325|  8.00k|            mz_zip_set_error(pZip, MZ_ZIP_UNSUPPORTED_METHOD);
 4326|  8.00k|            return MZ_FALSE;
  ------------------
  |  |  637|  8.00k|#define MZ_FALSE (0)
  ------------------
 4327|  8.00k|        }
 4328|       |
 4329|  13.7k|        if (bit_flag & (MZ_ZIP_GENERAL_PURPOSE_BIT_FLAG_IS_ENCRYPTED | MZ_ZIP_GENERAL_PURPOSE_BIT_FLAG_USES_STRONG_ENCRYPTION))
  ------------------
  |  Branch (4329:13): [True: 1.49k, False: 12.2k]
  ------------------
 4330|  1.49k|        {
 4331|  1.49k|            mz_zip_set_error(pZip, MZ_ZIP_UNSUPPORTED_ENCRYPTION);
 4332|  1.49k|            return MZ_FALSE;
  ------------------
  |  |  637|  1.49k|#define MZ_FALSE (0)
  ------------------
 4333|  1.49k|        }
 4334|       |
 4335|  12.2k|        if (bit_flag & MZ_ZIP_GENERAL_PURPOSE_BIT_FLAG_COMPRESSED_PATCH_FLAG)
  ------------------
  |  Branch (4335:13): [True: 301, False: 11.9k]
  ------------------
 4336|    301|        {
 4337|    301|            mz_zip_set_error(pZip, MZ_ZIP_UNSUPPORTED_FEATURE);
 4338|    301|            return MZ_FALSE;
  ------------------
  |  |  637|    301|#define MZ_FALSE (0)
  ------------------
 4339|    301|        }
 4340|       |
 4341|  11.9k|        return MZ_TRUE;
  ------------------
  |  |  638|  11.9k|#define MZ_TRUE (1)
  ------------------
 4342|  12.2k|    }
mz_zip_reader_is_file_a_directory:
 4345|  21.7k|    {
 4346|  21.7k|        mz_uint filename_len, attribute_mapping_id, external_attr;
 4347|  21.7k|        const mz_uint8 *p = mz_zip_get_cdh(pZip, file_index);
 4348|  21.7k|        if (!p)
  ------------------
  |  Branch (4348:13): [True: 0, False: 21.7k]
  ------------------
 4349|      0|        {
 4350|      0|            mz_zip_set_error(pZip, MZ_ZIP_INVALID_PARAMETER);
 4351|      0|            return MZ_FALSE;
  ------------------
  |  |  637|      0|#define MZ_FALSE (0)
  ------------------
 4352|      0|        }
 4353|       |
 4354|  21.7k|        filename_len = MZ_READ_LE16(p + MZ_ZIP_CDH_FILENAME_LEN_OFS);
  ------------------
  |  |  687|  21.7k|#define MZ_READ_LE16(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U))
  ------------------
 4355|  21.7k|        if (filename_len)
  ------------------
  |  Branch (4355:13): [True: 19.1k, False: 2.57k]
  ------------------
 4356|  19.1k|        {
 4357|  19.1k|            if (*(p + MZ_ZIP_CENTRAL_DIR_HEADER_SIZE + filename_len - 1) == '/')
  ------------------
  |  Branch (4357:17): [True: 657, False: 18.4k]
  ------------------
 4358|    657|                return MZ_TRUE;
  ------------------
  |  |  638|    657|#define MZ_TRUE (1)
  ------------------
 4359|  19.1k|        }
 4360|       |
 4361|       |        /* Bugfix: This code was also checking if the internal attribute was non-zero, which wasn't correct. */
 4362|       |        /* Most/all zip writers (hopefully) set DOS file/directory attributes in the low 16-bits, so check for the DOS directory flag and ignore the source OS ID in the created by field. */
 4363|       |        /* FIXME: Remove this check? Is it necessary - we already check the filename. */
 4364|  21.0k|        attribute_mapping_id = MZ_READ_LE16(p + MZ_ZIP_CDH_VERSION_MADE_BY_OFS) >> 8;
  ------------------
  |  |  687|  21.0k|#define MZ_READ_LE16(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U))
  ------------------
 4365|  21.0k|        (void)attribute_mapping_id;
 4366|       |
 4367|  21.0k|        external_attr = MZ_READ_LE32(p + MZ_ZIP_CDH_EXTERNAL_ATTR_OFS);
  ------------------
  |  |  688|  21.0k|#define MZ_READ_LE32(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U) | ((mz_uint32)(((const mz_uint8 *)(p))[2]) << 16U) | ((mz_uint32)(((const mz_uint8 *)(p))[3]) << 24U))
  ------------------
 4368|  21.0k|        if ((external_attr & MZ_ZIP_DOS_DIR_ATTRIBUTE_BITFLAG) != 0)
  ------------------
  |  Branch (4368:13): [True: 5.42k, False: 15.6k]
  ------------------
 4369|  5.42k|        {
 4370|  5.42k|            return MZ_TRUE;
  ------------------
  |  |  638|  5.42k|#define MZ_TRUE (1)
  ------------------
 4371|  5.42k|        }
 4372|       |
 4373|  15.6k|        return MZ_FALSE;
  ------------------
  |  |  637|  15.6k|#define MZ_FALSE (0)
  ------------------
 4374|  21.0k|    }
mz_zip_reader_locate_file_v2:
 4574|  6.04k|    {
 4575|  6.04k|        mz_uint file_index;
 4576|  6.04k|        size_t name_len, comment_len;
 4577|       |
 4578|  6.04k|        if (pIndex)
  ------------------
  |  Branch (4578:13): [True: 6.04k, False: 0]
  ------------------
 4579|  6.04k|            *pIndex = 0;
 4580|       |
 4581|  6.04k|        if ((!pZip) || (!pZip->m_pState) || (!pName))
  ------------------
  |  Branch (4581:13): [True: 0, False: 6.04k]
  |  Branch (4581:24): [True: 0, False: 6.04k]
  |  Branch (4581:45): [True: 0, False: 6.04k]
  ------------------
 4582|      0|            return mz_zip_set_error(pZip, MZ_ZIP_INVALID_PARAMETER);
 4583|       |
 4584|       |        /* See if we can use a binary search */
 4585|  6.04k|        if (((pZip->m_pState->m_init_flags & MZ_ZIP_FLAG_DO_NOT_SORT_CENTRAL_DIRECTORY) == 0) &&
  ------------------
  |  Branch (4585:13): [True: 6.04k, False: 0]
  ------------------
 4586|  6.04k|            (pZip->m_zip_mode == MZ_ZIP_MODE_READING) &&
  ------------------
  |  Branch (4586:13): [True: 6.04k, False: 0]
  ------------------
 4587|  6.04k|            ((flags & (MZ_ZIP_FLAG_IGNORE_PATH | MZ_ZIP_FLAG_CASE_SENSITIVE)) == 0) && (!pComment) && (pZip->m_pState->m_sorted_central_dir_offsets.m_size))
  ------------------
  |  Branch (4587:13): [True: 0, False: 6.04k]
  |  Branch (4587:88): [True: 0, False: 0]
  |  Branch (4587:103): [True: 0, False: 0]
  ------------------
 4588|      0|        {
 4589|      0|            return mz_zip_locate_file_binary_search(pZip, pName, pIndex);
 4590|      0|        }
 4591|       |
 4592|       |        /* Locate the entry by scanning the entire central directory */
 4593|  6.04k|        name_len = strlen(pName);
 4594|  6.04k|        if (name_len > MZ_UINT16_MAX)
  ------------------
  |  |  702|  6.04k|#define MZ_UINT16_MAX (0xFFFFU)
  ------------------
  |  Branch (4594:13): [True: 0, False: 6.04k]
  ------------------
 4595|      0|            return mz_zip_set_error(pZip, MZ_ZIP_INVALID_PARAMETER);
 4596|       |
 4597|  6.04k|        comment_len = pComment ? strlen(pComment) : 0;
  ------------------
  |  Branch (4597:23): [True: 0, False: 6.04k]
  ------------------
 4598|  6.04k|        if (comment_len > MZ_UINT16_MAX)
  ------------------
  |  |  702|  6.04k|#define MZ_UINT16_MAX (0xFFFFU)
  ------------------
  |  Branch (4598:13): [True: 0, False: 6.04k]
  ------------------
 4599|      0|            return mz_zip_set_error(pZip, MZ_ZIP_INVALID_PARAMETER);
 4600|       |
 4601|  29.4k|        for (file_index = 0; file_index < pZip->m_total_files; file_index++)
  ------------------
  |  Branch (4601:30): [True: 28.4k, False: 965]
  ------------------
 4602|  28.4k|        {
 4603|  28.4k|            const mz_uint8 *pHeader = &MZ_ZIP_ARRAY_ELEMENT(&pZip->m_pState->m_central_dir, mz_uint8, MZ_ZIP_ARRAY_ELEMENT(&pZip->m_pState->m_central_dir_offsets, mz_uint32, file_index));
  ------------------
  |  | 3423|  28.4k|#define MZ_ZIP_ARRAY_ELEMENT(array_ptr, element_type, index) ((element_type *)((array_ptr)->m_p))[index]
  ------------------
 4604|  28.4k|            mz_uint filename_len = MZ_READ_LE16(pHeader + MZ_ZIP_CDH_FILENAME_LEN_OFS);
  ------------------
  |  |  687|  28.4k|#define MZ_READ_LE16(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U))
  ------------------
 4605|  28.4k|            const char *pFilename = (const char *)pHeader + MZ_ZIP_CENTRAL_DIR_HEADER_SIZE;
 4606|  28.4k|            if (filename_len < name_len)
  ------------------
  |  Branch (4606:17): [True: 4.74k, False: 23.7k]
  ------------------
 4607|  4.74k|                continue;
 4608|  23.7k|            if (comment_len)
  ------------------
  |  Branch (4608:17): [True: 0, False: 23.7k]
  ------------------
 4609|      0|            {
 4610|      0|                mz_uint file_extra_len = MZ_READ_LE16(pHeader + MZ_ZIP_CDH_EXTRA_LEN_OFS), file_comment_len = MZ_READ_LE16(pHeader + MZ_ZIP_CDH_COMMENT_LEN_OFS);
  ------------------
  |  |  687|      0|#define MZ_READ_LE16(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U))
  ------------------
                              mz_uint file_extra_len = MZ_READ_LE16(pHeader + MZ_ZIP_CDH_EXTRA_LEN_OFS), file_comment_len = MZ_READ_LE16(pHeader + MZ_ZIP_CDH_COMMENT_LEN_OFS);
  ------------------
  |  |  687|      0|#define MZ_READ_LE16(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U))
  ------------------
 4611|      0|                const char *pFile_comment = pFilename + filename_len + file_extra_len;
 4612|      0|                if ((file_comment_len != comment_len) || (!mz_zip_string_equal(pComment, pFile_comment, file_comment_len, flags)))
  ------------------
  |  Branch (4612:21): [True: 0, False: 0]
  |  Branch (4612:58): [True: 0, False: 0]
  ------------------
 4613|      0|                    continue;
 4614|      0|            }
 4615|  23.7k|            if ((flags & MZ_ZIP_FLAG_IGNORE_PATH) && (filename_len))
  ------------------
  |  Branch (4615:17): [True: 0, False: 23.7k]
  |  Branch (4615:54): [True: 0, False: 0]
  ------------------
 4616|      0|            {
 4617|      0|                int ofs = filename_len - 1;
 4618|      0|                do
 4619|      0|                {
 4620|      0|                    if ((pFilename[ofs] == '/') || (pFilename[ofs] == '\\') || (pFilename[ofs] == ':'))
  ------------------
  |  Branch (4620:25): [True: 0, False: 0]
  |  Branch (4620:52): [True: 0, False: 0]
  |  Branch (4620:80): [True: 0, False: 0]
  ------------------
 4621|      0|                        break;
 4622|      0|                } while (--ofs >= 0);
  ------------------
  |  Branch (4622:26): [True: 0, False: 0]
  ------------------
 4623|      0|                ofs++;
 4624|      0|                pFilename += ofs;
 4625|      0|                filename_len -= ofs;
 4626|      0|            }
 4627|  23.7k|            if ((filename_len == name_len) && (mz_zip_string_equal(pName, pFilename, filename_len, flags)))
  ------------------
  |  Branch (4627:17): [True: 8.17k, False: 15.5k]
  |  Branch (4627:47): [True: 5.07k, False: 3.10k]
  ------------------
 4628|  5.07k|            {
 4629|  5.07k|                if (pIndex)
  ------------------
  |  Branch (4629:21): [True: 5.07k, False: 0]
  ------------------
 4630|  5.07k|                    *pIndex = file_index;
 4631|  5.07k|                return MZ_TRUE;
  ------------------
  |  |  638|  5.07k|#define MZ_TRUE (1)
  ------------------
 4632|  5.07k|            }
 4633|  23.7k|        }
 4634|       |
 4635|    965|        return mz_zip_set_error(pZip, MZ_ZIP_FILE_NOT_FOUND);
 4636|  6.04k|    }
mz_zip_reader_extract_to_mem_no_alloc:
 4786|  3.32k|    {
 4787|       |        return mz_zip_reader_extract_to_mem_no_alloc1(pZip, file_index, pBuf, buf_size, flags, pUser_read_buf, user_read_buf_size, NULL);
 4788|  3.32k|    }
mz_zip_get_last_error:
 7804|  1.48k|    {
 7805|  1.48k|        mz_zip_error prev_err;
 7806|       |
 7807|  1.48k|        if (!pZip)
  ------------------
  |  Branch (7807:13): [True: 0, False: 1.48k]
  ------------------
 7808|      0|            return MZ_ZIP_INVALID_PARAMETER;
 7809|       |
 7810|  1.48k|        prev_err = pZip->m_last_error;
 7811|       |
 7812|  1.48k|        pZip->m_last_error = MZ_ZIP_NO_ERROR;
 7813|  1.48k|        return prev_err;
 7814|  1.48k|    }
mz_zip_get_error_string:
 7817|  1.48k|    {
 7818|  1.48k|        switch (mz_err)
 7819|  1.48k|        {
 7820|      0|            case MZ_ZIP_NO_ERROR:
  ------------------
  |  Branch (7820:13): [True: 0, False: 1.48k]
  ------------------
 7821|      0|                return "no error";
 7822|      0|            case MZ_ZIP_UNDEFINED_ERROR:
  ------------------
  |  Branch (7822:13): [True: 0, False: 1.48k]
  ------------------
 7823|      0|                return "undefined error";
 7824|    100|            case MZ_ZIP_TOO_MANY_FILES:
  ------------------
  |  Branch (7824:13): [True: 100, False: 1.38k]
  ------------------
 7825|    100|                return "too many files";
 7826|      0|            case MZ_ZIP_FILE_TOO_LARGE:
  ------------------
  |  Branch (7826:13): [True: 0, False: 1.48k]
  ------------------
 7827|      0|                return "file too large";
 7828|      0|            case MZ_ZIP_UNSUPPORTED_METHOD:
  ------------------
  |  Branch (7828:13): [True: 0, False: 1.48k]
  ------------------
 7829|      0|                return "unsupported method";
 7830|      5|            case MZ_ZIP_UNSUPPORTED_ENCRYPTION:
  ------------------
  |  Branch (7830:13): [True: 5, False: 1.47k]
  ------------------
 7831|      5|                return "unsupported encryption";
 7832|      0|            case MZ_ZIP_UNSUPPORTED_FEATURE:
  ------------------
  |  Branch (7832:13): [True: 0, False: 1.48k]
  ------------------
 7833|      0|                return "unsupported feature";
 7834|     74|            case MZ_ZIP_FAILED_FINDING_CENTRAL_DIR:
  ------------------
  |  Branch (7834:13): [True: 74, False: 1.40k]
  ------------------
 7835|     74|                return "failed finding central directory";
 7836|    165|            case MZ_ZIP_NOT_AN_ARCHIVE:
  ------------------
  |  Branch (7836:13): [True: 165, False: 1.31k]
  ------------------
 7837|    165|                return "not a ZIP archive";
 7838|    711|            case MZ_ZIP_INVALID_HEADER_OR_CORRUPTED:
  ------------------
  |  Branch (7838:13): [True: 711, False: 771]
  ------------------
 7839|    711|                return "invalid header or archive is corrupted";
 7840|    349|            case MZ_ZIP_UNSUPPORTED_MULTIDISK:
  ------------------
  |  Branch (7840:13): [True: 349, False: 1.13k]
  ------------------
 7841|    349|                return "unsupported multidisk archive";
 7842|      0|            case MZ_ZIP_DECOMPRESSION_FAILED:
  ------------------
  |  Branch (7842:13): [True: 0, False: 1.48k]
  ------------------
 7843|      0|                return "decompression failed or archive is corrupted";
 7844|      0|            case MZ_ZIP_COMPRESSION_FAILED:
  ------------------
  |  Branch (7844:13): [True: 0, False: 1.48k]
  ------------------
 7845|      0|                return "compression failed";
 7846|      0|            case MZ_ZIP_UNEXPECTED_DECOMPRESSED_SIZE:
  ------------------
  |  Branch (7846:13): [True: 0, False: 1.48k]
  ------------------
 7847|      0|                return "unexpected decompressed size";
 7848|      0|            case MZ_ZIP_CRC_CHECK_FAILED:
  ------------------
  |  Branch (7848:13): [True: 0, False: 1.48k]
  ------------------
 7849|      0|                return "CRC-32 check failed";
 7850|     46|            case MZ_ZIP_UNSUPPORTED_CDIR_SIZE:
  ------------------
  |  Branch (7850:13): [True: 46, False: 1.43k]
  ------------------
 7851|     46|                return "unsupported central directory size";
 7852|      0|            case MZ_ZIP_ALLOC_FAILED:
  ------------------
  |  Branch (7852:13): [True: 0, False: 1.48k]
  ------------------
 7853|      0|                return "allocation failed";
 7854|      0|            case MZ_ZIP_FILE_OPEN_FAILED:
  ------------------
  |  Branch (7854:13): [True: 0, False: 1.48k]
  ------------------
 7855|      0|                return "file open failed";
 7856|      0|            case MZ_ZIP_FILE_CREATE_FAILED:
  ------------------
  |  Branch (7856:13): [True: 0, False: 1.48k]
  ------------------
 7857|      0|                return "file create failed";
 7858|      0|            case MZ_ZIP_FILE_WRITE_FAILED:
  ------------------
  |  Branch (7858:13): [True: 0, False: 1.48k]
  ------------------
 7859|      0|                return "file write failed";
 7860|     32|            case MZ_ZIP_FILE_READ_FAILED:
  ------------------
  |  Branch (7860:13): [True: 32, False: 1.45k]
  ------------------
 7861|     32|                return "file read failed";
 7862|      0|            case MZ_ZIP_FILE_CLOSE_FAILED:
  ------------------
  |  Branch (7862:13): [True: 0, False: 1.48k]
  ------------------
 7863|      0|                return "file close failed";
 7864|      0|            case MZ_ZIP_FILE_SEEK_FAILED:
  ------------------
  |  Branch (7864:13): [True: 0, False: 1.48k]
  ------------------
 7865|      0|                return "file seek failed";
 7866|      0|            case MZ_ZIP_FILE_STAT_FAILED:
  ------------------
  |  Branch (7866:13): [True: 0, False: 1.48k]
  ------------------
 7867|      0|                return "file stat failed";
 7868|      0|            case MZ_ZIP_INVALID_PARAMETER:
  ------------------
  |  Branch (7868:13): [True: 0, False: 1.48k]
  ------------------
 7869|      0|                return "invalid parameter";
 7870|      0|            case MZ_ZIP_INVALID_FILENAME:
  ------------------
  |  Branch (7870:13): [True: 0, False: 1.48k]
  ------------------
 7871|      0|                return "invalid filename";
 7872|      0|            case MZ_ZIP_BUF_TOO_SMALL:
  ------------------
  |  Branch (7872:13): [True: 0, False: 1.48k]
  ------------------
 7873|      0|                return "buffer too small";
 7874|      0|            case MZ_ZIP_INTERNAL_ERROR:
  ------------------
  |  Branch (7874:13): [True: 0, False: 1.48k]
  ------------------
 7875|      0|                return "internal error";
 7876|      0|            case MZ_ZIP_FILE_NOT_FOUND:
  ------------------
  |  Branch (7876:13): [True: 0, False: 1.48k]
  ------------------
 7877|      0|                return "file not found";
 7878|      0|            case MZ_ZIP_ARCHIVE_TOO_LARGE:
  ------------------
  |  Branch (7878:13): [True: 0, False: 1.48k]
  ------------------
 7879|      0|                return "archive is too large";
 7880|      0|            case MZ_ZIP_VALIDATION_FAILED:
  ------------------
  |  Branch (7880:13): [True: 0, False: 1.48k]
  ------------------
 7881|      0|                return "validation failed";
 7882|      0|            case MZ_ZIP_WRITE_CALLBACK_FAILED:
  ------------------
  |  Branch (7882:13): [True: 0, False: 1.48k]
  ------------------
 7883|      0|                return "write callback failed";
 7884|      0|            case MZ_ZIP_TOTAL_ERRORS:
  ------------------
  |  Branch (7884:13): [True: 0, False: 1.48k]
  ------------------
 7885|      0|                return "total errors";
 7886|      0|            default:
  ------------------
  |  Branch (7886:13): [True: 0, False: 1.48k]
  ------------------
 7887|      0|                break;
 7888|  1.48k|        }
 7889|       |
 7890|      0|        return "unknown error";
 7891|  1.48k|    }
mz_zip_reader_get_num_files:
 7911|  2.82k|    {
 7912|  2.82k|        return pZip ? pZip->m_total_files : 0;
  ------------------
  |  Branch (7912:16): [True: 2.82k, False: 0]
  ------------------
 7913|  2.82k|    }
mz_zip_reader_get_filename:
 7945|  13.1k|    {
 7946|  13.1k|        mz_uint n;
 7947|  13.1k|        const mz_uint8 *p = mz_zip_get_cdh(pZip, file_index);
 7948|  13.1k|        if (!p)
  ------------------
  |  Branch (7948:13): [True: 0, False: 13.1k]
  ------------------
 7949|      0|        {
 7950|      0|            if (filename_buf_size)
  ------------------
  |  Branch (7950:17): [True: 0, False: 0]
  ------------------
 7951|      0|                pFilename[0] = '\0';
 7952|      0|            mz_zip_set_error(pZip, MZ_ZIP_INVALID_PARAMETER);
 7953|      0|            return 0;
 7954|      0|        }
 7955|  13.1k|        n = MZ_READ_LE16(p + MZ_ZIP_CDH_FILENAME_LEN_OFS);
  ------------------
  |  |  687|  13.1k|#define MZ_READ_LE16(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U))
  ------------------
 7956|  13.1k|        if (filename_buf_size)
  ------------------
  |  Branch (7956:13): [True: 13.1k, False: 0]
  ------------------
 7957|  13.1k|        {
 7958|  13.1k|            n = MZ_MIN(n, filename_buf_size - 1);
  ------------------
  |  |  678|  13.1k|#define MZ_MIN(a, b) (((a) < (b)) ? (a) : (b))
  |  |  ------------------
  |  |  |  Branch (678:23): [True: 13.1k, False: 12]
  |  |  ------------------
  ------------------
 7959|  13.1k|            memcpy(pFilename, p + MZ_ZIP_CENTRAL_DIR_HEADER_SIZE, n);
 7960|  13.1k|            pFilename[n] = '\0';
 7961|  13.1k|        }
 7962|  13.1k|        return n + 1;
 7963|  13.1k|    }
mz_zip_reader_file_stat:
 7966|  21.7k|    {
 7967|       |        return mz_zip_file_stat_internal(pZip, file_index, mz_zip_get_cdh(pZip, file_index), pStat, NULL);
 7968|  21.7k|    }
miniz.c:tinfl_clear_tree:
 2478|  10.7k|    {
 2479|  10.7k|        if (r->m_type == 0)
  ------------------
  |  Branch (2479:13): [True: 4.70k, False: 6.07k]
  ------------------
 2480|  4.70k|            MZ_CLEAR_ARR(r->m_tree_0);
  ------------------
  |  |  680|  4.70k|#define MZ_CLEAR_ARR(obj) memset((obj), 0, sizeof(obj))
  ------------------
 2481|  6.07k|        else if (r->m_type == 1)
  ------------------
  |  Branch (2481:18): [True: 4.71k, False: 1.35k]
  ------------------
 2482|  4.71k|            MZ_CLEAR_ARR(r->m_tree_1);
  ------------------
  |  |  680|  4.71k|#define MZ_CLEAR_ARR(obj) memset((obj), 0, sizeof(obj))
  ------------------
 2483|  1.35k|        else
 2484|  1.35k|            MZ_CLEAR_ARR(r->m_tree_2);
  ------------------
  |  |  680|  1.35k|#define MZ_CLEAR_ARR(obj) memset((obj), 0, sizeof(obj))
  ------------------
 2485|  10.7k|    }
miniz.c:mz_zip_reader_end_internal:
 4059|  4.16k|    {
 4060|  4.16k|        mz_bool status = MZ_TRUE;
  ------------------
  |  |  638|  4.16k|#define MZ_TRUE (1)
  ------------------
 4061|       |
 4062|  4.16k|        if (!pZip)
  ------------------
  |  Branch (4062:13): [True: 0, False: 4.16k]
  ------------------
 4063|      0|            return MZ_FALSE;
  ------------------
  |  |  637|      0|#define MZ_FALSE (0)
  ------------------
 4064|       |
 4065|  4.16k|        if ((!pZip->m_pState) || (!pZip->m_pAlloc) || (!pZip->m_pFree) || (pZip->m_zip_mode != MZ_ZIP_MODE_READING))
  ------------------
  |  Branch (4065:13): [True: 0, False: 4.16k]
  |  Branch (4065:34): [True: 0, False: 4.16k]
  |  Branch (4065:55): [True: 0, False: 4.16k]
  |  Branch (4065:75): [True: 0, False: 4.16k]
  ------------------
 4066|      0|        {
 4067|      0|            if (set_last_error)
  ------------------
  |  Branch (4067:17): [True: 0, False: 0]
  ------------------
 4068|      0|                pZip->m_last_error = MZ_ZIP_INVALID_PARAMETER;
 4069|       |
 4070|      0|            return MZ_FALSE;
  ------------------
  |  |  637|      0|#define MZ_FALSE (0)
  ------------------
 4071|      0|        }
 4072|       |
 4073|  4.16k|        if (pZip->m_pState)
  ------------------
  |  Branch (4073:13): [True: 4.16k, False: 0]
  ------------------
 4074|  4.16k|        {
 4075|  4.16k|            mz_zip_internal_state *pState = pZip->m_pState;
 4076|  4.16k|            pZip->m_pState = NULL;
 4077|       |
 4078|  4.16k|            mz_zip_array_clear(pZip, &pState->m_central_dir);
 4079|  4.16k|            mz_zip_array_clear(pZip, &pState->m_central_dir_offsets);
 4080|  4.16k|            mz_zip_array_clear(pZip, &pState->m_sorted_central_dir_offsets);
 4081|       |
 4082|       |#ifndef MINIZ_NO_STDIO
 4083|       |            if (pState->m_pFile)
 4084|       |            {
 4085|       |                if (pZip->m_zip_type == MZ_ZIP_TYPE_FILE)
 4086|       |                {
 4087|       |                    if (MZ_FCLOSE(pState->m_pFile) == EOF)
 4088|       |                    {
 4089|       |                        if (set_last_error)
 4090|       |                            pZip->m_last_error = MZ_ZIP_FILE_CLOSE_FAILED;
 4091|       |                        status = MZ_FALSE;
 4092|       |                    }
 4093|       |                }
 4094|       |                pState->m_pFile = NULL;
 4095|       |            }
 4096|       |#endif /* MINIZ_NO_STDIO */
 4097|       |
 4098|  4.16k|            pZip->m_pFree(pZip->m_pAlloc_opaque, pState);
 4099|  4.16k|        }
 4100|  4.16k|        pZip->m_zip_mode = MZ_ZIP_MODE_INVALID;
 4101|       |
 4102|  4.16k|        return status;
 4103|  4.16k|    }
miniz.c:mz_zip_set_error:
 3576|  13.3k|    {
 3577|  13.3k|        if (pZip)
  ------------------
  |  Branch (3577:13): [True: 13.3k, False: 0]
  ------------------
 3578|  13.3k|            pZip->m_last_error = err_num;
 3579|  13.3k|        return MZ_FALSE;
  ------------------
  |  |  637|  13.3k|#define MZ_FALSE (0)
  ------------------
 3580|  13.3k|    }
miniz.c:mz_zip_reader_init_internal:
 3583|  4.16k|    {
 3584|  4.16k|        (void)flags;
 3585|  4.16k|        if ((!pZip) || (pZip->m_pState) || (pZip->m_zip_mode != MZ_ZIP_MODE_INVALID))
  ------------------
  |  Branch (3585:13): [True: 0, False: 4.16k]
  |  Branch (3585:24): [True: 0, False: 4.16k]
  |  Branch (3585:44): [True: 0, False: 4.16k]
  ------------------
 3586|      0|            return mz_zip_set_error(pZip, MZ_ZIP_INVALID_PARAMETER);
 3587|       |
 3588|  4.16k|        if (!pZip->m_pAlloc)
  ------------------
  |  Branch (3588:13): [True: 4.16k, False: 0]
  ------------------
 3589|  4.16k|            pZip->m_pAlloc = miniz_def_alloc_func;
 3590|  4.16k|        if (!pZip->m_pFree)
  ------------------
  |  Branch (3590:13): [True: 4.16k, False: 0]
  ------------------
 3591|  4.16k|            pZip->m_pFree = miniz_def_free_func;
 3592|  4.16k|        if (!pZip->m_pRealloc)
  ------------------
  |  Branch (3592:13): [True: 4.16k, False: 0]
  ------------------
 3593|  4.16k|            pZip->m_pRealloc = miniz_def_realloc_func;
 3594|       |
 3595|  4.16k|        pZip->m_archive_size = 0;
 3596|  4.16k|        pZip->m_central_directory_file_ofs = 0;
 3597|  4.16k|        pZip->m_total_files = 0;
 3598|  4.16k|        pZip->m_last_error = MZ_ZIP_NO_ERROR;
 3599|       |
 3600|  4.16k|        if (NULL == (pZip->m_pState = (mz_zip_internal_state *)pZip->m_pAlloc(pZip->m_pAlloc_opaque, 1, sizeof(mz_zip_internal_state))))
  ------------------
  |  Branch (3600:13): [True: 0, False: 4.16k]
  ------------------
 3601|      0|            return mz_zip_set_error(pZip, MZ_ZIP_ALLOC_FAILED);
 3602|       |
 3603|  4.16k|        memset(pZip->m_pState, 0, sizeof(mz_zip_internal_state));
 3604|  4.16k|        MZ_ZIP_ARRAY_SET_ELEMENT_SIZE(&pZip->m_pState->m_central_dir, sizeof(mz_uint8));
  ------------------
  |  | 3413|  4.16k|#define MZ_ZIP_ARRAY_SET_ELEMENT_SIZE(array_ptr, element_size) (array_ptr)->m_element_size = element_size
  ------------------
 3605|  4.16k|        MZ_ZIP_ARRAY_SET_ELEMENT_SIZE(&pZip->m_pState->m_central_dir_offsets, sizeof(mz_uint32));
  ------------------
  |  | 3413|  4.16k|#define MZ_ZIP_ARRAY_SET_ELEMENT_SIZE(array_ptr, element_size) (array_ptr)->m_element_size = element_size
  ------------------
 3606|  4.16k|        MZ_ZIP_ARRAY_SET_ELEMENT_SIZE(&pZip->m_pState->m_sorted_central_dir_offsets, sizeof(mz_uint32));
  ------------------
  |  | 3413|  4.16k|#define MZ_ZIP_ARRAY_SET_ELEMENT_SIZE(array_ptr, element_size) (array_ptr)->m_element_size = element_size
  ------------------
 3607|  4.16k|        pZip->m_pState->m_init_flags = flags;
 3608|  4.16k|        pZip->m_pState->m_zip64 = MZ_FALSE;
  ------------------
  |  |  637|  4.16k|#define MZ_FALSE (0)
  ------------------
 3609|  4.16k|        pZip->m_pState->m_zip64_has_extended_info_fields = MZ_FALSE;
  ------------------
  |  |  637|  4.16k|#define MZ_FALSE (0)
  ------------------
 3610|       |
 3611|  4.16k|        pZip->m_zip_mode = MZ_ZIP_MODE_READING;
 3612|       |
 3613|  4.16k|        return MZ_TRUE;
  ------------------
  |  |  638|  4.16k|#define MZ_TRUE (1)
  ------------------
 3614|  4.16k|    }
miniz.c:mz_zip_reader_read_central_dir:
 3757|  4.16k|    {
 3758|  4.16k|        mz_uint cdir_size = 0, cdir_entries_on_this_disk = 0, num_this_disk = 0, cdir_disk_index = 0;
 3759|  4.16k|        mz_uint64 cdir_ofs = 0, eocd_ofs = 0, archive_ofs = 0;
 3760|  4.16k|        mz_int64 cur_file_ofs = 0;
 3761|  4.16k|        const mz_uint8 *p;
 3762|       |
 3763|  4.16k|        mz_uint32 buf_u32[4096 / sizeof(mz_uint32)];
 3764|  4.16k|        mz_uint8 *pBuf = (mz_uint8 *)buf_u32;
 3765|  4.16k|        mz_bool sort_central_dir = ((flags & MZ_ZIP_FLAG_DO_NOT_SORT_CENTRAL_DIRECTORY) == 0);
 3766|  4.16k|        mz_uint32 zip64_end_of_central_dir_locator_u32[(MZ_ZIP64_END_OF_CENTRAL_DIR_LOCATOR_SIZE + sizeof(mz_uint32) - 1) / sizeof(mz_uint32)];
 3767|  4.16k|        mz_uint8 *pZip64_locator = (mz_uint8 *)zip64_end_of_central_dir_locator_u32;
 3768|       |
 3769|  4.16k|        mz_uint32 zip64_end_of_central_dir_header_u32[(MZ_ZIP64_END_OF_CENTRAL_DIR_HEADER_SIZE + sizeof(mz_uint32) - 1) / sizeof(mz_uint32)];
 3770|  4.16k|        mz_uint8 *pZip64_end_of_central_dir = (mz_uint8 *)zip64_end_of_central_dir_header_u32;
 3771|       |
 3772|  4.16k|        mz_uint64 zip64_end_of_central_dir_ofs = 0;
 3773|       |
 3774|       |        /* Basic sanity checks - reject files which are too small, and check the first 4 bytes of the file to make sure a local header is there. */
 3775|  4.16k|        if (pZip->m_archive_size < MZ_ZIP_END_OF_CENTRAL_DIR_HEADER_SIZE)
  ------------------
  |  Branch (3775:13): [True: 10, False: 4.15k]
  ------------------
 3776|     10|            return mz_zip_set_error(pZip, MZ_ZIP_NOT_AN_ARCHIVE);
 3777|       |
 3778|  4.15k|        if (!mz_zip_reader_locate_header_sig(pZip, MZ_ZIP_END_OF_CENTRAL_DIR_HEADER_SIG, MZ_ZIP_END_OF_CENTRAL_DIR_HEADER_SIZE, &cur_file_ofs))
  ------------------
  |  Branch (3778:13): [True: 74, False: 4.08k]
  ------------------
 3779|     74|            return mz_zip_set_error(pZip, MZ_ZIP_FAILED_FINDING_CENTRAL_DIR);
 3780|       |
 3781|  4.08k|        eocd_ofs = cur_file_ofs;
 3782|       |        /* Read and verify the end of central directory record. */
 3783|  4.08k|        if (pZip->m_pRead(pZip->m_pIO_opaque, cur_file_ofs, pBuf, MZ_ZIP_END_OF_CENTRAL_DIR_HEADER_SIZE) != MZ_ZIP_END_OF_CENTRAL_DIR_HEADER_SIZE)
  ------------------
  |  Branch (3783:13): [True: 0, False: 4.08k]
  ------------------
 3784|      0|            return mz_zip_set_error(pZip, MZ_ZIP_FILE_READ_FAILED);
 3785|       |
 3786|  4.08k|        if (MZ_READ_LE32(pBuf + MZ_ZIP_ECDH_SIG_OFS) != MZ_ZIP_END_OF_CENTRAL_DIR_HEADER_SIG)
  ------------------
  |  |  688|  4.08k|#define MZ_READ_LE32(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U) | ((mz_uint32)(((const mz_uint8 *)(p))[2]) << 16U) | ((mz_uint32)(((const mz_uint8 *)(p))[3]) << 24U))
  ------------------
  |  Branch (3786:13): [True: 0, False: 4.08k]
  ------------------
 3787|      0|            return mz_zip_set_error(pZip, MZ_ZIP_NOT_AN_ARCHIVE);
 3788|       |
 3789|  4.08k|        if (cur_file_ofs >= (MZ_ZIP64_END_OF_CENTRAL_DIR_LOCATOR_SIZE + MZ_ZIP64_END_OF_CENTRAL_DIR_HEADER_SIZE))
  ------------------
  |  Branch (3789:13): [True: 2.32k, False: 1.75k]
  ------------------
 3790|  2.32k|        {
 3791|  2.32k|            if (pZip->m_pRead(pZip->m_pIO_opaque, cur_file_ofs - MZ_ZIP64_END_OF_CENTRAL_DIR_LOCATOR_SIZE, pZip64_locator, MZ_ZIP64_END_OF_CENTRAL_DIR_LOCATOR_SIZE) == MZ_ZIP64_END_OF_CENTRAL_DIR_LOCATOR_SIZE)
  ------------------
  |  Branch (3791:17): [True: 2.32k, False: 0]
  ------------------
 3792|  2.32k|            {
 3793|  2.32k|                if (MZ_READ_LE32(pZip64_locator + MZ_ZIP64_ECDL_SIG_OFS) == MZ_ZIP64_END_OF_CENTRAL_DIR_LOCATOR_SIG)
  ------------------
  |  |  688|  2.32k|#define MZ_READ_LE32(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U) | ((mz_uint32)(((const mz_uint8 *)(p))[2]) << 16U) | ((mz_uint32)(((const mz_uint8 *)(p))[3]) << 24U))
  ------------------
  |  Branch (3793:21): [True: 578, False: 1.74k]
  ------------------
 3794|    578|                {
 3795|    578|                    pZip->m_pState->m_zip64 = MZ_TRUE;
  ------------------
  |  |  638|    578|#define MZ_TRUE (1)
  ------------------
 3796|    578|                }
 3797|  2.32k|            }
 3798|  2.32k|        }
 3799|       |
 3800|  4.08k|        if (pZip->m_pState->m_zip64)
  ------------------
  |  Branch (3800:13): [True: 578, False: 3.50k]
  ------------------
 3801|    578|        {
 3802|       |            /* Try locating the EOCD64 right before the EOCD64 locator. This works even
 3803|       |             * when the effective start of the zip header is not yet known. */
 3804|    578|            if (cur_file_ofs < MZ_ZIP64_END_OF_CENTRAL_DIR_LOCATOR_SIZE +
  ------------------
  |  Branch (3804:17): [True: 0, False: 578]
  ------------------
 3805|    578|                                   MZ_ZIP64_END_OF_CENTRAL_DIR_HEADER_SIZE)
 3806|      0|                return mz_zip_set_error(pZip, MZ_ZIP_NOT_AN_ARCHIVE);
 3807|       |
 3808|    578|            zip64_end_of_central_dir_ofs = cur_file_ofs -
 3809|    578|                                           MZ_ZIP64_END_OF_CENTRAL_DIR_LOCATOR_SIZE -
 3810|    578|                                           MZ_ZIP64_END_OF_CENTRAL_DIR_HEADER_SIZE;
 3811|       |
 3812|    578|            if (!mz_zip_reader_eocd64_valid(pZip, zip64_end_of_central_dir_ofs,
  ------------------
  |  Branch (3812:17): [True: 292, False: 286]
  ------------------
 3813|    578|                                            pZip64_end_of_central_dir))
 3814|    292|            {
 3815|       |                /* That failed, try reading where the locator tells us to. */
 3816|    292|                zip64_end_of_central_dir_ofs = MZ_READ_LE64(
  ------------------
  |  |  691|    292|#define MZ_READ_LE64(p) (((mz_uint64)MZ_READ_LE32(p)) | (((mz_uint64)MZ_READ_LE32((const mz_uint8 *)(p) + sizeof(mz_uint32))) << 32U))
  |  |  ------------------
  |  |  |  |  688|    292|#define MZ_READ_LE32(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U) | ((mz_uint32)(((const mz_uint8 *)(p))[2]) << 16U) | ((mz_uint32)(((const mz_uint8 *)(p))[3]) << 24U))
  |  |  ------------------
  |  |               #define MZ_READ_LE64(p) (((mz_uint64)MZ_READ_LE32(p)) | (((mz_uint64)MZ_READ_LE32((const mz_uint8 *)(p) + sizeof(mz_uint32))) << 32U))
  |  |  ------------------
  |  |  |  |  688|    292|#define MZ_READ_LE32(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U) | ((mz_uint32)(((const mz_uint8 *)(p))[2]) << 16U) | ((mz_uint32)(((const mz_uint8 *)(p))[3]) << 24U))
  |  |  ------------------
  ------------------
 3817|    292|                    pZip64_locator + MZ_ZIP64_ECDL_REL_OFS_TO_ZIP64_ECDR_OFS);
 3818|       |
 3819|    292|                if (zip64_end_of_central_dir_ofs >
  ------------------
  |  Branch (3819:21): [True: 101, False: 191]
  ------------------
 3820|    292|                    (pZip->m_archive_size - MZ_ZIP64_END_OF_CENTRAL_DIR_HEADER_SIZE))
 3821|    101|                    return mz_zip_set_error(pZip, MZ_ZIP_NOT_AN_ARCHIVE);
 3822|       |
 3823|    191|                if (!mz_zip_reader_eocd64_valid(pZip, zip64_end_of_central_dir_ofs,
  ------------------
  |  Branch (3823:21): [True: 54, False: 137]
  ------------------
 3824|    191|                                                pZip64_end_of_central_dir))
 3825|     54|                    return mz_zip_set_error(pZip, MZ_ZIP_NOT_AN_ARCHIVE);
 3826|    191|            }
 3827|    578|        }
 3828|       |
 3829|  3.92k|        pZip->m_total_files = MZ_READ_LE16(pBuf + MZ_ZIP_ECDH_CDIR_TOTAL_ENTRIES_OFS);
  ------------------
  |  |  687|  3.92k|#define MZ_READ_LE16(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U))
  ------------------
 3830|  3.92k|        cdir_entries_on_this_disk = MZ_READ_LE16(pBuf + MZ_ZIP_ECDH_CDIR_NUM_ENTRIES_ON_DISK_OFS);
  ------------------
  |  |  687|  3.92k|#define MZ_READ_LE16(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U))
  ------------------
 3831|  3.92k|        num_this_disk = MZ_READ_LE16(pBuf + MZ_ZIP_ECDH_NUM_THIS_DISK_OFS);
  ------------------
  |  |  687|  3.92k|#define MZ_READ_LE16(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U))
  ------------------
 3832|  3.92k|        cdir_disk_index = MZ_READ_LE16(pBuf + MZ_ZIP_ECDH_NUM_DISK_CDIR_OFS);
  ------------------
  |  |  687|  3.92k|#define MZ_READ_LE16(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U))
  ------------------
 3833|  3.92k|        cdir_size = MZ_READ_LE32(pBuf + MZ_ZIP_ECDH_CDIR_SIZE_OFS);
  ------------------
  |  |  688|  3.92k|#define MZ_READ_LE32(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U) | ((mz_uint32)(((const mz_uint8 *)(p))[2]) << 16U) | ((mz_uint32)(((const mz_uint8 *)(p))[3]) << 24U))
  ------------------
 3834|  3.92k|        cdir_ofs = MZ_READ_LE32(pBuf + MZ_ZIP_ECDH_CDIR_OFS_OFS);
  ------------------
  |  |  688|  3.92k|#define MZ_READ_LE32(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U) | ((mz_uint32)(((const mz_uint8 *)(p))[2]) << 16U) | ((mz_uint32)(((const mz_uint8 *)(p))[3]) << 24U))
  ------------------
 3835|       |
 3836|  3.92k|        if (pZip->m_pState->m_zip64)
  ------------------
  |  Branch (3836:13): [True: 423, False: 3.50k]
  ------------------
 3837|    423|        {
 3838|    423|            mz_uint32 zip64_total_num_of_disks = MZ_READ_LE32(pZip64_locator + MZ_ZIP64_ECDL_TOTAL_NUMBER_OF_DISKS_OFS);
  ------------------
  |  |  688|    423|#define MZ_READ_LE32(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U) | ((mz_uint32)(((const mz_uint8 *)(p))[2]) << 16U) | ((mz_uint32)(((const mz_uint8 *)(p))[3]) << 24U))
  ------------------
 3839|    423|            mz_uint64 zip64_cdir_total_entries = MZ_READ_LE64(pZip64_end_of_central_dir + MZ_ZIP64_ECDH_CDIR_TOTAL_ENTRIES_OFS);
  ------------------
  |  |  691|    423|#define MZ_READ_LE64(p) (((mz_uint64)MZ_READ_LE32(p)) | (((mz_uint64)MZ_READ_LE32((const mz_uint8 *)(p) + sizeof(mz_uint32))) << 32U))
  |  |  ------------------
  |  |  |  |  688|    423|#define MZ_READ_LE32(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U) | ((mz_uint32)(((const mz_uint8 *)(p))[2]) << 16U) | ((mz_uint32)(((const mz_uint8 *)(p))[3]) << 24U))
  |  |  ------------------
  |  |               #define MZ_READ_LE64(p) (((mz_uint64)MZ_READ_LE32(p)) | (((mz_uint64)MZ_READ_LE32((const mz_uint8 *)(p) + sizeof(mz_uint32))) << 32U))
  |  |  ------------------
  |  |  |  |  688|    423|#define MZ_READ_LE32(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U) | ((mz_uint32)(((const mz_uint8 *)(p))[2]) << 16U) | ((mz_uint32)(((const mz_uint8 *)(p))[3]) << 24U))
  |  |  ------------------
  ------------------
 3840|    423|            mz_uint64 zip64_cdir_total_entries_on_this_disk = MZ_READ_LE64(pZip64_end_of_central_dir + MZ_ZIP64_ECDH_CDIR_NUM_ENTRIES_ON_DISK_OFS);
  ------------------
  |  |  691|    423|#define MZ_READ_LE64(p) (((mz_uint64)MZ_READ_LE32(p)) | (((mz_uint64)MZ_READ_LE32((const mz_uint8 *)(p) + sizeof(mz_uint32))) << 32U))
  |  |  ------------------
  |  |  |  |  688|    423|#define MZ_READ_LE32(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U) | ((mz_uint32)(((const mz_uint8 *)(p))[2]) << 16U) | ((mz_uint32)(((const mz_uint8 *)(p))[3]) << 24U))
  |  |  ------------------
  |  |               #define MZ_READ_LE64(p) (((mz_uint64)MZ_READ_LE32(p)) | (((mz_uint64)MZ_READ_LE32((const mz_uint8 *)(p) + sizeof(mz_uint32))) << 32U))
  |  |  ------------------
  |  |  |  |  688|    423|#define MZ_READ_LE32(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U) | ((mz_uint32)(((const mz_uint8 *)(p))[2]) << 16U) | ((mz_uint32)(((const mz_uint8 *)(p))[3]) << 24U))
  |  |  ------------------
  ------------------
 3841|    423|            mz_uint64 zip64_size_of_end_of_central_dir_record = MZ_READ_LE64(pZip64_end_of_central_dir + MZ_ZIP64_ECDH_SIZE_OF_RECORD_OFS);
  ------------------
  |  |  691|    423|#define MZ_READ_LE64(p) (((mz_uint64)MZ_READ_LE32(p)) | (((mz_uint64)MZ_READ_LE32((const mz_uint8 *)(p) + sizeof(mz_uint32))) << 32U))
  |  |  ------------------
  |  |  |  |  688|    423|#define MZ_READ_LE32(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U) | ((mz_uint32)(((const mz_uint8 *)(p))[2]) << 16U) | ((mz_uint32)(((const mz_uint8 *)(p))[3]) << 24U))
  |  |  ------------------
  |  |               #define MZ_READ_LE64(p) (((mz_uint64)MZ_READ_LE32(p)) | (((mz_uint64)MZ_READ_LE32((const mz_uint8 *)(p) + sizeof(mz_uint32))) << 32U))
  |  |  ------------------
  |  |  |  |  688|    423|#define MZ_READ_LE32(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U) | ((mz_uint32)(((const mz_uint8 *)(p))[2]) << 16U) | ((mz_uint32)(((const mz_uint8 *)(p))[3]) << 24U))
  |  |  ------------------
  ------------------
 3842|    423|            mz_uint64 zip64_size_of_central_directory = MZ_READ_LE64(pZip64_end_of_central_dir + MZ_ZIP64_ECDH_CDIR_SIZE_OFS);
  ------------------
  |  |  691|    423|#define MZ_READ_LE64(p) (((mz_uint64)MZ_READ_LE32(p)) | (((mz_uint64)MZ_READ_LE32((const mz_uint8 *)(p) + sizeof(mz_uint32))) << 32U))
  |  |  ------------------
  |  |  |  |  688|    423|#define MZ_READ_LE32(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U) | ((mz_uint32)(((const mz_uint8 *)(p))[2]) << 16U) | ((mz_uint32)(((const mz_uint8 *)(p))[3]) << 24U))
  |  |  ------------------
  |  |               #define MZ_READ_LE64(p) (((mz_uint64)MZ_READ_LE32(p)) | (((mz_uint64)MZ_READ_LE32((const mz_uint8 *)(p) + sizeof(mz_uint32))) << 32U))
  |  |  ------------------
  |  |  |  |  688|    423|#define MZ_READ_LE32(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U) | ((mz_uint32)(((const mz_uint8 *)(p))[2]) << 16U) | ((mz_uint32)(((const mz_uint8 *)(p))[3]) << 24U))
  |  |  ------------------
  ------------------
 3843|       |
 3844|    423|            if (zip64_size_of_end_of_central_dir_record < (MZ_ZIP64_END_OF_CENTRAL_DIR_HEADER_SIZE - 12))
  ------------------
  |  Branch (3844:17): [True: 6, False: 417]
  ------------------
 3845|      6|                return mz_zip_set_error(pZip, MZ_ZIP_INVALID_HEADER_OR_CORRUPTED);
 3846|       |
 3847|    417|            if (zip64_total_num_of_disks != 1U)
  ------------------
  |  Branch (3847:17): [True: 47, False: 370]
  ------------------
 3848|     47|                return mz_zip_set_error(pZip, MZ_ZIP_UNSUPPORTED_MULTIDISK);
 3849|       |
 3850|       |            /* Check for miniz's practical limits */
 3851|    370|            if (zip64_cdir_total_entries > MZ_UINT32_MAX)
  ------------------
  |  |  703|    370|#define MZ_UINT32_MAX (0xFFFFFFFFU)
  ------------------
  |  Branch (3851:17): [True: 47, False: 323]
  ------------------
 3852|     47|                return mz_zip_set_error(pZip, MZ_ZIP_TOO_MANY_FILES);
 3853|       |
 3854|    323|            pZip->m_total_files = (mz_uint32)zip64_cdir_total_entries;
 3855|       |
 3856|    323|            if (zip64_cdir_total_entries_on_this_disk > MZ_UINT32_MAX)
  ------------------
  |  |  703|    323|#define MZ_UINT32_MAX (0xFFFFFFFFU)
  ------------------
  |  Branch (3856:17): [True: 53, False: 270]
  ------------------
 3857|     53|                return mz_zip_set_error(pZip, MZ_ZIP_TOO_MANY_FILES);
 3858|       |
 3859|    270|            cdir_entries_on_this_disk = (mz_uint32)zip64_cdir_total_entries_on_this_disk;
 3860|       |
 3861|       |            /* Check for miniz's current practical limits (sorry, this should be enough for millions of files) */
 3862|    270|            if (zip64_size_of_central_directory > MZ_UINT32_MAX)
  ------------------
  |  |  703|    270|#define MZ_UINT32_MAX (0xFFFFFFFFU)
  ------------------
  |  Branch (3862:17): [True: 46, False: 224]
  ------------------
 3863|     46|                return mz_zip_set_error(pZip, MZ_ZIP_UNSUPPORTED_CDIR_SIZE);
 3864|       |
 3865|    224|            cdir_size = (mz_uint32)zip64_size_of_central_directory;
 3866|       |
 3867|    224|            num_this_disk = MZ_READ_LE32(pZip64_end_of_central_dir + MZ_ZIP64_ECDH_NUM_THIS_DISK_OFS);
  ------------------
  |  |  688|    224|#define MZ_READ_LE32(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U) | ((mz_uint32)(((const mz_uint8 *)(p))[2]) << 16U) | ((mz_uint32)(((const mz_uint8 *)(p))[3]) << 24U))
  ------------------
 3868|       |
 3869|    224|            cdir_disk_index = MZ_READ_LE32(pZip64_end_of_central_dir + MZ_ZIP64_ECDH_NUM_DISK_CDIR_OFS);
  ------------------
  |  |  688|    224|#define MZ_READ_LE32(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U) | ((mz_uint32)(((const mz_uint8 *)(p))[2]) << 16U) | ((mz_uint32)(((const mz_uint8 *)(p))[3]) << 24U))
  ------------------
 3870|       |
 3871|    224|            cdir_ofs = MZ_READ_LE64(pZip64_end_of_central_dir + MZ_ZIP64_ECDH_CDIR_OFS_OFS);
  ------------------
  |  |  691|    224|#define MZ_READ_LE64(p) (((mz_uint64)MZ_READ_LE32(p)) | (((mz_uint64)MZ_READ_LE32((const mz_uint8 *)(p) + sizeof(mz_uint32))) << 32U))
  |  |  ------------------
  |  |  |  |  688|    224|#define MZ_READ_LE32(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U) | ((mz_uint32)(((const mz_uint8 *)(p))[2]) << 16U) | ((mz_uint32)(((const mz_uint8 *)(p))[3]) << 24U))
  |  |  ------------------
  |  |               #define MZ_READ_LE64(p) (((mz_uint64)MZ_READ_LE32(p)) | (((mz_uint64)MZ_READ_LE32((const mz_uint8 *)(p) + sizeof(mz_uint32))) << 32U))
  |  |  ------------------
  |  |  |  |  688|    224|#define MZ_READ_LE32(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U) | ((mz_uint32)(((const mz_uint8 *)(p))[2]) << 16U) | ((mz_uint32)(((const mz_uint8 *)(p))[3]) << 24U))
  |  |  ------------------
  ------------------
 3872|    224|        }
 3873|       |
 3874|  3.72k|        if (pZip->m_total_files != cdir_entries_on_this_disk)
  ------------------
  |  Branch (3874:13): [True: 88, False: 3.63k]
  ------------------
 3875|     88|            return mz_zip_set_error(pZip, MZ_ZIP_UNSUPPORTED_MULTIDISK);
 3876|       |
 3877|  3.63k|        if (((num_this_disk | cdir_disk_index) != 0) && ((num_this_disk != 1) || (cdir_disk_index != 1)))
  ------------------
  |  Branch (3877:13): [True: 1.27k, False: 2.36k]
  |  Branch (3877:58): [True: 70, False: 1.20k]
  |  Branch (3877:82): [True: 53, False: 1.14k]
  ------------------
 3878|    123|            return mz_zip_set_error(pZip, MZ_ZIP_UNSUPPORTED_MULTIDISK);
 3879|       |
 3880|  3.51k|        if (cdir_size < (mz_uint64)pZip->m_total_files * MZ_ZIP_CENTRAL_DIR_HEADER_SIZE)
  ------------------
  |  Branch (3880:13): [True: 47, False: 3.46k]
  ------------------
 3881|     47|            return mz_zip_set_error(pZip, MZ_ZIP_INVALID_HEADER_OR_CORRUPTED);
 3882|       |
 3883|  3.46k|        if (cdir_size> pZip->m_archive_size || cdir_ofs > pZip->m_archive_size - cdir_size)
  ------------------
  |  Branch (3883:13): [True: 44, False: 3.42k]
  |  Branch (3883:48): [True: 109, False: 3.31k]
  ------------------
 3884|    153|            return mz_zip_set_error(pZip, MZ_ZIP_INVALID_HEADER_OR_CORRUPTED);
 3885|       |
 3886|  3.31k|        if (eocd_ofs < cdir_ofs + cdir_size)
  ------------------
  |  Branch (3886:13): [True: 15, False: 3.30k]
  ------------------
 3887|     15|            return mz_zip_set_error(pZip, MZ_ZIP_INVALID_HEADER_OR_CORRUPTED);
 3888|       |
 3889|       |        /* The end of central dir follows the central dir, unless the zip file has
 3890|       |         * some trailing data (e.g. it is appended to an executable file). */
 3891|  3.30k|        archive_ofs = eocd_ofs - (cdir_ofs + cdir_size);
 3892|  3.30k|        if (pZip->m_pState->m_zip64)
  ------------------
  |  Branch (3892:13): [True: 53, False: 3.24k]
  ------------------
 3893|     53|        {
 3894|     53|            if (archive_ofs < MZ_ZIP64_END_OF_CENTRAL_DIR_HEADER_SIZE +
  ------------------
  |  Branch (3894:17): [True: 12, False: 41]
  ------------------
 3895|     53|                                  MZ_ZIP64_END_OF_CENTRAL_DIR_LOCATOR_SIZE)
 3896|     12|                return mz_zip_set_error(pZip, MZ_ZIP_INVALID_HEADER_OR_CORRUPTED);
 3897|       |
 3898|     41|            archive_ofs -= MZ_ZIP64_END_OF_CENTRAL_DIR_HEADER_SIZE +
 3899|     41|                           MZ_ZIP64_END_OF_CENTRAL_DIR_LOCATOR_SIZE;
 3900|     41|        }
 3901|       |
 3902|       |        /* Update the archive start position, but only if not specified. */
 3903|  3.28k|        if ((pZip->m_zip_type == MZ_ZIP_TYPE_FILE || pZip->m_zip_type == MZ_ZIP_TYPE_CFILE ||
  ------------------
  |  Branch (3903:14): [True: 0, False: 3.28k]
  |  Branch (3903:54): [True: 0, False: 3.28k]
  ------------------
 3904|  3.28k|            pZip->m_zip_type == MZ_ZIP_TYPE_USER) && pZip->m_pState->m_file_archive_start_ofs == 0)
  ------------------
  |  Branch (3904:13): [True: 3.28k, False: 0]
  |  Branch (3904:54): [True: 3.28k, False: 0]
  ------------------
 3905|  3.28k|        {
 3906|  3.28k|            pZip->m_pState->m_file_archive_start_ofs = archive_ofs;
 3907|  3.28k|            pZip->m_archive_size -= archive_ofs;
 3908|  3.28k|        }
 3909|       |
 3910|  3.28k|        pZip->m_central_directory_file_ofs = cdir_ofs;
 3911|       |
 3912|  3.28k|        if (pZip->m_total_files)
  ------------------
  |  Branch (3912:13): [True: 3.23k, False: 53]
  ------------------
 3913|  3.23k|        {
 3914|  3.23k|            mz_uint i, n;
 3915|       |            /* Read the entire central directory into a heap block, and allocate another heap block to hold the unsorted central dir file record offsets, and possibly another to hold the sorted indices. */
 3916|  3.23k|            if ((!mz_zip_array_resize(pZip, &pZip->m_pState->m_central_dir, cdir_size, MZ_FALSE)) ||
  ------------------
  |  |  637|  3.23k|#define MZ_FALSE (0)
  ------------------
  |  Branch (3916:17): [True: 0, False: 3.23k]
  ------------------
 3917|  3.23k|                (!mz_zip_array_resize(pZip, &pZip->m_pState->m_central_dir_offsets, pZip->m_total_files, MZ_FALSE)))
  ------------------
  |  |  637|  3.23k|#define MZ_FALSE (0)
  ------------------
  |  Branch (3917:17): [True: 0, False: 3.23k]
  ------------------
 3918|      0|                return mz_zip_set_error(pZip, MZ_ZIP_ALLOC_FAILED);
 3919|       |
 3920|  3.23k|            if (sort_central_dir)
  ------------------
  |  Branch (3920:17): [True: 3.23k, False: 0]
  ------------------
 3921|  3.23k|            {
 3922|  3.23k|                if (!mz_zip_array_resize(pZip, &pZip->m_pState->m_sorted_central_dir_offsets, pZip->m_total_files, MZ_FALSE))
  ------------------
  |  |  637|  3.23k|#define MZ_FALSE (0)
  ------------------
  |  Branch (3922:21): [True: 0, False: 3.23k]
  ------------------
 3923|      0|                    return mz_zip_set_error(pZip, MZ_ZIP_ALLOC_FAILED);
 3924|  3.23k|            }
 3925|       |
 3926|  3.23k|            if (pZip->m_pRead(pZip->m_pIO_opaque, cdir_ofs, pZip->m_pState->m_central_dir.m_p, cdir_size) != cdir_size)
  ------------------
  |  Branch (3926:17): [True: 0, False: 3.23k]
  ------------------
 3927|      0|                return mz_zip_set_error(pZip, MZ_ZIP_FILE_READ_FAILED);
 3928|       |
 3929|       |            /* Now create an index into the central directory file records, do some basic sanity checking on each record */
 3930|  3.23k|            p = (const mz_uint8 *)pZip->m_pState->m_central_dir.m_p;
 3931|  20.7k|            for (n = cdir_size, i = 0; i < pZip->m_total_files; ++i)
  ------------------
  |  Branch (3931:40): [True: 17.9k, False: 2.77k]
  ------------------
 3932|  17.9k|            {
 3933|  17.9k|                mz_uint total_header_size, disk_index, bit_flags, filename_size, ext_data_size;
 3934|  17.9k|                mz_uint64 comp_size, decomp_size, local_header_ofs;
 3935|       |
 3936|  17.9k|                if ((n < MZ_ZIP_CENTRAL_DIR_HEADER_SIZE) || (MZ_READ_LE32(p) != MZ_ZIP_CENTRAL_DIR_HEADER_SIG))
  ------------------
  |  |  688|  17.9k|#define MZ_READ_LE32(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U) | ((mz_uint32)(((const mz_uint8 *)(p))[2]) << 16U) | ((mz_uint32)(((const mz_uint8 *)(p))[3]) << 24U))
  ------------------
  |  Branch (3936:21): [True: 9, False: 17.9k]
  |  Branch (3936:61): [True: 64, False: 17.9k]
  ------------------
 3937|     73|                    return mz_zip_set_error(pZip, MZ_ZIP_INVALID_HEADER_OR_CORRUPTED);
 3938|       |
 3939|  17.9k|                MZ_ZIP_ARRAY_ELEMENT(&pZip->m_pState->m_central_dir_offsets, mz_uint32, i) = (mz_uint32)(p - (const mz_uint8 *)pZip->m_pState->m_central_dir.m_p);
  ------------------
  |  | 3423|  17.9k|#define MZ_ZIP_ARRAY_ELEMENT(array_ptr, element_type, index) ((element_type *)((array_ptr)->m_p))[index]
  ------------------
 3940|       |
 3941|  17.9k|                if (sort_central_dir)
  ------------------
  |  Branch (3941:21): [True: 17.9k, False: 0]
  ------------------
 3942|  17.9k|                    MZ_ZIP_ARRAY_ELEMENT(&pZip->m_pState->m_sorted_central_dir_offsets, mz_uint32, i) = i;
  ------------------
  |  | 3423|  17.9k|#define MZ_ZIP_ARRAY_ELEMENT(array_ptr, element_type, index) ((element_type *)((array_ptr)->m_p))[index]
  ------------------
 3943|       |
 3944|  17.9k|                comp_size = MZ_READ_LE32(p + MZ_ZIP_CDH_COMPRESSED_SIZE_OFS);
  ------------------
  |  |  688|  17.9k|#define MZ_READ_LE32(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U) | ((mz_uint32)(((const mz_uint8 *)(p))[2]) << 16U) | ((mz_uint32)(((const mz_uint8 *)(p))[3]) << 24U))
  ------------------
 3945|  17.9k|                decomp_size = MZ_READ_LE32(p + MZ_ZIP_CDH_DECOMPRESSED_SIZE_OFS);
  ------------------
  |  |  688|  17.9k|#define MZ_READ_LE32(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U) | ((mz_uint32)(((const mz_uint8 *)(p))[2]) << 16U) | ((mz_uint32)(((const mz_uint8 *)(p))[3]) << 24U))
  ------------------
 3946|  17.9k|                local_header_ofs = MZ_READ_LE32(p + MZ_ZIP_CDH_LOCAL_HEADER_OFS);
  ------------------
  |  |  688|  17.9k|#define MZ_READ_LE32(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U) | ((mz_uint32)(((const mz_uint8 *)(p))[2]) << 16U) | ((mz_uint32)(((const mz_uint8 *)(p))[3]) << 24U))
  ------------------
 3947|  17.9k|                filename_size = MZ_READ_LE16(p + MZ_ZIP_CDH_FILENAME_LEN_OFS);
  ------------------
  |  |  687|  17.9k|#define MZ_READ_LE16(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U))
  ------------------
 3948|  17.9k|                ext_data_size = MZ_READ_LE16(p + MZ_ZIP_CDH_EXTRA_LEN_OFS);
  ------------------
  |  |  687|  17.9k|#define MZ_READ_LE16(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U))
  ------------------
 3949|       |
 3950|  17.9k|                if ((!pZip->m_pState->m_zip64_has_extended_info_fields) &&
  ------------------
  |  Branch (3950:21): [True: 14.7k, False: 3.22k]
  ------------------
 3951|  14.7k|                    (ext_data_size) &&
  ------------------
  |  Branch (3951:21): [True: 8.63k, False: 6.07k]
  ------------------
 3952|  8.63k|                    (MZ_MAX(MZ_MAX(comp_size, decomp_size), local_header_ofs) == MZ_UINT32_MAX))
  ------------------
  |  |  677|  17.2k|#define MZ_MAX(a, b) (((a) > (b)) ? (a) : (b))
  |  |  ------------------
  |  |  |  Branch (677:23): [True: 6.40k, False: 2.23k]
  |  |  |  Branch (677:25): [True: 2.95k, False: 5.67k]
  |  |  |  Branch (677:38): [True: 2.70k, False: 3.69k]
  |  |  ------------------
  ------------------
                                  (MZ_MAX(MZ_MAX(comp_size, decomp_size), local_header_ofs) == MZ_UINT32_MAX))
  ------------------
  |  |  703|  8.63k|#define MZ_UINT32_MAX (0xFFFFFFFFU)
  ------------------
  |  Branch (3952:21): [True: 2.28k, False: 6.35k]
  ------------------
 3953|  2.28k|                {
 3954|       |                    /* Attempt to find zip64 extended information field in the entry's extra data */
 3955|  2.28k|                    mz_uint32 extra_size_remaining = ext_data_size;
 3956|       |
 3957|  2.28k|                    if (extra_size_remaining)
  ------------------
  |  Branch (3957:25): [True: 2.28k, False: 0]
  ------------------
 3958|  2.28k|                    {
 3959|  2.28k|                        const mz_uint8 *pExtra_data;
 3960|  2.28k|                        void *buf = NULL;
 3961|       |
 3962|  2.28k|                        if (MZ_ZIP_CENTRAL_DIR_HEADER_SIZE + filename_size + ext_data_size > n)
  ------------------
  |  Branch (3962:29): [True: 76, False: 2.20k]
  ------------------
 3963|     76|                        {
 3964|     76|                            buf = MZ_MALLOC(ext_data_size);
  ------------------
  |  |  672|     76|#define MZ_MALLOC(x) malloc(x)
  ------------------
 3965|     76|                            if (buf == NULL)
  ------------------
  |  Branch (3965:33): [True: 0, False: 76]
  ------------------
 3966|      0|                                return mz_zip_set_error(pZip, MZ_ZIP_ALLOC_FAILED);
 3967|       |
 3968|     76|                            if (pZip->m_pRead(pZip->m_pIO_opaque, cdir_ofs + MZ_ZIP_CENTRAL_DIR_HEADER_SIZE + filename_size, buf, ext_data_size) != ext_data_size)
  ------------------
  |  Branch (3968:33): [True: 32, False: 44]
  ------------------
 3969|     32|                            {
 3970|     32|                                MZ_FREE(buf);
  ------------------
  |  |  673|     32|#define MZ_FREE(x) free(x)
  ------------------
 3971|     32|                                return mz_zip_set_error(pZip, MZ_ZIP_FILE_READ_FAILED);
 3972|     32|                            }
 3973|       |
 3974|     44|                            pExtra_data = (mz_uint8 *)buf;
 3975|     44|                        }
 3976|  2.20k|                        else
 3977|  2.20k|                        {
 3978|  2.20k|                            pExtra_data = p + MZ_ZIP_CENTRAL_DIR_HEADER_SIZE + filename_size;
 3979|  2.20k|                        }
 3980|       |
 3981|  2.25k|                        do
 3982|  3.39k|                        {
 3983|  3.39k|                            mz_uint32 field_id;
 3984|  3.39k|                            mz_uint32 field_data_size;
 3985|       |
 3986|  3.39k|                            if (extra_size_remaining < (sizeof(mz_uint16) * 2))
  ------------------
  |  Branch (3986:33): [True: 17, False: 3.37k]
  ------------------
 3987|     17|                            {
 3988|     17|                                MZ_FREE(buf);
  ------------------
  |  |  673|     17|#define MZ_FREE(x) free(x)
  ------------------
 3989|     17|                                return mz_zip_set_error(pZip, MZ_ZIP_INVALID_HEADER_OR_CORRUPTED);
 3990|     17|                            }
 3991|       |
 3992|  3.37k|                            field_id = MZ_READ_LE16(pExtra_data);
  ------------------
  |  |  687|  3.37k|#define MZ_READ_LE16(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U))
  ------------------
 3993|  3.37k|                            field_data_size = MZ_READ_LE16(pExtra_data + sizeof(mz_uint16));
  ------------------
  |  |  687|  3.37k|#define MZ_READ_LE16(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U))
  ------------------
 3994|       |
 3995|  3.37k|                            if ((field_data_size + sizeof(mz_uint16) * 2) > extra_size_remaining)
  ------------------
  |  Branch (3995:33): [True: 25, False: 3.34k]
  ------------------
 3996|     25|                            {
 3997|     25|                                MZ_FREE(buf);
  ------------------
  |  |  673|     25|#define MZ_FREE(x) free(x)
  ------------------
 3998|     25|                                return mz_zip_set_error(pZip, MZ_ZIP_INVALID_HEADER_OR_CORRUPTED);
 3999|     25|                            }
 4000|       |
 4001|  3.34k|                            if (field_id == MZ_ZIP64_EXTENDED_INFORMATION_FIELD_HEADER_ID)
  ------------------
  |  Branch (4001:33): [True: 492, False: 2.85k]
  ------------------
 4002|    492|                            {
 4003|       |                                /* Ok, the archive didn't have any zip64 headers but it uses a zip64 extended information field so mark it as zip64 anyway (this can occur with infozip's zip util when it reads compresses files from stdin). */
 4004|    492|                                pZip->m_pState->m_zip64 = MZ_TRUE;
  ------------------
  |  |  638|    492|#define MZ_TRUE (1)
  ------------------
 4005|    492|                                pZip->m_pState->m_zip64_has_extended_info_fields = MZ_TRUE;
  ------------------
  |  |  638|    492|#define MZ_TRUE (1)
  ------------------
 4006|    492|                                break;
 4007|    492|                            }
 4008|       |
 4009|  2.85k|                            pExtra_data += sizeof(mz_uint16) * 2 + field_data_size;
 4010|  2.85k|                            extra_size_remaining = extra_size_remaining - sizeof(mz_uint16) * 2 - field_data_size;
 4011|  2.85k|                        } while (extra_size_remaining);
  ------------------
  |  Branch (4011:34): [True: 1.14k, False: 1.71k]
  ------------------
 4012|       |
 4013|  2.20k|                        MZ_FREE(buf);
  ------------------
  |  |  673|  2.20k|#define MZ_FREE(x) free(x)
  ------------------
 4014|  2.20k|                    }
 4015|  2.28k|                }
 4016|       |
 4017|       |                /* I've seen archives that aren't marked as zip64 that uses zip64 ext data, argh */
 4018|  17.8k|                if ((comp_size != MZ_UINT32_MAX) && (decomp_size != MZ_UINT32_MAX))
  ------------------
  |  |  703|  17.8k|#define MZ_UINT32_MAX (0xFFFFFFFFU)
  ------------------
                              if ((comp_size != MZ_UINT32_MAX) && (decomp_size != MZ_UINT32_MAX))
  ------------------
  |  |  703|  11.1k|#define MZ_UINT32_MAX (0xFFFFFFFFU)
  ------------------
  |  Branch (4018:21): [True: 11.1k, False: 6.68k]
  |  Branch (4018:53): [True: 10.7k, False: 457]
  ------------------
 4019|  10.7k|                {
 4020|  10.7k|                    if (((!MZ_READ_LE32(p + MZ_ZIP_CDH_METHOD_OFS)) && (decomp_size != comp_size)) || (decomp_size && !comp_size))
  ------------------
  |  |  688|  10.7k|#define MZ_READ_LE32(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U) | ((mz_uint32)(((const mz_uint8 *)(p))[2]) << 16U) | ((mz_uint32)(((const mz_uint8 *)(p))[3]) << 24U))
  ------------------
  |  Branch (4020:26): [True: 816, False: 9.89k]
  |  Branch (4020:72): [True: 78, False: 738]
  |  Branch (4020:104): [True: 7.64k, False: 2.98k]
  |  Branch (4020:119): [True: 6, False: 7.64k]
  ------------------
 4021|     84|                        return mz_zip_set_error(pZip, MZ_ZIP_INVALID_HEADER_OR_CORRUPTED);
 4022|  10.7k|                }
 4023|       |
 4024|  17.7k|                disk_index = MZ_READ_LE16(p + MZ_ZIP_CDH_DISK_START_OFS);
  ------------------
  |  |  687|  17.7k|#define MZ_READ_LE16(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U))
  ------------------
 4025|  17.7k|                if ((disk_index == MZ_UINT16_MAX) || ((disk_index != num_this_disk) && (disk_index != 1)))
  ------------------
  |  |  702|  17.7k|#define MZ_UINT16_MAX (0xFFFFU)
  ------------------
  |  Branch (4025:21): [True: 6, False: 17.7k]
  |  Branch (4025:55): [True: 7.85k, False: 9.90k]
  |  Branch (4025:88): [True: 85, False: 7.77k]
  ------------------
 4026|     91|                    return mz_zip_set_error(pZip, MZ_ZIP_UNSUPPORTED_MULTIDISK);
 4027|       |
 4028|  17.6k|                if ((comp_size != MZ_UINT32_MAX) && (local_header_ofs != MZ_UINT32_MAX))
  ------------------
  |  |  703|  17.6k|#define MZ_UINT32_MAX (0xFFFFFFFFU)
  ------------------
                              if ((comp_size != MZ_UINT32_MAX) && (local_header_ofs != MZ_UINT32_MAX))
  ------------------
  |  |  703|  10.9k|#define MZ_UINT32_MAX (0xFFFFFFFFU)
  ------------------
  |  Branch (4028:21): [True: 10.9k, False: 6.68k]
  |  Branch (4028:53): [True: 10.8k, False: 153]
  ------------------
 4029|  10.8k|                {
 4030|  10.8k|                    if ((local_header_ofs + MZ_ZIP_LOCAL_DIR_HEADER_SIZE + comp_size) > pZip->m_archive_size)
  ------------------
  |  Branch (4030:25): [True: 104, False: 10.7k]
  ------------------
 4031|    104|                        return mz_zip_set_error(pZip, MZ_ZIP_INVALID_HEADER_OR_CORRUPTED);
 4032|  10.8k|                }
 4033|       |
 4034|  17.5k|                bit_flags = MZ_READ_LE16(p + MZ_ZIP_CDH_BIT_FLAG_OFS);
  ------------------
  |  |  687|  17.5k|#define MZ_READ_LE16(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U))
  ------------------
 4035|  17.5k|                if (bit_flags & MZ_ZIP_GENERAL_PURPOSE_BIT_FLAG_LOCAL_DIR_IS_MASKED)
  ------------------
  |  Branch (4035:21): [True: 5, False: 17.5k]
  ------------------
 4036|      5|                    return mz_zip_set_error(pZip, MZ_ZIP_UNSUPPORTED_ENCRYPTION);
 4037|       |
 4038|  17.5k|                if ((total_header_size = MZ_ZIP_CENTRAL_DIR_HEADER_SIZE + MZ_READ_LE16(p + MZ_ZIP_CDH_FILENAME_LEN_OFS) + MZ_READ_LE16(p + MZ_ZIP_CDH_EXTRA_LEN_OFS) + MZ_READ_LE16(p + MZ_ZIP_CDH_COMMENT_LEN_OFS)) > n)
  ------------------
  |  |  687|  17.5k|#define MZ_READ_LE16(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U))
  ------------------
                              if ((total_header_size = MZ_ZIP_CENTRAL_DIR_HEADER_SIZE + MZ_READ_LE16(p + MZ_ZIP_CDH_FILENAME_LEN_OFS) + MZ_READ_LE16(p + MZ_ZIP_CDH_EXTRA_LEN_OFS) + MZ_READ_LE16(p + MZ_ZIP_CDH_COMMENT_LEN_OFS)) > n)
  ------------------
  |  |  687|  17.5k|#define MZ_READ_LE16(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U))
  ------------------
                              if ((total_header_size = MZ_ZIP_CENTRAL_DIR_HEADER_SIZE + MZ_READ_LE16(p + MZ_ZIP_CDH_FILENAME_LEN_OFS) + MZ_READ_LE16(p + MZ_ZIP_CDH_EXTRA_LEN_OFS) + MZ_READ_LE16(p + MZ_ZIP_CDH_COMMENT_LEN_OFS)) > n)
  ------------------
  |  |  687|  17.5k|#define MZ_READ_LE16(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U))
  ------------------
  |  Branch (4038:21): [True: 29, False: 17.5k]
  ------------------
 4039|     29|                    return mz_zip_set_error(pZip, MZ_ZIP_INVALID_HEADER_OR_CORRUPTED);
 4040|       |
 4041|  17.5k|                n -= total_header_size;
 4042|  17.5k|                p += total_header_size;
 4043|  17.5k|            }
 4044|  3.23k|        }
 4045|       |
 4046|  2.82k|        if (sort_central_dir)
  ------------------
  |  Branch (4046:13): [True: 2.82k, False: 0]
  ------------------
 4047|  2.82k|            mz_zip_reader_sort_central_dir_offsets_by_filename(pZip);
 4048|       |
 4049|  2.82k|        return MZ_TRUE;
  ------------------
  |  |  638|  2.82k|#define MZ_TRUE (1)
  ------------------
 4050|  3.28k|    }
miniz.c:mz_zip_reader_locate_header_sig:
 3698|  4.15k|    {
 3699|  4.15k|        mz_int64 cur_file_ofs;
 3700|  4.15k|        mz_uint32 buf_u32[4096 / sizeof(mz_uint32)];
 3701|  4.15k|        mz_uint8 *pBuf = (mz_uint8 *)buf_u32;
 3702|       |
 3703|       |        /* Basic sanity checks - reject files which are too small */
 3704|  4.15k|        if (pZip->m_archive_size < record_size)
  ------------------
  |  Branch (3704:13): [True: 0, False: 4.15k]
  ------------------
 3705|      0|            return MZ_FALSE;
  ------------------
  |  |  637|      0|#define MZ_FALSE (0)
  ------------------
 3706|       |
 3707|       |        /* Find the record by scanning the file from the end towards the beginning. */
 3708|  4.15k|        cur_file_ofs = MZ_MAX((mz_int64)pZip->m_archive_size - (mz_int64)sizeof(buf_u32), 0);
  ------------------
  |  |  677|  4.15k|#define MZ_MAX(a, b) (((a) > (b)) ? (a) : (b))
  |  |  ------------------
  |  |  |  Branch (677:23): [True: 382, False: 3.77k]
  |  |  ------------------
  ------------------
 3709|  4.15k|        for (;;)
 3710|  4.59k|        {
 3711|  4.59k|            int i, n = (int)MZ_MIN(sizeof(buf_u32), pZip->m_archive_size - cur_file_ofs);
  ------------------
  |  |  678|  4.59k|#define MZ_MIN(a, b) (((a) < (b)) ? (a) : (b))
  |  |  ------------------
  |  |  |  Branch (678:23): [True: 440, False: 4.15k]
  |  |  ------------------
  ------------------
 3712|       |
 3713|  4.59k|            if (pZip->m_pRead(pZip->m_pIO_opaque, cur_file_ofs, pBuf, n) != (mz_uint)n)
  ------------------
  |  Branch (3713:17): [True: 0, False: 4.59k]
  ------------------
 3714|      0|                return MZ_FALSE;
  ------------------
  |  |  637|      0|#define MZ_FALSE (0)
  ------------------
 3715|       |
 3716|  2.24M|            for (i = n - 4; i >= 0; --i)
  ------------------
  |  Branch (3716:29): [True: 2.24M, False: 514]
  ------------------
 3717|  2.24M|            {
 3718|  2.24M|                mz_uint s = MZ_READ_LE32(pBuf + i);
  ------------------
  |  |  688|  2.24M|#define MZ_READ_LE32(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U) | ((mz_uint32)(((const mz_uint8 *)(p))[2]) << 16U) | ((mz_uint32)(((const mz_uint8 *)(p))[3]) << 24U))
  ------------------
 3719|  2.24M|                if (s == record_sig)
  ------------------
  |  Branch (3719:21): [True: 4.13k, False: 2.24M]
  ------------------
 3720|  4.13k|                {
 3721|  4.13k|                    if ((pZip->m_archive_size - (cur_file_ofs + i)) >= record_size)
  ------------------
  |  Branch (3721:25): [True: 4.08k, False: 57]
  ------------------
 3722|  4.08k|                        break;
 3723|  4.13k|                }
 3724|  2.24M|            }
 3725|       |
 3726|  4.59k|            if (i >= 0)
  ------------------
  |  Branch (3726:17): [True: 4.08k, False: 514]
  ------------------
 3727|  4.08k|            {
 3728|  4.08k|                cur_file_ofs += i;
 3729|  4.08k|                break;
 3730|  4.08k|            }
 3731|       |
 3732|       |            /* Give up if we've searched the entire file, or we've gone back "too far" (~64kb) */
 3733|    514|            if ((!cur_file_ofs) || ((pZip->m_archive_size - cur_file_ofs) >= ((mz_uint64)(MZ_UINT16_MAX) + record_size)))
  ------------------
  |  |  702|    449|#define MZ_UINT16_MAX (0xFFFFU)
  ------------------
  |  Branch (3733:17): [True: 65, False: 449]
  |  Branch (3733:36): [True: 9, False: 440]
  ------------------
 3734|     74|                return MZ_FALSE;
  ------------------
  |  |  637|     74|#define MZ_FALSE (0)
  ------------------
 3735|       |
 3736|    440|            cur_file_ofs = MZ_MAX(cur_file_ofs - (mz_int64)(sizeof(buf_u32) - 3), 0);
  ------------------
  |  |  677|    440|#define MZ_MAX(a, b) (((a) > (b)) ? (a) : (b))
  |  |  ------------------
  |  |  |  Branch (677:23): [True: 397, False: 43]
  |  |  ------------------
  ------------------
 3737|    440|        }
 3738|       |
 3739|  4.08k|        *pOfs = cur_file_ofs;
 3740|  4.08k|        return MZ_TRUE;
  ------------------
  |  |  638|  4.08k|#define MZ_TRUE (1)
  ------------------
 3741|  4.15k|    }
miniz.c:mz_zip_reader_eocd64_valid:
 3744|    769|    {
 3745|    769|        if (pZip->m_pRead(pZip->m_pIO_opaque, offset, buf, MZ_ZIP64_END_OF_CENTRAL_DIR_HEADER_SIZE) == MZ_ZIP64_END_OF_CENTRAL_DIR_HEADER_SIZE)
  ------------------
  |  Branch (3745:13): [True: 769, False: 0]
  ------------------
 3746|    769|        {
 3747|    769|            if (MZ_READ_LE32(buf + MZ_ZIP64_ECDH_SIG_OFS) == MZ_ZIP64_END_OF_CENTRAL_DIR_HEADER_SIG)
  ------------------
  |  |  688|    769|#define MZ_READ_LE32(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U) | ((mz_uint32)(((const mz_uint8 *)(p))[2]) << 16U) | ((mz_uint32)(((const mz_uint8 *)(p))[3]) << 24U))
  ------------------
  |  Branch (3747:17): [True: 423, False: 346]
  ------------------
 3748|    423|            {
 3749|    423|                return MZ_TRUE;
  ------------------
  |  |  638|    423|#define MZ_TRUE (1)
  ------------------
 3750|    423|            }
 3751|    769|        }
 3752|       |
 3753|    346|        return MZ_FALSE;
  ------------------
  |  |  637|    346|#define MZ_FALSE (0)
  ------------------
 3754|    769|    }
miniz.c:mz_zip_reader_sort_central_dir_offsets_by_filename:
 3646|  2.82k|    {
 3647|  2.82k|        mz_zip_internal_state *pState = pZip->m_pState;
 3648|  2.82k|        const mz_zip_array *pCentral_dir_offsets = &pState->m_central_dir_offsets;
 3649|  2.82k|        const mz_zip_array *pCentral_dir = &pState->m_central_dir;
 3650|  2.82k|        mz_uint32 *pIndices;
 3651|  2.82k|        mz_uint32 start, end;
 3652|  2.82k|        const mz_uint32 size = pZip->m_total_files;
 3653|       |
 3654|  2.82k|        if (size <= 1U)
  ------------------
  |  Branch (3654:13): [True: 1.62k, False: 1.20k]
  ------------------
 3655|  1.62k|            return;
 3656|       |
 3657|  1.20k|        pIndices = &MZ_ZIP_ARRAY_ELEMENT(&pState->m_sorted_central_dir_offsets, mz_uint32, 0);
  ------------------
  |  | 3423|  1.20k|#define MZ_ZIP_ARRAY_ELEMENT(array_ptr, element_type, index) ((element_type *)((array_ptr)->m_p))[index]
  ------------------
 3658|       |
 3659|  1.20k|        start = (size - 2U) >> 1U;
 3660|  1.20k|        for (;;)
 3661|  6.75k|        {
 3662|  6.75k|            mz_uint64 child, root = start;
 3663|  6.75k|            for (;;)
 3664|  13.6k|            {
 3665|  13.6k|                if ((child = (root << 1U) + 1U) >= size)
  ------------------
  |  Branch (3665:21): [True: 3.21k, False: 10.4k]
  ------------------
 3666|  3.21k|                    break;
 3667|  10.4k|                child += (((child + 1U) < size) && (mz_zip_reader_filename_less(pCentral_dir, pCentral_dir_offsets, pIndices[child], pIndices[child + 1U])));
  ------------------
  |  Branch (3667:27): [True: 9.64k, False: 800]
  |  Branch (3667:52): [True: 3.60k, False: 6.03k]
  ------------------
 3668|  10.4k|                if (!mz_zip_reader_filename_less(pCentral_dir, pCentral_dir_offsets, pIndices[root], pIndices[child]))
  ------------------
  |  Branch (3668:21): [True: 3.54k, False: 6.89k]
  ------------------
 3669|  3.54k|                    break;
 3670|  6.89k|                MZ_SWAP_UINT32(pIndices[root], pIndices[child]);
  ------------------
  |  | 3636|  6.89k|    do                       \
  |  | 3637|  6.89k|    {                        \
  |  | 3638|  6.89k|        mz_uint32 t = a;     \
  |  | 3639|  6.89k|        a = b;               \
  |  | 3640|  6.89k|        b = t;               \
  |  | 3641|  6.89k|    }                        \
  |  | 3642|  10.4k|    MZ_MACRO_END
  |  |  ------------------
  |  |  |  |  644|  10.4k|#define MZ_MACRO_END while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (644:29): [Folded, False: 6.89k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 3671|  6.89k|                root = child;
 3672|  6.89k|            }
 3673|  6.75k|            if (!start)
  ------------------
  |  Branch (3673:17): [True: 1.20k, False: 5.55k]
  ------------------
 3674|  1.20k|                break;
 3675|  5.55k|            start--;
 3676|  5.55k|        }
 3677|       |
 3678|  1.20k|        end = size - 1;
 3679|  14.0k|        while (end > 0)
  ------------------
  |  Branch (3679:16): [True: 12.8k, False: 1.20k]
  ------------------
 3680|  12.8k|        {
 3681|  12.8k|            mz_uint64 child, root = 0;
 3682|  12.8k|            MZ_SWAP_UINT32(pIndices[end], pIndices[0]);
  ------------------
  |  | 3636|  12.8k|    do                       \
  |  | 3637|  12.8k|    {                        \
  |  | 3638|  12.8k|        mz_uint32 t = a;     \
  |  | 3639|  12.8k|        a = b;               \
  |  | 3640|  12.8k|        b = t;               \
  |  | 3641|  12.8k|    }                        \
  |  | 3642|  12.8k|    MZ_MACRO_END
  |  |  ------------------
  |  |  |  |  644|  12.8k|#define MZ_MACRO_END while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (644:29): [Folded, False: 12.8k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 3683|  12.8k|            for (;;)
 3684|  51.0k|            {
 3685|  51.0k|                if ((child = (root << 1U) + 1U) >= end)
  ------------------
  |  Branch (3685:21): [True: 7.51k, False: 43.5k]
  ------------------
 3686|  7.51k|                    break;
 3687|  43.5k|                child += (((child + 1U) < end) && mz_zip_reader_filename_less(pCentral_dir, pCentral_dir_offsets, pIndices[child], pIndices[child + 1U]));
  ------------------
  |  Branch (3687:27): [True: 42.2k, False: 1.28k]
  |  Branch (3687:51): [True: 17.6k, False: 24.5k]
  ------------------
 3688|  43.5k|                if (!mz_zip_reader_filename_less(pCentral_dir, pCentral_dir_offsets, pIndices[root], pIndices[child]))
  ------------------
  |  Branch (3688:21): [True: 5.32k, False: 38.1k]
  ------------------
 3689|  5.32k|                    break;
 3690|  38.1k|                MZ_SWAP_UINT32(pIndices[root], pIndices[child]);
  ------------------
  |  | 3636|  38.1k|    do                       \
  |  | 3637|  38.1k|    {                        \
  |  | 3638|  38.1k|        mz_uint32 t = a;     \
  |  | 3639|  38.1k|        a = b;               \
  |  | 3640|  38.1k|        b = t;               \
  |  | 3641|  38.1k|    }                        \
  |  | 3642|  43.5k|    MZ_MACRO_END
  |  |  ------------------
  |  |  |  |  644|  43.5k|#define MZ_MACRO_END while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (644:29): [Folded, False: 38.1k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 3691|  38.1k|                root = child;
 3692|  38.1k|            }
 3693|  12.8k|            end--;
 3694|  12.8k|        }
 3695|  1.20k|    }
miniz.c:mz_zip_reader_filename_less:
 3617|   105k|    {
 3618|   105k|        const mz_uint8 *pL = &MZ_ZIP_ARRAY_ELEMENT(pCentral_dir_array, mz_uint8, MZ_ZIP_ARRAY_ELEMENT(pCentral_dir_offsets, mz_uint32, l_index)), *pE;
  ------------------
  |  | 3423|   105k|#define MZ_ZIP_ARRAY_ELEMENT(array_ptr, element_type, index) ((element_type *)((array_ptr)->m_p))[index]
  ------------------
 3619|   105k|        const mz_uint8 *pR = &MZ_ZIP_ARRAY_ELEMENT(pCentral_dir_array, mz_uint8, MZ_ZIP_ARRAY_ELEMENT(pCentral_dir_offsets, mz_uint32, r_index));
  ------------------
  |  | 3423|   105k|#define MZ_ZIP_ARRAY_ELEMENT(array_ptr, element_type, index) ((element_type *)((array_ptr)->m_p))[index]
  ------------------
 3620|   105k|        mz_uint l_len = MZ_READ_LE16(pL + MZ_ZIP_CDH_FILENAME_LEN_OFS), r_len = MZ_READ_LE16(pR + MZ_ZIP_CDH_FILENAME_LEN_OFS);
  ------------------
  |  |  687|   105k|#define MZ_READ_LE16(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U))
  ------------------
                      mz_uint l_len = MZ_READ_LE16(pL + MZ_ZIP_CDH_FILENAME_LEN_OFS), r_len = MZ_READ_LE16(pR + MZ_ZIP_CDH_FILENAME_LEN_OFS);
  ------------------
  |  |  687|   105k|#define MZ_READ_LE16(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U))
  ------------------
 3621|   105k|        mz_uint8 l = 0, r = 0;
 3622|   105k|        pL += MZ_ZIP_CENTRAL_DIR_HEADER_SIZE;
 3623|   105k|        pR += MZ_ZIP_CENTRAL_DIR_HEADER_SIZE;
 3624|   105k|        pE = pL + MZ_MIN(l_len, r_len);
  ------------------
  |  |  678|   105k|#define MZ_MIN(a, b) (((a) < (b)) ? (a) : (b))
  |  |  ------------------
  |  |  |  Branch (678:23): [True: 26.8k, False: 78.9k]
  |  |  ------------------
  ------------------
 3625|   783k|        while (pL < pE)
  ------------------
  |  Branch (3625:16): [True: 746k, False: 36.5k]
  ------------------
 3626|   746k|        {
 3627|   746k|            if ((l = MZ_TOLOWER(*pL)) != (r = MZ_TOLOWER(*pR)))
  ------------------
  |  | 3290|   746k|#define MZ_TOLOWER(c) ((((c) >= 'A') && ((c) <= 'Z')) ? ((c) - 'A' + 'a') : (c))
  |  |  ------------------
  |  |  |  Branch (3290:25): [True: 505k, False: 240k]
  |  |  |  Branch (3290:41): [True: 20.4k, False: 485k]
  |  |  ------------------
  ------------------
                          if ((l = MZ_TOLOWER(*pL)) != (r = MZ_TOLOWER(*pR)))
  ------------------
  |  | 3290|   746k|#define MZ_TOLOWER(c) ((((c) >= 'A') && ((c) <= 'Z')) ? ((c) - 'A' + 'a') : (c))
  |  |  ------------------
  |  |  |  Branch (3290:25): [True: 522k, False: 223k]
  |  |  |  Branch (3290:41): [True: 20.6k, False: 502k]
  |  |  ------------------
  ------------------
  |  Branch (3627:17): [True: 69.3k, False: 677k]
  ------------------
 3628|  69.3k|                break;
 3629|   677k|            pL++;
 3630|   677k|            pR++;
 3631|   677k|        }
 3632|   105k|        return (pL == pE) ? (l_len < r_len) : (l < r);
  ------------------
  |  Branch (3632:16): [True: 36.5k, False: 69.3k]
  ------------------
 3633|   105k|    }
miniz.c:mz_zip_get_cdh:
 4288|   100k|    {
 4289|   100k|        if ((!pZip) || (!pZip->m_pState) || (file_index >= pZip->m_total_files))
  ------------------
  |  Branch (4289:13): [True: 0, False: 100k]
  |  Branch (4289:24): [True: 0, False: 100k]
  |  Branch (4289:45): [True: 0, False: 100k]
  ------------------
 4290|      0|            return NULL;
 4291|   100k|        return &MZ_ZIP_ARRAY_ELEMENT(&pZip->m_pState->m_central_dir, mz_uint8, MZ_ZIP_ARRAY_ELEMENT(&pZip->m_pState->m_central_dir_offsets, mz_uint32, file_index));
  ------------------
  |  | 3423|   100k|#define MZ_ZIP_ARRAY_ELEMENT(array_ptr, element_type, index) ((element_type *)((array_ptr)->m_p))[index]
  ------------------
 4292|   100k|    }
miniz.c:mz_zip_string_equal:
 4497|  8.17k|    {
 4498|  8.17k|        mz_uint i;
 4499|  8.17k|        if (flags & MZ_ZIP_FLAG_CASE_SENSITIVE)
  ------------------
  |  Branch (4499:13): [True: 8.17k, False: 0]
  ------------------
 4500|  8.17k|            return 0 == memcmp(pA, pB, len);
 4501|      0|        for (i = 0; i < len; ++i)
  ------------------
  |  Branch (4501:21): [True: 0, False: 0]
  ------------------
 4502|      0|            if (MZ_TOLOWER(pA[i]) != MZ_TOLOWER(pB[i]))
  ------------------
  |  | 3290|      0|#define MZ_TOLOWER(c) ((((c) >= 'A') && ((c) <= 'Z')) ? ((c) - 'A' + 'a') : (c))
  |  |  ------------------
  |  |  |  Branch (3290:25): [True: 0, False: 0]
  |  |  |  Branch (3290:41): [True: 0, False: 0]
  |  |  ------------------
  ------------------
                          if (MZ_TOLOWER(pA[i]) != MZ_TOLOWER(pB[i]))
  ------------------
  |  | 3290|      0|#define MZ_TOLOWER(c) ((((c) >= 'A') && ((c) <= 'Z')) ? ((c) - 'A' + 'a') : (c))
  |  |  ------------------
  |  |  |  Branch (3290:25): [True: 0, False: 0]
  |  |  |  Branch (3290:41): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (4502:17): [True: 0, False: 0]
  ------------------
 4503|      0|                return MZ_FALSE;
  ------------------
  |  |  637|      0|#define MZ_FALSE (0)
  ------------------
 4504|      0|        return MZ_TRUE;
  ------------------
  |  |  638|      0|#define MZ_TRUE (1)
  ------------------
 4505|      0|    }
miniz.c:mz_zip_reader_extract_to_mem_no_alloc1:
 4639|  3.32k|    {
 4640|  3.32k|        int status = TINFL_STATUS_DONE;
 4641|  3.32k|        mz_uint64 needed_size, cur_file_ofs, comp_remaining, out_buf_ofs = 0, read_buf_size, read_buf_ofs = 0, read_buf_avail;
 4642|  3.32k|        mz_zip_archive_file_stat file_stat;
 4643|  3.32k|        void *pRead_buf;
 4644|  3.32k|        mz_uint32 local_header_u32[(MZ_ZIP_LOCAL_DIR_HEADER_SIZE + sizeof(mz_uint32) - 1) / sizeof(mz_uint32)];
 4645|  3.32k|        mz_uint8 *pLocal_header = (mz_uint8 *)local_header_u32;
 4646|  3.32k|        tinfl_decompressor inflator;
 4647|       |
 4648|  3.32k|        if ((!pZip) || (!pZip->m_pState) || ((buf_size) && (!pBuf)) || ((user_read_buf_size) && (!pUser_read_buf)) || (!pZip->m_pRead))
  ------------------
  |  Branch (4648:13): [True: 0, False: 3.32k]
  |  Branch (4648:24): [True: 0, False: 3.32k]
  |  Branch (4648:46): [True: 2.51k, False: 810]
  |  Branch (4648:60): [True: 0, False: 2.51k]
  |  Branch (4648:73): [True: 0, False: 3.32k]
  |  Branch (4648:97): [True: 0, False: 0]
  |  Branch (4648:119): [True: 0, False: 3.32k]
  ------------------
 4649|      0|            return mz_zip_set_error(pZip, MZ_ZIP_INVALID_PARAMETER);
 4650|       |
 4651|  3.32k|        if (st)
  ------------------
  |  Branch (4651:13): [True: 0, False: 3.32k]
  ------------------
 4652|      0|        {
 4653|      0|            file_stat = *st;
 4654|      0|        }
 4655|  3.32k|        else if (!mz_zip_reader_file_stat(pZip, file_index, &file_stat))
  ------------------
  |  Branch (4655:18): [True: 0, False: 3.32k]
  ------------------
 4656|      0|            return MZ_FALSE;
  ------------------
  |  |  637|      0|#define MZ_FALSE (0)
  ------------------
 4657|       |
 4658|       |        /* A directory or zero length file */
 4659|  3.32k|        if ((file_stat.m_is_directory) || (!file_stat.m_comp_size))
  ------------------
  |  Branch (4659:13): [True: 254, False: 3.07k]
  |  Branch (4659:43): [True: 312, False: 2.76k]
  ------------------
 4660|    566|            return MZ_TRUE;
  ------------------
  |  |  638|    566|#define MZ_TRUE (1)
  ------------------
 4661|       |
 4662|       |        /* Encryption and patch files are not supported. */
 4663|  2.76k|        if (file_stat.m_bit_flag & (MZ_ZIP_GENERAL_PURPOSE_BIT_FLAG_IS_ENCRYPTED | MZ_ZIP_GENERAL_PURPOSE_BIT_FLAG_USES_STRONG_ENCRYPTION | MZ_ZIP_GENERAL_PURPOSE_BIT_FLAG_COMPRESSED_PATCH_FLAG))
  ------------------
  |  Branch (4663:13): [True: 152, False: 2.60k]
  ------------------
 4664|    152|            return mz_zip_set_error(pZip, MZ_ZIP_UNSUPPORTED_ENCRYPTION);
 4665|       |
 4666|       |        /* This function only supports decompressing stored and deflate. */
 4667|  2.60k|        if ((!(flags & MZ_ZIP_FLAG_COMPRESSED_DATA)) && (file_stat.m_method != 0) && (file_stat.m_method != MZ_DEFLATED))
  ------------------
  |  |  270|  2.17k|#define MZ_DEFLATED 8
  ------------------
  |  Branch (4667:13): [True: 2.60k, False: 0]
  |  Branch (4667:57): [True: 2.17k, False: 433]
  |  Branch (4667:86): [True: 233, False: 1.94k]
  ------------------
 4668|    233|            return mz_zip_set_error(pZip, MZ_ZIP_UNSUPPORTED_METHOD);
 4669|       |
 4670|       |        /* Ensure supplied output buffer is large enough. */
 4671|  2.37k|        needed_size = (flags & MZ_ZIP_FLAG_COMPRESSED_DATA) ? file_stat.m_comp_size : file_stat.m_uncomp_size;
  ------------------
  |  Branch (4671:23): [True: 0, False: 2.37k]
  ------------------
 4672|  2.37k|        if (buf_size < needed_size)
  ------------------
  |  Branch (4672:13): [True: 0, False: 2.37k]
  ------------------
 4673|      0|            return mz_zip_set_error(pZip, MZ_ZIP_BUF_TOO_SMALL);
 4674|       |
 4675|       |        /* Read and parse the local directory entry. */
 4676|  2.37k|        cur_file_ofs = file_stat.m_local_header_ofs;
 4677|  2.37k|        if (pZip->m_pRead(pZip->m_pIO_opaque, cur_file_ofs, pLocal_header, MZ_ZIP_LOCAL_DIR_HEADER_SIZE) != MZ_ZIP_LOCAL_DIR_HEADER_SIZE)
  ------------------
  |  Branch (4677:13): [True: 63, False: 2.31k]
  ------------------
 4678|     63|            return mz_zip_set_error(pZip, MZ_ZIP_FILE_READ_FAILED);
 4679|       |
 4680|  2.31k|        if (MZ_READ_LE32(pLocal_header) != MZ_ZIP_LOCAL_DIR_HEADER_SIG)
  ------------------
  |  |  688|  2.31k|#define MZ_READ_LE32(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U) | ((mz_uint32)(((const mz_uint8 *)(p))[2]) << 16U) | ((mz_uint32)(((const mz_uint8 *)(p))[3]) << 24U))
  ------------------
  |  Branch (4680:13): [True: 228, False: 2.08k]
  ------------------
 4681|    228|            return mz_zip_set_error(pZip, MZ_ZIP_INVALID_HEADER_OR_CORRUPTED);
 4682|       |
 4683|  2.08k|        cur_file_ofs += (mz_uint64)(MZ_ZIP_LOCAL_DIR_HEADER_SIZE) + MZ_READ_LE16(pLocal_header + MZ_ZIP_LDH_FILENAME_LEN_OFS) + MZ_READ_LE16(pLocal_header + MZ_ZIP_LDH_EXTRA_LEN_OFS);
  ------------------
  |  |  687|  2.08k|#define MZ_READ_LE16(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U))
  ------------------
                      cur_file_ofs += (mz_uint64)(MZ_ZIP_LOCAL_DIR_HEADER_SIZE) + MZ_READ_LE16(pLocal_header + MZ_ZIP_LDH_FILENAME_LEN_OFS) + MZ_READ_LE16(pLocal_header + MZ_ZIP_LDH_EXTRA_LEN_OFS);
  ------------------
  |  |  687|  2.08k|#define MZ_READ_LE16(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U))
  ------------------
 4684|  2.08k|        if ((cur_file_ofs + file_stat.m_comp_size) > pZip->m_archive_size)
  ------------------
  |  Branch (4684:13): [True: 54, False: 2.03k]
  ------------------
 4685|     54|            return mz_zip_set_error(pZip, MZ_ZIP_INVALID_HEADER_OR_CORRUPTED);
 4686|       |
 4687|  2.03k|        if ((flags & MZ_ZIP_FLAG_COMPRESSED_DATA) || (!file_stat.m_method))
  ------------------
  |  Branch (4687:13): [True: 0, False: 2.03k]
  |  Branch (4687:54): [True: 230, False: 1.80k]
  ------------------
 4688|    230|        {
 4689|       |            /* The file is stored or the caller has requested the compressed data. */
 4690|    230|            if (pZip->m_pRead(pZip->m_pIO_opaque, cur_file_ofs, pBuf, (size_t)needed_size) != needed_size)
  ------------------
  |  Branch (4690:17): [True: 54, False: 176]
  ------------------
 4691|     54|                return mz_zip_set_error(pZip, MZ_ZIP_FILE_READ_FAILED);
 4692|       |
 4693|    176|#ifndef MINIZ_DISABLE_ZIP_READER_CRC32_CHECKS
 4694|    176|            if ((flags & MZ_ZIP_FLAG_COMPRESSED_DATA) == 0)
  ------------------
  |  Branch (4694:17): [True: 176, False: 0]
  ------------------
 4695|    176|            {
 4696|    176|                if (mz_crc32(MZ_CRC32_INIT, (const mz_uint8 *)pBuf, (size_t)file_stat.m_uncomp_size) != file_stat.m_crc32)
  ------------------
  |  |  255|    176|#define MZ_CRC32_INIT (0)
  ------------------
  |  Branch (4696:21): [True: 156, False: 20]
  ------------------
 4697|    156|                    return mz_zip_set_error(pZip, MZ_ZIP_CRC_CHECK_FAILED);
 4698|    176|            }
 4699|     20|#endif /* MINIZ_DISABLE_ZIP_READER_CRC32_CHECKS */
 4700|       |
 4701|     20|            return MZ_TRUE;
  ------------------
  |  |  638|     20|#define MZ_TRUE (1)
  ------------------
 4702|    176|        }
 4703|       |
 4704|       |        /* Decompress the file either directly from memory or from a file input buffer. */
 4705|  1.80k|        tinfl_init(&inflator);
  ------------------
  |  | 1008|  1.80k|    do                    \
  |  | 1009|  1.80k|    {                     \
  |  | 1010|  1.80k|        (r)->m_state = 0; \
  |  | 1011|  1.80k|    }                     \
  |  | 1012|  2.03k|    MZ_MACRO_END
  |  |  ------------------
  |  |  |  |  644|  2.03k|#define MZ_MACRO_END while (0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (644:29): [Folded, False: 1.80k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 4706|       |
 4707|  1.80k|        if (pZip->m_pState->m_pMem)
  ------------------
  |  Branch (4707:13): [True: 0, False: 1.80k]
  ------------------
 4708|      0|        {
 4709|       |            /* Read directly from the archive in memory. */
 4710|      0|            pRead_buf = (mz_uint8 *)pZip->m_pState->m_pMem + cur_file_ofs;
 4711|      0|            read_buf_size = read_buf_avail = file_stat.m_comp_size;
 4712|      0|            comp_remaining = 0;
 4713|      0|        }
 4714|  1.80k|        else if (pUser_read_buf)
  ------------------
  |  Branch (4714:18): [True: 0, False: 1.80k]
  ------------------
 4715|      0|        {
 4716|       |            /* Use a user provided read buffer. */
 4717|      0|            if (!user_read_buf_size)
  ------------------
  |  Branch (4717:17): [True: 0, False: 0]
  ------------------
 4718|      0|                return MZ_FALSE;
  ------------------
  |  |  637|      0|#define MZ_FALSE (0)
  ------------------
 4719|      0|            pRead_buf = (mz_uint8 *)pUser_read_buf;
 4720|      0|            read_buf_size = user_read_buf_size;
 4721|      0|            read_buf_avail = 0;
 4722|      0|            comp_remaining = file_stat.m_comp_size;
 4723|      0|        }
 4724|  1.80k|        else
 4725|  1.80k|        {
 4726|       |            /* Temporarily allocate a read buffer. */
 4727|  1.80k|            read_buf_size = MZ_MIN(file_stat.m_comp_size, (mz_uint64)MZ_ZIP_MAX_IO_BUF_SIZE);
  ------------------
  |  |  678|  1.80k|#define MZ_MIN(a, b) (((a) < (b)) ? (a) : (b))
  |  |  ------------------
  |  |  |  Branch (678:23): [True: 1.77k, False: 22]
  |  |  ------------------
  ------------------
 4728|  1.80k|            if (((sizeof(size_t) == sizeof(mz_uint32))) && (read_buf_size > 0x7FFFFFFF))
  ------------------
  |  Branch (4728:17): [Folded, False: 1.80k]
  |  Branch (4728:60): [True: 0, False: 0]
  ------------------
 4729|      0|                return mz_zip_set_error(pZip, MZ_ZIP_INTERNAL_ERROR);
 4730|       |
 4731|  1.80k|            if (NULL == (pRead_buf = pZip->m_pAlloc(pZip->m_pAlloc_opaque, 1, (size_t)read_buf_size)))
  ------------------
  |  Branch (4731:17): [True: 0, False: 1.80k]
  ------------------
 4732|      0|                return mz_zip_set_error(pZip, MZ_ZIP_ALLOC_FAILED);
 4733|       |
 4734|  1.80k|            read_buf_avail = 0;
 4735|  1.80k|            comp_remaining = file_stat.m_comp_size;
 4736|  1.80k|        }
 4737|       |
 4738|  1.80k|        do
 4739|  1.80k|        {
 4740|       |            /* The size_t cast here should be OK because we've verified that the output buffer is >= file_stat.m_uncomp_size above */
 4741|  1.80k|            size_t in_buf_size, out_buf_size = (size_t)(file_stat.m_uncomp_size - out_buf_ofs);
 4742|  1.80k|            if ((!read_buf_avail) && (!pZip->m_pState->m_pMem))
  ------------------
  |  Branch (4742:17): [True: 1.80k, False: 0]
  |  Branch (4742:38): [True: 1.80k, False: 0]
  ------------------
 4743|  1.80k|            {
 4744|  1.80k|                read_buf_avail = MZ_MIN(read_buf_size, comp_remaining);
  ------------------
  |  |  678|  1.80k|#define MZ_MIN(a, b) (((a) < (b)) ? (a) : (b))
  |  |  ------------------
  |  |  |  Branch (678:23): [True: 22, False: 1.77k]
  |  |  ------------------
  ------------------
 4745|  1.80k|                if (pZip->m_pRead(pZip->m_pIO_opaque, cur_file_ofs, pRead_buf, (size_t)read_buf_avail) != read_buf_avail)
  ------------------
  |  Branch (4745:21): [True: 0, False: 1.80k]
  ------------------
 4746|      0|                {
 4747|      0|                    status = TINFL_STATUS_FAILED;
 4748|      0|                    mz_zip_set_error(pZip, MZ_ZIP_DECOMPRESSION_FAILED);
 4749|      0|                    break;
 4750|      0|                }
 4751|  1.80k|                cur_file_ofs += read_buf_avail;
 4752|  1.80k|                comp_remaining -= read_buf_avail;
 4753|  1.80k|                read_buf_ofs = 0;
 4754|  1.80k|            }
 4755|  1.80k|            in_buf_size = (size_t)read_buf_avail;
 4756|  1.80k|            status = tinfl_decompress(&inflator, (mz_uint8 *)pRead_buf + read_buf_ofs, &in_buf_size, (mz_uint8 *)pBuf, (mz_uint8 *)pBuf + out_buf_ofs, &out_buf_size, TINFL_FLAG_USING_NON_WRAPPING_OUTPUT_BUF | (comp_remaining ? TINFL_FLAG_HAS_MORE_INPUT : 0));
  ------------------
  |  Branch (4756:211): [True: 22, False: 1.77k]
  ------------------
 4757|  1.80k|            read_buf_avail -= in_buf_size;
 4758|  1.80k|            read_buf_ofs += in_buf_size;
 4759|  1.80k|            out_buf_ofs += out_buf_size;
 4760|  1.80k|        } while (status == TINFL_STATUS_NEEDS_MORE_INPUT);
  ------------------
  |  Branch (4760:18): [True: 0, False: 1.80k]
  ------------------
 4761|       |
 4762|  1.80k|        if (status == TINFL_STATUS_DONE)
  ------------------
  |  Branch (4762:13): [True: 215, False: 1.58k]
  ------------------
 4763|    215|        {
 4764|       |            /* Make sure the entire file was decompressed, and check its CRC. */
 4765|    215|            if (out_buf_ofs != file_stat.m_uncomp_size)
  ------------------
  |  Branch (4765:17): [True: 91, False: 124]
  ------------------
 4766|     91|            {
 4767|     91|                mz_zip_set_error(pZip, MZ_ZIP_UNEXPECTED_DECOMPRESSED_SIZE);
 4768|     91|                status = TINFL_STATUS_FAILED;
 4769|     91|            }
 4770|    124|#ifndef MINIZ_DISABLE_ZIP_READER_CRC32_CHECKS
 4771|    124|            else if (mz_crc32(MZ_CRC32_INIT, (const mz_uint8 *)pBuf, (size_t)file_stat.m_uncomp_size) != file_stat.m_crc32)
  ------------------
  |  |  255|    124|#define MZ_CRC32_INIT (0)
  ------------------
  |  Branch (4771:22): [True: 83, False: 41]
  ------------------
 4772|     83|            {
 4773|     83|                mz_zip_set_error(pZip, MZ_ZIP_CRC_CHECK_FAILED);
 4774|     83|                status = TINFL_STATUS_FAILED;
 4775|     83|            }
 4776|    215|#endif /* MINIZ_DISABLE_ZIP_READER_CRC32_CHECKS */
 4777|    215|        }
 4778|       |
 4779|  1.80k|        if ((!pZip->m_pState->m_pMem) && (!pUser_read_buf))
  ------------------
  |  Branch (4779:13): [True: 1.80k, False: 0]
  |  Branch (4779:42): [True: 1.80k, False: 0]
  ------------------
 4780|  1.80k|            pZip->m_pFree(pZip->m_pAlloc_opaque, pRead_buf);
 4781|       |
 4782|  1.80k|        return status == TINFL_STATUS_DONE;
 4783|  1.80k|    }
miniz.c:mz_zip_file_stat_internal:
 4377|  21.7k|    {
 4378|  21.7k|        mz_uint n;
 4379|  21.7k|        const mz_uint8 *p = pCentral_dir_header;
 4380|       |
 4381|  21.7k|        if (pFound_zip64_extra_data)
  ------------------
  |  Branch (4381:13): [True: 0, False: 21.7k]
  ------------------
 4382|      0|            *pFound_zip64_extra_data = MZ_FALSE;
  ------------------
  |  |  637|      0|#define MZ_FALSE (0)
  ------------------
 4383|       |
 4384|  21.7k|        if ((!p) || (!pStat))
  ------------------
  |  Branch (4384:13): [True: 0, False: 21.7k]
  |  Branch (4384:21): [True: 0, False: 21.7k]
  ------------------
 4385|      0|            return mz_zip_set_error(pZip, MZ_ZIP_INVALID_PARAMETER);
 4386|       |
 4387|       |        /* Extract fields from the central directory record. */
 4388|  21.7k|        pStat->m_file_index = file_index;
 4389|  21.7k|        pStat->m_central_dir_ofs = MZ_ZIP_ARRAY_ELEMENT(&pZip->m_pState->m_central_dir_offsets, mz_uint32, file_index);
  ------------------
  |  | 3423|  21.7k|#define MZ_ZIP_ARRAY_ELEMENT(array_ptr, element_type, index) ((element_type *)((array_ptr)->m_p))[index]
  ------------------
 4390|  21.7k|        pStat->m_version_made_by = MZ_READ_LE16(p + MZ_ZIP_CDH_VERSION_MADE_BY_OFS);
  ------------------
  |  |  687|  21.7k|#define MZ_READ_LE16(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U))
  ------------------
 4391|  21.7k|        pStat->m_version_needed = MZ_READ_LE16(p + MZ_ZIP_CDH_VERSION_NEEDED_OFS);
  ------------------
  |  |  687|  21.7k|#define MZ_READ_LE16(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U))
  ------------------
 4392|  21.7k|        pStat->m_bit_flag = MZ_READ_LE16(p + MZ_ZIP_CDH_BIT_FLAG_OFS);
  ------------------
  |  |  687|  21.7k|#define MZ_READ_LE16(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U))
  ------------------
 4393|  21.7k|        pStat->m_method = MZ_READ_LE16(p + MZ_ZIP_CDH_METHOD_OFS);
  ------------------
  |  |  687|  21.7k|#define MZ_READ_LE16(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U))
  ------------------
 4394|  21.7k|#ifndef MINIZ_NO_TIME
 4395|  21.7k|        pStat->m_time = mz_zip_dos_to_time_t(MZ_READ_LE16(p + MZ_ZIP_CDH_FILE_TIME_OFS), MZ_READ_LE16(p + MZ_ZIP_CDH_FILE_DATE_OFS));
  ------------------
  |  |  687|  21.7k|#define MZ_READ_LE16(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U))
  ------------------
                      pStat->m_time = mz_zip_dos_to_time_t(MZ_READ_LE16(p + MZ_ZIP_CDH_FILE_TIME_OFS), MZ_READ_LE16(p + MZ_ZIP_CDH_FILE_DATE_OFS));
  ------------------
  |  |  687|  21.7k|#define MZ_READ_LE16(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U))
  ------------------
 4396|  21.7k|#endif /* MINIZ_NO_TIME */
 4397|  21.7k|        pStat->m_crc32 = MZ_READ_LE32(p + MZ_ZIP_CDH_CRC32_OFS);
  ------------------
  |  |  688|  21.7k|#define MZ_READ_LE32(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U) | ((mz_uint32)(((const mz_uint8 *)(p))[2]) << 16U) | ((mz_uint32)(((const mz_uint8 *)(p))[3]) << 24U))
  ------------------
 4398|  21.7k|        pStat->m_comp_size = MZ_READ_LE32(p + MZ_ZIP_CDH_COMPRESSED_SIZE_OFS);
  ------------------
  |  |  688|  21.7k|#define MZ_READ_LE32(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U) | ((mz_uint32)(((const mz_uint8 *)(p))[2]) << 16U) | ((mz_uint32)(((const mz_uint8 *)(p))[3]) << 24U))
  ------------------
 4399|  21.7k|        pStat->m_uncomp_size = MZ_READ_LE32(p + MZ_ZIP_CDH_DECOMPRESSED_SIZE_OFS);
  ------------------
  |  |  688|  21.7k|#define MZ_READ_LE32(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U) | ((mz_uint32)(((const mz_uint8 *)(p))[2]) << 16U) | ((mz_uint32)(((const mz_uint8 *)(p))[3]) << 24U))
  ------------------
 4400|  21.7k|        pStat->m_internal_attr = MZ_READ_LE16(p + MZ_ZIP_CDH_INTERNAL_ATTR_OFS);
  ------------------
  |  |  687|  21.7k|#define MZ_READ_LE16(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U))
  ------------------
 4401|  21.7k|        pStat->m_external_attr = MZ_READ_LE32(p + MZ_ZIP_CDH_EXTERNAL_ATTR_OFS);
  ------------------
  |  |  688|  21.7k|#define MZ_READ_LE32(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U) | ((mz_uint32)(((const mz_uint8 *)(p))[2]) << 16U) | ((mz_uint32)(((const mz_uint8 *)(p))[3]) << 24U))
  ------------------
 4402|  21.7k|        pStat->m_local_header_ofs = MZ_READ_LE32(p + MZ_ZIP_CDH_LOCAL_HEADER_OFS);
  ------------------
  |  |  688|  21.7k|#define MZ_READ_LE32(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U) | ((mz_uint32)(((const mz_uint8 *)(p))[2]) << 16U) | ((mz_uint32)(((const mz_uint8 *)(p))[3]) << 24U))
  ------------------
 4403|       |
 4404|       |        /* Copy as much of the filename and comment as possible. */
 4405|  21.7k|        n = MZ_READ_LE16(p + MZ_ZIP_CDH_FILENAME_LEN_OFS);
  ------------------
  |  |  687|  21.7k|#define MZ_READ_LE16(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U))
  ------------------
 4406|  21.7k|        n = MZ_MIN(n, MZ_ZIP_MAX_ARCHIVE_FILENAME_SIZE - 1);
  ------------------
  |  |  678|  21.7k|#define MZ_MIN(a, b) (((a) < (b)) ? (a) : (b))
  |  |  ------------------
  |  |  |  Branch (678:23): [True: 21.3k, False: 339]
  |  |  ------------------
  ------------------
 4407|  21.7k|        memcpy(pStat->m_filename, p + MZ_ZIP_CENTRAL_DIR_HEADER_SIZE, n);
 4408|  21.7k|        pStat->m_filename[n] = '\0';
 4409|       |
 4410|  21.7k|        n = MZ_READ_LE16(p + MZ_ZIP_CDH_COMMENT_LEN_OFS);
  ------------------
  |  |  687|  21.7k|#define MZ_READ_LE16(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U))
  ------------------
 4411|  21.7k|        n = MZ_MIN(n, MZ_ZIP_MAX_ARCHIVE_FILE_COMMENT_SIZE - 1);
  ------------------
  |  |  678|  21.7k|#define MZ_MIN(a, b) (((a) < (b)) ? (a) : (b))
  |  |  ------------------
  |  |  |  Branch (678:23): [True: 21.6k, False: 107]
  |  |  ------------------
  ------------------
 4412|  21.7k|        pStat->m_comment_size = n;
 4413|  21.7k|        memcpy(pStat->m_comment, p + MZ_ZIP_CENTRAL_DIR_HEADER_SIZE + MZ_READ_LE16(p + MZ_ZIP_CDH_FILENAME_LEN_OFS) + MZ_READ_LE16(p + MZ_ZIP_CDH_EXTRA_LEN_OFS), n);
  ------------------
  |  |  687|  21.7k|#define MZ_READ_LE16(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U))
  ------------------
                      memcpy(pStat->m_comment, p + MZ_ZIP_CENTRAL_DIR_HEADER_SIZE + MZ_READ_LE16(p + MZ_ZIP_CDH_FILENAME_LEN_OFS) + MZ_READ_LE16(p + MZ_ZIP_CDH_EXTRA_LEN_OFS), n);
  ------------------
  |  |  687|  21.7k|#define MZ_READ_LE16(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U))
  ------------------
 4414|  21.7k|        pStat->m_comment[n] = '\0';
 4415|       |
 4416|       |        /* Set some flags for convienance */
 4417|  21.7k|        pStat->m_is_directory = mz_zip_reader_is_file_a_directory(pZip, file_index);
 4418|  21.7k|        pStat->m_is_encrypted = mz_zip_reader_is_file_encrypted(pZip, file_index);
 4419|  21.7k|        pStat->m_is_supported = mz_zip_reader_is_file_supported(pZip, file_index);
 4420|       |
 4421|       |        /* See if we need to read any zip64 extended information fields. */
 4422|       |        /* Confusingly, these zip64 fields can be present even on non-zip64 archives (Debian zip on a huge files from stdin piped to stdout creates them). */
 4423|  21.7k|        if (MZ_MAX(MZ_MAX(pStat->m_comp_size, pStat->m_uncomp_size), pStat->m_local_header_ofs) == MZ_UINT32_MAX)
  ------------------
  |  |  677|  43.4k|#define MZ_MAX(a, b) (((a) > (b)) ? (a) : (b))
  |  |  ------------------
  |  |  |  Branch (677:23): [True: 16.3k, False: 5.41k]
  |  |  |  Branch (677:25): [True: 8.94k, False: 12.7k]
  |  |  |  Branch (677:38): [True: 7.38k, False: 8.92k]
  |  |  ------------------
  ------------------
                      if (MZ_MAX(MZ_MAX(pStat->m_comp_size, pStat->m_uncomp_size), pStat->m_local_header_ofs) == MZ_UINT32_MAX)
  ------------------
  |  |  703|  21.7k|#define MZ_UINT32_MAX (0xFFFFFFFFU)
  ------------------
  |  Branch (4423:13): [True: 6.66k, False: 15.0k]
  ------------------
 4424|  6.66k|        {
 4425|       |            /* Attempt to find zip64 extended information field in the entry's extra data */
 4426|  6.66k|            mz_uint32 extra_size_remaining = MZ_READ_LE16(p + MZ_ZIP_CDH_EXTRA_LEN_OFS);
  ------------------
  |  |  687|  6.66k|#define MZ_READ_LE16(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U))
  ------------------
 4427|       |
 4428|  6.66k|            if (extra_size_remaining)
  ------------------
  |  Branch (4428:17): [True: 2.59k, False: 4.07k]
  ------------------
 4429|  2.59k|            {
 4430|  2.59k|                const mz_uint8 *pExtra_data = p + MZ_ZIP_CENTRAL_DIR_HEADER_SIZE + MZ_READ_LE16(p + MZ_ZIP_CDH_FILENAME_LEN_OFS);
  ------------------
  |  |  687|  2.59k|#define MZ_READ_LE16(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U))
  ------------------
 4431|       |
 4432|  2.59k|                do
 4433|  3.45k|                {
 4434|  3.45k|                    mz_uint32 field_id;
 4435|  3.45k|                    mz_uint32 field_data_size;
 4436|       |
 4437|  3.45k|                    if (extra_size_remaining < (sizeof(mz_uint16) * 2))
  ------------------
  |  Branch (4437:25): [True: 2, False: 3.45k]
  ------------------
 4438|      2|                        return mz_zip_set_error(pZip, MZ_ZIP_INVALID_HEADER_OR_CORRUPTED);
 4439|       |
 4440|  3.45k|                    field_id = MZ_READ_LE16(pExtra_data);
  ------------------
  |  |  687|  3.45k|#define MZ_READ_LE16(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U))
  ------------------
 4441|  3.45k|                    field_data_size = MZ_READ_LE16(pExtra_data + sizeof(mz_uint16));
  ------------------
  |  |  687|  3.45k|#define MZ_READ_LE16(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U))
  ------------------
 4442|       |
 4443|  3.45k|                    if ((field_data_size + sizeof(mz_uint16) * 2) > extra_size_remaining)
  ------------------
  |  Branch (4443:25): [True: 40, False: 3.41k]
  ------------------
 4444|     40|                        return mz_zip_set_error(pZip, MZ_ZIP_INVALID_HEADER_OR_CORRUPTED);
 4445|       |
 4446|  3.41k|                    if (field_id == MZ_ZIP64_EXTENDED_INFORMATION_FIELD_HEADER_ID)
  ------------------
  |  Branch (4446:25): [True: 995, False: 2.42k]
  ------------------
 4447|    995|                    {
 4448|    995|                        const mz_uint8 *pField_data = pExtra_data + sizeof(mz_uint16) * 2;
 4449|    995|                        mz_uint32 field_data_remaining = field_data_size;
 4450|       |
 4451|    995|                        if (pFound_zip64_extra_data)
  ------------------
  |  Branch (4451:29): [True: 0, False: 995]
  ------------------
 4452|      0|                            *pFound_zip64_extra_data = MZ_TRUE;
  ------------------
  |  |  638|      0|#define MZ_TRUE (1)
  ------------------
 4453|       |
 4454|    995|                        if (pStat->m_uncomp_size == MZ_UINT32_MAX)
  ------------------
  |  |  703|    995|#define MZ_UINT32_MAX (0xFFFFFFFFU)
  ------------------
  |  Branch (4454:29): [True: 321, False: 674]
  ------------------
 4455|    321|                        {
 4456|    321|                            if (field_data_remaining < sizeof(mz_uint64))
  ------------------
  |  Branch (4456:33): [True: 13, False: 308]
  ------------------
 4457|     13|                                return mz_zip_set_error(pZip, MZ_ZIP_INVALID_HEADER_OR_CORRUPTED);
 4458|       |
 4459|    308|                            pStat->m_uncomp_size = MZ_READ_LE64(pField_data);
  ------------------
  |  |  691|    308|#define MZ_READ_LE64(p) (((mz_uint64)MZ_READ_LE32(p)) | (((mz_uint64)MZ_READ_LE32((const mz_uint8 *)(p) + sizeof(mz_uint32))) << 32U))
  |  |  ------------------
  |  |  |  |  688|    308|#define MZ_READ_LE32(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U) | ((mz_uint32)(((const mz_uint8 *)(p))[2]) << 16U) | ((mz_uint32)(((const mz_uint8 *)(p))[3]) << 24U))
  |  |  ------------------
  |  |               #define MZ_READ_LE64(p) (((mz_uint64)MZ_READ_LE32(p)) | (((mz_uint64)MZ_READ_LE32((const mz_uint8 *)(p) + sizeof(mz_uint32))) << 32U))
  |  |  ------------------
  |  |  |  |  688|    308|#define MZ_READ_LE32(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U) | ((mz_uint32)(((const mz_uint8 *)(p))[2]) << 16U) | ((mz_uint32)(((const mz_uint8 *)(p))[3]) << 24U))
  |  |  ------------------
  ------------------
 4460|    308|                            pField_data += sizeof(mz_uint64);
 4461|    308|                            field_data_remaining -= sizeof(mz_uint64);
 4462|    308|                        }
 4463|       |
 4464|    982|                        if (pStat->m_comp_size == MZ_UINT32_MAX)
  ------------------
  |  |  703|    982|#define MZ_UINT32_MAX (0xFFFFFFFFU)
  ------------------
  |  Branch (4464:29): [True: 663, False: 319]
  ------------------
 4465|    663|                        {
 4466|    663|                            if (field_data_remaining < sizeof(mz_uint64))
  ------------------
  |  Branch (4466:33): [True: 76, False: 587]
  ------------------
 4467|     76|                                return mz_zip_set_error(pZip, MZ_ZIP_INVALID_HEADER_OR_CORRUPTED);
 4468|       |
 4469|    587|                            pStat->m_comp_size = MZ_READ_LE64(pField_data);
  ------------------
  |  |  691|    587|#define MZ_READ_LE64(p) (((mz_uint64)MZ_READ_LE32(p)) | (((mz_uint64)MZ_READ_LE32((const mz_uint8 *)(p) + sizeof(mz_uint32))) << 32U))
  |  |  ------------------
  |  |  |  |  688|    587|#define MZ_READ_LE32(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U) | ((mz_uint32)(((const mz_uint8 *)(p))[2]) << 16U) | ((mz_uint32)(((const mz_uint8 *)(p))[3]) << 24U))
  |  |  ------------------
  |  |               #define MZ_READ_LE64(p) (((mz_uint64)MZ_READ_LE32(p)) | (((mz_uint64)MZ_READ_LE32((const mz_uint8 *)(p) + sizeof(mz_uint32))) << 32U))
  |  |  ------------------
  |  |  |  |  688|    587|#define MZ_READ_LE32(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U) | ((mz_uint32)(((const mz_uint8 *)(p))[2]) << 16U) | ((mz_uint32)(((const mz_uint8 *)(p))[3]) << 24U))
  |  |  ------------------
  ------------------
 4470|    587|                            pField_data += sizeof(mz_uint64);
 4471|    587|                            field_data_remaining -= sizeof(mz_uint64);
 4472|    587|                        }
 4473|       |
 4474|    906|                        if (pStat->m_local_header_ofs == MZ_UINT32_MAX)
  ------------------
  |  |  703|    906|#define MZ_UINT32_MAX (0xFFFFFFFFU)
  ------------------
  |  Branch (4474:29): [True: 161, False: 745]
  ------------------
 4475|    161|                        {
 4476|    161|                            if (field_data_remaining < sizeof(mz_uint64))
  ------------------
  |  Branch (4476:33): [True: 15, False: 146]
  ------------------
 4477|     15|                                return mz_zip_set_error(pZip, MZ_ZIP_INVALID_HEADER_OR_CORRUPTED);
 4478|       |
 4479|    146|                            pStat->m_local_header_ofs = MZ_READ_LE64(pField_data);
  ------------------
  |  |  691|    146|#define MZ_READ_LE64(p) (((mz_uint64)MZ_READ_LE32(p)) | (((mz_uint64)MZ_READ_LE32((const mz_uint8 *)(p) + sizeof(mz_uint32))) << 32U))
  |  |  ------------------
  |  |  |  |  688|    146|#define MZ_READ_LE32(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U) | ((mz_uint32)(((const mz_uint8 *)(p))[2]) << 16U) | ((mz_uint32)(((const mz_uint8 *)(p))[3]) << 24U))
  |  |  ------------------
  |  |               #define MZ_READ_LE64(p) (((mz_uint64)MZ_READ_LE32(p)) | (((mz_uint64)MZ_READ_LE32((const mz_uint8 *)(p) + sizeof(mz_uint32))) << 32U))
  |  |  ------------------
  |  |  |  |  688|    146|#define MZ_READ_LE32(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U) | ((mz_uint32)(((const mz_uint8 *)(p))[2]) << 16U) | ((mz_uint32)(((const mz_uint8 *)(p))[3]) << 24U))
  |  |  ------------------
  ------------------
 4480|    146|                            pField_data += sizeof(mz_uint64);
 4481|    146|                            field_data_remaining -= sizeof(mz_uint64);
 4482|    146|                        }
 4483|       |
 4484|    891|                        break;
 4485|    906|                    }
 4486|       |
 4487|  2.42k|                    pExtra_data += sizeof(mz_uint16) * 2 + field_data_size;
 4488|  2.42k|                    extra_size_remaining = extra_size_remaining - sizeof(mz_uint16) * 2 - field_data_size;
 4489|  2.42k|                } while (extra_size_remaining);
  ------------------
  |  Branch (4489:26): [True: 862, False: 1.56k]
  ------------------
 4490|  2.59k|            }
 4491|  6.66k|        }
 4492|       |
 4493|  21.5k|        return MZ_TRUE;
  ------------------
  |  |  638|  21.5k|#define MZ_TRUE (1)
  ------------------
 4494|  21.7k|    }
miniz.c:mz_zip_dos_to_time_t:
 3496|  21.7k|    {
 3497|  21.7k|        struct tm tm;
 3498|  21.7k|        memset(&tm, 0, sizeof(tm));
 3499|  21.7k|        tm.tm_isdst = -1;
 3500|  21.7k|        tm.tm_year = ((dos_date >> 9) & 127) + 1980 - 1900;
 3501|  21.7k|        tm.tm_mon = ((dos_date >> 5) & 15) - 1;
 3502|  21.7k|        tm.tm_mday = dos_date & 31;
 3503|  21.7k|        tm.tm_hour = (dos_time >> 11) & 31;
 3504|  21.7k|        tm.tm_min = (dos_time >> 5) & 63;
 3505|  21.7k|        tm.tm_sec = (dos_time << 1) & 62;
 3506|  21.7k|        return mktime(&tm);
 3507|  21.7k|    }
miniz.c:mz_zip_array_resize:
 3469|  9.70k|    {
 3470|  9.70k|        if (new_size > pArray->m_capacity)
  ------------------
  |  Branch (3470:13): [True: 9.70k, False: 0]
  ------------------
 3471|  9.70k|        {
 3472|  9.70k|            if (!mz_zip_array_ensure_capacity(pZip, pArray, new_size, growing))
  ------------------
  |  Branch (3472:17): [True: 0, False: 9.70k]
  ------------------
 3473|      0|                return MZ_FALSE;
  ------------------
  |  |  637|      0|#define MZ_FALSE (0)
  ------------------
 3474|  9.70k|        }
 3475|  9.70k|        pArray->m_size = new_size;
 3476|  9.70k|        return MZ_TRUE;
  ------------------
  |  |  638|  9.70k|#define MZ_TRUE (1)
  ------------------
 3477|  9.70k|    }
miniz.c:mz_zip_array_ensure_capacity:
 3439|  9.70k|    {
 3440|  9.70k|        void *pNew_p;
 3441|  9.70k|        size_t new_capacity = min_new_capacity;
 3442|  9.70k|        MZ_ASSERT(pArray->m_element_size);
  ------------------
  |  |  665|  9.70k|#define MZ_ASSERT(x) assert(x)
  ------------------
 3443|  9.70k|        if (pArray->m_capacity >= min_new_capacity)
  ------------------
  |  Branch (3443:13): [True: 0, False: 9.70k]
  ------------------
 3444|      0|            return MZ_TRUE;
  ------------------
  |  |  638|      0|#define MZ_TRUE (1)
  ------------------
 3445|  9.70k|        if (growing)
  ------------------
  |  Branch (3445:13): [True: 0, False: 9.70k]
  ------------------
 3446|      0|        {
 3447|      0|            new_capacity = MZ_MAX(1, pArray->m_capacity);
  ------------------
  |  |  677|      0|#define MZ_MAX(a, b) (((a) > (b)) ? (a) : (b))
  |  |  ------------------
  |  |  |  Branch (677:23): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 3448|      0|            while (new_capacity < min_new_capacity)
  ------------------
  |  Branch (3448:20): [True: 0, False: 0]
  ------------------
 3449|      0|                new_capacity *= 2;
 3450|      0|        }
 3451|  9.70k|        if (NULL == (pNew_p = pZip->m_pRealloc(pZip->m_pAlloc_opaque, pArray->m_p, pArray->m_element_size, new_capacity)))
  ------------------
  |  Branch (3451:13): [True: 0, False: 9.70k]
  ------------------
 3452|      0|            return MZ_FALSE;
  ------------------
  |  |  637|      0|#define MZ_FALSE (0)
  ------------------
 3453|  9.70k|        pArray->m_p = pNew_p;
 3454|  9.70k|        pArray->m_capacity = new_capacity;
 3455|  9.70k|        return MZ_TRUE;
  ------------------
  |  |  638|  9.70k|#define MZ_TRUE (1)
  ------------------
 3456|  9.70k|    }
miniz.c:mz_zip_array_clear:
 3433|  12.4k|    {
 3434|  12.4k|        pZip->m_pFree(pZip->m_pAlloc_opaque, pArray->m_p);
 3435|  12.4k|        memset(pArray, 0, sizeof(mz_zip_array));
 3436|  12.4k|    }

LLVMFuzzerTestOneInput:
   43|  4.16k|extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
   44|  4.16k|  if (size < 1)
  ------------------
  |  Branch (44:7): [True: 0, False: 4.16k]
  ------------------
   45|      0|    return 0;
   46|       |
   47|  4.16k|  global_init();
   48|       |
   49|  4.16k|  Ogre::String name = "fuzz.zip";
   50|  4.16k|  g_zipFactory->addEmbbeddedFile(name, data, size, nullptr);
   51|       |
   52|  4.16k|  Ogre::Archive *arch = g_zipFactory->createInstance(name, true);
   53|  4.16k|  if (arch) {
  ------------------
  |  Branch (53:7): [True: 4.16k, False: 0]
  ------------------
   54|  4.16k|    try {
   55|  4.16k|      arch->load();
   56|       |
   57|       |      // List files
   58|  4.16k|      Ogre::StringVectorPtr files = arch->list();
   59|       |
   60|       |      // Try to open first few files
   61|  4.16k|      int count = 0;
   62|  6.15k|      for (auto &f : *files) {
  ------------------
  |  Branch (62:20): [True: 6.15k, False: 4.05k]
  ------------------
   63|  6.15k|        if (count++ > 10) break;
  ------------------
  |  Branch (63:13): [True: 115, False: 6.04k]
  ------------------
   64|  6.04k|        try {
   65|  6.04k|          Ogre::DataStreamPtr stream = arch->open(f);
   66|  6.04k|          if (stream) {
  ------------------
  |  Branch (66:15): [True: 627, False: 5.41k]
  ------------------
   67|       |            // Read some data
   68|    627|            char buf[1024];
   69|    627|            stream->read(buf, std::min((size_t)1024, (size_t)stream->size()));
   70|    627|          }
   71|  6.04k|        } catch (...) {}
   72|  6.04k|      }
   73|       |
   74|  4.16k|      arch->unload();
   75|  4.16k|    } catch (...) {}
   76|  4.16k|    g_zipFactory->destroyInstance(arch);
   77|  4.16k|  }
   78|       |
   79|  4.16k|  return 0;
   80|  4.16k|}
zip_fuzz.cpp:_ZL11global_initv:
   26|  4.16k|static void global_init() {
   27|  4.16k|  if (g_initialized)
  ------------------
  |  Branch (27:7): [True: 4.16k, False: 1]
  ------------------
   28|  4.16k|    return;
   29|       |
   30|      1|  auto *logMgr = new Ogre::LogManager();
   31|      1|  logMgr->createLog("fuzz_zip.log", true, false, true);
   32|      1|  logMgr->setMinLogLevel(Ogre::LML_CRITICAL);
   33|       |
   34|      1|  new Ogre::ResourceGroupManager();
   35|      1|  new Ogre::ArchiveManager();
   36|       |
   37|      1|  g_zipFactory = new Ogre::EmbeddedZipArchiveFactory();
   38|      1|  Ogre::ArchiveManager::getSingleton().addArchiveFactory(g_zipFactory);
   39|       |
   40|      1|  g_initialized = true;
   41|      1|}

