// // EditorUI::startFreeMoveTouch from 0x6efe50 to 0x6efff4 (420 bytes) // // 1 xrefs: // > EditorUI::finishTouchDelay @ 0x6f00d0 // // 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:57:34 +0000 // cocos2d::CCObject *__fastcall EditorUI::startFreeMoveTouch(EditorUI *this) { const cocos2d::CCPoint *v1; // r9 cocos2d::CCDirector *v3; // r0 int v4; // r0 cocos2d::CCArray *v5; // r0 unsigned int v6; // r6 int v7; // r10 cocos2d::CCArray *v8; // r10 int v9; // r0 float v10; // r2 float v11; // r3 int v12; // r0 int v13; // r0 cocos2d::CCObject *result; // r0 cocos2d::CCObject *v15; // r5 _BYTE v16[8]; // [sp+4h] [bp-14h] BYREF float v17[2]; // [sp+Ch] [bp-Ch] BYREF v1 = (EditorUI *)((char *)this + 948); *((_BYTE *)this + 642) = 0; *((_DWORD *)this + 250) = 0; v3 = (cocos2d::CCDirector *)cocos2d::CCNode::convertToNodeSpace( (cocos2d::CCNode *)v16, *(const cocos2d::CCPoint **)(*((_DWORD *)this + 236) + 2436)); v4 = cocos2d::CCDirector::sharedDirector(v3); if ( *(_BYTE *)((*(int (__fastcall **)(int))(*(_DWORD *)v4 + 96))(v4) + 90) && (*((_DWORD *)this + 249) || cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 167))) ) { EditorUI::onDuplicate(this, nullptr); *((_BYTE *)this + 509) = 1; } v5 = *((cocos2d::CCArray **)this + 167); *((_BYTE *)this + 1006) = 0; v6 = cocos2d::CCArray::count(v5); if ( v6 ) { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, (const cocos2d::CCPoint *)v16); EditorUI::findSnapObject((cocos2d::CCArray **)this, (const cocos2d::CCPoint *)v17, 0.0); } else { if ( !*((_DWORD *)this + 249) ) goto LABEL_15; v7 = *((_DWORD *)this + 236); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, (const cocos2d::CCPoint *)v16); v8 = LevelEditorLayer::objectsAtPosition(v7, v17); while ( v6 < cocos2d::CCArray::count(v8) ) { v9 = cocos2d::CCArray::objectAtIndex(v8, v6); if ( *(_DWORD *)(v9 + 780) == *(_DWORD *)(*((_DWORD *)this + 249) + 780) ) { *((_DWORD *)this + 250) = v9; break; } ++v6; } if ( !*((_DWORD *)this + 250) && (!*((_DWORD *)this + 249) || !*((_BYTE *)this + 636)) ) { LABEL_15: *((_BYTE *)this + 510) = 1; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, v1); EditorUI::clickOnPosition((int)this, COERCE_FLOAT(v17), v10, v11); if ( *((_BYTE *)this + 642) ) *((_DWORD *)this + 250) = *((_DWORD *)this + 249); } } if ( *((_BYTE *)this + 1006) && !*((_DWORD *)this + 250) && cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 167)) ) { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, (const cocos2d::CCPoint *)v16); EditorUI::findSnapObject((cocos2d::CCArray **)this, (const cocos2d::CCPoint *)v17, 0.0); } v12 = *((_DWORD *)this + 250); if ( v12 ) { *((_BYTE *)this + 641) = 1; v13 = (*(int (__fastcall **)(int))(*(_DWORD *)v12 + 96))(v12); cocos2d::CCPoint::operator=((char *)this + 660, v13); } result = (cocos2d::CCObject *)cocos2d::CCPoint::operator=((char *)this + 980, v16); if ( !*((_BYTE *)this + 509) ) { result = EditorUI::createUndoObject((int)this, 5, 1); v15 = result; if ( *((cocos2d::CCObject **)this + 126) != result ) { if ( result ) cocos2d::CCObject::retain(result); result = *((cocos2d::CCObject **)this + 126); if ( result ) result = (cocos2d::CCObject *)cocos2d::CCObject::release(result); *((_DWORD *)this + 126) = v15; } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source