//
// png_set_add_alpha from 0xbe533c to 0xbe5370 (52 bytes)
//
// 2 xrefs:
// > png_read_row @ 0xbd4188
// > ??> @ 0x41f40
//
// 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_add_alpha(__int64 result, __int16 a2, int a3)
{
__int64 v3; // x19
if ( result )
{
v3 = result;
png_set_filler(result, a2, a3);
result = *(unsigned int *)(v3 + 364);
if ( (result & 0x8000) != 0 )
{
result = (unsigned int)result | 0x1000000;
*(_DWORD *)(v3 + 364) = result;
}
}
return result;
}