//
// png_set_pHYs from 0xbe4060 to 0xbe4084 (36 bytes)
//
// 2 xrefs:
// > png_handle_pHYs @ 0xbe0b8c
// > ??> @ 0xa1ce8
//
// 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_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;
}