//
// SetupEnterEffectPopup::onEnterType from 0x693a4c to 0x693ace (130 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:56:13 +0000
//
unsigned int __fastcall SetupEnterEffectPopup::onEnterType(SetupEnterEffectPopup *this, cocos2d::CCObject *a2)
{
unsigned int result; // r0
unsigned int v5; // r5
int v6; // r0
if ( (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2) == *((_DWORD *)this + 182) )
*((_DWORD *)this + 182) = 0;
else
*((_DWORD *)this + 182) = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2);
CCMenuItemToggler::toggle(*((CCMenuItemToggler **)this + 180), *((_DWORD *)this + 182) == 1);
result = CCMenuItemToggler::toggle(*((CCMenuItemToggler **)this + 181), *((_DWORD *)this + 182) == 2);
v5 = *((_DWORD *)this + 132);
if ( v5 )
{
*(_DWORD *)(v5 + 1648) = *((_DWORD *)this + 182);
}
else
{
while ( 1 )
{
result = cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 133));
if ( v5 >= result )
break;
v6 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 133), v5++);
*(_DWORD *)(v6 + 1648) = *((_DWORD *)this + 182);
}
}
return result;
}