//
// png_get_y_pixels_per_meter from 0xbcd6e8 to 0xbcd720 (56 bytes)
//
// 2 xrefs:
// > png_get_y_pixels_per_inch @ 0xbcd948
// > ??> @ 0x93c30
//
// 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_y_pixels_per_meter(__int64 a1, __int64 a2)
{
int v2; // w2
__int64 result; // x0
if ( !a1 || !a2 )
return 0;
v2 = *(_DWORD *)(a2 + 8);
result = (unsigned __int8)v2 & 0x80;
if ( (v2 & 0x80) != 0 )
{
result = 0;
if ( *(_BYTE *)(a2 + 232) == 1 )
return *(unsigned int *)(a2 + 228);
}
return result;
}