//
// sub_6E49FC from 0x6e49fc to 0x6e4af0 (244 bytes)
//
// 3 xrefs:
// > TIFFInitPixarLog @ 0x6e7a14
// > TIFFInitPixarLog @ 0x6e7a18
// > ??> @ 0x6e7b60
//
// 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_6E49FC(_DWORD *a1)
{
int v4; // [sp+Ch] [bp-8h]
v4 = a1[144];
if ( !v4 )
_assert2();
*(_DWORD *)(v4 + 76) = a1[147];
*(_DWORD *)(v4 + 80) = a1[148];
if ( *(_DWORD *)(v4 + 80) == a1[148] )
return j_deflateReset(v4 + 64) == 0;
TIFFErrorExt(a1[157], (int)"PixarLogPreEncode", "ZLib cannot deal with buffers this size");
return 0;
}