//
// SetupInstantCountPopup::onCountType from 0x955bf4 to 0x955cb8 (196 bytes)
//
// 5 xrefs:
// > ??> @ 0x90330
// > SetupInstantCountPopup::init @ 0x95684c
// > SetupInstantCountPopup::init @ 0x9568e4
// > SetupInstantCountPopup::init @ 0x95697c
// > ??> @ 0x122ceb0
//
// 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 SetupInstantCountPopup::onCountType(SetupInstantCountPopup *a1, cocos2d::CCObject *a2)
{
int v3; // w2
CCMenuItemToggler *m_equalsToggler; // x0
EffectGameObject *m_gameObject; // x0
cocos2d::CCArray *m_gameObjects; // x1
unsigned int v7; // w20
__int64 v8; // x0
bool v9; // cf
unsigned int v10; // w1
v3 = a2->getTag(a2);
m_equalsToggler = a1->m_equalsToggler;
a1->m_mode = v3;
CCMenuItemToggler::toggle(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 )
{
v7 = 0;
while ( 1 )
{
v9 = v7 >= (unsigned int)cocos2d::CCArray::count(m_gameObjects);
v10 = v7++;
if ( v9 )
break;
v8 = cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, v10);
m_gameObjects = a1->m_gameObjects;
*(_DWORD *)(v8 + 1824) = a1->m_mode;
}
}
}
}