//
// png_get_pixel_aspect_ratio from 0x6514a0 to 0x6514d8 (56 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
//
float __fastcall png_get_pixel_aspect_ratio(int a1, _DWORD *a2)
{
bool v2; // zf
unsigned int v3; // r3
v2 = a1 == 0;
if ( a1 )
v2 = a2 == nullptr;
if ( !v2 && (a2[2] & 0x80) != 0 && (v3 = a2[48]) != 0 )
return (float)(unsigned int)a2[49] / (float)v3;
else
return 0.0;
}