//
// LevelEditorLayer::duplicateKeyframeAnimation from 0x1000c8430 to 0x1000c84f4 (196 bytes)
//
// 1 xrefs:
// > SetupKeyframePopup::onCustomButton @ 0x1001e437b
//
// This function is hookable on this platform (idp: pc, 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:20:36 +0000
//
__int64 __fastcall LevelEditorLayer::duplicateKeyframeAnimation(__int64 a1)
{
__int64 NewKeyframeAnim; // r14
__int64 v2; // rax
__int64 v3; // r15
__int64 ObjectsFromString; // rax
unsigned __int8 v6[16]; // [rsp+8h] [rbp-38h] BYREF
void *__p; // [rsp+18h] [rbp-28h]
NewKeyframeAnim = GJBaseGameLayer::createNewKeyframeAnim(a1);
*(_DWORD *)(a1 + 14844) = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)NewKeyframeAnim + 64LL))(NewKeyframeAnim);
v2 = cocos2d::CCDictionary::objectForKey_1(*(_QWORD *)(a1 + 13272));
if ( v2 )
{
v3 = v2;
if ( (unsigned int)sub_1007FEF90(v2) )
{
EditorUI::copyObjects(v6, *(_QWORD *)(a1 + 14248), v3, 0, 1);
*(_BYTE *)(a1 + 14152) = 1;
ObjectsFromString = LevelEditorLayer::createObjectsFromString(a1, v6, 1, 1);
GJBaseGameLayer::assignNewStickyGroups(a1, ObjectsFromString);
*(_BYTE *)(a1 + 14152) = 0;
if ( (v6[0] & 1) != 0 )
operator delete(__p);
}
}
*(_DWORD *)(a1 + 14844) = 0;
return NewKeyframeAnim;
}