//
// png_get_pixel_aspect_ratio_fixed from 0xbcd79c to 0xbcd800 (100 bytes)
//
// 1 xrefs:
// > ??> @ 0xac1b8
//
// 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
//
__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;
}