//
// SetupInstantCountPopup::onCountType from 0x1001bcca8 to 0x1001bcd64 (188 bytes)
//
// 3 xrefs:
// > SetupInstantCountPopup::init @ 0x1001bc6e8
// > SetupInstantCountPopup::init @ 0x1001bc774
// > SetupInstantCountPopup::init @ 0x1001bc804
//
// 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 SetupInstantCountPopup::onCountType(SetupInstantCountPopup *a1, cocos2d::CCObject *a2)
{
int v3; // w0
EffectGameObject *m_gameObject; // x8
cocos2d::CCArray *m_gameObjects; // x0
__int64 v6; // x20
v3 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2);
a1->m_mode = v3;
CCMenuItemToggler::toggle(a1->m_equalsToggler, v3 == 0);
CCMenuItemToggler::toggle(a1->m_largerToggler, a1->m_mode == 1);
CCMenuItemToggler::toggle(a1->m_smallerToggler, a1->m_mode == 2);
m_gameObject = a1->m_gameObject;
if ( m_gameObject )
{
LODWORD(m_gameObject[1].EnhancedGameObject::GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable) = a1->m_mode;
}
else
{
m_gameObjects = a1->m_gameObjects;
if ( m_gameObjects && (unsigned int)sub_10024A36C(m_gameObjects) )
{
v6 = 0;
do
{
*(_DWORD *)(sub_10024A388(a1->m_gameObjects, v6) + 1840) = a1->m_mode;
v6 = (unsigned int)(v6 + 1);
}
while ( (unsigned int)v6 < (unsigned int)sub_10024A36C(a1->m_gameObjects) );
}
}
}