//
// png_get_gAMA from 0xbcdef0 to 0xbcdf28 (56 bytes)
//
// 1 xrefs:
// > ??> @ 0xc8160
//
// 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_get_gAMA(__int64 a1, __int64 a2, double *a3)
{
if ( !a1 || !a2 || !a3 || (*(_BYTE *)(a2 + 126) & 1) == 0 )
return 0;
*a3 = (double)*(int *)(a2 + 52) * 0.00001;
return 1;
}