//
// png_set_text_compression_window_bits from 0xe5ef88 to 0xe5efe4 (92 bytes)
//
// 1 xrefs:
// > ??> @ 0x7ed48
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:10:22 +0000
//
__int64 __fastcall png_set_text_compression_window_bits(__int64 result, int a2)
{
__int64 v2; // x19
v2 = result;
if ( result )
{
if ( a2 > 15 )
{
result = png_warning(result, "Only compression windows <= 32k supported by PNG");
a2 = 15;
}
else if ( a2 <= 7 )
{
result = png_warning(result, "Only compression windows >= 256 supported by PNG");
a2 = 8;
}
*(_DWORD *)(v2 + 528) = a2;
}
return result;
}