{"type": "func", "start": 8137448, "end": 8137800, "name": "EditorUI::selectBuildTab", "pseudocode": "// \n// EditorUI::selectBuildTab from 0x7c2ae8 to 0x7c2c48 (352 bytes)\n// \n// 6 xrefs:\n// > EditorUI::updateCreateMenu @ 0x7c2df0\n// > EditorUI::onSelectBuildTab @ 0x7c2e8c\n// > EditorUI::handleEditorAction @ 0xbd78a4\n// > EditorUI::handleEditorAction @ 0xbd78c0\n// > EditorUI::setupCreateMenu @ 0xbfe598\n// > <???> @ 0x43510\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:54:07 +0000\n// \n\n__int64 __fastcall EditorUI::selectBuildTab(EditorUI *this, unsigned int a2)\n{\n  unsigned int v3; // w21\n  __int64 result; // x0\n  unsigned __int64 v5; // x0\n  EditorSFXManager *v6; // x0\n  unsigned int v7; // w20\n  unsigned int v8; // w0\n  unsigned int v9; // w1\n  __int64 v10; // x21\n  bool v11; // zf\n  cocos2d::CCArray *v12; // x0\n  unsigned int v13; // w0\n  unsigned int i; // w20\n  CCMenuItemToggler *v15; // x0\n  unsigned __int8 v16; // w1\n\n  v3 = a2;\n  result = *((unsigned int *)this + 384);\n  if ( (_DWORD)result == a2 || *((_DWORD *)this + 359) != 2 && (_DWORD)result != -1 )\n    return result;\n  if ( (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 149)) - 1 <= a2 )\n  {\n    v5 = (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 149)) != 1;\n    if ( !(_DWORD)v5 )\n      goto LABEL_7;\n  }\n  else\n  {\n    v5 = v3 != 0;\n    if ( !v3 )\n    {\nLABEL_7:\n      v3 = 0;\n      goto LABEL_8;\n    }\n  }\n  v5 = (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 149)) - 1;\n  if ( v3 >= (unsigned int)v5 )\n  {\n    v5 = cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 149));\n    v3 = v5 - 1;\n  }\nLABEL_8:\n  v6 = (EditorSFXManager *)EditorSFXManager::sharedState((EditorSFXManager *)v5);\n  v7 = 0;\n  EditorSFXManager::playAction(v6, 164);\n  *((_DWORD *)this + 384) = v3;\n  while ( 1 )\n  {\n    v8 = cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 149));\n    v9 = v7;\n    if ( v7 >= v8 )\n      break;\n    while ( 1 )\n    {\n      v10 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 149), v9);\n      (*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v10 + 344LL))(v10, *((_DWORD *)this + 384) == v7);\n      v11 = v7++ == *((_DWORD *)this + 384);\n      if ( !v11 )\n        break;\n      v12 = *((cocos2d::CCArray **)this + 149);\n      *((_QWORD *)this + 103) = v10;\n      v13 = cocos2d::CCArray::count(v12);\n      v9 = v7;\n      if ( v7 >= v13 )\n        goto LABEL_13;\n    }\n  }\nLABEL_13:\n  for ( i = 0; ; ++i )\n  {\n    result = cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 151));\n    if ( i >= (unsigned int)result )\n      break;\n    v15 = (CCMenuItemToggler *)cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 151), i);\n    v11 = *((_DWORD *)this + 384) == i;\n    v16 = v11;\n    CCMenuItemToggler::toggle(v15, v16);\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::selectBuildTab from 0x7c2ae8 to 0x7c2c48 (352 bytes)\n; \n; 6 xrefs:\n; > EditorUI::updateCreateMenu @ 0x7c2df0\n; > EditorUI::onSelectBuildTab @ 0x7c2e8c\n; > EditorUI::handleEditorAction @ 0xbd78a4\n; > EditorUI::handleEditorAction @ 0xbd78c0\n; > EditorUI::setupCreateMenu @ 0xbfe598\n; > <???> @ 0x43510\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:54:07 +0000\n; \nSTP             X29, X30, [SP,#var_30]!                                ; +0x0, 0x7c2ae8\nMOV             X29, SP                                                ; +0x4, 0x7c2aec\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0x8, 0x7c2af0\nSTR             X21, [SP,#0x30+var_10]                                 ; +0xc, 0x7c2af4\nMOV             X19, X0                                                ; +0x10, 0x7c2af8\nMOV             W21, W1                                                ; +0x14, 0x7c2afc\nLDR             W0, [X0,#0x600]                                        ; +0x18, 0x7c2b00\nCMP             W0, W1                                                 ; +0x1c, 0x7c2b04\nB.EQ            loc_7C2B20                                             ; +0x20, 0x7c2b08\nLDR             W1, [X19,#0x59C]                                       ; +0x24, 0x7c2b0c\nCMP             W1, #2                                                 ; +0x28, 0x7c2b10\nB.EQ            loc_7C2B30                                             ; +0x2c, 0x7c2b14\nCMN             W0, #1                                                 ; +0x30, 0x7c2b18\nB.EQ            loc_7C2B30                                             ; +0x34, 0x7c2b1c\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x38, 0x7c2b20\nLDR             X21, [SP,#0x30+var_10]                                 ; +0x3c, 0x7c2b24\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x40, 0x7c2b28\nRET                                                                    ; +0x44, 0x7c2b2c\nLDR             X0, [X19,#0x4A8]; this                                 ; +0x48, 0x7c2b30\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x4c, 0x7c2b34\nSUB             W0, W0, #1                                             ; +0x50, 0x7c2b38\nCMP             W0, W21                                                ; +0x54, 0x7c2b3c\nB.LS            loc_7C2C10                                             ; +0x58, 0x7c2b40\nCMP             W21, WZR                                               ; +0x5c, 0x7c2b44\nCSET            W0, NE; this                                           ; +0x60, 0x7c2b48\nCBNZ            W0, loc_7C2C24                                         ; +0x64, 0x7c2b4c\nMOV             W21, #0                                                ; +0x68, 0x7c2b50\nBL              _ZN16EditorSFXManager11sharedStateEv; EditorSFXManager::sharedState(void) ; +0x6c, 0x7c2b54\nMOV             W20, #0                                                ; +0x70, 0x7c2b58\nMOV             W1, #0xA4; int                                         ; +0x74, 0x7c2b5c\nBL              _ZN16EditorSFXManager10playActionEi; EditorSFXManager::playAction(int) ; +0x78, 0x7c2b60\nSTR             W21, [X19,#0x600]                                      ; +0x7c, 0x7c2b64\nLDR             X0, [X19,#0x4A8]; this                                 ; +0x80, 0x7c2b68\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x84, 0x7c2b6c\nCMP             W20, W0                                                ; +0x88, 0x7c2b70\nMOV             W1, W20; unsigned int                                  ; +0x8c, 0x7c2b74\nB.CS            loc_7C2BC8                                             ; +0x90, 0x7c2b78\nLDR             X0, [X19,#0x4A8]; this                                 ; +0x94, 0x7c2b7c\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x98, 0x7c2b80\nLDR             X2, [X0]                                               ; +0x9c, 0x7c2b84\nLDR             W1, [X19,#0x600]                                       ; +0xa0, 0x7c2b88\nMOV             X21, X0                                                ; +0xa4, 0x7c2b8c\nCMP             W1, W20                                                ; +0xa8, 0x7c2b90\nLDR             X2, [X2,#0x158]                                        ; +0xac, 0x7c2b94\nCSET            W1, EQ                                                 ; +0xb0, 0x7c2b98\nBLR             X2                                                     ; +0xb4, 0x7c2b9c\nLDR             W0, [X19,#0x600]                                       ; +0xb8, 0x7c2ba0\nCMP             W20, W0                                                ; +0xbc, 0x7c2ba4\nADD             W20, W20, #1                                           ; +0xc0, 0x7c2ba8\nB.NE            loc_7C2B68                                             ; +0xc4, 0x7c2bac\nLDR             X0, [X19,#0x4A8]; this                                 ; +0xc8, 0x7c2bb0\nSTR             X21, [X19,#0x338]                                      ; +0xcc, 0x7c2bb4\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0xd0, 0x7c2bb8\nCMP             W20, W0                                                ; +0xd4, 0x7c2bbc\nMOV             W1, W20                                                ; +0xd8, 0x7c2bc0\nB.CC            loc_7C2B7C                                             ; +0xdc, 0x7c2bc4\nMOV             W20, #0                                                ; +0xe0, 0x7c2bc8\nB               loc_7C2BEC                                             ; +0xe4, 0x7c2bcc\nLDR             X0, [X19,#0x4B8]; this                                 ; +0xe8, 0x7c2bd0\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0xec, 0x7c2bd4\nLDR             W1, [X19,#0x600]                                       ; +0xf0, 0x7c2bd8\nCMP             W1, W20                                                ; +0xf4, 0x7c2bdc\nADD             W20, W20, #1                                           ; +0xf8, 0x7c2be0\nCSET            W1, EQ; bool                                           ; +0xfc, 0x7c2be4\nBL              _ZN17CCMenuItemToggler6toggleEb; CCMenuItemToggler::toggle(bool) ; +0x100, 0x7c2be8\nLDR             X0, [X19,#0x4B8]; this                                 ; +0x104, 0x7c2bec\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x108, 0x7c2bf0\nCMP             W20, W0                                                ; +0x10c, 0x7c2bf4\nMOV             W1, W20; unsigned int                                  ; +0x110, 0x7c2bf8\nB.CC            loc_7C2BD0                                             ; +0x114, 0x7c2bfc\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x118, 0x7c2c00\nLDR             X21, [SP,#0x30+var_10]                                 ; +0x11c, 0x7c2c04\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x120, 0x7c2c08\nRET                                                                    ; +0x124, 0x7c2c0c\nLDR             X0, [X19,#0x4A8]; this                                 ; +0x128, 0x7c2c10\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x12c, 0x7c2c14\nCMP             W0, #1                                                 ; +0x130, 0x7c2c18\nCSET            W0, NE                                                 ; +0x134, 0x7c2c1c\nCBZ             W0, loc_7C2B50                                         ; +0x138, 0x7c2c20\nLDR             X0, [X19,#0x4A8]; this                                 ; +0x13c, 0x7c2c24\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x140, 0x7c2c28\nSUB             W0, W0, #1                                             ; +0x144, 0x7c2c2c\nCMP             W21, W0                                                ; +0x148, 0x7c2c30\nB.CC            loc_7C2B54                                             ; +0x14c, 0x7c2c34\nLDR             X0, [X19,#0x4A8]; this                                 ; +0x150, 0x7c2c38\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x154, 0x7c2c3c\nSUB             W21, W0, #1                                            ; +0x158, 0x7c2c40\nB               loc_7C2B54                                             ; +0x15c, 0x7c2c44", "xrefs": ["EditorUI::updateCreateMenu @ 0x7c2df0", "EditorUI::onSelectBuildTab @ 0x7c2e8c", "EditorUI::handleEditorAction @ 0xbd78a4", "EditorUI::handleEditorAction @ 0xbd78c0", "EditorUI::setupCreateMenu @ 0xbfe598", "<???> @ 0x43510"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}