//
// LevelEditorLayer::duplicateKeyframeAnimation from 0x10040634c to 0x100406410 (196 bytes)
//
// 1 xrefs:
// > SetupKeyframePopup::onCustomButton @ 0x10024a8bc
//
// 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 11:04:41 +0000
//
__int64 __fastcall LevelEditorLayer::duplicateKeyframeAnimation(__int64 a1, int a2)
{
__int64 NewKeyframeAnim; // x20
__int64 v5; // x0
__int64 v6; // x21
__int64 v7; // x0
std::string __p; // [xsp+8h] [xbp-38h] BYREF
NewKeyframeAnim = GJBaseGameLayer::createNewKeyframeAnim(a1);
*(_DWORD *)(a1 + 14844) = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)NewKeyframeAnim + 64LL))(NewKeyframeAnim);
cocos2d::CCDictionary::objectForKey_1(*(_QWORD *)(a1 + 13272), a2);
if ( v5 )
{
v6 = v5;
if ( (unsigned int)sub_1002E757C(v5) )
{
EditorUI::copyObjects(*(_QWORD *)(a1 + 14248), v6, 0, 1, &__p);
*(_BYTE *)(a1 + 14152) = 1;
v7 = LevelEditorLayer::createObjectsFromString(a1, &__p, 1, 1);
GJBaseGameLayer::assignNewStickyGroups(a1, v7);
*(_BYTE *)(a1 + 14152) = 0;
if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__p.__r_.__value_.__l.__data_);
}
}
*(_DWORD *)(a1 + 14844) = 0;
return NewKeyframeAnim;
}