//
// SetupTriggerPopup::toggleGroup from 0x14060b9f0 to 0x14060bad4 (228 bytes)
//
// 146 xrefs:
// > ??> @ 0x14071b1f0
// > ??> @ 0x14071b7a8
// > ??> @ 0x14071d610
// > ??> @ 0x14071e518
// > ??> @ 0x14071eb18
// > ??> @ 0x14071fe40
// > ??> @ 0x140722940
// > ??> @ 0x140723018
// > ??> @ 0x1407235f0
// > ??> @ 0x140723bd0
// > ??> @ 0x140726100
// > ??> @ 0x140729178
// > ??> @ 0x140729ed8
// > ??> @ 0x14072a718
// > ??> @ 0x14072b3f8
// > ??> @ 0x14072baa8
// > ??> @ 0x140730dd0
// > ??> @ 0x140731500
// > ??> @ 0x140731c10
// > ??> @ 0x140732c48
// > ??> @ 0x1407331b8
// > ??> @ 0x140733f60
// > ??> @ 0x140738ff8
// > ??> @ 0x140747288
// > ??> @ 0x140748c88
// > ??> @ 0x1407493d8
// > ??> @ 0x140749a50
// > ??> @ 0x14074a0a0
// > ??> @ 0x14074b2b0
// > ??> @ 0x14074c020
// > ??> @ 0x14074c708
// > ??> @ 0x14074dd48
// > ??> @ 0x14074e510
// > ??> @ 0x14074ee00
// > ??> @ 0x14074f3e0
// > ??> @ 0x14074fb70
// > ??> @ 0x140766228
// > ??> @ 0x140766968
// > ??> @ 0x140766f78
// > ??> @ 0x14076e400
// > ??> @ 0x140772cc0
// > ??> @ 0x1407757d0
// > ??> @ 0x140778390
// > ??> @ 0x14077da00
// > ??> @ 0x14077e008
// > ??> @ 0x14077e590
// > ??> @ 0x14077eae0
// > ??> @ 0x140780488
// > ??> @ 0x1407865d0
// > ??> @ 0x14078ba90
// > ??> @ 0x140793390
// > ??> @ 0x140793bd8
// > ??> @ 0x140794478
// > ??> @ 0x140794d50
// > ??> @ 0x140795398
// > ??> @ 0x140795a18
// > ??> @ 0x140796f50
// > ??> @ 0x1407978d0
// > ??> @ 0x140798798
// > ??> @ 0x1407b5df8
// > ??> @ 0x1407d2e78
// > ??> @ 0x1407e5490
// > ??> @ 0x1407e6278
// > ??> @ 0x1407e67f0
// > ??> @ 0x1407e7da0
// > ??> @ 0x1407e82d0
// > ??> @ 0x1407e8a30
// > ??> @ 0x1407e9148
// > ??> @ 0x1407e9910
// > ??> @ 0x1407ead40
// > ??> @ 0x1407eb258
// > ??> @ 0x1407eb710
// > ??> @ 0x1407ebe58
// > ??> @ 0x1407ec348
// > ??> @ 0x1407ec870
// > ??> @ 0x1407ecdb8
// > ??> @ 0x1407eda38
// > ??> @ 0x1407ee0b0
// > ??> @ 0x1407ee950
// > ??> @ 0x1407ef148
// > ??> @ 0x1407efe00
// > ??> @ 0x1407f0318
// > ??> @ 0x1407f09d8
// > ??> @ 0x1407f10a0
// > ??> @ 0x1407f1a80
// > ??> @ 0x1407f2238
// > ??> @ 0x1407f2f48
// > ??> @ 0x1407f3958
// > ??> @ 0x1407f40e0
// > ??> @ 0x1407f47c8
// > ??> @ 0x1407f5768
// > ??> @ 0x1407f5c50
// > ??> @ 0x1407f6308
// > ??> @ 0x1407f67c0
// > ??> @ 0x1407f7090
// > ??> @ 0x1407f79d8
// > ??> @ 0x1407f8118
// > ??> @ 0x1407f9a10
// > ??> @ 0x1407f9f68
// > ??> @ 0x1407fa9b0
// > ??> @ 0x1407fb2f8
// > ??> @ 0x1407fb988
// > ??> @ 0x1407fc468
// > ??> @ 0x1407fcba8
// > ??> @ 0x1407fd070
// > ??> @ 0x1407fdb00
// > ??> @ 0x1407feab0
// > ??> @ 0x1407fefc0
// > ??> @ 0x1407ff478
// > ??> @ 0x1407ffe18
// > ??> @ 0x140802590
// > ??> @ 0x1408061e0
// > ??> @ 0x140806c48
// > ??> @ 0x140807428
// > ??> @ 0x140807c80
// > ??> @ 0x1408085f8
// > ??> @ 0x140808e58
// > ??> @ 0x140809310
// > ??> @ 0x140809958
// > ??> @ 0x140809f80
// > ??> @ 0x14080ab00
// > ??> @ 0x14080ca98
// > ??> @ 0x14080cf68
// > ??> @ 0x14080d7f0
// > ??> @ 0x14080df38
// > ??> @ 0x14080e5f8
// > ??> @ 0x14080f308
// > ??> @ 0x14080f838
// > ??> @ 0x14080ff40
// > ??> @ 0x140810438
// > ??> @ 0x1408109b0
// > ??> @ 0x140811090
// > ??> @ 0x140811548
// > ??> @ 0x140811b78
// > ??> @ 0x1408120c8
// > ??> @ 0x1408126f8
// > ??> @ 0x140812c10
// > ??> @ 0x140813108
// > ??> @ 0x140813708
// > ??> @ 0x140813eb8
// > ??> @ 0x140814598
// > ??> @ 0x140814c30
// > ??> @ 0x1408157f8
// > ??> @ 0x1408e4e04
// > ??> @ 0x1408e4e14
// > ??> @ 0x14092fbd0
//
// 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 11:35:14 +0000
//
unsigned int __fastcall SetupTriggerPopup::toggleGroup(__int64 a1, unsigned int a2, unsigned __int8 a3)
{
unsigned int v3; // r15d
struct cocos2d::CCObject *GroupContainer; // r14
unsigned int v6; // edi
unsigned int result; // eax
unsigned int *v8; // rbx
int v9; // eax
struct cocos2d::CCObject *v10; // rax
struct cocos2d::CCObject *v11; // rsi
__int64 v12; // rbx
unsigned __int8 v13; // al
v3 = a3;
GroupContainer = SetupTriggerPopup::getGroupContainer(a1, a2);
(*(void (__fastcall **)(struct cocos2d::CCObject *, _QWORD))(*(_QWORD *)GroupContainer + 64LL))(GroupContainer, v3);
v6 = 0;
result = cocos2d::CCArray::count(GroupContainer);
if ( result )
{
do
{
v8 = (unsigned int *)cocos2d::CCArray::objectAtIndex(GroupContainer, v6);
if ( !cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(a1 + 952), v8[2]) )
(*(void (__fastcall **)(unsigned int *, _QWORD))(*(_QWORD *)v8 + 336LL))(v8, (unsigned __int8)v3);
v9 = (*(__int64 (__fastcall **)(unsigned int *))(*(_QWORD *)v8 + 56LL))(v8);
v10 = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(a1 + 760), v9);
v11 = v10;
if ( v10 )
{
v12 = *(_QWORD *)v10;
v13 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v10 + 344LL))(v10);
(*(void (__fastcall **)(struct cocos2d::CCObject *, _QWORD))(v12 + 920))(v11, v13);
}
++v6;
result = cocos2d::CCArray::count(GroupContainer);
}
while ( v6 < result );
}
return result;
}