//
// png_set_sRGB_gAMA_and_cHRM from 0xe5a3dc to 0xe5a430 (84 bytes)
//
// 1 xrefs:
// > ??> @ 0xb0620
//
// 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:20 +0000
//
__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;
}