//
// SetupEnterEffectPopup::onEnterType from 0x1003f3440 to 0x1003f3504 (196 bytes)
//
// 2 xrefs:
// > SetupEnterEffectPopup::init @ 0x1003f29cd
// > SetupEnterEffectPopup::init @ 0x1003f2ac4
//
// 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 SetupEnterEffectPopup::onEnterType(SetupEnterEffectPopup *a1, cocos2d::CCObject *a2)
{
int v2; // ecx
int v3; // eax
EffectGameObject *m_gameObject; // rax
unsigned int v5; // r14d
v2 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2);
v3 = 0;
if ( v2 != a1->m_enterType )
v3 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2);
a1->m_enterType = v3;
CCMenuItemToggler::toggle(a1->m_enterOnlyToggler, v3 == 1);
CCMenuItemToggler::toggle(a1->m_exitOnlyToggler, a1->m_enterType == 2);
m_gameObject = a1->m_gameObject;
if ( m_gameObject )
{
*(_DWORD *)(&m_gameObject->m_canSpawnTriggers + 1) = a1->m_enterType;
}
else if ( (unsigned int)sub_100720070(a1->m_gameObjects) )
{
v5 = 0;
do
*(_DWORD *)(sub_1007200C0(a1->m_gameObjects, v5++) + 1836) = a1->m_enterType;
while ( v5 < (unsigned int)sub_100720070(a1->m_gameObjects) );
}
}