//
// SetupCollisionTriggerPopup::onTargetPP from 0x94fd2c to 0x94fdfc (208 bytes)
//
// 3 xrefs:
// > ??> @ 0xc8418
// > SetupCollisionTriggerPopup::init @ 0x950884
// > ??> @ 0x122ef50
//
// 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 SetupCollisionTriggerPopup::onTargetPP(SetupCollisionTriggerPopup *a1, cocos2d::CCObject *a2)
{
bool v3; // w0
EffectGameObject *m_gameObject; // x1
cocos2d::CCArray *m_gameObjects; // x1
unsigned int v6; // w20
__int64 v7; // x0
bool v8; // cf
unsigned int v9; // w1
v3 = !a1->m_targetPP;
m_gameObject = a1->m_gameObject;
a1->m_targetPP = v3;
if ( m_gameObject )
{
m_gameObject->m_followCPP = v3;
}
else
{
m_gameObjects = a1->m_gameObjects;
if ( m_gameObjects )
{
v6 = 0;
while ( 1 )
{
v8 = v6 >= (unsigned int)cocos2d::CCArray::count(m_gameObjects);
v9 = v6++;
if ( v8 )
break;
v7 = cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, v9);
m_gameObjects = a1->m_gameObjects;
*(_BYTE *)(v7 + 1670) = a1->m_targetPP;
}
}
}
SetupCollisionTriggerPopup::updateItemIDInputLabel(a1);
SetupCollisionTriggerPopup::updateItemID2InputLabel(a1);
((void (__fastcall *)(CCTextInputNode *))a1->m_blockAInput->setTouchEnabled)(a1->m_blockAInput);
a1->m_blockBInput->setTouchEnabled(a1->m_blockBInput, !a1->m_targetPP);
}