//
// png_set_gAMA_fixed from 0x86fa34 to 0x86fa56 (34 bytes)
//
// 3 xrefs:
// > png_set_gAMA @ 0x86fa76
// > sub_872E84 @ 0x872f64
// > sub_872E84 @ 0x87308e
//
// 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:57 +0000
//
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;
}