//
// SetupRotatePopup::onClose from 0xaa053c to 0xaa05c0 (132 bytes)
//
// 2 xrefs:
// > ??> @ 0x72628
// > ??> @ 0x14a1338
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 13:00:48 +0000
//
__int64 __fastcall SetupRotatePopup::onClose(SetupRotatePopup *this, cocos2d::CCObject *a2)
{
cocos2d::CCArray *v4; // x0
__int64 v5; // x0
unsigned int *v6; // x1
EnhancedGameObject **v7; // x19
EnhancedGameObject **v8; // x20
EnhancedGameObject *v9; // x0
v4 = *((cocos2d::CCArray **)this + 85);
if ( v4 )
v5 = cocos2d::CCArray::createWithObject(v4, a2);
else
v5 = *((_QWORD *)this + 86);
if ( v5 )
{
v6 = *(unsigned int **)(v5 + 56);
if ( *v6 )
{
v7 = *((EnhancedGameObject ***)v6 + 2);
v8 = &v7[*v6 - 1];
while ( v8 >= v7 )
{
v9 = *v7;
if ( !*v7 )
break;
++v7;
EnhancedGameObject::refreshRotateAction(v9);
}
}
}
return SetupTriggerPopup::onClose(this, a2);
}