//
// SetupRandAdvTriggerPopup::onRemoveFromGroup from 0x65b2d8 to 0x65b352 (122 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:55:33 +0000
//
int __fastcall SetupRandAdvTriggerPopup::onRemoveFromGroup(int this, cocos2d::CCObject *a2)
{
int v2; // r5
unsigned int v3; // r4
int v5; // r0
cocos2d::CCDirector *v6; // r0
int v7; // r0
int v8; // r0
v2 = this;
v3 = *(unsigned __int8 *)(this + 732);
if ( !*(_BYTE *)(this + 732) )
{
while ( v3 < cocos2d::CCArray::count(*(cocos2d::CCArray **)(v2 + 716)) )
{
v5 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(v2 + 716), v3++);
(*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v5 + 528))(v5, 0);
}
*(_BYTE *)(v2 + 732) = 1;
v6 = (cocos2d::CCDirector *)(*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2);
*(_DWORD *)(v2 + 728) = v6;
v7 = cocos2d::CCDirector::sharedDirector(v6);
v8 = (*(int (__fastcall **)(int))(*(_DWORD *)v7 + 64))(v7);
return cocos2d::CCScheduler::scheduleSelector(
v8,
(int)SetupRandAdvTriggerPopup::callRemoveFromGroup,
0,
v2,
0.0,
-2,
0.0,
0);
}
return this;
}