// // EditorUI::createNewKeyframeAnim from 0x7c3c78 to 0x7c3e88 (528 bytes) // // 2 xrefs: // > SetGroupIDLayer::onAnim @ 0xab9370 // > @ 0xa5910 // // 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:54:07 +0000 // __int64 __fastcall EditorUI::createNewKeyframeAnim(EditorUI *this) { cocos2d::CCArray *v2; // x0 cocos2d::CCArray *v3; // x0 cocos2d::CCArray *v4; // x20 cocos2d::CCObject *v5; // x1 cocos2d::CCArray *v6; // x0 cocos2d::CCArray *v7; // x25 unsigned int *v8; // x0 __int64 *v9; // x22 __int64 v10; // x20 char *v11; // x26 __int64 i; // x21 __int64 v14; // x0 unsigned int *v15; // x0 unsigned __int64 v16; // x28 __int64 v17; // x27 int v18; // w27 const cocos2d::CCPoint *v19; // x0 float *Object; // x20 __int64 NewKeyframeAnim; // x0 int v22; // w0 unsigned __int64 v23; // [xsp+68h] [xbp+68h] char v24[8]; // [xsp+70h] [xbp+70h] BYREF v2 = *((cocos2d::CCArray **)this + 187); if ( v2 || (v2 = (cocos2d::CCArray *)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 112)), (_DWORD)v2) ) { v3 = (cocos2d::CCArray *)cocos2d::CCArray::create(v2); v4 = v3; v5 = *((cocos2d::CCObject **)this + 187); if ( v5 ) cocos2d::CCArray::addObject(v3, v5); else cocos2d::CCArray::addObjectsFromArray(v3, *((cocos2d::CCArray **)this + 112)); EditorUI::deselectAll(this); v6 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 180) + 1192LL))( *((_QWORD *)this + 180), 0.0); v7 = (cocos2d::CCArray *)cocos2d::CCArray::create(v6); if ( v4 ) { v8 = *((unsigned int **)v4 + 7); if ( *v8 ) { v9 = *((__int64 **)v8 + 2); v10 = 8LL * *v8 - 8; v11 = (char *)v9 + v10; if ( v9 <= (__int64 *)((char *)v9 + v10) ) { for ( i = *v9; *v9; i = *v9 ) { if ( *(_BYTE *)(i + 1170) ) { v14 = cocos2d::CCDictionary::objectForKey( *(cocos2d::CCDictionary **)(*((_QWORD *)this + 180) + 3696LL), *(unsigned int *)(i + 916)); if ( v14 ) { v15 = *(unsigned int **)(v14 + 56); if ( *v15 ) { v16 = *((_QWORD *)v15 + 2); v17 = 8LL * *v15 - 8; v23 = v16 + v17; while ( v23 >= v16 ) { if ( !*(_QWORD *)v16 ) break; v18 = *(_DWORD *)(*(_QWORD *)v16 + 56LL); v16 += 8LL; v19 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)i + 192LL))(i); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v24, v19); Object = EditorUI::createObject((__int64)this, 0xBD8u, (const cocos2d::CCPoint *)v24); LevelEditorLayer::removeSpecial(*((LevelEditorLayer **)this + 180), (GameObject *)Object); cocos2d::CCArray::addObject(v7, (cocos2d::CCObject *)Object); EffectGameObject::setTargetID((EffectGameObject *)Object, v18); KeyframeGameObject::updateShadowObjects( (KeyframeGameObject *)Object, *((GJBaseGameLayer **)this + 180), this); NewKeyframeAnim = GJBaseGameLayer::createNewKeyframeAnim(*((GJBaseGameLayer **)this + 180)); v22 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)NewKeyframeAnim + 64LL))(NewKeyframeAnim); Object[465] = 0.0; *((_DWORD *)Object + 464) = v22; LevelEditorLayer::addSpecial(*((LevelEditorLayer **)this + 180), (GameObject *)Object); } } } } if ( v11 < (char *)++v9 ) break; } } } } EditorUI::selectObjects(this, v7, 0); } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source