//
// png_get_pixel_aspect_ratio_fixed from 0xe4395c to 0xe439c0 (100 bytes)
//
// 1 xrefs:
// > ??> @ 0xe1820
//
// 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
//
__int64 __fastcall png_get_pixel_aspect_ratio_fixed(__int64 a1, _DWORD *a2)
{
__int64 result; // x0
int v3; // w3
int v4; // w1
unsigned int v5; // [xsp+1Ch] [xbp+1Ch] BYREF
if ( !a1 || !a2 )
return 0;
result = 0;
if ( (a2[2] & 0x80) != 0 )
{
v3 = a2[56];
if ( v3 )
{
v4 = a2[57];
if ( v4 )
{
if ( (v3 & 0x80000000) == 0 && (v4 & 0x80000000) == 0 )
{
result = png_muldiv(&v5, v4, 100000, v3);
if ( (_DWORD)result )
return v5;
}
}
}
}
return result;
}