//
// png_get_pixel_aspect_ratio_fixed from 0x86155c to 0x8615b0 (84 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
//
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;
}