// // EditorUI::findObject from 0x1001a680c to 0x1001a6ae0 (724 bytes) // // 2 xrefs: // > EditorUI::handleEditorAction @ 0x100162a18 // > FindObjectPopup::runFind @ 0x1004ddb78 // // 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 11:00:03 +0000 // void __fastcall EditorUI::findObject(__int64 a1, __int64 a2, int a3, int a4) { __int64 v8; // x0 __int64 v9; // x0 __int64 v10; // x0 __int64 v11; // x0 __n128 GameVariable; // q0 int v13; // w23 __int64 Group; // x0 unsigned int *v15; // x9 __int64 v16; // x8 __int64 *v17; // x24 unsigned __int64 v18; // x25 __int64 v19; // x1 unsigned __int64 v20; // x9 __int64 v21; // x13 int v22; // w12 char *v23; // x14 int v24; // w9 __int64 v25; // x22 _QWORD *v26; // x8 unsigned __int64 v27; // x23 __int64 MainObject; // x0 char *v29; // x8 __int64 v30; // x20 int v31; // w8 __int64 v32; // [xsp+0h] [xbp-80h] BYREF std::string __p; // [xsp+8h] [xbp-78h] BYREF __int64 v34; // [xsp+20h] [xbp-60h] BYREF void *v35; // [xsp+28h] [xbp-58h] BYREF char *v36; // [xsp+30h] [xbp-50h] __int64 v37; // [xsp+38h] [xbp-48h] v8 = GameManager::sharedState(a1); v9 = GameManager::setIntGameVariable(v8, "0230", a2); v10 = GameManager::sharedState(v9); GameVariable = GameManager::getGameVariable(v10, "0231"); v13 = v11; v35 = nullptr; v36 = nullptr; v37 = 0; if ( a3 ) { v11 = sub_1003FB424(*(_QWORD *)(a1 + 1440), a2, GameVariable); v34 = v11; if ( v11 ) { if ( !v13 || (v11 = sub_1001A6778(v11, v11), (_DWORD)v11) ) sub_100011A50((__int64)&v35, &v34); } } else if ( (int)a2 >= 1 ) { Group = GJBaseGameLayer::getGroup(*(_QWORD *)(a1 + 1440), a2); if ( Group ) { v15 = *(unsigned int **)(Group + 56); v16 = *v15; if ( (_DWORD)v16 ) { v17 = *((__int64 **)v15 + 2); v18 = (unsigned __int64)&v17[v16 - 1]; do { v19 = *v17; if ( !*v17 ) break; v34 = *v17; if ( v13 ) { LODWORD(Group) = sub_1001A6778(Group, v19); if ( !(_DWORD)Group ) continue; } sub_100011A50((__int64)&v35, &v34); ++v17; } while ( (unsigned __int64)v17 <= v18 ); } } v11 = sub_1001A6D84(); } if ( v35 == v36 ) { sub_100009900(&__p, "No Match."); EditorUI::showTextAlert(a1, &__p, 0, 1, 0); if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__p.__r_.__value_.__l.__data_); } else if ( a4 ) { v20 = (unsigned __int64)(v36 - (_BYTE *)v35) >> 3; if ( (int)v20 < 1 ) { LABEL_22: if ( a4 <= 0 ) v24 = v20 - 1; else v24 = 0; } else { v21 = ((unsigned __int64)(v36 - (_BYTE *)v35) >> 3) & 0x7FFFFFFF; v22 = a4 + v20; v23 = (char *)v35; while ( *(_DWORD *)(*(_QWORD *)v23 + 916LL) != *(_DWORD *)(a1 + 1432) ) { ++v22; v23 += 8; if ( !--v21 ) goto LABEL_22; } v24 = v22 % (int)v20; } v30 = *((_QWORD *)v35 + v24); *(_DWORD *)(a1 + 1432) = *(_DWORD *)(v30 + 916); sub_1001A6B38(a1, v30); sub_100476890(a1, v30); } else { v25 = sub_1002E736C(v11); v26 = v35; if ( v36 != v35 ) { v27 = 0; do { sub_1002E74E0(v25, v26[v27++]); v26 = v35; } while ( v27 < (v36 - (_BYTE *)v35) >> 3 ); } if ( (a3 & 1) != 0 ) goto LABEL_40; MainObject = GJBaseGameLayer::tryGetMainObject(*(_QWORD *)(a1 + 1440)); if ( !MainObject ) goto LABEL_40; v29 = (char *)v35; if ( v35 != v36 ) { while ( *(_QWORD *)v29 != MainObject ) { v29 += 8; if ( v29 == v36 ) goto LABEL_40; } } if ( v29 == v36 ) LABEL_40: v31 = 0; else v31 = *(_DWORD *)(MainObject + 916); *(_DWORD *)(a1 + 1432) = v31; EditorUI::getGroupCenter(v25, 0, (float *)&v34); EditorUI::processSelectObjects(a1, v25); sub_1000262F4(&v32, (double *)&v34); EditorUI::centerCameraOnPoint(a1, &v32); } if ( v35 ) { v36 = (char *)v35; operator delete(v35); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source