//
// GJMGLayer::updateMG02Blend from 0x1006bf7f0 to 0x1006bf835 (69 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::updateLevelColors @ 0x1000f0b3e
//
// This function is hookable on this platform (idp: pc, 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 12:35:31 +0000
//
__int64 __fastcall GJMGLayer::updateMG02Blend(__int64 a1, char a2)
{
bool v2; // zf
__int64 v3; // rsi
__int64 result; // rax
if ( *(_BYTE *)(a1 + 458) != a2 )
{
*(_BYTE *)(a1 + 458) = a2;
v2 = a2 == 0;
v3 = 0x30300000001LL;
if ( !v2 )
v3 = 0x100000302LL;
return (*(__int64 (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 472) + 912LL))(*(_QWORD *)(a1 + 472), v3);
}
return result;
}