//
// png_set_text_compression_window_bits from 0x873218 to 0x87324e (54 bytes)
//
// 0 xrefs:
//
// 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:02:59 +0000
//
int __fastcall png_set_text_compression_window_bits(int result, int a2)
{
int v2; // r4
if ( result )
{
v2 = result;
if ( a2 > 15 )
{
result = png_warning(result, "Only compression windows <= 32k supported by PNG");
*(_DWORD *)(v2 + 416) = 15;
}
else if ( a2 <= 7 )
{
result = png_warning(result, "Only compression windows >= 256 supported by PNG");
*(_DWORD *)(v2 + 416) = 8;
}
else
{
*(_DWORD *)(result + 416) = a2;
}
}
return result;
}