//
// LevelEditorLayer::duplicateKeyframeAnimation from 0x1000f4470 to 0x1000f4534 (196 bytes)
//
// 1 xrefs:
// > SetupKeyframePopup::onCustomButton @ 0x100201b3b
//
// 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
//
cocos2d::CCArray *__fastcall LevelEditorLayer::duplicateKeyframeAnimation(LevelEditorLayer *a1, int a2)
{
cocos2d::CCArray *NewKeyframeAnim; // r14
cocos2d::CCObject *v3; // rax
__int64 v4; // r15
cocos2d::CCArray *ObjectsFromString; // rax
std::string v7[2]; // [rsp+8h] [rbp-38h] BYREF
NewKeyframeAnim = GJBaseGameLayer::createNewKeyframeAnim(a1);
a1->m_duplicateKeyframeGroup = ((__int64 (__fastcall *)(cocos2d::CCArray *))NewKeyframeAnim->getTag)(NewKeyframeAnim);
v3 = cocos2d::CCDictionary::objectForKey(a1->m_keyframeGroups, a2);
if ( v3 )
{
v4 = (__int64)v3;
if ( (unsigned int)sub_100720070(v3) )
{
EditorUI::copyObjects(v7, (__int64)a1->m_editorUI, v4, 0, 1);
a1->m_keepEditorLayer = 1;
ObjectsFromString = (cocos2d::CCArray *)LevelEditorLayer::createObjectsFromString(a1, (unsigned __int8 *)v7, 1, 1);
GJBaseGameLayer::assignNewStickyGroups(a1, ObjectsFromString);
a1->m_keepEditorLayer = 0;
if ( (*(_BYTE *)&v7[0].__r_.__value_.__s.0 & 1) != 0 )
operator delete(v7[0].__r_.__value_.__l.__data_);
}
}
a1->m_duplicateKeyframeGroup = 0;
return NewKeyframeAnim;
}