//
// png_set_bKGD from 0xbe33e8 to 0xbe3424 (60 bytes)
//
// 2 xrefs:
// > png_handle_bKGD @ 0xbe0830
// > ??> @ 0x64b90
//
// 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_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;
}