//
// SetupInstantCountPopup::determineStartValues from 0x4f7614 to 0x4f76e8 (212 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::determineStartValues(SetupInstantCountPopup *a1)
{
cocos2d::CCArray *v2; // r0
cocos2d::CCArray *m_gameObjects; // r6
unsigned int v4; // r5
int v5; // r0
int m_itemID; // r2
int v7; // r3
int m_targetID; // r2
int v9; // r3
int m_mode; // r2
int v11; // r3
int m_targetCount; // r2
int v13; // r3
SetupTriggerPopup::determineStartValues(a1);
if ( a1->m_gameObject )
{
m_gameObjects = (cocos2d::CCArray *)cocos2d::CCArray::create(v2);
cocos2d::CCArray::addObject(m_gameObjects, a1->m_gameObject);
}
else
{
m_gameObjects = a1->m_gameObjects;
}
if ( m_gameObjects )
{
v4 = 0;
a1->m_itemID = -1;
a1->m_targetID = -1;
a1->m_targetCount = 99999;
a1->m_activateGroup = 1;
a1->m_mode = -1;
while ( v4 < cocos2d::CCArray::count(m_gameObjects) )
{
v5 = cocos2d::CCArray::objectAtIndex(m_gameObjects, v4);
if ( !*(_BYTE *)(v5 + 1449) )
a1->m_activateGroup = 0;
m_itemID = a1->m_itemID;
v7 = *(_DWORD *)(v5 + 1492);
if ( m_itemID == -1 )
{
a1->m_itemID = v7;
}
else if ( m_itemID != v7 )
{
a1->m_itemID = 0;
}
m_targetID = a1->m_targetID;
v9 = *(_DWORD *)(v5 + 1276);
if ( m_targetID == -1 )
{
a1->m_targetID = v9;
}
else if ( m_targetID != v9 )
{
a1->m_targetID = 0;
}
m_mode = a1->m_mode;
v11 = *(_DWORD *)(v5 + 1640);
if ( m_mode == -1 )
{
a1->m_mode = v11;
}
else if ( m_mode != v11 )
{
a1->m_mode = 0;
}
m_targetCount = a1->m_targetCount;
v13 = *(_DWORD *)(v5 + 1636);
if ( m_targetCount == 99999 )
{
a1->m_targetCount = v13;
}
else if ( m_targetCount != v13 )
{
a1->m_targetCount = 0;
}
++v4;
}
}
}