//
// png_get_pixels_per_meter from 0x8614e8 to 0x86151e (54 bytes)
//
// 1 xrefs:
// > png_get_pixels_per_inch @ 0x86165c
//
// 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_pixels_per_meter(int a1, int a2)
{
bool v2; // zf
int result; // r0
v2 = a1 == 0;
if ( a1 )
v2 = a2 == 0;
if ( v2 )
return 0;
result = *(_DWORD *)(a2 + 8) & 0x80;
if ( result )
{
if ( *(_BYTE *)(a2 + 200) == 1 )
{
if ( *(_DWORD *)(a2 + 192) == *(_DWORD *)(a2 + 196) )
return *(_DWORD *)(a2 + 196);
else
return 0;
}
else
{
return 0;
}
}
return result;
}