// // LevelEditorLayer::tryUpdateSpeedObject from 0x7900c4 to 0x790214 (336 bytes) // // 4 xrefs: // > LevelEditorLayer::removeSpecial @ 0x79053c // > LevelEditorLayer::addSpecial @ 0x7a07ac // > EditorUI::onToggleGuide @ 0x7c189c // > @ 0x91150 // // 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:53:28 +0000 // __int64 __fastcall LevelEditorLayer::tryUpdateSpeedObject( cocos2d::CCArray ***this, EffectGameObject *a2, unsigned __int8 a3) { int v5; // w20 _BOOL4 v6; // w22 int v7; // w20 __int64 result; // x0 int v9; // w20 _BOOL4 isSpeedObject; // w22 int v11; // w1 if ( *((unsigned __int8 *)a2 + 1768) <= (unsigned int)a3 ) { v9 = *((_DWORD *)a2 + 257); isSpeedObject = GameObject::isSpeedObject(a2); if ( v9 != 111 ) { if ( v9 <= 111 ) { if ( v9 != 13 && v9 != 47 ) { LABEL_15: v7 = 1; if ( !isSpeedObject ) goto LABEL_21; LABEL_16: DrawGridLayer::removeFromSpeedObjects(*(this + 1786), a2); return 1; } } else if ( v9 != 1331 && v9 != 1933 && v9 != 660 ) { goto LABEL_15; } } v7 = 1; DrawGridLayer::removeFromGuides(*(this + 1786), a2); if ( !isSpeedObject ) goto LABEL_21; goto LABEL_16; } v5 = *((_DWORD *)a2 + 257); v6 = GameObject::isSpeedObject(a2); if ( v5 != 111 ) { if ( v5 <= 111 ) { if ( v5 != 13 && v5 != 47 ) goto LABEL_7; } else if ( v5 != 1331 && v5 != 1933 && v5 != 660 ) { LABEL_7: v7 = 0; goto LABEL_8; } } v7 = 0; DrawGridLayer::addToGuides(*(this + 1786), a2); LABEL_8: if ( v6 ) { LABEL_9: DrawGridLayer::addToSpeedObjects(*(this + 1786), a2); return 1; } LABEL_21: v11 = (*(unsigned __int8 (__fastcall **)(EffectGameObject *))(*(_QWORD *)a2 + 1680LL))(a2); result = 0; if ( v11 && *((_BYTE *)a2 + 1780) ) { if ( !v7 ) goto LABEL_9; goto LABEL_16; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source