//
// SetupKeyframePopup::onClose from 0x1001b5d48 to 0x1001b5ddc (148 bytes)
//
// 1 xrefs:
// > ??> @ 0x1007b1cc0
//
// 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 __fastcall SetupKeyframePopup::onClose(SetupKeyframePopup *a1, cocos2d::CCObject *a2)
{
LevelEditorLayer *m_editorLayer; // x8
EffectGameObject *m_gameObject; // x9
int m_targetGroupID; // w21
cocos2d::CCObject *v7; // x0
cocos2d::CCObject_vtbl *v8; // x8
__int64 copyWithZone_low; // x9
void (__cdecl *v10)(cocos2d::CCObject *__hidden); // x8
unsigned __int64 v11; // x9
__int64 v12; // x11
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_low = LODWORD(v8->copyWithZone);
if ( (_DWORD)copyWithZone_low )
{
v10 = v8->~CCObject_0;
v11 = (unsigned __int64)v10 + 8 * copyWithZone_low - 8;
do
{
v12 = *(_QWORD *)v10;
if ( !*(_QWORD *)v10 )
break;
*(_DWORD *)(v12 + 1464) = m_targetGroupID;
*(_BYTE *)(v12 + 1881) = 1;
v10 = (void (__cdecl *)(cocos2d::CCObject *__hidden))((char *)v10 + 8);
}
while ( (unsigned __int64)v10 <= v11 );
}
}
}
}
SetupTriggerPopup::onClose(a1, a2);
}