//
// png_set_sRGB_gAMA_and_cHRM from 0x660058 to 0x660088 (48 bytes)
//
// 0 xrefs:
//
// 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
//
int __fastcall png_set_sRGB_gAMA_and_cHRM(int result, int a2, unsigned int a3)
{
bool v3; // zf
int v5; // r5
v3 = a2 == 0;
if ( a2 )
v3 = result == 0;
if ( !v3 )
{
v5 = result;
if ( png_colorspace_set_sRGB(result, a2 + 40, a3) )
*(_WORD *)(a2 + 114) |= 0x18u;
return png_colorspace_sync_info(v5, a2);
}
return result;
}