// // LevelEditorLayer::processLoadedMoveActions from 0x1000f0920 to 0x1000f0c08 (744 bytes) // // 0 xrefs: // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void __fastcall LevelEditorLayer::processLoadedMoveActions(LevelEditorLayer *a1) { std::__hash_node_base>, void *> *>::__next_pointer next; // rax GameObject **begin; // rbx std::__vector_base::pointer end; // r12 GameObject *v4; // r15 std::__hash_node_base>, void *> *>::__next_pointer v5; // rdi std::__hash_node_base>, void *> *> *v6; // rbx std::__hash_node_base>, void *> *> **value; // rdi cocos2d::CCArray *Group; // rbx unsigned int v9; // r14d GameObject *v10; // r12 _QWORD *v11; // r15 unsigned int m_commandIndex; // eax char *v13; // r13 unsigned __int64 v14; // rax __int64 v15; // r14 _BYTE *v16; // rsi signed __int64 v17; // r13 __int64 v18; // r15 unsigned __int64 v19; // rcx __int64 v20; // rax unsigned __int64 v21; // r14 _QWORD *v22; // rbx void *v23; // r15 void *v24; // rdi cocos2d::CCPoint v25; // [rsp+8h] [rbp-88h] BYREF std::unordered_map> v26; // [rsp+10h] [rbp-80h] BYREF cocos2d::CCArray *v27; // [rsp+38h] [rbp-58h] void *__src; // [rsp+40h] [rbp-50h] char *v29; // [rsp+48h] [rbp-48h] std::__hash_node_base>, void *> *>::__next_pointer v30; // [rsp+50h] [rbp-40h] unsigned int v31; // [rsp+5Ch] [rbp-34h] LevelEditorLayer *v32; // [rsp+60h] [rbp-30h] memset(&v26, 0, 32); v26.__table_.__p3_.__value_ = 1.0; GJEffectManager::getLoadedMoveOffset(a1->m_effectManager, &v26); next = v26.__table_.__p1_.__value_.__next_; v32 = a1; if ( v26.__table_.__p1_.__value_.__next_ ) { do { v30 = next; Group = GJBaseGameLayer::getGroup(a1, (int)next[2].__next_); v9 = 0; v27 = Group; while ( v9 < (unsigned int)sub_100720070(Group) ) { v31 = v9; v10 = (GameObject *)sub_1007200C0(Group, v9); v11 = &v32->GJBaseGameLayer::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; m_commandIndex = v32->m_gameState.m_commandIndex; if ( v10->m_unk4C4 != m_commandIndex ) { v10->m_unk4C4 = m_commandIndex; v13 = (char *)v11[1756]; v14 = v11[1757]; if ( (unsigned __int64)v13 >= v14 ) { v16 = (_BYTE *)v11[1755]; v17 = v13 - v16; v18 = v17 >> 3; v19 = (v17 >> 3) + 1; if ( v19 > 0x1FFFFFFFFFFFFFFFLL ) sub_1000CACE0(); v20 = v14 - (_QWORD)v16; v21 = v20 >> 2; if ( v20 >> 2 <= v19 ) v21 = (v17 >> 3) + 1; if ( (unsigned __int64)v20 >= 0x7FFFFFFFFFFFFFF8LL ) v21 = 0x1FFFFFFFFFFFFFFFLL; __src = v16; if ( v21 ) { if ( v21 > 0x1FFFFFFFFFFFFFFFLL ) sub_100054850(); v22 = operator new(8 * v21); } else { v22 = nullptr; } v29 = (char *)&v22[v21]; v22[v18] = v10; v15 = (__int64)&v22[v18 + 1]; v23 = __src; memcpy(v22, __src, v17); v24 = v23; v11 = &v32->GJBaseGameLayer::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v32->m_loadedMoveObjects.__begin_ = (std::__vector_base::pointer)v22; v11[1756] = v15; v11[1757] = v29; if ( v24 ) operator delete(v24); } else { *(_QWORD *)v13 = v10; v15 = (__int64)(v13 + 8); } v11[1756] = v15; } GameObject::addToTempOffset(v10, *(double *)&v30[3].__next_, *(double *)&v30[4].__next_); ((void (__fastcall *)(GameObject *, __int64))v10->setObjectRectDirty)(v10, 1); v10->m_isDirty = 1; ((void (__fastcall *)(GameObject *, __int64))v10->setOrientedRectDirty)(v10, 1); ((void (__fastcall *)(LevelEditorLayer *, GameObject *))v32->updateObjectSection)(v32, v10); v9 = v31 + 1; Group = v27; } next = v30->__next_; a1 = v32; } while ( v30->__next_ ); } begin = a1->m_loadedMoveObjects.__begin_; end = a1->m_loadedMoveObjects.__end_; if ( begin != end ) { do { v4 = *begin; ((void (__fastcall *)(cocos2d::CCPoint *, GameObject *))(*begin)->getRealPosition)(&v25, *begin); GameObject::setLastPosition(v4, &v25); ((void (__fastcall *)(cocos2d::CCPoint *, GameObject *))v4->getRealPosition)(&v25, v4); ((void (__fastcall *)(GameObject *, cocos2d::CCPoint *))v4->setPosition)(v4, &v25); ++begin; } while ( begin != end ); a1 = v32; begin = v32->m_loadedMoveObjects.__begin_; } a1->m_loadedMoveObjects.__end_ = begin; v5 = v26.__table_.__p1_.__value_.__next_; if ( v26.__table_.__p1_.__value_.__next_ ) { do { v6 = v5->__next_; operator delete(v5); v5 = v6; } while ( v6 ); } value = v26.__table_.__bucket_list_.__ptr_.__value_; v26.__table_.__bucket_list_.__ptr_.__value_ = nullptr; if ( value ) operator delete(value); }
GD Web Decomp Icon

GD Web Decomp

Raw Source