//
// SetupKeyframePopup::onClose from 0x140426f00 to 0x140426fa8 (168 bytes)
//
// 4 xrefs:
// > ??> @ 0x1405e6ca0
// > ??> @ 0x1406a0af8
// > ??> @ 0x1406a0b08
// > ??> @ 0x1406d9788
//
// 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; // rcx
EffectGameObject *m_gameObject; // rax
int m_targetGroupID; // edi
struct cocos2d::CCObject *v7; // rax
cocos2d::CCObject_vtbl *v8; // rax
__int64 copyWithZone_low; // rcx
bool (__fastcall *isEqual)(cocos2d::CCObject *__hidden, const cocos2d::CCObject *); // rax
bool (__fastcall *i)(cocos2d::CCObject *__hidden, const cocos2d::CCObject *); // rdx
__int64 v12; // rcx
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 )
{
isEqual = v8->isEqual;
for ( i = (bool (__fastcall *)(cocos2d::CCObject *__hidden, const cocos2d::CCObject *))((char *)isEqual
+ 8 * copyWithZone_low
- 8);
(unsigned __int64)isEqual <= (unsigned __int64)i;
*(_BYTE *)(v12 + 1897) = 1 )
{
v12 = *(_QWORD *)isEqual;
if ( !*(_QWORD *)isEqual )
break;
isEqual = (bool (__fastcall *)(cocos2d::CCObject *__hidden, const cocos2d::CCObject *))((char *)isEqual + 8);
*(_DWORD *)(v12 + 1480) = m_targetGroupID;
}
}
}
}
}
SetupTriggerPopup::onClose(a1, a2);
}