//
// SetupKeyframePopup::onClose from 0xa3a318 to 0xa3a3bc (164 bytes)
//
// 2 xrefs:
// > ??> @ 0x59bc8
// > ??> @ 0x11de3c8
//
// 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 SetupKeyframePopup::onClose(SetupKeyframePopup *a1, cocos2d::CCObject *a2)
{
LevelEditorLayer *m_editorLayer; // x0
EffectGameObject *m_gameObject; // x2
int m_targetGroupID; // w21
cocos2d::CCObject *v7; // x0
cocos2d::CCObject_vtbl *v8; // x0
unsigned int copyWithZone; // w1
void (__fastcall *v10)(cocos2d::CCObject *__hidden); // x0
void (__fastcall *v11)(cocos2d::CCObject *__hidden); // x2
__int64 i; // x1
if ( a1->m_groupIDChanged )
{
m_editorLayer = a1->m_editorLayer;
if ( m_editorLayer )
{
m_gameObject = a1->m_gameObject;
m_targetGroupID = m_gameObject->m_targetGroupID;
v7 = cocos2d::CCDictionary::objectForKey(m_editorLayer->m_keyframeGroups, m_gameObject[1].m_nTag);
if ( v7 )
{
v8 = v7[1].__vftable;
copyWithZone = (unsigned int)v8->copyWithZone;
if ( LODWORD(v8->copyWithZone) )
{
v10 = v8->~CCObject_0;
v11 = (void (__fastcall *)(cocos2d::CCObject *__hidden))((char *)v10 + 8 * copyWithZone - 8);
if ( (unsigned __int64)v10 <= (unsigned __int64)v11 )
{
for ( i = *(_QWORD *)v10; *(_QWORD *)v10; i = *(_QWORD *)v10 )
{
v10 = (void (__fastcall *)(cocos2d::CCObject *__hidden))((char *)v10 + 8);
*(_DWORD *)(i + 1448) = m_targetGroupID;
*(_BYTE *)(i + 1865) = 1;
if ( (unsigned __int64)v11 < (unsigned __int64)v10 )
break;
}
}
}
}
}
}
SetupTriggerPopup::onClose(a1, a2);
}