{"type": "func", "start": 8179356, "end": 8179596, "name": "EditorUI::toggleWindow", "pseudocode": "// \n// EditorUI::toggleWindow from 0x7cce9c to 0x7ccf8c (240 bytes)\n// \n// 5 xrefs:\n// > EditorUI::onEditorCommands @ 0x7ccf9c\n// > EditorUI::onGridSizeIndicator @ 0x7ccfa4\n// > EditorUI::onFindObject @ 0x7ccfb8\n// > EditorUI::onDpadStep @ 0xbe21fc\n// > <???> @ 0x81760\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:12 +0000\n// \n\n__int64 __fastcall EditorUI::toggleWindow(EditorUI *this, int a2)\n{\n  char *v2; // x21\n  __int64 *v4; // x0\n  EditorUI *v5; // x1\n  __int64 result; // x0\n  __int64 v7; // x20\n  int v8; // [xsp+3Ch] [xbp+3Ch] BYREF\n\n  v2 = (char *)this + 576;\n  v8 = a2;\n  v4 = 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         (_QWORD *)this + 72,\n         &v8);\n  if ( v4 )\n    return (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v4[3] + 1368LL))(v4[3], 0);\n  result = (unsigned int)(v8 - 1);\n  switch ( v8 )\n  {\n    case 1:\n      result = EditorCommandsPopup::create(this, v5);\n      v7 = result;\n      goto LABEL_6;\n    case 3:\n      result = FindObjectPopup::create(this, v5);\n      v7 = result;\n      goto LABEL_6;\n    case 4:\n      result = GridSettingsLayer::create(this, v5);\n      v7 = result;\n      goto LABEL_6;\n    case 5:\n      result = MoveStepPopup::create(this, v5);\n      v7 = result;\nLABEL_6:\n      if ( v7 )\n      {\n        *(_QWORD *)std::unordered_map<int,EditorWindowPopup *>::operator[]((__int64)v2, &v8) = v7;\n        result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 1312LL))(v7);\n      }\n      break;\n    default:\n      return result;\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::toggleWindow from 0x7cce9c to 0x7ccf8c (240 bytes)\n; \n; 5 xrefs:\n; > EditorUI::onEditorCommands @ 0x7ccf9c\n; > EditorUI::onGridSizeIndicator @ 0x7ccfa4\n; > EditorUI::onFindObject @ 0x7ccfb8\n; > EditorUI::onDpadStep @ 0xbe21fc\n; > <???> @ 0x81760\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:12 +0000\n; \nSTP             X29, X30, [SP,#var_40]!                                ; +0x0, 0x7cce9c\nMOV             X29, SP                                                ; +0x4, 0x7ccea0\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0x8, 0x7ccea4\nADD             X19, X29, #0x40+arg_0                                  ; +0xc, 0x7ccea8\nSTR             X21, [SP,#0x40+var_20]                                 ; +0x10, 0x7cceac\nADD             X21, X0, #0x240                                        ; +0x14, 0x7cceb0\nMOV             X20, X0                                                ; +0x18, 0x7cceb4\nMOV             X0, X21                                                ; +0x1c, 0x7cceb8\nSTR             W1, [X19,#-4]!                                         ; +0x20, 0x7ccebc\nMOV             X1, X19                                                ; +0x24, 0x7ccec0\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&) ; +0x28, 0x7ccec4\nCBZ             X0, loc_7CCEF4                                         ; +0x2c, 0x7ccec8\nLDR             X2, [X0,#0x18]                                         ; +0x30, 0x7ccecc\nMOV             X1, #0                                                 ; +0x34, 0x7cced0\nMOV             X0, X2                                                 ; +0x38, 0x7cced4\nLDR             X2, [X2]                                               ; +0x3c, 0x7cced8\nLDR             X2, [X2,#0x558]                                        ; +0x40, 0x7ccedc\nBLR             X2                                                     ; +0x44, 0x7ccee0\nLDP             X19, X20, [SP,#0x40+var_30]; jumptable 00000000007CCF18 default case, case 2 ; +0x48, 0x7ccee4\nLDR             X21, [SP,#0x40+var_20]                                 ; +0x4c, 0x7ccee8\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x50, 0x7cceec\nRET                                                                    ; +0x54, 0x7ccef0\nLDR             W0, [X29,#0x40+var_4]                                  ; +0x58, 0x7ccef4\nSUB             W0, W0, #1; switch 5 cases                             ; +0x5c, 0x7ccef8\nCMP             W0, #4                                                 ; +0x60, 0x7ccefc\nB.HI            def_7CCF18; jumptable 00000000007CCF18 default case, case 2 ; +0x64, 0x7ccf00\nADRL            X1, jpt_7CCF18                                         ; +0x68, 0x7ccf04\nLDRB            W0, [X1,W0,UXTW]                                       ; +0x70, 0x7ccf0c\nADR             X1, loc_7CCF1C; EditorUI *                             ; +0x74, 0x7ccf10\nADD             X0, X1, W0,SXTB#2                                      ; +0x78, 0x7ccf14\nBR              X0; switch jump                                        ; +0x7c, 0x7ccf18\nMOV             X0, X20; jumptable 00000000007CCF18 case 5             ; +0x80, 0x7ccf1c\nBL              _ZN13MoveStepPopup6createEP8EditorUI; MoveStepPopup::create(EditorUI *) ; +0x84, 0x7ccf20\nMOV             X20, X0                                                ; +0x88, 0x7ccf24\nCBZ             X20, def_7CCF18; jumptable 00000000007CCF18 default case, case 2 ; +0x8c, 0x7ccf28\nMOV             X1, X19                                                ; +0x90, 0x7ccf2c\nMOV             X0, X21                                                ; +0x94, 0x7ccf30\nBL              _ZNSt6__ndk113unordered_mapIiP17EditorWindowPopupNS_4hashIiEENS_8equal_toIiEENS_9allocatorINS_4pairIKiS2_EEEEEixERS9_; std::unordered_map<int,EditorWindowPopup *>::operator[](int const&) ; +0x98, 0x7ccf34\nSTR             X20, [X0]                                              ; +0x9c, 0x7ccf38\nMOV             X0, X20                                                ; +0xa0, 0x7ccf3c\nLDR             X1, [X20]                                              ; +0xa4, 0x7ccf40\nLDR             X1, [X1,#0x520]                                        ; +0xa8, 0x7ccf44\nBLR             X1                                                     ; +0xac, 0x7ccf48\nLDR             X21, [SP,#0x40+var_20]                                 ; +0xb0, 0x7ccf4c\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0xb4, 0x7ccf50\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0xb8, 0x7ccf54\nRET                                                                    ; +0xbc, 0x7ccf58\nMOV             X0, X20; jumptable 00000000007CCF18 case 4             ; +0xc0, 0x7ccf5c\nBL              _ZN17GridSettingsLayer6createEP8EditorUI; GridSettingsLayer::create(EditorUI *) ; +0xc4, 0x7ccf60\nMOV             X20, X0                                                ; +0xc8, 0x7ccf64\nB               loc_7CCF28                                             ; +0xcc, 0x7ccf68\nMOV             X0, X20; jumptable 00000000007CCF18 case 3             ; +0xd0, 0x7ccf6c\nBL              _ZN15FindObjectPopup6createEP8EditorUI; FindObjectPopup::create(EditorUI *) ; +0xd4, 0x7ccf70\nMOV             X20, X0                                                ; +0xd8, 0x7ccf74\nB               loc_7CCF28                                             ; +0xdc, 0x7ccf78\nMOV             X0, X20; jumptable 00000000007CCF18 case 1             ; +0xe0, 0x7ccf7c\nBL              _ZN19EditorCommandsPopup6createEP8EditorUI; EditorCommandsPopup::create(EditorUI *) ; +0xe4, 0x7ccf80\nMOV             X20, X0                                                ; +0xe8, 0x7ccf84\nB               loc_7CCF28                                             ; +0xec, 0x7ccf88", "xrefs": ["EditorUI::onEditorCommands @ 0x7ccf9c", "EditorUI::onGridSizeIndicator @ 0x7ccfa4", "EditorUI::onFindObject @ 0x7ccfb8", "EditorUI::onDpadStep @ 0xbe21fc", "<???> @ 0x81760"], "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"}