//
// GJEffectManager::toggleGroup from 0x1002e0890 to 0x1002e0902 (114 bytes)
//
// 2 xrefs:
// > LevelEditorLayer::toggleGroupPreview @ 0x1000eff62
// > GJBaseGameLayer::toggleGroup @ 0x10013cbb2
//
// 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)
{
__m128 v3; // xmm0
double v4; // xmm1_8
double v5; // xmm2_8
int v6; // eax
unsigned int v7; // ecx
std::__vector_base::pointer begin; // rax
__int64 v9; // rsi
__int64 v10; // r8
unsigned int v11; // [rsp+Ch] [rbp-4h] BYREF
v6 = 0;
if ( a2 > 0 )
v6 = a2;
v7 = 9999;
if ( v6 < 9999 )
v7 = v6;
v11 = v7;
begin = a1->m_unkVector438.__begin_;
v9 = v7 >> 6;
v10 = 1LL << v7;
if ( a3 )
{
*(_QWORD *)&begin[8 * v9] |= v10;
sub_1000569A0(&a1->m_unkMap460.__table_.__bucket_list_.__ptr_.__value_, (int *)&v11);
}
else
{
*(_QWORD *)&begin[8 * v9] &= ~v10;
sub_100054F50((float *)&a1->m_unkMap460, (int *)&v11, &v11, v3, v4, v5);
}
}