//
// png_set_add_alpha from 0xe5b4fc to 0xe5b530 (52 bytes)
//
// 2 xrefs:
// > png_read_row @ 0xe4a348
// > ??> @ 0x5e648
//
// 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_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;
}