//
// GJBaseGameLayer::activateResetTrigger from 0x595688 to 0x595732 (170 bytes)
//
// 1 xrefs:
// > EffectGameObject::triggerObject @ 0x4f4cbc
//
// 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:53:08 +0000
//
cocos2d::CCObject *__fastcall GJBaseGameLayer::activateResetTrigger(GJEffectManager **this, EffectGameObject *a2)
{
cocos2d::CCObject *result; // r0
cocos2d::CCObject *v4; // r4
_DWORD *v5; // r3
int **v6; // r5
int **v7; // r6
int *v8; // r4
int *v9; // t1
GJEffectManager *v10; // r0
int v11; // r1
int v12; // r2
result = GJBaseGameLayer::getGroup((GJBaseGameLayer *)this, *((_DWORD *)a2 + 321));
v4 = result;
if ( result )
{
result = (cocos2d::CCObject *)cocos2d::CCArray::count(result);
if ( result )
{
v5 = *((_DWORD **)v4 + 13);
if ( *v5 )
{
v6 = (int **)v5[3];
v7 = &(&v6[*v5])[-1];
while ( 1 )
{
if ( v6 > v7 )
return result;
v9 = *v6++;
v8 = v9;
if ( !v9 )
return result;
if ( v8[223] == 2063 )
break;
if ( (*(int (__fastcall **)(int *))(*v8 + 900))(v8) != 30 )
{
result = (cocos2d::CCObject *)(*(int (__fastcall **)(int *))(*v8 + 900))(v8);
if ( result != (cocos2d::CCObject *)((char *)&dword_14 + 1) )
continue;
}
v10 = *(this + 381);
v12 = 0;
v11 = v8[195];
LABEL_12:
GJEffectManager::removeTriggeredID(v10, v11, v12);
result = (cocos2d::CCObject *)(*(int (__fastcall **)(int *))(*v8 + 756))(v8);
}
GJEffectManager::removeTriggeredID(*(this + 381), v8[195], *((_DWORD *)*(this + 519) + 195));
v10 = *(this + 381);
v11 = v8[195];
v12 = *((_DWORD *)*(this + 520) + 195);
goto LABEL_12;
}
}
}
return result;
}