//
// SetupEnterEffectPopup::onEnterType from 0xb437d0 to 0xb438a0 (208 bytes)
//
// 4 xrefs:
// > ??> @ 0x1005d0
// > SetupEnterEffectPopup::init @ 0xb444b8
// > SetupEnterEffectPopup::init @ 0xb44598
// > ??> @ 0x1547d38
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:01:52 +0000
//
__int64 __fastcall SetupEnterEffectPopup::onEnterType(SetupEnterEffectPopup *this, cocos2d::CCObject *a2)
{
int v3; // w0
unsigned __int8 v4; // w1
__int64 result; // x0
unsigned int v6; // w20
bool v7; // cf
unsigned int v8; // w1
if ( (*(unsigned int (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2) == *((_DWORD *)this + 262) )
{
*((_DWORD *)this + 262) = 0;
v4 = 0;
}
else
{
v3 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2);
*((_DWORD *)this + 262) = v3;
v4 = v3 == 1;
}
CCMenuItemToggler::toggle(*((CCMenuItemToggler **)this + 129), v4);
CCMenuItemToggler::toggle(*((CCMenuItemToggler **)this + 130), *((_DWORD *)this + 262) == 2);
result = *((_QWORD *)this + 85);
if ( result )
{
*(_DWORD *)(result + 1840) = *((_DWORD *)this + 262);
}
else
{
v6 = 0;
while ( 1 )
{
result = cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 86));
v7 = v6 >= (unsigned int)result;
v8 = v6++;
if ( v7 )
break;
*(_DWORD *)(cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 86), v8) + 1840) = *((_DWORD *)this + 262);
}
}
return result;
}