//
// png_get_pixel_aspect_ratio from 0x861520 to 0x861558 (56 bytes)
//
// 0 xrefs:
//
// 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:43 +0000
//
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;
}