//
// SetupTriggerPopup::toggleGroup from 0x1002359b0 to 0x100235ad6 (294 bytes)
//
// 103 xrefs:
// > SetupShaderEffectPopup::toggleGroup @ 0x1002d0989
// > ??> @ 0x1008af278
// > ??> @ 0x1008afa70
// > ??> @ 0x1008b2510
// > ??> @ 0x1008b2d08
// > ??> @ 0x1008b4ff0
// > ??> @ 0x1008b5fa0
// > ??> @ 0x1008da0a0
// > ??> @ 0x1008daf90
// > ??> @ 0x1008db770
// > ??> @ 0x1008e2b38
// > ??> @ 0x1008edf30
// > ??> @ 0x1008ee740
// > ??> @ 0x1008f69e0
// > ??> @ 0x1008f8a78
// > ??> @ 0x1008fcc60
// > ??> @ 0x1008fdb68
// > ??> @ 0x1008fe360
// > ??> @ 0x1008feb70
// > ??> @ 0x1008ffc38
// > ??> @ 0x100902530
// > ??> @ 0x100902d58
// > ??> @ 0x100903550
// > ??> @ 0x1009047c0
// > ??> @ 0x100905558
// > ??> @ 0x100905d50
// > ??> @ 0x100906548
// > ??> @ 0x100908098
// > ??> @ 0x100909018
// > ??> @ 0x10090d940
// > ??> @ 0x10090e188
// > ??> @ 0x10090e980
// > ??> @ 0x100911a40
// > ??> @ 0x100912e78
// > ??> @ 0x1009177a0
// > ??> @ 0x10091ab68
// > ??> @ 0x10091e768
// > ??> @ 0x10091f390
// > ??> @ 0x100920b28
// > ??> @ 0x100921320
// > ??> @ 0x100921b18
// > ??> @ 0x100923058
// > ??> @ 0x100925250
// > ??> @ 0x100925a48
// > ??> @ 0x100926240
// > ??> @ 0x100928ec0
// > ??> @ 0x10092f9a0
// > ??> @ 0x100932888
// > ??> @ 0x100947080
// > ??> @ 0x10094b268
// > ??> @ 0x10094ba60
// > ??> @ 0x10094c258
// > ??> @ 0x10094caf0
// > ??> @ 0x10094d388
// > ??> @ 0x10094db80
// > ??> @ 0x10094fe50
// > ??> @ 0x100951ae0
// > ??> @ 0x1009522d8
// > ??> @ 0x100952ad0
// > ??> @ 0x1009532c8
// > ??> @ 0x100953ac0
// > ??> @ 0x100954300
// > ??> @ 0x100954af8
// > ??> @ 0x1009559e0
// > ??> @ 0x100959178
// > ??> @ 0x10095a198
// > ??> @ 0x10095b158
// > ??> @ 0x10095b950
// > ??> @ 0x10095cfa8
// > ??> @ 0x10095d8f8
// > ??> @ 0x100966310
// > ??> @ 0x100966af0
// > ??> @ 0x100967300
// > ??> @ 0x100967af8
// > ??> @ 0x1009682f0
// > ??> @ 0x100968ae8
// > ??> @ 0x1009692e0
// > ??> @ 0x100969ad8
// > ??> @ 0x10096a310
// > ??> @ 0x10096ab08
// > ??> @ 0x10096b340
// > ??> @ 0x10096bb38
// > ??> @ 0x10096c330
// > ??> @ 0x10096cb28
// > ??> @ 0x10096d320
// > ??> @ 0x10096db18
// > ??> @ 0x10096e310
// > ??> @ 0x10096eb08
// > ??> @ 0x10096f300
// > ??> @ 0x10096faf8
// > ??> @ 0x100971108
// > ??> @ 0x100977680
// > ??> @ 0x100977e78
// > ??> @ 0x100978d80
// > ??> @ 0x10097b230
// > ??> @ 0x10097f7e8
// > ??> @ 0x1009877d8
// > ??> @ 0x100987fd0
// > ??> @ 0x1009887f8
// > ??> @ 0x100988ff0
// > ??> @ 0x10098add8
// > ??> @ 0x10098d688
// > ??> @ 0x10098de80
//
// 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
//
// local variable allocation has failed, the output may be wrong!
void __fastcall SetupTriggerPopup::toggleGroup(SetupTriggerPopup *a1, int a2, bool a3)
{
unsigned int v4; // r14d
cocos2d::CCArray *m_groupContainers; // rdi
cocos2d::CCArray *v7; // r12
__int64 v8; // r14
unsigned int v9; // r12d
unsigned int *v10; // r13
cocos2d::CCDictionary *m_inputNodes; // r15
intptr_t v12; // rsi
cocos2d::CCObject *v13; // rax
cocos2d::CCObject *v14; // r13
unsigned __int8 v15; // al
_BOOL4 v16; // [rsp+0h] [rbp-2Ch]
v4 = a2;
m_groupContainers = a1->m_groupContainers;
if ( (unsigned int)sub_100720070(m_groupContainers) <= a2 )
{
do
{
v7 = a1->m_groupContainers;
*(_QWORD *)&a2 = sub_10071F9E0(m_groupContainers, *(_QWORD *)&a2);
sub_10071FCD0(v7, *(_QWORD *)&a2);
m_groupContainers = a1->m_groupContainers;
}
while ( (unsigned int)sub_100720070(m_groupContainers) <= v4 );
}
v8 = sub_1007200C0(a1->m_groupContainers, v4);
v16 = a3;
(*(void (__fastcall **)(__int64))(*(_QWORD *)v8 + 72LL))(v8);
if ( (unsigned int)sub_100720070(v8) )
{
v9 = 0;
do
{
v10 = (unsigned int *)sub_1007200C0(v8, v9);
if ( !cocos2d::CCDictionary::objectForKey(a1->m_disabledEasingButtons, v10[2]) )
(*(void (__fastcall **)(unsigned int *, _BOOL4))(*(_QWORD *)v10 + 328LL))(v10, v16);
m_inputNodes = a1->m_inputNodes;
v12 = (*(int (__fastcall **)(unsigned int *))(*(_QWORD *)v10 + 64LL))(v10);
v13 = cocos2d::CCDictionary::objectForKey(m_inputNodes, v12);
if ( v13 )
{
v14 = v13;
v15 = ((__int64 (__fastcall *)(cocos2d::CCObject *))v13->__vftable[4].~CCObject_0)(v13);
((void (__fastcall *)(cocos2d::CCObject *, _QWORD))v14->__vftable[12].isEqual)(v14, v15);
}
++v9;
}
while ( v9 < (unsigned int)sub_100720070(v8) );
}
}