//
// sub_6E40C4 from 0x6e40c4 to 0x6e41b8 (244 bytes)
//
// 3 xrefs:
// > TIFFInitPixarLog @ 0x6e79c4
// > TIFFInitPixarLog @ 0x6e79c8
// > ??> @ 0x6e7b4c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
bool __fastcall sub_6E40C4(_DWORD *a1)
{
int v4; // [sp+Ch] [bp-8h]
v4 = a1[144];
if ( !v4 )
_assert2();
*(_DWORD *)(v4 + 64) = a1[147];
*(_DWORD *)(v4 + 68) = a1[152];
if ( *(_DWORD *)(v4 + 68) == a1[152] )
return j_inflateReset(v4 + 64) == 0;
TIFFErrorExt(a1[157], (int)"PixarLogPreDecode", "ZLib cannot deal with buffers this size");
return 0;
}