//
// GJMGLayer::updateMG02Blend from 0x546e34 to 0x546e72 (62 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::updateLevelColors @ 0x58c762
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:52:23 +0000
//
int __fastcall GJMGLayer::updateMG02Blend(int this, int a2)
{
_DWORD *v2; // r2
_DWORD v3[2]; // [sp+0h] [bp-8h] BYREF
v3[0] = this;
v3[1] = a2;
if ( *(unsigned __int8 *)(this + 350) != a2 )
{
*(_BYTE *)(this + 350) = a2;
if ( a2 )
v2 = &unk_BECFF8;
else
v2 = &unk_BED000;
return (*(int (__fastcall **)(_DWORD, _DWORD, _DWORD, _DWORD *, _DWORD, _DWORD))(**(_DWORD **)(this + 356) + 456))(
*(_DWORD *)(this + 356),
*v2,
v2[1],
v3,
*v2,
v2[1]);
}
return this;
}