//
// EditorUI::recreateButtonTabs from 0xbe1ff0 to 0xbe2168 (376 bytes)
//
// 2 xrefs:
// > EditorPauseLayer::onResume @ 0x8b668c
// > ??> @ 0xcf3e8
//
// 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 13:03:46 +0000
//
cocos2d::CCArray **__fastcall EditorUI::recreateButtonTabs(EditorUI *this)
{
unsigned int v2; // w19
GameManager *v3; // x0
GameManager *IntGameVariable; // x0
int v5; // w21
GameManager *v6; // x0
int i; // w22
cocos2d::CCArray **v8; // x0
GameManager *v9; // x0
bool v10; // cf
unsigned int v11; // w1
GameManager *v12; // x0
GameManager *GameVariable; // x0
int v14; // w19
cocos2d::CCArray **result; // x0
GameManager *v16; // x0
__int64 v17; // x0
cocos2d::CCObject *v18; // x0
cocos2d::CCObject *v19; // x0
__int64 v20; // x0
cocos2d::CCObject *v21; // x0
*((_BYTE *)this + 1591) = 0;
v2 = 0;
v3 = (GameManager *)GameManager::sharedState(this);
IntGameVariable = (GameManager *)GameManager::getIntGameVariable(v3, "0049");
v5 = (int)IntGameVariable;
v6 = (GameManager *)GameManager::sharedState(IntGameVariable);
for ( i = GameManager::getIntGameVariable(v6, "0050"); ; EditButtonBar::reloadItems(v8, v5, i) )
{
v9 = (GameManager *)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 149));
v10 = v2 >= (unsigned int)v9;
v11 = v2++;
if ( v10 )
break;
v8 = (cocos2d::CCArray **)cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 149), v11);
}
v12 = (GameManager *)GameManager::sharedState(v9);
GameVariable = (GameManager *)(unsigned __int8)GameManager::getGameVariable(v12, "0191");
v14 = (unsigned __int8)GameVariable ^ 1;
if ( !*((_QWORD *)this + 199) )
{
if ( !v14 )
{
result = *((cocos2d::CCArray ***)this + 104);
if ( !result )
return result;
return EditButtonBar::reloadItems(result, v5, i);
}
goto LABEL_11;
}
v16 = (GameManager *)GameManager::sharedState(GameVariable);
if ( *((unsigned __int8 *)this + 1604) != (unsigned __int8)GameManager::getGameVariable(v16, "0247") || !v14 )
{
v17 = *((_QWORD *)this + 199);
if ( v17 )
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v17 + 520LL))(v17);
*((_QWORD *)this + 199) = 0;
}
LABEL_11:
v18 = *((cocos2d::CCObject **)this + 201);
if ( v18 )
cocos2d::CCObject::release(v18);
v19 = *((cocos2d::CCObject **)this + 202);
*((_QWORD *)this + 201) = 0;
if ( v19 )
cocos2d::CCObject::release(v19);
v20 = *((_QWORD *)this + 104);
*((_QWORD *)this + 202) = 0;
*((_QWORD *)this + 203) = 0;
if ( v20 )
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v20 + 520LL))(v20);
*((_QWORD *)this + 104) = 0;
}
v21 = *((cocos2d::CCObject **)this + 102);
if ( v21 )
cocos2d::CCObject::release(v21);
*((_QWORD *)this + 102) = 0;
EditorUI::createMoveMenu(this);
EditorUI::updateEditMenu(this);
return (cocos2d::CCArray **)EditorUI::updateButtons(this);
}
result = *((cocos2d::CCArray ***)this + 104);
if ( result )
return EditButtonBar::reloadItems(result, v5, i);
return result;
}