//
// GJBaseGameLayer::activateResetTrigger from 0x475fbc to 0x476066 (170 bytes)
//
// 1 xrefs:
// > EffectGameObject::triggerObject @ 0x3ee46a
//
// 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; // r0
cocos2d::CCArray *v4; // r4
cocos2d::ccArray *data; // r3
int **arr; // r5
int **v7; // r6
int *v8; // r4
int *v9; // t1
GJEffectManager *m_effectManager; // r0
int v11; // r1
int m_uniqueID; // r2
Group = GJBaseGameLayer::getGroup(a1, a2->m_targetGroupID);
v4 = Group;
if ( Group )
{
if ( cocos2d::CCArray::count(Group) )
{
data = v4->data;
if ( data->num )
{
arr = (int **)data->arr;
v7 = &(&arr[data->num])[-1];
while ( 1 )
{
if ( arr > v7 )
return;
v9 = *arr++;
v8 = v9;
if ( !v9 )
return;
if ( v8[221] == 2063 )
break;
if ( (*(int (__fastcall **)(int *))(*v8 + 892))(v8) == 30
|| (*(int (__fastcall **)(int *))(*v8 + 892))(v8) == 21 )
{
m_effectManager = a1->m_effectManager;
m_uniqueID = 0;
v11 = v8[193];
LABEL_12:
GJEffectManager::removeTriggeredID(m_effectManager, v11, m_uniqueID);
(*(void (__fastcall **)(int *))(*v8 + 748))(v8);
}
}
GJEffectManager::removeTriggeredID(a1->m_effectManager, v8[193], a1->m_player1->m_uniqueID);
m_effectManager = a1->m_effectManager;
v11 = v8[193];
m_uniqueID = a1->m_player2->m_uniqueID;
goto LABEL_12;
}
}
}
}