{"type": "func", "start": 6846684, "end": 6846828, "name": "EditorUI::recreateButtonTabs", "pseudocode": "// \n// EditorUI::recreateButtonTabs from 0x6878dc to 0x68796c (144 bytes)\n// \n// 2 xrefs:\n// > EditorPauseLayer::onResume @ 0x78af10\n// > <???> @ 0x9d620\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid EditorUI::recreateButtonTabs(EditorUI *a1)\n{\n  unsigned int v2; // w19\n  GameManager *v3; // x0\n  int IntGameVariable; // w22\n  GameManager *v5; // x0\n  int i; // w21\n  EditButtonBar *v7; // x0\n  bool v8; // cf\n  unsigned int v9; // w1\n\n  a1->m_reloadItems = 0;\n  v2 = 0;\n  v3 = GameManager::sharedState();\n  IntGameVariable = GameManager::getIntGameVariable(v3, \"0049\");\n  v5 = GameManager::sharedState();\n  for ( i = GameManager::getIntGameVariable(v5, \"0050\"); ; EditButtonBar::reloadItems(v7, IntGameVariable, i) )\n  {\n    v8 = v2 >= (unsigned int)cocos2d::CCArray::count(a1->m_createButtonBars);\n    v9 = v2++;\n    if ( v8 )\n      break;\n    v7 = (EditButtonBar *)cocos2d::CCArray::objectAtIndex(a1->m_createButtonBars, v9);\n  }\n  EditButtonBar::reloadItems(a1->m_editButtonBar, IntGameVariable, i);\n}", "assembly": "; \n; EditorUI::recreateButtonTabs from 0x6878dc to 0x68796c (144 bytes)\n; \n; 2 xrefs:\n; > EditorPauseLayer::onResume @ 0x78af10\n; > <???> @ 0x9d620\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nSTP             X29, X30, [SP,#-0x30+var_s0]!                          ; +0x0, 0x6878dc\nMOV             X29, SP                                                ; +0x4, 0x6878e0\nSTP             X19, X20, [SP,#var_s10]                                ; +0x8, 0x6878e4\nSTP             X21, X22, [SP,#var_s20]                                ; +0xc, 0x6878e8\nSTRB            WZR, [X0,#0x599]                                       ; +0x10, 0x6878ec\nMOV             X20, X0                                                ; +0x14, 0x6878f0\nMOV             W19, #0                                                ; +0x18, 0x6878f4\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x1c, 0x6878f8\nADRL            X1, a0049; \"0049\"                                      ; +0x20, 0x6878fc\nBL              _ZN11GameManager18getIntGameVariableEPKc; GameManager::getIntGameVariable(char const*) ; +0x28, 0x687904\nMOV             W22, W0                                                ; +0x2c, 0x687908\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x30, 0x68790c\nADRL            X1, a0050; \"0050\"                                      ; +0x34, 0x687910\nBL              _ZN11GameManager18getIntGameVariableEPKc; GameManager::getIntGameVariable(char const*) ; +0x3c, 0x687918\nMOV             W21, W0                                                ; +0x40, 0x68791c\nB               loc_687938                                             ; +0x44, 0x687920\nLDR             X0, [X20,#0x438]; this                                 ; +0x48, 0x687924\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x4c, 0x687928\nMOV             W1, W22; int                                           ; +0x50, 0x68792c\nMOV             W2, W21; int                                           ; +0x54, 0x687930\nBL              _ZN13EditButtonBar11reloadItemsEii; EditButtonBar::reloadItems(int,int) ; +0x58, 0x687934\nLDR             X0, [X20,#0x438]; this                                 ; +0x5c, 0x687938\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x60, 0x68793c\nCMP             W19, W0                                                ; +0x64, 0x687940\nMOV             W1, W19; unsigned int                                  ; +0x68, 0x687944\nADD             W19, W19, #1                                           ; +0x6c, 0x687948\nB.CC            loc_687924                                             ; +0x70, 0x68794c\nLDR             X0, [X20,#0x2F8]; this                                 ; +0x74, 0x687950\nMOV             W1, W22; int                                           ; +0x78, 0x687954\nMOV             W2, W21; int                                           ; +0x7c, 0x687958\nLDP             X19, X20, [SP,#var_s10]                                ; +0x80, 0x68795c\nLDP             X21, X22, [SP,#var_s20]                                ; +0x84, 0x687960\nLDP             X29, X30, [SP+var_s0],#0x30                            ; +0x88, 0x687964\nB               _ZN13EditButtonBar11reloadItemsEii; EditButtonBar::reloadItems(int,int) ; +0x8c, 0x687968", "xrefs": ["EditorPauseLayer::onResume @ 0x78af10", "<???> @ 0x9d620"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}