//
// SetupInstantCountPopup::onCountType from 0x4f7734 to 0x4f77b4 (128 bytes)
//
// 0 xrefs:
//
// 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; // r0
EffectGameObject *m_gameObject; // r5
int v5; // r0
v3 = 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 )
{
m_gameObject[1].EnhancedGameObject::GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (EffectGameObject_vtbl *)a1->m_mode;
}
else if ( a1->m_gameObjects )
{
while ( (unsigned int)m_gameObject < cocos2d::CCArray::count(a1->m_gameObjects) )
{
v5 = cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, (unsigned int)m_gameObject);
m_gameObject = (EffectGameObject *)((char *)m_gameObject + 1);
*(_DWORD *)(v5 + 1640) = a1->m_mode;
}
}
}