//
// png_get_pHYs from 0xbce338 to 0xbce388 (80 bytes)
//
// 1 xrefs:
// > ??> @ 0x855a8
//
// 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_pHYs(__int64 a1, __int64 a2, _DWORD *a3, _DWORD *a4, _DWORD *a5)
{
__int64 result; // x0
if ( !a1 || !a2 )
return 0;
result = 0;
if ( (*(_DWORD *)(a2 + 8) & 0x80) != 0 )
{
if ( a3 )
{
result = 128;
*a3 = *(_DWORD *)(a2 + 224);
}
if ( a4 )
{
result = 128;
*a4 = *(_DWORD *)(a2 + 228);
}
if ( a5 )
{
result = 128;
*a5 = *(unsigned __int8 *)(a2 + 232);
}
}
return result;
}