//
// png_set_bKGD from 0xe595a8 to 0xe595e4 (60 bytes)
//
// 2 xrefs:
// > png_handle_bKGD @ 0xe569f0
// > ??> @ 0x88eb8
//
// 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:19 +0000
//
__int64 __fastcall png_set_bKGD(__int64 result, __int64 a2, __int64 a3)
{
if ( a2 != 0 && a3 != 0 )
{
if ( result )
{
*(_QWORD *)(a2 + 202) = *(_QWORD *)a3;
result = *(_DWORD *)(a2 + 8) | 0x20u;
*(_WORD *)(a2 + 210) = *(_WORD *)(a3 + 8);
*(_DWORD *)(a2 + 8) = result;
}
}
return result;
}