//
// GJEffectManager::toggleGroup from 0x10001053c to 0x1000105b4 (120 bytes)
//
// 5 xrefs:
// > GJEffectManager::handleObjectCollision @ 0x100010378
// > GJEffectManager::playerButton @ 0x100014e90
// > GJEffectManager::updateCountForItem @ 0x1000154f4
// > GJBaseGameLayer::toggleGroup @ 0x1001f2180
// > LevelEditorLayer::toggleGroupPreview @ 0x10036169c
//
// 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 __fastcall GJEffectManager::toggleGroup(GJEffectManager *a1, int a2, bool a3)
{
int v3; // w8
unsigned __int64 v4; // x10
std::__vector_base::pointer begin; // x8
unsigned __int64 v6; // x9
__int64 v7; // x10
int v8; // [xsp+Ch] [xbp-4h] BYREF
v3 = a2 & ~(a2 >> 31);
if ( v3 >= 9999 )
v4 = 9999;
else
v4 = (unsigned int)v3;
v8 = v4;
begin = a1->m_unkVector438.__begin_;
v6 = v4 >> 6;
v7 = 1LL << v4;
if ( a3 )
{
*(_QWORD *)&begin[8 * v6] |= v7;
sub_10001B104(&a1->m_unkMap460, &v8);
}
else
{
*(_QWORD *)&begin[8 * v6] &= ~v7;
sub_10001C1B0(&a1->m_unkMap460, &v8, &v8);
}
}