//
// LevelEditorLayer::duplicateKeyframeAnimation from 0x371308 to 0x3713a8 (160 bytes)
//
// 1 xrefs:
// > SetupKeyframePopup::onCustomButton @ 0x5749ce
//
// 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 *LevelEditorLayer::duplicateKeyframeAnimation(LevelEditorLayer *a1, int a2)
{
cocos2d::CCArray *NewKeyframeAnim; // r8
cocos2d::CCArray *v5; // r0
bool v6; // r9
cocos2d::CCArray *v7; // r0
int v9; // [sp+8h] [bp-Ch] BYREF
NewKeyframeAnim = GJBaseGameLayer::createNewKeyframeAnim(a1);
a1->m_duplicateKeyframeGroup = NewKeyframeAnim->getTag(NewKeyframeAnim);
v5 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(a1->m_keyframeGroups, a2);
v6 = (char)v5;
if ( v5 && cocos2d::CCArray::count(v5) )
{
EditorUI::copyObjects((EditorUI *)&v9, (cocos2d::CCArray *)a1->m_editorUI, v6, 0);
a1->m_keepEditorLayer = 1;
v7 = LevelEditorLayer::createObjectsFromString(a1, &v9, 1, 1);
GJBaseGameLayer::assignNewStickyGroups(a1, v7);
a1->m_keepEditorLayer = 0;
sub_774008(&v9);
}
a1->m_duplicateKeyframeGroup = 0;
return NewKeyframeAnim;
}