{"type": "func", "start": 3672992, "end": 3673208, "name": "EditorUI::showUI", "pseudocode": "// \n// EditorUI::showUI from 0x380ba0 to 0x380c78 (216 bytes)\n// \n// 3 xrefs:\n// > EditorUI::playtestStopped @ 0x38742e\n// > EditorUI::onStopPlaytest @ 0x3874ba\n// > EditorUI::onPlaytest @ 0x3a3448\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::showUI(EditorUI *a1, bool a2)\n{\n  _BOOL4 v2; // r5\n  GameManager *v4; // r0\n  unsigned int v5; // r6\n  int v6; // r0\n  _BOOL4 m_stickyControlsEnabled; // r6\n  EditButtonBar *m_createButtonBar; // r0\n  _BOOL4 v9; // r1\n  _BOOL4 v10; // r1\n  _BOOL4 v11; // r1\n\n  v2 = a2;\n  v4 = GameManager::sharedState();\n  v5 = 0;\n  if ( !GameManager::getGameVariable(v4, \"0046\") )\n    v2 = 1;\n  while ( v5 < cocos2d::CCArray::count(a1->m_uiItems) )\n  {\n    v6 = cocos2d::CCArray::objectAtIndex(a1->m_uiItems, v5++);\n    (*(void (__fastcall **)(int, _BOOL4))(*(_DWORD *)v6 + 164))(v6, v2);\n  }\n  m_stickyControlsEnabled = a1->m_stickyControlsEnabled;\n  if ( !a1->m_stickyControlsEnabled )\n  {\n    a1->m_unlinkBtn->setVisible(a1->m_unlinkBtn, a1->m_stickyControlsEnabled);\n    a1->m_linkBtn->setVisible(a1->m_linkBtn, m_stickyControlsEnabled);\n    a1->m_enableLinkBtn->setVisible(a1->m_enableLinkBtn, m_stickyControlsEnabled);\n  }\n  m_createButtonBar = a1->m_createButtonBar;\n  if ( m_createButtonBar )\n  {\n    v9 = v2 && a1->m_selectedMode == 2;\n    m_createButtonBar->setVisible(m_createButtonBar, v9);\n  }\n  v10 = v2 && a1->m_selectedMode == 3;\n  a1->m_editButtonBar->setVisible(a1->m_editButtonBar, v10);\n  v11 = v2 && a1->m_selectedMode == 1;\n  a1->m_deleteMenu->setVisible(a1->m_deleteMenu, v11);\n  if ( v2 )\n    EditorUI::updateGroupIDLabel(a1);\n}", "assembly": "; \n; EditorUI::showUI from 0x380ba0 to 0x380c78 (216 bytes)\n; \n; 3 xrefs:\n; > EditorUI::playtestStopped @ 0x38742e\n; > EditorUI::onStopPlaytest @ 0x3874ba\n; > EditorUI::onPlaytest @ 0x3a3448\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\nPUSH            {R4-R6,LR}                                             ; +0x0, 0x380ba0\nMOV             R5, R1                                                 ; +0x2, 0x380ba2\nMOV             R4, R0                                                 ; +0x4, 0x380ba4\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x6, 0x380ba6\nLDR             R1, =(a0046 - 0x380BB2); \"0046\"                        ; +0xa, 0x380baa\nMOVS            R6, #0                                                 ; +0xc, 0x380bac\nADD             R1, PC; \"0046\"                                         ; +0xe, 0x380bae\nBL              _ZN11GameManager15getGameVariableEPKc; GameManager::getGameVariable(char const*) ; +0x10, 0x380bb0\nCMP             R0, #0                                                 ; +0x14, 0x380bb4\nIT EQ                                                                  ; +0x16, 0x380bb6\nMOVEQ           R5, #1                                                 ; +0x18, 0x380bb8\nLDR.W           R0, [R4,#0x1C8]; this                                  ; +0x1a, 0x380bba\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x1e, 0x380bbe\nCMP             R6, R0                                                 ; +0x22, 0x380bc2\nBCS             loc_380BDE                                             ; +0x24, 0x380bc4\nMOV             R1, R6; unsigned int                                   ; +0x26, 0x380bc6\nLDR.W           R0, [R4,#0x1C8]; this                                  ; +0x28, 0x380bc8\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x2c, 0x380bcc\nMOV             R1, R5                                                 ; +0x30, 0x380bd0\nADDS            R6, #1                                                 ; +0x32, 0x380bd2\nLDR             R3, [R0]                                               ; +0x34, 0x380bd4\nLDR.W           R3, [R3,#0xA4]                                         ; +0x36, 0x380bd6\nBLX             R3                                                     ; +0x3a, 0x380bda\nB               loc_380BBA                                             ; +0x3c, 0x380bdc\nLDRB.W          R6, [R4,#0x247]                                        ; +0x3e, 0x380bde\nCBNZ            R6, loc_380C0E                                         ; +0x42, 0x380be2\nLDR.W           R0, [R4,#0x2A0]                                        ; +0x44, 0x380be4\nMOV             R1, R6                                                 ; +0x48, 0x380be8\nLDR             R3, [R0]                                               ; +0x4a, 0x380bea\nLDR.W           R3, [R3,#0xA4]                                         ; +0x4c, 0x380bec\nBLX             R3                                                     ; +0x50, 0x380bf0\nLDR.W           R0, [R4,#0x29C]                                        ; +0x52, 0x380bf2\nMOV             R1, R6                                                 ; +0x56, 0x380bf6\nLDR             R3, [R0]                                               ; +0x58, 0x380bf8\nLDR.W           R3, [R3,#0xA4]                                         ; +0x5a, 0x380bfa\nBLX             R3                                                     ; +0x5e, 0x380bfe\nLDR.W           R0, [R4,#0x2A4]                                        ; +0x60, 0x380c00\nMOV             R1, R6                                                 ; +0x64, 0x380c04\nLDR             R3, [R0]                                               ; +0x66, 0x380c06\nLDR.W           R3, [R3,#0xA4]                                         ; +0x68, 0x380c08\nBLX             R3                                                     ; +0x6c, 0x380c0c\nLDR.W           R0, [R4,#0x228]                                        ; +0x6e, 0x380c0e\nCBZ             R0, loc_380C32                                         ; +0x72, 0x380c12\nLDR             R3, [R0]                                               ; +0x74, 0x380c14\nLDR.W           R3, [R3,#0xA4]                                         ; +0x76, 0x380c16\nCBZ             R5, loc_380C2E                                         ; +0x7a, 0x380c1a\nLDR.W           R1, [R4,#0x33C]                                        ; +0x7c, 0x380c1c\nSUB.W           LR, R1, #2                                             ; +0x80, 0x380c20\nRSBS.W          R1, LR, #0                                             ; +0x84, 0x380c24\nADC.W           R1, R1, LR                                             ; +0x88, 0x380c28\nB               loc_380C30                                             ; +0x8c, 0x380c2c\nMOV             R1, R5                                                 ; +0x8e, 0x380c2e\nBLX             R3                                                     ; +0x90, 0x380c30\nLDR.W           R0, [R4,#0x22C]                                        ; +0x92, 0x380c32\nLDR             R3, [R0]                                               ; +0x96, 0x380c36\nLDR.W           R3, [R3,#0xA4]                                         ; +0x98, 0x380c38\nCBZ             R5, loc_380C4A                                         ; +0x9c, 0x380c3c\nLDR.W           R1, [R4,#0x33C]                                        ; +0x9e, 0x380c3e\nSUBS            R6, R1, #3                                             ; +0xa2, 0x380c42\nNEGS            R1, R6                                                 ; +0xa4, 0x380c44\nADCS            R1, R6                                                 ; +0xa6, 0x380c46\nB               loc_380C4C                                             ; +0xa8, 0x380c48\nMOV             R1, R5                                                 ; +0xaa, 0x380c4a\nBLX             R3                                                     ; +0xac, 0x380c4c\nLDR.W           R0, [R4,#0x264]                                        ; +0xae, 0x380c4e\nLDR             R3, [R0]                                               ; +0xb2, 0x380c52\nLDR.W           R3, [R3,#0xA4]                                         ; +0xb4, 0x380c54\nCBZ             R5, loc_380C66                                         ; +0xb8, 0x380c58\nLDR.W           R1, [R4,#0x33C]                                        ; +0xba, 0x380c5a\nSUBS            R2, R1, #1                                             ; +0xbe, 0x380c5e\nNEGS            R1, R2                                                 ; +0xc0, 0x380c60\nADCS            R1, R2                                                 ; +0xc2, 0x380c62\nB               loc_380C68                                             ; +0xc4, 0x380c64\nMOV             R1, R5                                                 ; +0xc6, 0x380c66\nBLX             R3                                                     ; +0xc8, 0x380c68\nCBZ             R5, locret_380C76                                      ; +0xca, 0x380c6a\nMOV             R0, R4; this                                           ; +0xcc, 0x380c6c\nPOP.W           {R4-R6,LR}                                             ; +0xce, 0x380c6e\nB.W             _ZN8EditorUI18updateGroupIDLabelEv; EditorUI::updateGroupIDLabel(void) ; +0xd2, 0x380c72\nPOP             {R4-R6,PC}                                             ; +0xd6, 0x380c76", "xrefs": ["EditorUI::playtestStopped @ 0x38742e", "EditorUI::onStopPlaytest @ 0x3874ba", "EditorUI::onPlaytest @ 0x3a3448"], "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"}