// // EditorUI::showUI from 0x7ce0d8 to 0x7ce408 (816 bytes) // // 9 xrefs: // > EditorUI::resetUI @ 0x7ce4e0 // > EditorUI::onHideUIBtn @ 0x7ce600 // > EditorUI::onShowUIBtn @ 0x7ce66c // > EditorUI::onPlaytest @ 0x7ce73c // > EditorUI::playtestStopped @ 0x7ce89c // > EditorUI::onStopPlaytest @ 0x7ce9b4 // > EditorUI::onPause @ 0x7ceba0 // > EditorUI::handleEditorAction @ 0xbd7830 // > @ 0x9e188 // // 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:54:13 +0000 // __int64 __fastcall EditorUI::showUI(cocos2d::CCArray **this, unsigned __int8 a2) { unsigned int v3; // w21 GameManager *v4; // x0 unsigned int v5; // w19 __int64 v6; // x0 bool v7; // cf unsigned int v8; // w1 __int64 v9; // x0 _BOOL8 v10; // x1 __int64 v11; // x0 _BOOL8 v12; // x1 __int64 v13; // x0 _BOOL8 v14; // x1 void (*v15)(void); // x2 void (*v16)(void); // x2 __int64 v17; // x0 __int64 v18; // x0 __int64 v19; // x0 __int64 v20; // x0 __int64 v21; // x0 __int64 result; // x0 __int64 (*v23)(void); // x2 __int64 **i; // x19 __int64 v25; // x0 __int64 v26; // x0 __int64 v27; // x0 GameManager *v28; // x0 v3 = a2; v4 = (GameManager *)*((unsigned __int8 *)this + 1589); if ( (_DWORD)v4 ) { v3 = 0; } else { v28 = (GameManager *)GameManager::sharedState(v4); if ( !(unsigned __int8)GameManager::getGameVariable(v28, "0046") ) v3 = 1; } v5 = 0; while ( 1 ) { v7 = v5 >= (unsigned int)cocos2d::CCArray::count(*(this + 80)); v8 = v5++; if ( v7 ) break; v6 = cocos2d::CCArray::objectAtIndex(*(this + 80), v8); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v6 + 344LL))(v6, v3); } if ( !*((_BYTE *)this + 867) ) { (*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)*(this + 132) + 344LL))(*(this + 132), 0); (*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)*(this + 131) + 344LL))(*(this + 131), 0); (*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)*(this + 133) + 344LL))(*(this + 133), 0); } v9 = (__int64)*(this + 103); if ( v9 ) { v10 = 0; if ( v3 ) v10 = *((_DWORD *)this + 359) == 2; (*(void (__fastcall **)(__int64, _BOOL8))(*(_QWORD *)v9 + 344LL))(v9, v10); } v11 = (__int64)*(this + 104); if ( v11 ) { v12 = 0; if ( v3 && *((_DWORD *)this + 359) == 3 ) v12 = *(this + 199) == nullptr; (*(void (__fastcall **)(__int64, _BOOL8))(*(_QWORD *)v11 + 344LL))(v11, v12); } v13 = (__int64)*(this + 199); if ( v13 ) { v14 = 0; if ( v3 ) v14 = *((_DWORD *)this + 359) == 3; (*(void (__fastcall **)(__int64, _BOOL8))(*(_QWORD *)v13 + 344LL))(v13, v14); } v15 = *(void (**)(void))(*(_QWORD *)*(this + 113) + 344LL); if ( v3 ) { v15(); v16 = *(void (**)(void))(*(_QWORD *)*(this + 173) + 344LL); if ( *((_DWORD *)this + 359) == 4 ) { v16(); if ( *((_BYTE *)this + 1589) ) { LABEL_22: v17 = (__int64)*(this + 125); if ( v17 ) (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v17 + 344LL))(v17, 0); v18 = (__int64)*(this + 126); if ( v18 ) (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v18 + 344LL))(v18, 0); v19 = (__int64)*(this + 127); if ( v19 ) (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v19 + 344LL))(v19, 0); v20 = (__int64)*(this + 150); if ( v20 ) (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v20 + 344LL))(v20, 0); v21 = (__int64)*(this + 94); if ( v21 ) (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v21 + 344LL))(v21, 0); if ( !v3 ) goto LABEL_33; goto LABEL_53; } LABEL_46: v25 = (__int64)*(this + 125); if ( v25 ) (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v25 + 344LL))(v25, 1); v26 = (__int64)*(this + 127); if ( v26 ) (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v26 + 344LL))(v26, 1); v27 = (__int64)*(this + 150); if ( v27 ) (*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v27 + 344LL))(v27, *((_DWORD *)this + 359) == 2); EditorUI::toggleObjectInfoLabel((EditorUI *)this); LABEL_53: EditorUI::updateGroupIDLabel((EditorUI *)this); LABEL_33: result = (__int64)*(this + 130); if ( !result ) goto LABEL_36; v23 = *(__int64 (**)(void))(*(_QWORD *)result + 344LL); goto LABEL_35; } } else { v15(); v16 = *(void (**)(void))(*(_QWORD *)*(this + 173) + 344LL); } v16(); if ( *((_BYTE *)this + 1589) ) goto LABEL_22; if ( v3 ) goto LABEL_46; result = (__int64)*(this + 130); if ( result ) { v23 = *(__int64 (**)(void))(*(_QWORD *)result + 344LL); LABEL_35: result = v23(); } LABEL_36: for ( i = (__int64 **)*(this + 74); i; i = (__int64 **)*i ) result = (*(__int64 (__fastcall **)(__int64 *, _QWORD))(*i[3] + 344))(i[3], v3); return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source