//
// EditorUI::getGroupInfo from 0x1003f4ea0 to 0x1003f4fb8 (280 bytes)
//
// 3 xrefs:
// > EditorUI::editButtonUsable @ 0x1003f4a7c
// > EditorUI::editButton2Usable @ 0x1003f4ff0
// > EditorUI::editObjectSpecial @ 0x1003f5528
//
// 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 EditorUI::getGroupInfo(EditorUI *a1, GameObject *a2, cocos2d::CCArray *a3, int *a4, int *a5, int *a6)
{
int m_objectID; // w25
GameObjectClassType m_classType; // w24
GameObjectType m_savedObjectType; // w26
unsigned int v13; // w23
_DWORD *v14; // x0
if ( !a2 )
{
if ( !a3 || !(unsigned int)sub_10024A36C((__int64)a3) )
{
m_classType = -1;
m_savedObjectType = -1;
m_objectID = -1;
goto LABEL_28;
}
v13 = 0;
m_objectID = -1;
m_savedObjectType = -1;
m_classType = -1;
while ( 1 )
{
v14 = (_DWORD *)sub_10024A388((__int64)a3, v13);
if ( m_objectID )
{
if ( m_objectID != -1 )
{
if ( v14[257] != m_objectID )
m_objectID = 0;
if ( m_classType == Game )
goto LABEL_16;
goto LABEL_14;
}
m_objectID = v14[257];
}
if ( m_classType == Game )
goto LABEL_16;
LABEL_14:
if ( m_classType != -1 )
{
if ( v14[312] != m_classType )
m_classType = Game;
if ( m_savedObjectType == Solid )
goto LABEL_25;
LABEL_21:
if ( m_savedObjectType == -1 )
{
m_savedObjectType = v14[231];
}
else if ( v14[231] != m_savedObjectType )
{
m_savedObjectType = Solid;
}
goto LABEL_25;
}
m_classType = v14[312];
LABEL_16:
if ( m_savedObjectType )
goto LABEL_21;
LABEL_25:
if ( ++v13 >= (unsigned int)sub_10024A36C((__int64)a3) )
goto LABEL_28;
}
}
m_objectID = a2->m_objectID;
m_classType = a2->m_classType;
m_savedObjectType = a2->m_savedObjectType;
LABEL_28:
*a4 = m_objectID;
*a5 = m_classType;
*a6 = m_savedObjectType;
}