{"type": "func", "start": 4755170, "end": 4755284, "name": "EditorUI::toggleWindow", "pseudocode": "// \n// EditorUI::toggleWindow from 0x488ee2 to 0x488f54 (114 bytes)\n// \n// 4 xrefs:\n// > EditorUI::onEditorCommands @ 0x488f5c\n// > EditorUI::onGridSizeIndicator @ 0x488f64\n// > EditorUI::onFindObject @ 0x488f70\n// > EditorUI::onDpadStep @ 0x6f806c\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:49:27 +0000\n// \n\n_DWORD *__fastcall EditorUI::toggleWindow(EditorUI *this, unsigned int a2)\n{\n  char *v2; // r6\n  _DWORD *result; // r0\n  EditorUI *v5; // r1\n  _DWORD *v6; // r4\n  unsigned int v7; // [sp+4h] [bp-4h] BYREF\n\n  v2 = (char *)this + 436;\n  v7 = a2;\n  result = std::__hash_table<std::__hash_value_type<int,EditorWindowPopup *>,std::__unordered_map_hasher<int,std::__hash_value_type<int,EditorWindowPopup *>,std::hash<int>,true>,std::__unordered_map_equal<int,std::__hash_value_type<int,EditorWindowPopup *>,std::equal_to<int>,true>,std::allocator<std::__hash_value_type<int,EditorWindowPopup *>>>::find<int>(\n             (_DWORD *)this + 109,\n             &v7);\n  if ( result )\n    return (_DWORD *)(*(int (__fastcall **)(_DWORD, _DWORD))(*(_DWORD *)result[3] + 684))(result[3], 0);\n  switch ( v7 )\n  {\n    case 1u:\n      result = (_DWORD *)EditorCommandsPopup::create(this, v5);\n      goto LABEL_8;\n    case 3u:\n      result = (_DWORD *)FindObjectPopup::create(this, v5);\n      goto LABEL_8;\n    case 4u:\n      result = (_DWORD *)GridSettingsLayer::create(this, v5);\n      goto LABEL_8;\n    case 5u:\n      result = (_DWORD *)MoveStepPopup::create(this, v5);\nLABEL_8:\n      v6 = result;\n      if ( result )\n      {\n        *std::unordered_map<int,EditorWindowPopup *>::operator[]((int)v2, &v7) = result;\n        result = (_DWORD *)(*(int (__fastcall **)(_DWORD *))(*v6 + 656))(v6);\n      }\n      break;\n    default:\n      return result;\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::toggleWindow from 0x488ee2 to 0x488f54 (114 bytes)\n; \n; 4 xrefs:\n; > EditorUI::onEditorCommands @ 0x488f5c\n; > EditorUI::onGridSizeIndicator @ 0x488f64\n; > EditorUI::onFindObject @ 0x488f70\n; > EditorUI::onDpadStep @ 0x6f806c\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:49:27 +0000\n; \nPUSH            {R0,R1,R4-R6,LR}                                       ; +0x0, 0x488ee2\nADD.W           R6, R0, #0x1B4                                         ; +0x2, 0x488ee4\nADD             R5, SP, #8+var_s0                                      ; +0x6, 0x488ee8\nMOV             R4, R0                                                 ; +0x8, 0x488eea\nMOV             R0, R6                                                 ; +0xa, 0x488eec\nSTR.W           R1, [R5,#-4]!                                          ; +0xc, 0x488eee\nMOV             R1, R5                                                 ; +0x10, 0x488ef2\nBL              _ZNSt6__ndk112__hash_tableINS_17__hash_value_typeIiP17EditorWindowPopupEENS_22__unordered_map_hasherIiS4_NS_4hashIiEELb1EEENS_21__unordered_map_equalIiS4_NS_8equal_toIiEELb1EEENS_9allocatorIS4_EEE4findIiEENS_15__hash_iteratorIPNS_11__hash_nodeIS4_PvEEEERKT_; std::__hash_table<std::__hash_value_type<int,EditorWindowPopup *>,std::__unordered_map_hasher<int,std::__hash_value_type<int,EditorWindowPopup *>,std::hash<int>,true>,std::__unordered_map_equal<int,std::__hash_value_type<int,EditorWindowPopup *>,std::equal_to<int>,true>,std::allocator<std::__hash_value_type<int,EditorWindowPopup *>>>::find<int>(int const&) ; +0x12, 0x488ef4\nCBZ             R0, loc_488F08                                         ; +0x16, 0x488ef8\nLDR             R0, [R0,#0xC]                                          ; +0x18, 0x488efa\nMOVS            R1, #0                                                 ; +0x1a, 0x488efc\nLDR             R3, [R0]                                               ; +0x1c, 0x488efe\nLDR.W           R3, [R3,#0x2AC]                                        ; +0x1e, 0x488f00\nBLX             R3                                                     ; +0x22, 0x488f04\nB               def_488F10; jumptable 00488F10 default case, case 2    ; +0x24, 0x488f06\nLDR             R3, [SP,#8+var_4]                                      ; +0x26, 0x488f08\nSUBS            R3, #1; switch 5 cases                                 ; +0x28, 0x488f0a\nCMP             R3, #4                                                 ; +0x2a, 0x488f0c\nBHI             def_488F10; jumptable 00488F10 default case, case 2    ; +0x2c, 0x488f0e\nTBB.W           [PC,R3]; switch jump                                   ; +0x2e, 0x488f10\nDCB 3; jump table for switch statement                                 ; +0x32, 0x488f14\nDCB 0x1E                                                               ; +0x33, 0x488f15\nDCB 7                                                                  ; +0x34, 0x488f16\nDCB 0xB                                                                ; +0x35, 0x488f17\nDCB 0xF                                                                ; +0x36, 0x488f18\nALIGN 2                                                                ; +0x37, 0x488f19\nMOV             R0, R4; jumptable 00488F10 case 1                      ; +0x38, 0x488f1a\nBL              _ZN19EditorCommandsPopup6createEP8EditorUI; EditorCommandsPopup::create(EditorUI *) ; +0x3a, 0x488f1c\nB               loc_488F38                                             ; +0x3e, 0x488f20\nMOV             R0, R4; jumptable 00488F10 case 3                      ; +0x40, 0x488f22\nBL              _ZN15FindObjectPopup6createEP8EditorUI; FindObjectPopup::create(EditorUI *) ; +0x42, 0x488f24\nB               loc_488F38                                             ; +0x46, 0x488f28\nMOV             R0, R4; jumptable 00488F10 case 4                      ; +0x48, 0x488f2a\nBL              _ZN17GridSettingsLayer6createEP8EditorUI; GridSettingsLayer::create(EditorUI *) ; +0x4a, 0x488f2c\nB               loc_488F38                                             ; +0x4e, 0x488f30\nMOV             R0, R4; jumptable 00488F10 case 5                      ; +0x50, 0x488f32\nBL              _ZN13MoveStepPopup6createEP8EditorUI; MoveStepPopup::create(EditorUI *) ; +0x52, 0x488f34\nMOV             R4, R0                                                 ; +0x56, 0x488f38\nCBZ             R0, def_488F10; jumptable 00488F10 default case, case 2 ; +0x58, 0x488f3a\nMOV             R0, R6                                                 ; +0x5a, 0x488f3c\nMOV             R1, R5                                                 ; +0x5c, 0x488f3e\nBL              _ZNSt6__ndk113unordered_mapIiP17EditorWindowPopupNS_4hashIiEENS_8equal_toIiEENS_9allocatorINS_4pairIKiS2_EEEEEixERS9_; std::unordered_map<int,EditorWindowPopup *>::operator[](int const&) ; +0x5e, 0x488f40\nSTR             R4, [R0]                                               ; +0x62, 0x488f44\nMOV             R0, R4                                                 ; +0x64, 0x488f46\nLDR             R3, [R4]                                               ; +0x66, 0x488f48\nLDR.W           R3, [R3,#0x290]                                        ; +0x68, 0x488f4a\nBLX             R3                                                     ; +0x6c, 0x488f4e\nADD             SP, SP, #8; jumptable 00488F10 default case, case 2    ; +0x6e, 0x488f50\nPOP             {R4-R6,PC}                                             ; +0x70, 0x488f52", "xrefs": ["EditorUI::onEditorCommands @ 0x488f5c", "EditorUI::onGridSizeIndicator @ 0x488f64", "EditorUI::onFindObject @ 0x488f70", "EditorUI::onDpadStep @ 0x6f806c"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}