//
// png_set_add_alpha from 0x660c08 to 0x660c26 (30 bytes)
//
// 1 xrefs:
// > sub_655D68 @ 0x655e92
//
// 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_add_alpha(int result, __int16 a2, int a3)
{
int v3; // r4
int v4; // r3
if ( result )
{
v3 = result;
result = png_set_filler(result, a2, a3);
v4 = *(_DWORD *)(v3 + 316);
if ( (v4 & 0x8000) != 0 )
*(_DWORD *)(v3 + 316) = v4 | 0x1000000;
}
return result;
}