{"type": "func", "start": 3661500, "end": 3661762, "name": "EditorUI::updateCreateMenu", "pseudocode": "// \n// EditorUI::updateCreateMenu from 0x37debc to 0x37dfc2 (262 bytes)\n// \n// 6 xrefs:\n// > EditorUI::onCreateButton @ 0x37dfda\n// > EditorUI::resetUI @ 0x37e62c\n// > EditorUI::orderUpCustomItem @ 0x388318\n// > EditorUI::orderDownCustomItem @ 0x388354\n// > EditorUI::setupCreateMenu @ 0x39be7e\n// > EditorUI::clickOnPosition @ 0x3a4ae6\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; // r7\n  void (*setVisible)(void); // r3\n  unsigned int v5; // r5\n  cocos2d::CCArray *m_createButtonArray; // r6\n  CreateMenuItem *v7; // r0\n  cocos2d::CCArray *m_customObjectButtonArray; // r6\n  unsigned int i; // r5\n  CreateMenuItem *v10; // r0\n  cocos2d::CCArray *v11; // r8\n  unsigned int j; // r6\n  CreateMenuItem *v13; // r5\n  cocos2d::CCArray *v14; // r8\n  unsigned int k; // r6\n\n  v3 = a2;\n  setVisible = (void (*)(void))a1->m_createButtonBar->setVisible;\n  if ( a1->m_selectedMode == 2 )\n  {\n    v5 = 0;\n    setVisible();\n    a1->m_tabsMenu->setVisible(a1->m_tabsMenu, 1);\n    m_createButtonArray = a1->m_createButtonArray;\n    while ( v5 < 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    for ( i = 0; i < cocos2d::CCArray::count(m_customObjectButtonArray); ++i )\n    {\n      v10 = (CreateMenuItem *)cocos2d::CCArray::objectAtIndex(m_customObjectButtonArray, i);\n      EditorUI::enableButton(a1, v10);\n    }\n    v11 = a1->m_createButtonArray;\n    for ( j = 0; j < cocos2d::CCArray::count(v11); ++j )\n    {\n      v13 = (CreateMenuItem *)cocos2d::CCArray::objectAtIndex(v11, j);\n      if ( v13->m_objectID == a1->m_selectedObjectIndex )\n      {\nLABEL_14:\n        EditorUI::disableButton(a1, v13);\n        if ( v3 )\n        {\n          EditorUI::selectBuildTab(a1, v13->m_tabIndex);\n          EditButtonBar::goToPage(a1->m_createButtonBar, v13->m_pageIndex);\n        }\n        return;\n      }\n    }\n    v14 = a1->m_customObjectButtonArray;\n    for ( k = 0; k < cocos2d::CCArray::count(v14); ++k )\n    {\n      v13 = (CreateMenuItem *)cocos2d::CCArray::objectAtIndex(v14, k);\n      if ( v13->m_objectID == a1->m_selectedObjectIndex )\n        goto LABEL_14;\n    }\n  }\n  else\n  {\n    setVisible();\n    a1->m_tabsMenu->setVisible(a1->m_tabsMenu, 0);\n  }\n}", "assembly": "; \n; EditorUI::updateCreateMenu from 0x37debc to 0x37dfc2 (262 bytes)\n; \n; 6 xrefs:\n; > EditorUI::onCreateButton @ 0x37dfda\n; > EditorUI::resetUI @ 0x37e62c\n; > EditorUI::orderUpCustomItem @ 0x388318\n; > EditorUI::orderDownCustomItem @ 0x388354\n; > EditorUI::setupCreateMenu @ 0x39be7e\n; > EditorUI::clickOnPosition @ 0x3a4ae6\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\nLDR.W           R3, [R0,#0x33C]                                        ; +0x0, 0x37debc\nPUSH.W          {R4-R8,LR}                                             ; +0x4, 0x37dec0\nMOV             R4, R0                                                 ; +0x8, 0x37dec4\nLDR.W           R0, [R0,#0x228]                                        ; +0xa, 0x37dec6\nCMP             R3, #2                                                 ; +0xe, 0x37deca\nMOV             R7, R1                                                 ; +0x10, 0x37decc\nLDR             R3, [R0]                                               ; +0x12, 0x37dece\nLDR.W           R3, [R3,#0xA4]                                         ; +0x14, 0x37ded0\nBEQ             loc_37DEEC                                             ; +0x18, 0x37ded4\nMOVS            R1, #0                                                 ; +0x1a, 0x37ded6\nBLX             R3                                                     ; +0x1c, 0x37ded8\nLDR.W           R0, [R4,#0x2E4]                                        ; +0x1e, 0x37deda\nMOVS            R1, #0                                                 ; +0x22, 0x37dede\nPOP.W           {R4-R8,LR}                                             ; +0x24, 0x37dee0\nLDR             R3, [R0]                                               ; +0x28, 0x37dee4\nLDR.W           R3, [R3,#0xA4]                                         ; +0x2a, 0x37dee6\nBX              R3                                                     ; +0x2e, 0x37deea\nMOVS            R1, #1                                                 ; +0x30, 0x37deec\nMOVS            R5, #0                                                 ; +0x32, 0x37deee\nBLX             R3                                                     ; +0x34, 0x37def0\nLDR.W           R0, [R4,#0x2E4]                                        ; +0x36, 0x37def2\nMOVS            R1, #1                                                 ; +0x3a, 0x37def6\nLDR             R3, [R0]                                               ; +0x3c, 0x37def8\nLDR.W           R3, [R3,#0xA4]                                         ; +0x3e, 0x37defa\nBLX             R3                                                     ; +0x42, 0x37defe\nLDR.W           R6, [R4,#0x330]                                        ; +0x44, 0x37df00\nMOV             R0, R6; this                                           ; +0x48, 0x37df04\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x4a, 0x37df06\nCMP             R5, R0                                                 ; +0x4e, 0x37df0a\nBCS             loc_37DF22                                             ; +0x50, 0x37df0c\nMOV             R1, R5; unsigned int                                   ; +0x52, 0x37df0e\nMOV             R0, R6; this                                           ; +0x54, 0x37df10\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x56, 0x37df12\nADDS            R5, #1                                                 ; +0x5a, 0x37df16\nMOV             R1, R0                                                 ; +0x5c, 0x37df18\nMOV             R0, R4                                                 ; +0x5e, 0x37df1a\nBL              _ZN8EditorUI12enableButtonEP14CreateMenuItem; EditorUI::enableButton(CreateMenuItem *) ; +0x60, 0x37df1c\nB               loc_37DF04                                             ; +0x64, 0x37df20\nLDR.W           R6, [R4,#0x334]                                        ; +0x66, 0x37df22\nMOVS            R5, #0                                                 ; +0x6a, 0x37df26\nMOV             R0, R6; this                                           ; +0x6c, 0x37df28\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x6e, 0x37df2a\nCMP             R5, R0                                                 ; +0x72, 0x37df2e\nBCS             loc_37DF46                                             ; +0x74, 0x37df30\nMOV             R1, R5; unsigned int                                   ; +0x76, 0x37df32\nMOV             R0, R6; this                                           ; +0x78, 0x37df34\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x7a, 0x37df36\nADDS            R5, #1                                                 ; +0x7e, 0x37df3a\nMOV             R1, R0                                                 ; +0x80, 0x37df3c\nMOV             R0, R4                                                 ; +0x82, 0x37df3e\nBL              _ZN8EditorUI12enableButtonEP14CreateMenuItem; EditorUI::enableButton(CreateMenuItem *) ; +0x84, 0x37df40\nB               loc_37DF28                                             ; +0x88, 0x37df44\nLDR.W           R8, [R4,#0x330]                                        ; +0x8a, 0x37df46\nMOVS            R6, #0                                                 ; +0x8e, 0x37df4a\nMOV             R0, R8; this                                           ; +0x90, 0x37df4c\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x92, 0x37df4e\nCMP             R6, R0                                                 ; +0x96, 0x37df52\nBCS             loc_37DF70                                             ; +0x98, 0x37df54\nMOV             R0, R8; this                                           ; +0x9a, 0x37df56\nMOV             R1, R6; unsigned int                                   ; +0x9c, 0x37df58\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x9e, 0x37df5a\nLDR.W           R3, [R4,#0x32C]                                        ; +0xa2, 0x37df5e\nLDR.W           R2, [R0,#0x178]                                        ; +0xa6, 0x37df62\nMOV             R5, R0                                                 ; +0xaa, 0x37df66\nCMP             R2, R3                                                 ; +0xac, 0x37df68\nBEQ             loc_37DF78                                             ; +0xae, 0x37df6a\nADDS            R6, #1                                                 ; +0xb0, 0x37df6c\nB               loc_37DF4C                                             ; +0xb2, 0x37df6e\nLDR.W           R8, [R4,#0x334]                                        ; +0xb4, 0x37df70\nMOVS            R6, #0                                                 ; +0xb8, 0x37df74\nB               loc_37DFB4                                             ; +0xba, 0x37df76\nMOV             R0, R4                                                 ; +0xbc, 0x37df78\nMOV             R1, R5                                                 ; +0xbe, 0x37df7a\nBL              _ZN8EditorUI13disableButtonEP14CreateMenuItem; EditorUI::disableButton(CreateMenuItem *) ; +0xc0, 0x37df7c\nCBZ             R7, locret_37DFBE                                      ; +0xc4, 0x37df80\nMOV             R0, R4; this                                           ; +0xc6, 0x37df82\nLDR.W           R1, [R5,#0x180]; int                                   ; +0xc8, 0x37df84\nBL              _ZN8EditorUI14selectBuildTabEi; EditorUI::selectBuildTab(int) ; +0xcc, 0x37df88\nLDR.W           R0, [R4,#0x228]; this                                  ; +0xd0, 0x37df8c\nLDR.W           R1, [R5,#0x17C]; int                                   ; +0xd4, 0x37df90\nPOP.W           {R4-R8,LR}                                             ; +0xd8, 0x37df94\nB.W             _ZN13EditButtonBar8goToPageEi; EditButtonBar::goToPage(int) ; +0xdc, 0x37df98\nMOV             R0, R8; this                                           ; +0xe0, 0x37df9c\nMOV             R1, R6; unsigned int                                   ; +0xe2, 0x37df9e\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0xe4, 0x37dfa0\nLDR.W           R3, [R4,#0x32C]                                        ; +0xe8, 0x37dfa4\nLDR.W           R2, [R0,#0x178]                                        ; +0xec, 0x37dfa8\nMOV             R5, R0                                                 ; +0xf0, 0x37dfac\nCMP             R2, R3                                                 ; +0xf2, 0x37dfae\nBEQ             loc_37DF78                                             ; +0xf4, 0x37dfb0\nADDS            R6, #1                                                 ; +0xf6, 0x37dfb2\nMOV             R0, R8; this                                           ; +0xf8, 0x37dfb4\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0xfa, 0x37dfb6\nCMP             R6, R0                                                 ; +0xfe, 0x37dfba\nBCC             loc_37DF9C                                             ; +0x100, 0x37dfbc\nPOP.W           {R4-R8,PC}                                             ; +0x102, 0x37dfbe", "xrefs": ["EditorUI::onCreateButton @ 0x37dfda", "EditorUI::resetUI @ 0x37e62c", "EditorUI::orderUpCustomItem @ 0x388318", "EditorUI::orderDownCustomItem @ 0x388354", "EditorUI::setupCreateMenu @ 0x39be7e", "EditorUI::clickOnPosition @ 0x3a4ae6"], "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"}