// // EditorUI::createNewKeyframeAnim from 0x1401b90b0 to 0x1401b9353 (675 bytes) // // 4 xrefs: // > SetGroupIDLayer::onAnim @ 0x140591cf5 // > @ 0x1408a1fdc // > @ 0x1408a2040 // > @ 0x14091a36c // // 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 11:27:59 +0000 // unsigned int __fastcall EditorUI::createNewKeyframeAnim(__int64 a1) { unsigned int result; // eax cocos2d::CCArray *v3; // rax struct cocos2d::CCObject *v4; // rdx cocos2d::CCArray *v5; // rdi __int64 v6; // rcx __int64 v7; // rax unsigned int *v8; // r12 __int64 v9; // rcx _QWORD *v10; // r12 _QWORD *v11; // rdi __int64 v12; // r15 struct cocos2d::CCObject *v13; // rax unsigned int *v14; // r14 __int64 v15; // rax unsigned __int64 v16; // r14 unsigned __int64 v17; // r13 int v18; // ebx const struct cocos2d::CCPoint *v19; // rax const struct cocos2d::CCPoint *v20; // rax struct cocos2d::CCObject *Object; // rsi __int64 v22; // rbx __int64 v23; // rcx struct cocos2d::CCObject *v24; // rdi _QWORD *v25; // [rsp+70h] [rbp+8h] cocos2d::CCArray *v26; // [rsp+78h] [rbp+10h] _QWORD *v27; // [rsp+80h] [rbp+18h] char v28; // [rsp+88h] [rbp+20h] BYREF if ( *(_QWORD *)(a1 + 1568) || (result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 944))) != 0 ) { v3 = (cocos2d::CCArray *)cocos2d::CCArray::create(a1); v4 = *(struct cocos2d::CCObject **)(a1 + 1568); v5 = v3; if ( v4 ) cocos2d::CCArray::addObject(v3, v4); else cocos2d::CCArray::addObjectsFromArray(v3, *(struct cocos2d::CCArray **)(a1 + 944)); EditorUI::deselectAll(a1); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1512) + 1072LL))(*(_QWORD *)(a1 + 1512)); v7 = cocos2d::CCArray::create(v6); v26 = (cocos2d::CCArray *)v7; if ( v5 ) { v8 = *((unsigned int **)v5 + 7); v9 = *v8; if ( (_DWORD)v9 ) { v10 = *((_QWORD **)v8 + 2); v25 = v10; v11 = &v10[v9 - 1]; v27 = v11; if ( v10 <= v11 ) { do { v12 = *v10; if ( !*v10 ) break; if ( *(_BYTE *)(v12 + 1178) ) { v13 = cocos2d::CCDictionary::objectForKey( *(cocos2d::CCDictionary **)(*(_QWORD *)(a1 + 1512) + 3976LL), *(unsigned int *)(v12 + 924)); if ( v13 ) { v14 = *((unsigned int **)v13 + 7); v15 = *v14; if ( (_DWORD)v15 ) { v16 = *((_QWORD *)v14 + 2); v17 = v16 + 8 * (v15 - 1); if ( v16 <= v17 ) { do { if ( !*(_QWORD *)v16 ) break; v18 = *(_DWORD *)(*(_QWORD *)v16 + 56LL); v19 = (const struct cocos2d::CCPoint *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v12 + 200LL))(v12); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v28, v19); Object = (struct cocos2d::CCObject *)EditorUI::createObject(a1, 0xBD8u, v20); LevelEditorLayer::removeSpecial(*(_QWORD *)(a1 + 1512), Object); cocos2d::CCArray::addObject(v26, Object); if ( v18 < 0 ) v18 = 0; if ( v18 > 9999 ) v18 = 9999; *((_DWORD *)Object + 370) = v18; KeyframeGameObject::updateShadowObjects(Object, *(_QWORD *)(a1 + 1512), a1); v22 = *(_QWORD *)(a1 + 1512); v24 = (struct cocos2d::CCObject *)cocos2d::CCArray::create(v23); (*(void (__fastcall **)(struct cocos2d::CCObject *, _QWORD))(*(_QWORD *)v24 + 64LL))( v24, *(unsigned int *)(v22 + 13880)); cocos2d::CCDictionary::setObject( *(cocos2d::CCDictionary **)(v22 + 13872), v24, *(int *)(v22 + 13880)); ++*(_DWORD *)(v22 + 13880); *((_DWORD *)Object + 468) = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v24 + 56LL))(v24); *((_DWORD *)Object + 469) = 0; LevelEditorLayer::addSpecial(*(_QWORD *)(a1 + 1512), Object); v16 += 8LL; } while ( v16 <= v17 ); v10 = v25; v11 = v27; } } } } v25 = ++v10; } while ( v10 <= v11 ); v7 = (__int64)v26; } } } return EditorUI::selectObjects(a1, v7, 0); } return result; }