//
// png_set_benign_errors from 0x660ac4 to 0x660ade (26 bytes)
//
// 2 xrefs:
// > sub_655964 @ 0x655972
// > sub_662E04 @ 0x662e48
//
// 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
//
int __fastcall png_set_benign_errors(int result, int a2)
{
int v2; // r3
unsigned int v3; // r3
v2 = *(_DWORD *)(result + 312);
if ( a2 )
v3 = v2 | 0x700000;
else
v3 = v2 & 0xFF8FFFFF;
*(_DWORD *)(result + 312) = v3;
return result;
}