// // EditorUI::startFreeMoveTouch from 0xbd4f9c to 0xbd5230 (660 bytes) // // 2 xrefs: // > EditorUI::finishTouchDelay @ 0xbd53bc // > @ 0x85660 // // 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 13:03:39 +0000 // __int64 __fastcall EditorUI::startFreeMoveTouch(EditorUI *this) { const cocos2d::CCPoint *v2; // x25 __int64 v3; // x0 cocos2d::CCDirector *v4; // x0 __int64 v5; // x0 cocos2d::CCArray *v6; // x0 __int64 v7; // x21 unsigned int v8; // w19 cocos2d::CCArray *v9; // x21 __int64 v10; // x0 __int64 v11; // x1 __int64 v12; // x0 cocos2d::CCObject *UndoObject; // x0 cocos2d::CCObject *v15; // x19 cocos2d::CCObject *v16; // x1 __int64 v17; // [xsp+58h] [xbp+58h] BYREF float v18; // [xsp+60h] [xbp+60h] BYREF v2 = (EditorUI *)((char *)this + 1448); v3 = *((_QWORD *)this + 180); *((_BYTE *)this + 866) = 0; *((_QWORD *)this + 188) = 0; v4 = (cocos2d::CCDirector *)cocos2d::CCNode::convertToNodeSpace(&v17, *(cocos2d::CCNode **)(v3 + 3920), v2); v5 = cocos2d::CCDirector::sharedDirector(v4); if ( *(_BYTE *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 192LL))(v5) + 130) && (*((_QWORD *)this + 187) || (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 112))) ) { EditorUI::onDuplicate(this, nullptr); *((_BYTE *)this + 689) = 1; } v6 = *((cocos2d::CCArray **)this + 112); *((_BYTE *)this + 1514) = 0; if ( (unsigned int)cocos2d::CCArray::count(v6) ) { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v18, (const cocos2d::CCPoint *)&v17); EditorUI::findSnapObject((GameObject **)this, (const cocos2d::CCPoint *)&v18, 0.0); v11 = *((_QWORD *)this + 188); } else { if ( *((_QWORD *)this + 187) ) { v7 = *((_QWORD *)this + 180); v8 = 0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v18, (const cocos2d::CCPoint *)&v17); v9 = LevelEditorLayer::objectsAtPosition(v7, &v18); while ( v8 < (unsigned int)cocos2d::CCArray::count(v9) ) { v10 = cocos2d::CCArray::objectAtIndex(v9, v8); if ( *(_DWORD *)(v10 + 916) == *(_DWORD *)(*((_QWORD *)this + 187) + 916LL) ) { *((_QWORD *)this + 188) = v10; v11 = v10; goto LABEL_21; } ++v8; } v11 = *((_QWORD *)this + 188); if ( v11 ) goto LABEL_11; if ( *((_QWORD *)this + 187) && *((_BYTE *)this + 860) ) { if ( !*((_BYTE *)this + 1514) ) goto LABEL_12; LABEL_26: if ( (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 112)) ) { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v18, (const cocos2d::CCPoint *)&v17); EditorUI::findSnapObject((GameObject **)this, (const cocos2d::CCPoint *)&v18, 0.0); v11 = *((_QWORD *)this + 188); if ( !v11 ) goto LABEL_12; } else { v11 = *((_QWORD *)this + 188); if ( !v11 ) goto LABEL_12; } goto LABEL_11; } } *((_BYTE *)this + 690) = 1; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v18, v2); EditorUI::clickOnPosition((__int64)this, &v18); if ( *((_BYTE *)this + 866) ) { v11 = *((_QWORD *)this + 187); *((_QWORD *)this + 188) = v11; } else { v11 = *((_QWORD *)this + 188); } } if ( !*((_BYTE *)this + 1514) ) { LABEL_21: if ( !v11 ) goto LABEL_12; goto LABEL_11; } if ( !v11 ) goto LABEL_26; LABEL_11: *((_BYTE *)this + 865) = 1; v12 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v11 + 192LL))(v11); cocos2d::CCPoint::operator=((char *)this + 888, v12); LABEL_12: cocos2d::CCPoint::operator=((char *)this + 1480, &v17); if ( !*((_BYTE *)this + 689) ) { UndoObject = (cocos2d::CCObject *)EditorUI::createUndoObject((__int64)this, 5, 1u); v15 = UndoObject; v16 = *((cocos2d::CCObject **)this + 85); if ( UndoObject != v16 ) { if ( UndoObject ) { cocos2d::CCObject::retain(UndoObject); v16 = *((cocos2d::CCObject **)this + 85); } if ( v16 ) cocos2d::CCObject::release(v16); *((_QWORD *)this + 85) = v15; } } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source