//
// SetupRotatePopup::onClose from 0x1002688cc to 0x100268948 (124 bytes)
//
// 1 xrefs:
// > ??> @ 0x1007d23f8
//
// 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 SetupRotatePopup::onClose(SetupRotatePopup *a1, cocos2d::CCObject *a2)
{
EffectGameObject *m_gameObject; // x0
cocos2d::CCArray *m_gameObjects; // x0
cocos2d::ccArray *data; // x9
__int64 num; // x8
EnhancedGameObject **arr; // x21
unsigned __int64 v9; // x22
m_gameObject = a1->m_gameObject;
if ( m_gameObject )
{
m_gameObjects = (cocos2d::CCArray *)sub_10024A1B8((__int64)m_gameObject);
if ( !m_gameObjects )
goto LABEL_9;
}
else
{
m_gameObjects = a1->m_gameObjects;
if ( !m_gameObjects )
goto LABEL_9;
}
data = m_gameObjects->data;
num = data->num;
if ( (_DWORD)num )
{
arr = (EnhancedGameObject **)data->arr;
v9 = (unsigned __int64)&arr[num - 1];
do
{
if ( !*arr )
break;
EnhancedGameObject::refreshRotateAction(*arr++);
}
while ( (unsigned __int64)arr <= v9 );
}
LABEL_9:
SetupTriggerPopup::onClose(a1, a2);
}