//
// SetupInstantCountPopup::onCountType from 0x1005e9f40 to 0x1005ea011 (209 bytes)
//
// 3 xrefs:
// > SetupInstantCountPopup::init @ 0x1005e964c
// > SetupInstantCountPopup::init @ 0x1005e9702
// > SetupInstantCountPopup::init @ 0x1005e97c1
//
// 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; // eax
EffectGameObject *m_gameObject; // rax
cocos2d::CCArray *m_gameObjects; // rdi
unsigned int v6; // r14d
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_100720070(m_gameObjects) )
{
v6 = 0;
do
*(_DWORD *)(sub_1007200C0(a1->m_gameObjects, v6++) + 1840) = a1->m_mode;
while ( v6 < (unsigned int)sub_100720070(a1->m_gameObjects) );
}
}
}