//
// GJEffectManager::toggleGroup from 0x1002cb330 to 0x1002cb3a2 (114 bytes)
//
// 2 xrefs:
// > LevelEditorLayer::toggleGroupPreview @ 0x1000c3692
// > GJBaseGameLayer::toggleGroup @ 0x10011a062
//
// 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:28:10 +0000
//
_QWORD *__fastcall GJEffectManager::toggleGroup(__int64 a1, int a2, int a3, __m128 a4)
{
int v4; // eax
unsigned int v5; // ecx
__int64 v6; // rax
__int64 v7; // rsi
__int64 v8; // r8
unsigned int v10; // [rsp+Ch] [rbp-4h] BYREF
v4 = 0;
if ( a2 > 0 )
v4 = a2;
v5 = 9999;
if ( v4 < 9999 )
v5 = v4;
v10 = v5;
v6 = *(_QWORD *)(a1 + 1008);
v7 = v5 >> 6;
v8 = 1LL << v5;
if ( a3 )
{
*(_QWORD *)(v6 + 8 * v7) |= v8;
return (_QWORD *)sub_10001C120((__int64 *)(a1 + 1032), (int *)&v10);
}
else
{
*(_QWORD *)(v6 + 8 * v7) &= ~v8;
return sub_10001B800((float *)(a1 + 1032), (int *)&v10, &v10, a4);
}
}