//
// png_get_pixel_aspect_ratio from 0xe43924 to 0xe4395c (56 bytes)
//
// 1 xrefs:
// > ??> @ 0xf65b0
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:10:04 +0000
//
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;
}