//
// LevelEditorLayer::duplicateKeyframeAnimation from 0x46ea20 to 0x46eac0 (160 bytes)
//
// 1 xrefs:
// > SetupKeyframePopup::onCustomButton @ 0x6af14a
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:49:02 +0000
//
int __fastcall LevelEditorLayer::duplicateKeyframeAnimation(cocos2d::CCDictionary **this, int a2)
{
int NewKeyframeAnim; // r8
cocos2d::CCArray *v5; // r0
bool v6; // r9
cocos2d::CCArray *ObjectsFromString; // r0
unsigned __int8 v9[12]; // [sp+8h] [bp-14h] BYREF
NewKeyframeAnim = GJBaseGameLayer::createNewKeyframeAnim((GJBaseGameLayer *)this);
*(this + 3057) = (cocos2d::CCDictionary *)(*(int (__fastcall **)(int))(*(_DWORD *)NewKeyframeAnim + 32))(NewKeyframeAnim);
v5 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(*(this + 2808), a2);
v6 = (char)v5;
if ( v5 && cocos2d::CCArray::count(v5) )
{
EditorUI::copyObjects((EditorUI *)v9, *(this + 2964), v6, 0);
*((_BYTE *)this + 11784) = 1;
ObjectsFromString = LevelEditorLayer::createObjectsFromString((int)this, v9, 1, 1);
GJBaseGameLayer::assignNewStickyGroups((GJBaseGameLayer *)this, ObjectsFromString);
*((_BYTE *)this + 11784) = 0;
std::string::~string((int)v9);
}
*(this + 3057) = nullptr;
return NewKeyframeAnim;
}