//
// SetupRotatePopup::onClose from 0x1405d8120 to 0x1405d81b5 (149 bytes)
//
// 4 xrefs:
// > ??> @ 0x1407fd080
// > ??> @ 0x1408e16bc
// > ??> @ 0x1408e16f0
// > ??> @ 0x14092ead8
//
// This function is hookable on this platform (idp: pc, 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 11:34:58 +0000
//
__int64 __fastcall SetupRotatePopup::onClose(__int64 a1, __int64 a2)
{
struct cocos2d::CCObject *v4; // rcx
struct cocos2d::CCArray *v5; // rax
unsigned int *v6; // rbx
__int64 v7; // rax
float **v8; // rbx
float **i; // rdi
v4 = *(struct cocos2d::CCObject **)(a1 + 680);
if ( v4 )
v5 = cocos2d::CCArray::createWithObject(v4);
else
v5 = *(struct cocos2d::CCArray **)(a1 + 688);
if ( v5 )
{
v6 = *((unsigned int **)v5 + 7);
v7 = *v6;
if ( (_DWORD)v7 )
{
v8 = *((float ***)v6 + 2);
for ( i = &v8[v7 - 1]; v8 <= i; ++v8 )
{
if ( !*v8 )
break;
EnhancedGameObject::createRotateAction(*v8, (*v8)[353], 0);
}
}
}
return SetupTriggerPopup::onClose(a1, a2);
}