//
// sub_8F45BC from 0x8f45bc to 0x8f46b0 (244 bytes)
//
// 3 xrefs:
// > TIFFInitPixarLog @ 0x8f75d4
// > TIFFInitPixarLog @ 0x8f75d8
// > ??> @ 0x8f7720
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:04:14 +0000
//
bool __fastcall sub_8F45BC(_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;
}