//
// EditorUI::showUI from 0x489a84 to 0x489c78 (500 bytes)
//
// 8 xrefs:
// > EditorUI::resetUI @ 0x489cfa
// > EditorUI::onHideUIBtn @ 0x489dd4
// > EditorUI::onShowUIBtn @ 0x489e18
// > EditorUI::onPlaytest @ 0x489eec
// > EditorUI::playtestStopped @ 0x489f7e
// > EditorUI::onStopPlaytest @ 0x48a046
// > EditorUI::onPause @ 0x48a0b2
// > EditorUI::handleEditorAction @ 0x6f1f52
//
// 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:49:28 +0000
//
int __fastcall EditorUI::showUI(cocos2d::CCArray **this, int a2)
{
GameManager *v4; // r0
unsigned int i; // r6
int v6; // r0
int v7; // r6
int v8; // r0
_BOOL4 v9; // r1
int v10; // r0
_BOOL4 v11; // r1
int v12; // r0
_BOOL4 v13; // r1
_BOOL4 v14; // r1
_BOOL4 v15; // r1
int v16; // r1
int v17; // r0
int v18; // r0
int v19; // r0
int v20; // r0
int v21; // r0
int v22; // r0
int v23; // r0
int v24; // r0
int result; // r0
int **j; // r4
if ( *((_BYTE *)this + 1053) )
{
a2 = 0;
}
else
{
v4 = (GameManager *)GameManager::sharedState((GameManager *)this);
if ( !GameManager::getGameVariable(v4, "0046") )
a2 = 1;
}
for ( i = 0; i < cocos2d::CCArray::count(*(this + 117)); ++i )
{
v6 = cocos2d::CCArray::objectAtIndex(*(this + 117), i);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v6 + 172))(v6, a2);
}
v7 = *((unsigned __int8 *)this + 643);
if ( !*((_BYTE *)this + 643) )
{
(*(void (__fastcall **)(_DWORD, _DWORD))(*(_DWORD *)*(this + 187) + 172))(
*(this + 187),
*((unsigned __int8 *)this + 643));
(*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 186) + 172))(*(this + 186), v7);
(*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 188) + 172))(*(this + 188), v7);
}
v8 = (int)*(this + 153);
if ( v8 )
{
if ( a2 )
v9 = *(this + 235) == (cocos2d::CCArray *)((char *)&dword_0 + 2);
else
v9 = 0;
(*(void (__fastcall **)(int, _BOOL4))(*(_DWORD *)v8 + 172))(v8, v9);
}
v10 = (int)*(this + 154);
if ( v10 )
{
if ( a2 )
v11 = *(this + 235) == (cocos2d::CCArray *)((char *)&dword_0 + 3) && *(this + 264) == nullptr;
else
v11 = 0;
(*(void (__fastcall **)(int, _BOOL4))(*(_DWORD *)v10 + 172))(v10, v11);
}
v12 = (int)*(this + 264);
if ( v12 )
{
if ( a2 )
v13 = *(this + 235) == (cocos2d::CCArray *)((char *)&dword_0 + 3);
else
v13 = 0;
(*(void (__fastcall **)(int, _BOOL4))(*(_DWORD *)v12 + 172))(v12, v13);
}
if ( a2 )
v14 = *(this + 235) == (cocos2d::CCArray *)((char *)&dword_0 + 1);
else
v14 = 0;
(*(void (__fastcall **)(_DWORD, _BOOL4))(*(_DWORD *)*(this + 168) + 172))(*(this + 168), v14);
if ( a2 )
v15 = *(this + 235) == (cocos2d::CCArray *)&byte_4;
else
v15 = 0;
(*(void (__fastcall **)(_DWORD, _BOOL4))(*(_DWORD *)*(this + 228) + 172))(*(this + 228), v15);
if ( !*((_BYTE *)this + 1053) )
{
if ( !a2 )
goto LABEL_55;
v22 = (int)*(this + 180);
if ( v22 )
(*(void (__fastcall **)(int, int))(*(_DWORD *)v22 + 172))(v22, 1);
v23 = (int)*(this + 182);
if ( v23 )
(*(void (__fastcall **)(int, int))(*(_DWORD *)v23 + 172))(v23, 1);
v24 = (int)*(this + 205);
if ( v24 )
(*(void (__fastcall **)(int, bool))(*(_DWORD *)v24 + 172))(
v24,
*(this + 235) == (cocos2d::CCArray *)((char *)&dword_0 + 2));
EditorUI::toggleObjectInfoLabel((EditorUI *)this);
goto LABEL_54;
}
v17 = (int)*(this + 180);
if ( v17 )
(*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v17 + 172))(v17, 0);
v18 = (int)*(this + 181);
if ( v18 )
(*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v18 + 172))(v18, 0);
v19 = (int)*(this + 182);
if ( v19 )
(*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v19 + 172))(v19, 0);
v20 = (int)*(this + 205);
if ( v20 )
(*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v20 + 172))(v20, 0);
v21 = (int)*(this + 143);
if ( v21 )
(*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v21 + 172))(v21, 0);
if ( a2 )
LABEL_54:
EditorUI::updateGroupIDLabel((EditorUI *)this, v16);
LABEL_55:
result = (int)*(this + 185);
if ( result )
result = (*(int (__fastcall **)(int))(*(_DWORD *)result + 172))(result);
for ( j = (int **)*(this + 111); j; j = (int **)*j )
result = (*(int (__fastcall **)(int *, int))(*j[3] + 172))(j[3], a2);
return result;
}