//
// png_set_gAMA_fixed from 0x65f9b4 to 0x65f9d6 (34 bytes)
//
// 3 xrefs:
// > png_set_gAMA @ 0x65f9f6
// > sub_662E04 @ 0x662ee4
// > sub_662E04 @ 0x66300e
//
// 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_gAMA_fixed(int result, int a2, int a3)
{
bool v3; // zf
int v5; // r5
v3 = a2 == 0;
if ( a2 )
v3 = result == 0;
if ( !v3 )
{
v5 = result;
png_colorspace_set_gamma(result, a2 + 40, a3);
return png_colorspace_sync_info(v5, a2);
}
return result;
}