//
// EditorUI::recreateButtonTabs from 0x6f7f1c to 0x6f8020 (260 bytes)
//
// 1 xrefs:
// > EditorPauseLayer::onResume @ 0x508e98
//
// 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:40 +0000
//
cocos2d::CCArray **__fastcall EditorUI::recreateButtonTabs(EditorUI *this)
{
unsigned int v1; // r5
GameManager *v3; // r0
GameManager *IntGameVariable; // r6
GameManager *v5; // r0
int i; // r7
GameManager *v7; // r0
cocos2d::CCArray **v8; // r0
GameManager *v9; // r0
GameManager *v10; // r0
int v11; // r5
GameManager *v12; // r0
int v13; // r0
cocos2d::CCObject *v14; // r0
cocos2d::CCObject *v15; // r0
int v16; // r0
cocos2d::CCObject *v17; // r0
cocos2d::CCArray **result; // r0
v1 = 0;
*((_BYTE *)this + 1055) = 0;
v3 = (GameManager *)GameManager::sharedState(this);
IntGameVariable = (GameManager *)GameManager::getIntGameVariable(v3, "0049");
v5 = (GameManager *)GameManager::sharedState(IntGameVariable);
for ( i = GameManager::getIntGameVariable(v5, "0050"); ; EditButtonBar::reloadItems(v8, (int)IntGameVariable, i) )
{
v7 = (GameManager *)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 204));
if ( v1 >= (unsigned int)v7 )
break;
v8 = (cocos2d::CCArray **)cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 204), v1++);
}
v9 = (GameManager *)GameManager::sharedState(v7);
v10 = (GameManager *)(GameManager::getGameVariable(v9, "0191") ^ 1);
v11 = (unsigned __int8)v10;
if ( *((_DWORD *)this + 264) )
{
v12 = (GameManager *)GameManager::sharedState(v10);
if ( *((unsigned __int8 *)this + 1064) == GameManager::getGameVariable(v12, "0247") && v11 )
{
LABEL_18:
result = *((cocos2d::CCArray ***)this + 154);
if ( result )
return EditButtonBar::reloadItems(result, (int)IntGameVariable, i);
return result;
}
v13 = *((_DWORD *)this + 264);
if ( v13 )
{
(*(void (__fastcall **)(int))(*(_DWORD *)v13 + 260))(v13);
*((_DWORD *)this + 264) = 0;
}
}
else if ( !(_BYTE)v10 )
{
goto LABEL_18;
}
v14 = *((cocos2d::CCObject **)this + 267);
if ( v14 )
cocos2d::CCObject::release(v14);
v15 = *((cocos2d::CCObject **)this + 268);
*((_DWORD *)this + 267) = 0;
if ( v15 )
cocos2d::CCObject::release(v15);
v16 = *((_DWORD *)this + 154);
*((_DWORD *)this + 268) = 0;
*((_DWORD *)this + 269) = 0;
if ( v16 )
{
(*(void (__fastcall **)(int))(*(_DWORD *)v16 + 260))(v16);
*((_DWORD *)this + 154) = 0;
}
v17 = *((cocos2d::CCObject **)this + 152);
if ( v17 )
cocos2d::CCObject::release(v17);
*((_DWORD *)this + 152) = 0;
EditorUI::createMoveMenu(this);
EditorUI::updateEditMenu(this);
return (cocos2d::CCArray **)EditorUI::updateButtons((cocos2d::CCArray **)this);
}