//
// SetupRotatePopup::onClose from 0x10059d1a0 to 0x10059d219 (121 bytes)
//
// 1 xrefs:
// > ??> @ 0x100971118
//
// 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; // rdi
cocos2d::CCArray *m_gameObjects; // rax
cocos2d::ccArray *data; // rax
EnhancedGameObject **arr; // r15
unsigned __int64 v7; // r12
m_gameObject = a1->m_gameObject;
if ( m_gameObject )
{
m_gameObjects = (cocos2d::CCArray *)sub_10071FA80(m_gameObject);
if ( !m_gameObjects )
goto LABEL_9;
}
else
{
m_gameObjects = a1->m_gameObjects;
if ( !m_gameObjects )
goto LABEL_9;
}
data = m_gameObjects->data;
if ( data->num )
{
arr = (EnhancedGameObject **)data->arr;
v7 = (unsigned __int64)&arr[data->num - 1];
do
{
if ( !*arr )
break;
EnhancedGameObject::refreshRotateAction(*arr++);
}
while ( (unsigned __int64)arr <= v7 );
}
LABEL_9:
SetupTriggerPopup::onClose(a1, a2);
}