//
// SetupInstantCountPopup::updateItemID from 0x957108 to 0x957194 (140 bytes)
//
// 3 xrefs:
// > SetupInstantCountPopup::onTargetIDArrow @ 0x9571cc
// > SetupInstantCountPopup::textChanged @ 0x957450
// > ??> @ 0x33b58
//
// 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::updateItemID(SetupInstantCountPopup *a1)
{
int m_itemID; // w1
EffectGameObject *m_gameObject; // x3
cocos2d::CCArray *m_gameObjects; // x1
unsigned int v5; // w20
__int64 v6; // x0
bool v7; // cf
unsigned int v8; // w1
m_itemID = a1->m_itemID;
m_gameObject = a1->m_gameObject;
if ( m_itemID < 0 )
m_itemID = 0;
if ( m_itemID > 9999 )
m_itemID = 9999;
a1->m_itemID = m_itemID;
if ( m_gameObject )
{
m_gameObject->m_itemID = m_itemID;
}
else
{
m_gameObjects = a1->m_gameObjects;
if ( m_gameObjects )
{
v5 = 0;
while ( 1 )
{
v7 = v5 >= (unsigned int)cocos2d::CCArray::count(m_gameObjects);
v8 = v5++;
if ( v7 )
break;
v6 = cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, v8);
m_gameObjects = a1->m_gameObjects;
*(_DWORD *)(v6 + 1664) = a1->m_itemID;
}
}
}
}