//
// GJMGLayer::updateMG02Blend from 0x4354d4 to 0x435512 (62 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::updateLevelColors @ 0x46dbc6
//
// 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
//
void GJMGLayer::updateMG02Blend(GJMGLayer *a1, bool a2)
{
_BOOL4 m_blendMG2; // r3
_DWORD *v3; // r2
_DWORD v4[2]; // [sp+0h] [bp-8h] BYREF
m_blendMG2 = a1->m_blendMG2;
v4[0] = a1;
v4[1] = a2;
if ( m_blendMG2 != a2 )
{
a1->m_blendMG2 = a2;
if ( a2 )
v3 = &unk_9AB6B0;
else
v3 = &unk_9AB6B8;
((void (__fastcall *)(cocos2d::CCSpriteBatchNode *, _DWORD, _DWORD, _DWORD *, _DWORD, _DWORD))a1->m_mg2BatchNode->setBlendFunc)(
a1->m_mg2BatchNode,
*v3,
v3[1],
v4,
*v3,
v3[1]);
}
}