//
// SetupRandAdvTriggerPopup::onRemoveFromGroup from 0x10037a320 to 0x10037a3d5 (181 bytes)
//
// 1 xrefs:
// > SetupRandAdvTriggerPopup::updateGroupIDButtons @ 0x100379cae
//
// 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:29:05 +0000
//
__int64 __fastcall SetupRandAdvTriggerPopup::onRemoveFromGroup(__int64 a1, __int64 a2)
{
__int64 v2; // r14
unsigned int v3; // r15d
__int64 v4; // rax
__int64 v5; // rax
__int64 v6; // rax
__int64 result; // rax
if ( !*(_BYTE *)(a1 + 1044) )
{
v2 = a2;
if ( (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 1016)) )
{
v3 = 0;
do
{
v4 = sub_1007FEFE0(*(_QWORD *)(a1 + 1016), v3);
a2 = 0;
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v4 + 1056LL))(v4, 0);
++v3;
}
while ( v3 < (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 1016)) );
}
*(_BYTE *)(a1 + 1044) = 1;
*(_DWORD *)(a1 + 1040) = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 64LL))(v2);
v5 = cocos2d::CCDirector::sharedDirector(v2, a2);
v6 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 128LL))(v5);
return cocos2d::CCScheduler::scheduleSelector(
v6,
SetupRandAdvTriggerPopup::callRemoveFromGroup,
0,
a1,
4294967294LL,
0,
0.0,
0.0);
}
return result;
}