//
// png_set_benign_errors from 0xe5b34c to 0xe5b370 (36 bytes)
//
// 3 xrefs:
// > sub_E498D8 @ 0xe49900
// > sub_E5EAE4 @ 0xe5eb48
// > ??> @ 0xd1308
//
// 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_benign_errors(__int64 result, int a2)
{
unsigned int v2; // w1
if ( a2 )
v2 = *(_DWORD *)(result + 360) | 0x700000;
else
v2 = *(_DWORD *)(result + 360) & 0xFF8FFFFF;
*(_DWORD *)(result + 360) = v2;
return result;
}