//
// png_get_pixel_aspect_ratio_fixed from 0x6514dc to 0x651530 (84 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
//
int __fastcall png_get_pixel_aspect_ratio_fixed(int a1, _DWORD *a2)
{
bool v2; // zf
int result; // r0
int v4; // r3
int v5; // r1
int v6; // [sp+4h] [bp-Ch] BYREF
v2 = a1 == 0;
if ( a1 )
v2 = a2 == nullptr;
if ( v2 )
return 0;
result = a2[2] & 0x80;
if ( result )
{
v4 = a2[48];
if ( v4 )
{
v5 = a2[49];
if ( v5 )
{
if ( v4 < 0 || v5 < 0 )
{
return 0;
}
else
{
result = png_muldiv(&v6, v5, (int)&stru_1869C.st_value, v4);
if ( result )
return v6;
}
}
else
{
return 0;
}
}
else
{
return 0;
}
}
return result;
}