//
// LevelEditorLayer::duplicateKeyframeAnimation from 0x7a1258 to 0x7a1368 (272 bytes)
//
// 2 xrefs:
// > SetupKeyframePopup::onCustomButton @ 0xb6ba78
// > ??> @ 0x43270
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:53:39 +0000
//
__int64 __fastcall LevelEditorLayer::duplicateKeyframeAnimation(cocos2d::CCDictionary **this, int a2)
{
__int64 NewKeyframeAnim; // x21
cocos2d::CCArray *v4; // x0
cocos2d::CCArray *v5; // x22
cocos2d::CCArray *ObjectsFromString; // x0
char v7; // w0
__int64 v10[3]; // [xsp+50h] [xbp+50h] BYREF
NewKeyframeAnim = GJBaseGameLayer::createNewKeyframeAnim((GJBaseGameLayer *)this);
*((_DWORD *)this + 3711) = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)NewKeyframeAnim + 64LL))(NewKeyframeAnim);
v4 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(*(this + 1659), a2);
v5 = v4;
if ( v4 )
{
if ( (unsigned int)cocos2d::CCArray::count(v4) )
{
EditorUI::copyObjects(v10, *(this + 1781), v5, 0, 1);
*((_BYTE *)this + 14152) = 1;
ObjectsFromString = LevelEditorLayer::createObjectsFromString((__int64)this, (unsigned __int8 *)v10, 1u, 1u);
GJBaseGameLayer::assignNewStickyGroups((GJBaseGameLayer *)this, ObjectsFromString);
v7 = v10[0];
*((_BYTE *)this + 14152) = 0;
if ( (v7 & 1) != 0 )
operator delete((void *)v10[2]);
}
}
*((_DWORD *)this + 3711) = 0;
return NewKeyframeAnim;
}