//
// SetupCameraEdgePopup::determineStartValues from 0x9edcd8 to 0x9eddc8 (240 bytes)
//
// 2 xrefs:
// > ??> @ 0x3edf0
// > ??> @ 0x11cd5b0
//
// 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 SetupCameraEdgePopup::determineStartValues(SetupCameraEdgePopup *a1)
{
EffectGameObject *m_gameObject; // x0
cocos2d::CCArray *m_gameObjects; // x21
unsigned int v4; // w19
bool v5; // cf
unsigned int v6; // w1
cocos2d::CCArray *i; // x0
__int64 v8; // x0
int m_targetID; // w1
int m_edgeDirection; // w1
int v11; // w0
SetupTriggerPopup::determineStartValues(a1);
m_gameObject = a1->m_gameObject;
if ( m_gameObject )
{
m_gameObjects = (cocos2d::CCArray *)cocos2d::CCArray::create((cocos2d::CCArray *)m_gameObject);
cocos2d::CCArray::addObject(m_gameObjects, a1->m_gameObject);
}
else
{
m_gameObjects = a1->m_gameObjects;
}
if ( m_gameObjects )
{
if ( (unsigned int)cocos2d::CCArray::count(m_gameObjects) )
{
a1->m_targetID = -1;
a1->m_edgeDirection = -1;
v4 = 0;
v5 = (unsigned int)cocos2d::CCArray::count(m_gameObjects) == 0;
v6 = 0;
for ( i = m_gameObjects; !v5; i = m_gameObjects )
{
v8 = cocos2d::CCArray::objectAtIndex(i, v6);
m_targetID = a1->m_targetID;
if ( m_targetID == -1 )
{
a1->m_targetID = *(_DWORD *)(v8 + 1448);
}
else if ( m_targetID != *(_DWORD *)(v8 + 1448) )
{
a1->m_targetID = 0;
}
m_edgeDirection = a1->m_edgeDirection;
v11 = *(_DWORD *)(v8 + 1828);
if ( m_edgeDirection == -1 )
{
a1->m_edgeDirection = v11;
++v4;
}
else
{
if ( m_edgeDirection != v11 )
a1->m_edgeDirection = 0;
++v4;
}
v5 = v4 >= (unsigned int)cocos2d::CCArray::count(m_gameObjects);
v6 = v4;
}
}
}
}