//
// SetupCollisionTriggerPopup::onTargetP1 from 0x1002304a8 to 0x100230550 (168 bytes)
//
// 1 xrefs:
// > SetupCollisionTriggerPopup::init @ 0x10022fe70
//
// 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 __fastcall SetupCollisionTriggerPopup::onTargetP1(SetupCollisionTriggerPopup *a1, cocos2d::CCObject *a2)
{
bool v3; // w8
EffectGameObject *m_gameObject; // x9
bool v5; // w8
cocos2d::CCArray *m_gameObjects; // x0
__int64 v7; // x20
v3 = !a1->m_targetP1;
a1->m_targetP1 = v3;
m_gameObject = a1->m_gameObject;
if ( m_gameObject )
{
m_gameObject->m_targetPlayer1 = v3;
}
else
{
m_gameObjects = a1->m_gameObjects;
if ( m_gameObjects && (unsigned int)sub_10024A36C(m_gameObjects) )
{
v7 = 0;
do
{
*(_BYTE *)(sub_10024A388(a1->m_gameObjects, v7) + 1684) = a1->m_targetP1;
v7 = (unsigned int)(v7 + 1);
}
while ( (unsigned int)v7 < (unsigned int)sub_10024A36C(a1->m_gameObjects) );
}
}
SetupCollisionTriggerPopup::updateItemIDInputLabel(a1);
v5 = !a1->m_targetP2 && !a1->m_targetP1;
((void (__fastcall *)(CCTextInputNode *, bool))a1->m_blockAInput->setTouchEnabled)(a1->m_blockAInput, v5);
}