//
// png_set_sRGB_gAMA_and_cHRM from 0xbe421c to 0xbe4270 (84 bytes)
//
// 1 xrefs:
// > ??> @ 0x84cf0
//
// 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_set_sRGB_gAMA_and_cHRM(__int64 result, __int64 a2, unsigned int a3)
{
__int64 v4; // x20
if ( result && a2 )
{
v4 = result;
if ( (unsigned int)png_colorspace_set_sRGB(result, a2 + 52, a3) )
*(_WORD *)(a2 + 126) |= 0x18u;
return png_colorspace_sync_info(v4, a2);
}
return result;
}