{"type": "func", "start": 6912228, "end": 6912336, "name": "EditorUI::reloadCustomItems", "pseudocode": "// \n// EditorUI::reloadCustomItems from 0x6978e4 to 0x697950 (108 bytes)\n// \n// 5 xrefs:\n// > EditorUI::onDeleteCustomItem @ 0x697990\n// > EditorUI::orderUpCustomItem @ 0x6979dc\n// > EditorUI::orderDownCustomItem @ 0x697a40\n// > EditorUI::onNewCustomItem @ 0x6c4b40\n// > <???> @ 0x824b8\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::reloadCustomItems(EditorUI *a1)\n{\n  GameManager *v2; // x0\n  GameManager *v3; // x0\n  int v4; // w0\n  EditButtonBar *m_customTabBar; // x20\n  cocos2d::CCArray *CustomItems; // x0\n  int IntGameVariable; // [xsp+20h] [xbp+20h]\n  int v8; // [xsp+28h] [xbp+28h]\n\n  v2 = GameManager::sharedState();\n  IntGameVariable = GameManager::getIntGameVariable(v2, \"0049\");\n  v3 = GameManager::sharedState();\n  v4 = GameManager::getIntGameVariable(v3, \"0050\");\n  m_customTabBar = a1->m_customTabBar;\n  v8 = v4;\n  CustomItems = EditorUI::createCustomItems(a1);\n  EditButtonBar::loadFromItems(m_customTabBar, CustomItems, IntGameVariable, v8, 1);\n}", "assembly": "; \n; EditorUI::reloadCustomItems from 0x6978e4 to 0x697950 (108 bytes)\n; \n; 5 xrefs:\n; > EditorUI::onDeleteCustomItem @ 0x697990\n; > EditorUI::orderUpCustomItem @ 0x6979dc\n; > EditorUI::orderDownCustomItem @ 0x697a40\n; > EditorUI::onNewCustomItem @ 0x6c4b40\n; > <???> @ 0x824b8\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,#var_30]!                                ; +0x0, 0x6978e4\nMOV             X29, SP                                                ; +0x4, 0x6978e8\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0x8, 0x6978ec\nMOV             X19, X0                                                ; +0xc, 0x6978f0\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x10, 0x6978f4\nADRL            X1, a0049; \"0049\"                                      ; +0x14, 0x6978f8\nBL              _ZN11GameManager18getIntGameVariableEPKc; GameManager::getIntGameVariable(char const*) ; +0x1c, 0x697900\nMOV             W2, W0                                                 ; +0x20, 0x697904\nSTR             X2, [X29,#0x30+var_10]                                 ; +0x24, 0x697908\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x28, 0x69790c\nADRL            X1, a0050; \"0050\"                                      ; +0x2c, 0x697910\nBL              _ZN11GameManager18getIntGameVariableEPKc; GameManager::getIntGameVariable(char const*) ; +0x34, 0x697918\nMOV             W3, W0                                                 ; +0x38, 0x69791c\nMOV             X0, X19; this                                          ; +0x3c, 0x697920\nLDR             X20, [X19,#0x258]                                      ; +0x40, 0x697924\nSTR             X3, [X29,#0x30+var_8]                                  ; +0x44, 0x697928\nBL              _ZN8EditorUI17createCustomItemsEv; EditorUI::createCustomItems(void) ; +0x48, 0x69792c\nMOV             X1, X0; cocos2d::CCArray *                             ; +0x4c, 0x697930\nLDR             X2, [X29,#0x30+var_10]; int                            ; +0x50, 0x697934\nMOV             X0, X20; this                                          ; +0x54, 0x697938\nLDR             X3, [X29,#0x30+var_8]; int                             ; +0x58, 0x69793c\nMOV             W4, #1; bool                                           ; +0x5c, 0x697940\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x60, 0x697944\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x64, 0x697948\nB               _ZN13EditButtonBar13loadFromItemsEPN7cocos2d7CCArrayEiib; EditButtonBar::loadFromItems(cocos2d::CCArray *,int,int,bool) ; +0x68, 0x69794c", "xrefs": ["EditorUI::onDeleteCustomItem @ 0x697990", "EditorUI::orderUpCustomItem @ 0x6979dc", "EditorUI::orderDownCustomItem @ 0x697a40", "EditorUI::onNewCustomItem @ 0x6c4b40", "<???> @ 0x824b8"], "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"}