//
// png_set_pHYs from 0x86ff98 to 0x86ffba (34 bytes)
//
// 1 xrefs:
// > png_handle_pHYs @ 0x86dbec
//
// 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:57 +0000
//
int __fastcall png_set_pHYs(int result, int a2, int a3, int a4, char a5)
{
bool v5; // zf
int v6; // r0
v5 = a2 == 0;
if ( a2 )
v5 = result == 0;
if ( !v5 )
{
*(_DWORD *)(a2 + 196) = a4;
v6 = *(_DWORD *)(a2 + 8);
*(_DWORD *)(a2 + 192) = a3;
result = v6 | 0x80;
*(_BYTE *)(a2 + 200) = a5;
*(_DWORD *)(a2 + 8) = result;
}
return result;
}