//
// SetupRotatePopup::onClose from 0x95847c to 0x958500 (132 bytes)
//
// 2 xrefs:
// > ??> @ 0x524b8
// > ??> @ 0x11ba208
//
// 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 SetupRotatePopup::onClose(SetupRotatePopup *a1, cocos2d::CCObject *a2)
{
EffectGameObject *m_gameObject; // x0
cocos2d::CCArray *m_gameObjects; // x0
cocos2d::ccArray *data; // x1
EnhancedGameObject **arr; // x19
EnhancedGameObject **v8; // x20
EnhancedGameObject *v9; // x0
m_gameObject = a1->m_gameObject;
if ( m_gameObject )
m_gameObjects = (cocos2d::CCArray *)cocos2d::CCArray::createWithObject((cocos2d::CCArray *)m_gameObject, a2);
else
m_gameObjects = a1->m_gameObjects;
if ( m_gameObjects )
{
data = m_gameObjects->data;
if ( data->num )
{
arr = (EnhancedGameObject **)data->arr;
v8 = &arr[data->num - 1];
while ( v8 >= arr )
{
v9 = *arr;
if ( !*arr )
break;
++arr;
EnhancedGameObject::refreshRotateAction(v9);
}
}
}
SetupTriggerPopup::onClose(a1, a2);
}