//
// png_write_flush from 0xbe7fd0 to 0xbe8024 (84 bytes)
//
// 2 xrefs:
// > png_write_find_filter @ 0xbf0b58
// > ??> @ 0x76128
//
// 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
//
__int64 __fastcall png_write_flush(__int64 result)
{
__int64 v1; // x19
if ( result )
{
if ( *(_DWORD *)(result + 588) < *(_DWORD *)(result + 568) )
{
v1 = result;
png_compress_IDAT();
*(_DWORD *)(v1 + 740) = 0;
return png_flush(v1);
}
}
return result;
}