{"type": "func", "start": 6855740, "end": 6856184, "name": "EditorUI::updateCreateMenu", "pseudocode": "// \n// EditorUI::updateCreateMenu from 0x689c3c to 0x689df8 (444 bytes)\n// \n// 7 xrefs:\n// > EditorUI::onCreateButton @ 0x689e20\n// > EditorUI::resetUI @ 0x68a918\n// > EditorUI::orderUpCustomItem @ 0x6979f4\n// > EditorUI::orderDownCustomItem @ 0x697a58\n// > EditorUI::setupCreateMenu @ 0x6b3604\n// > EditorUI::clickOnPosition @ 0x6c17ac\n// > <???> @ 0x7b930\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::updateCreateMenu(EditorUI *a1, bool a2)\n{\n  _BOOL4 v3; // w23\n  EditButtonBar *m_createButtonBar; // x2\n  unsigned int v5; // w20\n  cocos2d::CCArray *m_createButtonArray; // x21\n  CreateMenuItem *v7; // x0\n  cocos2d::CCArray *m_customObjectButtonArray; // x21\n  unsigned int v9; // w20\n  CreateMenuItem *v10; // x0\n  bool v11; // cf\n  unsigned int v12; // w1\n  cocos2d::CCArray *v13; // x22\n  unsigned int v14; // w20\n  CreateMenuItem *v15; // x21\n  cocos2d::CCArray *v16; // x22\n  unsigned int v17; // w20\n  unsigned int v18; // w1\n\n  v3 = a2;\n  m_createButtonBar = a1->m_createButtonBar;\n  if ( a1->m_selectedMode == 2 )\n  {\n    v5 = 0;\n    m_createButtonBar->setVisible(a1->m_createButtonBar, 1);\n    a1->m_tabsMenu->setVisible(a1->m_tabsMenu, 1);\n    m_createButtonArray = a1->m_createButtonArray;\n    while ( v5 < (unsigned int)cocos2d::CCArray::count(m_createButtonArray) )\n    {\n      v7 = (CreateMenuItem *)cocos2d::CCArray::objectAtIndex(m_createButtonArray, v5++);\n      EditorUI::enableButton(a1, v7);\n    }\n    m_customObjectButtonArray = a1->m_customObjectButtonArray;\n    v9 = 0;\n    while ( 1 )\n    {\n      v11 = v9 >= (unsigned int)cocos2d::CCArray::count(m_customObjectButtonArray);\n      v12 = v9++;\n      if ( v11 )\n        break;\n      v10 = (CreateMenuItem *)cocos2d::CCArray::objectAtIndex(m_customObjectButtonArray, v12);\n      EditorUI::enableButton(a1, v10);\n    }\n    v13 = a1->m_createButtonArray;\n    v14 = 0;\n    while ( v14 < (unsigned int)cocos2d::CCArray::count(v13) )\n    {\n      v15 = (CreateMenuItem *)cocos2d::CCArray::objectAtIndex(v13, v14++);\n      if ( v15->m_objectID == a1->m_selectedObjectIndex )\n      {\nLABEL_16:\n        EditorUI::disableButton(a1, v15);\n        if ( v3 )\n        {\n          EditorUI::selectBuildTab(a1, v15->m_tabIndex);\n          EditButtonBar::goToPage(a1->m_createButtonBar, v15->m_pageIndex);\n        }\n        return;\n      }\n    }\n    v16 = a1->m_customObjectButtonArray;\n    v17 = 0;\n    while ( 1 )\n    {\n      v11 = v17 >= (unsigned int)cocos2d::CCArray::count(v16);\n      v18 = v17++;\n      if ( v11 )\n        break;\n      v15 = (CreateMenuItem *)cocos2d::CCArray::objectAtIndex(v16, v18);\n      if ( v15->m_objectID == a1->m_selectedObjectIndex )\n        goto LABEL_16;\n    }\n  }\n  else\n  {\n    m_createButtonBar->setVisible(a1->m_createButtonBar, 0);\n    a1->m_tabsMenu->setVisible(a1->m_tabsMenu, 0);\n  }\n}", "assembly": "; \n; EditorUI::updateCreateMenu from 0x689c3c to 0x689df8 (444 bytes)\n; \n; 7 xrefs:\n; > EditorUI::onCreateButton @ 0x689e20\n; > EditorUI::resetUI @ 0x68a918\n; > EditorUI::orderUpCustomItem @ 0x6979f4\n; > EditorUI::orderDownCustomItem @ 0x697a58\n; > EditorUI::setupCreateMenu @ 0x6b3604\n; > EditorUI::clickOnPosition @ 0x6c17ac\n; > <???> @ 0x7b930\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_40]!                                ; +0x0, 0x689c3c\nMOV             X29, SP                                                ; +0x4, 0x689c40\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0x8, 0x689c44\nMOV             X19, X0                                                ; +0xc, 0x689c48\nLDR             W0, [X0,#0x4F0]                                        ; +0x10, 0x689c4c\nSTR             X23, [SP,#0x40+var_10]                                 ; +0x14, 0x689c50\nUXTB            W23, W1                                                ; +0x18, 0x689c54\nSTP             X21, X22, [SP,#0x40+var_20]                            ; +0x1c, 0x689c58\nCMP             W0, #2                                                 ; +0x20, 0x689c5c\nLDR             X2, [X19,#0x2F0]                                       ; +0x24, 0x689c60\nB.EQ            loc_689CA8                                             ; +0x28, 0x689c64\nMOV             X0, X2                                                 ; +0x2c, 0x689c68\nLDR             X2, [X2]                                               ; +0x30, 0x689c6c\nMOV             W1, #0                                                 ; +0x34, 0x689c70\nLDR             X2, [X2,#0x148]                                        ; +0x38, 0x689c74\nBLR             X2                                                     ; +0x3c, 0x689c78\nLDR             X2, [X19,#0x440]                                       ; +0x40, 0x689c7c\nMOV             W1, #0                                                 ; +0x44, 0x689c80\nMOV             X0, X2                                                 ; +0x48, 0x689c84\nLDR             X2, [X2]                                               ; +0x4c, 0x689c88\nLDR             X2, [X2,#0x148]                                        ; +0x50, 0x689c8c\nBLR             X2                                                     ; +0x54, 0x689c90\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x58, 0x689c94\nLDP             X21, X22, [SP,#0x40+var_20]                            ; +0x5c, 0x689c98\nLDR             X23, [SP,#0x40+var_10]                                 ; +0x60, 0x689c9c\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x64, 0x689ca0\nRET                                                                    ; +0x68, 0x689ca4\nMOV             X0, X2                                                 ; +0x6c, 0x689ca8\nLDR             X2, [X2]                                               ; +0x70, 0x689cac\nMOV             W1, #1                                                 ; +0x74, 0x689cb0\nMOV             W20, #0                                                ; +0x78, 0x689cb4\nLDR             X2, [X2,#0x148]                                        ; +0x7c, 0x689cb8\nBLR             X2                                                     ; +0x80, 0x689cbc\nLDR             X2, [X19,#0x440]                                       ; +0x84, 0x689cc0\nMOV             W1, #1                                                 ; +0x88, 0x689cc4\nMOV             X0, X2                                                 ; +0x8c, 0x689cc8\nLDR             X2, [X2]                                               ; +0x90, 0x689ccc\nLDR             X2, [X2,#0x148]                                        ; +0x94, 0x689cd0\nBLR             X2                                                     ; +0x98, 0x689cd4\nLDR             X21, [X19,#0x4D8]                                      ; +0x9c, 0x689cd8\nB               loc_689CF4                                             ; +0xa0, 0x689cdc\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0xa4, 0x689ce0\nMOV             X1, X0                                                 ; +0xa8, 0x689ce4\nMOV             X0, X19                                                ; +0xac, 0x689ce8\nADD             W20, W20, #1                                           ; +0xb0, 0x689cec\nBL              _ZN8EditorUI12enableButtonEP14CreateMenuItem; EditorUI::enableButton(CreateMenuItem *) ; +0xb4, 0x689cf0\nMOV             X0, X21; this                                          ; +0xb8, 0x689cf4\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0xbc, 0x689cf8\nCMP             W20, W0                                                ; +0xc0, 0x689cfc\nMOV             W1, W20; unsigned int                                  ; +0xc4, 0x689d00\nMOV             X0, X21; this                                          ; +0xc8, 0x689d04\nB.CC            loc_689CE0                                             ; +0xcc, 0x689d08\nLDR             X21, [X19,#0x4E0]                                      ; +0xd0, 0x689d0c\nMOV             W20, #0                                                ; +0xd4, 0x689d10\nB               loc_689D28                                             ; +0xd8, 0x689d14\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0xdc, 0x689d18\nMOV             X1, X0                                                 ; +0xe0, 0x689d1c\nMOV             X0, X19                                                ; +0xe4, 0x689d20\nBL              _ZN8EditorUI12enableButtonEP14CreateMenuItem; EditorUI::enableButton(CreateMenuItem *) ; +0xe8, 0x689d24\nMOV             X0, X21; this                                          ; +0xec, 0x689d28\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0xf0, 0x689d2c\nCMP             W20, W0                                                ; +0xf4, 0x689d30\nMOV             W1, W20; unsigned int                                  ; +0xf8, 0x689d34\nMOV             X0, X21; this                                          ; +0xfc, 0x689d38\nADD             W20, W20, #1                                           ; +0x100, 0x689d3c\nB.CC            loc_689D18                                             ; +0x104, 0x689d40\nLDR             X22, [X19,#0x4D8]                                      ; +0x108, 0x689d44\nMOV             W20, #0                                                ; +0x10c, 0x689d48\nB               loc_689D6C                                             ; +0x110, 0x689d4c\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x114, 0x689d50\nMOV             X21, X0                                                ; +0x118, 0x689d54\nLDR             W0, [X19,#0x4D0]                                       ; +0x11c, 0x689d58\nADD             W20, W20, #1                                           ; +0x120, 0x689d5c\nLDR             W1, [X21,#0x1E0]                                       ; +0x124, 0x689d60\nCMP             W1, W0                                                 ; +0x128, 0x689d64\nB.EQ            loc_689DC0                                             ; +0x12c, 0x689d68\nMOV             X0, X22; this                                          ; +0x130, 0x689d6c\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x134, 0x689d70\nCMP             W20, W0                                                ; +0x138, 0x689d74\nMOV             W1, W20; unsigned int                                  ; +0x13c, 0x689d78\nMOV             X0, X22; this                                          ; +0x140, 0x689d7c\nB.CC            loc_689D50                                             ; +0x144, 0x689d80\nLDR             X22, [X19,#0x4E0]                                      ; +0x148, 0x689d84\nMOV             W20, #0                                                ; +0x14c, 0x689d88\nMOV             X0, X22; this                                          ; +0x150, 0x689d8c\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x154, 0x689d90\nCMP             W20, W0                                                ; +0x158, 0x689d94\nMOV             W1, W20; unsigned int                                  ; +0x15c, 0x689d98\nMOV             X0, X22; this                                          ; +0x160, 0x689d9c\nADD             W20, W20, #1                                           ; +0x164, 0x689da0\nB.CS            loc_689C94                                             ; +0x168, 0x689da4\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x16c, 0x689da8\nMOV             X21, X0                                                ; +0x170, 0x689dac\nLDR             W0, [X19,#0x4D0]                                       ; +0x174, 0x689db0\nLDR             W1, [X21,#0x1E0]                                       ; +0x178, 0x689db4\nCMP             W1, W0                                                 ; +0x17c, 0x689db8\nB.NE            loc_689D8C                                             ; +0x180, 0x689dbc\nMOV             X0, X19                                                ; +0x184, 0x689dc0\nMOV             X1, X21                                                ; +0x188, 0x689dc4\nBL              _ZN8EditorUI13disableButtonEP14CreateMenuItem; EditorUI::disableButton(CreateMenuItem *) ; +0x18c, 0x689dc8\nCBZ             W23, loc_689C94                                        ; +0x190, 0x689dcc\nLDR             W1, [X21,#0x1E8]; int                                  ; +0x194, 0x689dd0\nMOV             X0, X19; this                                          ; +0x198, 0x689dd4\nBL              _ZN8EditorUI14selectBuildTabEi; EditorUI::selectBuildTab(int) ; +0x19c, 0x689dd8\nLDR             X23, [SP,#0x40+var_10]                                 ; +0x1a0, 0x689ddc\nLDR             X0, [X19,#0x2F0]; this                                 ; +0x1a4, 0x689de0\nLDR             W1, [X21,#0x1E4]; int                                  ; +0x1a8, 0x689de4\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x1ac, 0x689de8\nLDP             X21, X22, [SP,#0x40+var_20]                            ; +0x1b0, 0x689dec\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x1b4, 0x689df0\nB               _ZN13EditButtonBar8goToPageEi; EditButtonBar::goToPage(int) ; +0x1b8, 0x689df4", "xrefs": ["EditorUI::onCreateButton @ 0x689e20", "EditorUI::resetUI @ 0x68a918", "EditorUI::orderUpCustomItem @ 0x6979f4", "EditorUI::orderDownCustomItem @ 0x697a58", "EditorUI::setupCreateMenu @ 0x6b3604", "EditorUI::clickOnPosition @ 0x6c17ac", "<???> @ 0x7b930"], "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"}