//
// SetupCameraEdgePopup::determineStartValues from 0x1404139d0 to 0x140413ac5 (245 bytes)
//
// 4 xrefs:
// > ??> @ 0x1405ded90
// > ??> @ 0x14069f898
// > ??> @ 0x14069f8a8
// > ??> @ 0x1406d8d5c
//
// 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)
{
__int64 v2; // rcx
cocos2d::CCArray *m_gameObjects; // rsi
unsigned int v4; // edi
struct cocos2d::CCObject *v5; // rax
int m_targetID; // edx
int m_uAutoReleaseCount; // ecx
int m_edgeDirection; // ecx
int m_nTag; // eax
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 )
{
if ( cocos2d::CCArray::count(m_gameObjects) )
{
v4 = 0;
for ( *(_QWORD *)&a1->m_targetID = -1; v4 < cocos2d::CCArray::count(m_gameObjects); ++v4 )
{
v5 = cocos2d::CCArray::objectAtIndex(m_gameObjects, v4);
m_targetID = a1->m_targetID;
m_uAutoReleaseCount = v5[26].m_uAutoReleaseCount;
if ( m_targetID == -1 )
{
a1->m_targetID = m_uAutoReleaseCount;
}
else if ( m_targetID != m_uAutoReleaseCount )
{
a1->m_targetID = 0;
}
m_edgeDirection = a1->m_edgeDirection;
m_nTag = v5[33].m_nTag;
if ( m_edgeDirection == -1 )
{
a1->m_edgeDirection = m_nTag;
}
else if ( m_edgeDirection != m_nTag )
{
a1->m_edgeDirection = 0;
}
}
}
}
}