// // EditorUI::findObject from 0x6f4bd4 to 0x6f4e12 (574 bytes) // // 2 xrefs: // > EditorUI::handleEditorAction @ 0x6f222e // > FindObjectPopup::runFind @ 0x77b4a6 // // 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:38 +0000 // char **__fastcall EditorUI::findObject(LevelEditorLayer **this, const char *a2, int a3, int a4) { GameManager *v8; // r0 int v9; // r3 GameManager *v10; // r0 GameManager *v11; // r0 int GameVariable; // r0 int v13; // r8 cocos2d::CCObject *Group; // r0 _DWORD *v15; // r2 GameManager ***v16; // r5 GameManager **v17; // r1 GameManager **v18; // t1 cocos2d::CCArray *v19; // r7 unsigned int i; // r5 LevelEditorLayer *v21; // r3 int MainObject; // r0 int *v23; // r3 int v24; // r1 int v25; // r0 int v26; // r1 int v27; // r1 GameObject *v28; // r5 float v29; // r2 float v30; // r3 GameManager ***v32; // [sp+8h] [bp-3Ch] char v33[4]; // [sp+10h] [bp-34h] BYREF _BYTE v34[8]; // [sp+14h] [bp-30h] BYREF float v35[2]; // [sp+1Ch] [bp-28h] BYREF char *v36; // [sp+24h] [bp-20h] BYREF int *v37; // [sp+28h] [bp-1Ch] int *v38; // [sp+2Ch] [bp-18h] _BYTE v39[9]; // [sp+30h] [bp-14h] BYREF __int16 v40; // [sp+39h] [bp-Bh] char v41; // [sp+3Bh] [bp-9h] v8 = (GameManager *)GameManager::sharedState((GameManager *)this); v10 = (GameManager *)GameManager::setIntGameVariable(v8, "0230", a2, v9); v11 = (GameManager *)GameManager::sharedState(v10); GameVariable = GameManager::getGameVariable(v11, "0231"); v36 = nullptr; v37 = nullptr; v38 = nullptr; v13 = GameVariable; if ( a3 ) { GameVariable = LevelEditorLayer::findGameObject(*(this + 236), (int)a2); LODWORD(v35[0]) = GameVariable; if ( GameVariable ) { if ( !v13 || (GameVariable = EditorUI::findPassesFilters((EditorUI *)this, (GameManager **)GameVariable)) != 0 ) std::vector::__push_back_slow_path((int)&v36, v35); } } else if ( (int)a2 > 0 ) { Group = GJBaseGameLayer::getGroup(*(this + 236), (int)a2); if ( Group ) { v15 = *((_DWORD **)Group + 13); if ( *v15 ) { v16 = (GameManager ***)v15[3]; v32 = &(&v16[*v15])[-1]; while ( v16 <= v32 ) { v18 = *v16++; v17 = v18; if ( !v18 ) break; LODWORD(v35[0]) = v17; if ( !v13 || EditorUI::findPassesFilters((EditorUI *)this, v17) ) { if ( v37 == v38 ) { std::vector::__push_back_slow_path((int)&v36, v35); } else { if ( v37 ) *v37 = LODWORD(v35[0]); ++v37; } } } } } v33[0] = 0; GameVariable = sub_6F3EF8((int)v36, v37, (int)v33); } if ( v36 == (char *)v37 ) { v41 = 0; v39[0] = 18; qmemcpy(&v39[1], "No Match", 8); v40 = (unsigned __int8)aNoMatch[8]; EditorUI::showTextAlert((int)this, v39, 0, 1, 0); } else if ( a4 ) { v25 = 0; v26 = ((char *)v37 - v36) >> 2; while ( v25 < v26 ) { if ( *(LevelEditorLayer **)(*(_DWORD *)&v36[4 * v25] + 780) == *(this + 234) ) { v27 = (v25 + a4 + v26) % v26; goto LABEL_36; } ++v25; } if ( a4 > 0 ) v27 = 0; else v27 = v26 - 1; LABEL_36: v28 = *(GameObject **)&v36[4 * v27]; *(this + 234) = *((LevelEditorLayer **)v28 + 195); EditorUI::processSelectObject((int)this, v28); EditorUI::centerCameraOnObject((EditorUI *)this, v28, v29, v30); } else { v19 = (cocos2d::CCArray *)cocos2d::CCArray::create((cocos2d::CCArray *)GameVariable); for ( i = 0; i < ((char *)v37 - v36) >> 2; ++i ) cocos2d::CCArray::addObject(v19, *(cocos2d::CCObject **)&v36[4 * i]); if ( !a3 ) { MainObject = GJBaseGameLayer::tryGetMainObject((cocos2d::CCDictionary **)*(this + 236), (int)a2); if ( MainObject ) { v23 = (int *)v36; while ( v23 != v37 ) { v24 = *v23++; if ( v24 == MainObject ) { v21 = *(LevelEditorLayer **)(MainObject + 780); goto LABEL_28; } } } } v21 = nullptr; LABEL_28: *(this + 234) = v21; EditorUI::getGroupCenter((EditorUI *)v34, (cocos2d::CCArray *)this, v19); EditorUI::processSelectObjects((EditorUI *)this, v19); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v35, (const cocos2d::CCPoint *)v34); EditorUI::centerCameraOnPoint((cocos2d::CCDirector *)this, v35); } return std::__vector_base::~__vector_base(&v36); }
GD Web Decomp Icon

GD Web Decomp

Raw Source