//
// SetupRotatePopup::onClose from 0x140442fe0 to 0x140443075 (149 bytes)
//
// 4 xrefs:
// > ??> @ 0x1405edf78
// > ??> @ 0x1406a2210
// > ??> @ 0x1406a2244
// > ??> @ 0x1406da46c
//
// 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; // rcx
cocos2d::CCArray *m_gameObjects; // rax
cocos2d::ccArray *data; // rbx
__int64 num; // rax
EnhancedGameObject **arr; // rbx
EnhancedGameObject **i; // rsi
m_gameObject = a1->m_gameObject;
if ( m_gameObject )
m_gameObjects = cocos2d::CCArray::createWithObject(m_gameObject);
else
m_gameObjects = a1->m_gameObjects;
if ( m_gameObjects )
{
data = m_gameObjects->data;
num = data->num;
if ( (_DWORD)num )
{
arr = (EnhancedGameObject **)data->arr;
for ( i = &arr[num - 1]; arr <= i; ++arr )
{
if ( !*arr )
break;
EnhancedGameObject::createRotateAction(*arr, (*arr)->m_rotationAngle, 0);
}
}
}
SetupTriggerPopup::onClose(a1, a2);
}