//
// png_get_pixel_aspect_ratio from 0xbcd764 to 0xbcd79c (56 bytes)
//
// 1 xrefs:
// > ??> @ 0xbce80
//
// 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
//
float __fastcall png_get_pixel_aspect_ratio(__int64 a1, _DWORD *a2)
{
float result; // s0
unsigned int v3; // w2
if ( !a1 || !a2 )
return 0.0;
result = 0.0;
if ( (a2[2] & 0x80) != 0 )
{
v3 = a2[56];
if ( v3 )
return (float)(unsigned int)a2[57] / (float)v3;
}
return result;
}