//
// png_set_pHYs from 0xe5a220 to 0xe5a244 (36 bytes)
//
// 2 xrefs:
// > png_handle_pHYs @ 0xe56d4c
// > ??> @ 0xd4cb0
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:10:20 +0000
//
__int64 __fastcall png_set_pHYs(__int64 result, __int64 a2, int a3, int a4, char a5)
{
int v5; // w0
if ( result )
{
if ( a2 )
{
v5 = *(_DWORD *)(a2 + 8);
*(_DWORD *)(a2 + 224) = a3;
result = v5 | 0x80u;
*(_DWORD *)(a2 + 228) = a4;
*(_BYTE *)(a2 + 232) = a5;
*(_DWORD *)(a2 + 8) = result;
}
}
return result;
}