//
// SetupAnimSettingsPopup::onClose from 0x1405a2160 to 0x1405a21e4 (132 bytes)
//
// 4 xrefs:
// > ??> @ 0x1407e9920
// > ??> @ 0x1408de884
// > ??> @ 0x1408de894
// > ??> @ 0x14092d464
//
// 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:37 +0000
//
__int64 __fastcall SetupAnimSettingsPopup::onClose(__int64 a1, __int64 a2)
{
__int64 v4; // rcx
unsigned int i; // ebx
struct cocos2d::CCObject *v6; // rax
v4 = *(_QWORD *)(a1 + 680);
if ( v4 )
{
EnhancedGameObject::setupAnimationVariables(v4);
}
else
{
for ( i = 0; i < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 688)); ++i )
{
v6 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 688), i);
EnhancedGameObject::setupAnimationVariables((__int64)v6);
}
}
return SetupTriggerPopup::onClose(a1, a2);
}