//
// GJBaseGameLayer::activateResetTrigger from 0x86528c to 0x865388 (252 bytes)
//
// 2 xrefs:
// > EffectGameObject::triggerObject @ 0x76fc88
// > ??> @ 0x5b050
//
// 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
//
void GJBaseGameLayer::activateResetTrigger(GJBaseGameLayer *a1, EffectGameObject *a2)
{
cocos2d::CCArray *Group; // x0
cocos2d::CCArray *v4; // x19
cocos2d::ccArray *data; // x1
int **arr; // x20
__int64 v7; // x0
char *v8; // x22
int *v9; // x19
GJEffectManager *m_effectManager; // x0
int m_uniqueID; // w2
int v12; // w1
Group = GJBaseGameLayer::getGroup(a1, a2->m_targetGroupID);
v4 = Group;
if ( Group )
{
if ( (unsigned int)cocos2d::CCArray::count(Group) )
{
data = v4->data;
if ( data->num )
{
arr = (int **)data->arr;
v7 = 8LL * data->num - 8;
v8 = (char *)arr + v7;
if ( arr <= (int **)((char *)arr + v7) )
{
do
{
v9 = *arr;
if ( !*arr )
return;
if ( v9[253] == 2063 )
{
GJEffectManager::removeTriggeredID(a1->m_effectManager, v9[225], a1->m_player1->m_uniqueID);
m_effectManager = a1->m_effectManager;
v12 = v9[225];
m_uniqueID = a1->m_player2->m_uniqueID;
}
else
{
if ( (*(unsigned int (__fastcall **)(int *))(*(_QWORD *)v9 + 1784LL))(*arr) != 30
&& (*(unsigned int (__fastcall **)(int *))(*(_QWORD *)v9 + 1784LL))(v9) != 21 )
{
goto LABEL_9;
}
m_effectManager = a1->m_effectManager;
m_uniqueID = 0;
v12 = v9[225];
}
GJEffectManager::removeTriggeredID(m_effectManager, v12, m_uniqueID);
(*(void (__fastcall **)(int *))(*(_QWORD *)v9 + 1496LL))(v9);
LABEL_9:
++arr;
}
while ( v8 >= (char *)arr );
}
}
}
}
}