// // EditorUI::createNewKeyframeAnim from 0x482fe4 to 0x48313e (346 bytes) // // 1 xrefs: // > SetGroupIDLayer::onAnim @ 0x639832 // // 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:23 +0000 // int __fastcall EditorUI::createNewKeyframeAnim(int this) { int v1; // r4 cocos2d::CCArray *v2; // r0 cocos2d::CCObject *v3; // r1 cocos2d::CCArray *v4; // r5 cocos2d::CCArray *v5; // r0 cocos2d::CCArray *v6; // r9 _DWORD *v7; // r3 int *v8; // r7 int v9; // r5 int v10; // t1 int v11; // r0 _DWORD *v12; // r3 int v13; // r6 int *v14; // r3 unsigned int v15; // r12 int *v16; // r8 int v17; // r3 int v18; // t1 const cocos2d::CCPoint *v19; // r0 GameObject *Object; // r6 int NewKeyframeAnim; // r0 int v22; // r0 int *v23; // [sp+4h] [bp-20h] int v24; // [sp+8h] [bp-1Ch] unsigned int v25; // [sp+Ch] [bp-18h] _BYTE v26[8]; // [sp+14h] [bp-10h] BYREF v1 = this; if ( *(_DWORD *)(this + 996) || (this = cocos2d::CCArray::count(*(cocos2d::CCArray **)(this + 668))) != 0 ) { v2 = (cocos2d::CCArray *)cocos2d::CCArray::create((cocos2d::CCArray *)this); v3 = *(cocos2d::CCObject **)(v1 + 996); v4 = v2; if ( v3 ) cocos2d::CCArray::addObject(v2, v3); else cocos2d::CCArray::addObjectsFromArray(v2, *(cocos2d::CCArray **)(v1 + 668)); EditorUI::deselectAll((EditorUI *)v1); v5 = (cocos2d::CCArray *)(*(int (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(v1 + 944) + 596))( *(_DWORD *)(v1 + 944), 0); v6 = (cocos2d::CCArray *)cocos2d::CCArray::create(v5); if ( v4 ) { v7 = *((_DWORD **)v4 + 13); if ( *v7 ) { v8 = (int *)v7[3]; v23 = &v8[*v7 - 1]; while ( v8 <= v23 ) { v10 = *v8++; v9 = v10; if ( !v10 ) break; if ( *(_BYTE *)(v9 + 1022) ) { v11 = cocos2d::CCDictionary::objectForKey( *(cocos2d::CCDictionary **)(*(_DWORD *)(v1 + 944) + 2324), *(_DWORD *)(v9 + 780)); if ( v11 ) { v12 = *(_DWORD **)(v11 + 52); if ( *v12 ) { v13 = *v12 + 0x40000000; v14 = (int *)v12[3]; v15 = (unsigned int)&v14[v13 - 1]; v16 = v14; while ( (unsigned int)v16 <= v15 ) { v18 = *v16++; v17 = v18; if ( !v18 ) break; v25 = v15; v24 = *(_DWORD *)(v17 + 52); v19 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(int))(*(_DWORD *)v9 + 96))(v9); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v26, v19); Object = EditorUI::createObject(v1, (GameObject *)&stru_BCC.st_info, (const cocos2d::CCPoint *)v26); LevelEditorLayer::removeSpecial(*(LevelEditorLayer **)(v1 + 944), Object); cocos2d::CCArray::addObject(v6, Object); EffectGameObject::setTargetID(Object, v24); KeyframeGameObject::updateShadowObjects(Object, *(GJBaseGameLayer **)(v1 + 944), (EditorUI *)v1); NewKeyframeAnim = GJBaseGameLayer::createNewKeyframeAnim(*(GJBaseGameLayer **)(v1 + 944)); v22 = (*(int (__fastcall **)(int))(*(_DWORD *)NewKeyframeAnim + 32))(NewKeyframeAnim); *((_DWORD *)Object + 415) = 0; *((_DWORD *)Object + 414) = v22; LevelEditorLayer::addSpecial(*(LevelEditorLayer **)(v1 + 944), Object); v15 = v25; } } } } } } } return EditorUI::selectObjects((EditorUI *)v1, v6, 0); } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source