{"type": "func", "start": 7301924, "end": 7302064, "name": "EditorUI::getViewButtonState", "pseudocode": "// \n// EditorUI::getViewButtonState from 0x6f6b24 to 0x6f6bb0 (140 bytes)\n// \n// 2 xrefs:\n// > EditorUI::updateViewButtons @ 0x6f6c08\n// > EditorUI::toggleViewOption @ 0x70c604\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:57:39 +0000\n// \n\nGameManager *__fastcall EditorUI::getViewButtonState(EditorUI *this, int a2)\n{\n  GameManager *result; // r0\n  char **v3; // r2\n  GameManager *v4; // r4\n  int v5; // r0\n  GameManager *v6; // r0\n  char *v7; // r1\n  int v8; // [sp+4h] [bp-4h] BYREF\n\n  v8 = a2;\n  switch ( a2 )\n  {\n    case 14:\n      return (GameManager *)*(unsigned __int8 *)(GameManager::sharedState(this) + 721);\n    case 15:\n      return (GameManager *)*(unsigned __int8 *)(GameManager::sharedState(this) + 722);\n    case 17:\n      v3 = &LevelEditorLayer::s_showLocalDeaths;\n      goto LABEL_6;\n    case 18:\n      v3 = LevelEditorLayer::s_showGlobalDeaths;\n      goto LABEL_6;\n    case 19:\n      v3 = LevelEditorLayer::s_showDeathLabels;\n      goto LABEL_6;\n    case 21:\n      v3 = LevelEditorLayer::s_liveTraceIn;\n      goto LABEL_6;\n    case 22:\n      v3 = &LevelEditorLayer::s_liveTraceOut;\nLABEL_6:\n      result = (GameManager *)(unsigned __int8)**v3;\n      break;\n    default:\n      result = (GameManager *)std::__hash_table<std::__hash_value_type<int,std::string>,std::__unordered_map_hasher<int,std::__hash_value_type<int,std::string>,std::hash<int>,true>,std::__unordered_map_equal<int,std::__hash_value_type<int,std::string>,std::equal_to<int>,true>,std::allocator<std::__hash_value_type<int,std::string>>>::find<int>(\n                                (_DWORD *)this + 229,\n                                (unsigned int *)&v8);\n      v4 = result;\n      if ( result )\n      {\n        v5 = *((unsigned __int8 *)result + 12);\n        result = (v5 & 1) != 0 ? *((GameManager **)v4 + 4) : (GameManager *)(v5 >> 1);\n        if ( result )\n        {\n          v6 = (GameManager *)GameManager::sharedState(result);\n          if ( (*((_BYTE *)v4 + 12) & 1) != 0 )\n            v7 = *((char **)v4 + 5);\n          else\n            v7 = (char *)v4 + 13;\n          result = (GameManager *)GameManager::getGameVariable(v6, v7);\n          if ( v8 < 0 )\n            result = (GameManager *)((unsigned __int8)result ^ 1);\n        }\n      }\n      break;\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::getViewButtonState from 0x6f6b24 to 0x6f6bb0 (140 bytes)\n; \n; 2 xrefs:\n; > EditorUI::updateViewButtons @ 0x6f6c08\n; > EditorUI::toggleViewOption @ 0x70c604\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:57:39 +0000\n; \nLDR             R3, =(_GLOBAL_OFFSET_TABLE_ - 0x6F6B2C)                ; +0x0, 0x6f6b24\nPUSH            {R0,R1,R4,LR}                                          ; +0x2, 0x6f6b26\nADD             R3, PC; _GLOBAL_OFFSET_TABLE_                          ; +0x4, 0x6f6b28\nSTR             R1, [SP,#8+var_4]                                      ; +0x6, 0x6f6b2a\nSUBS            R1, #0xE; switch 9 cases                               ; +0x8, 0x6f6b2c\nCMP             R1, #8                                                 ; +0xa, 0x6f6b2e\nBHI             def_6F6B32; jumptable 006F6B32 default case, cases 16,20 ; +0xc, 0x6f6b30\nTBB.W           [PC,R1]; switch jump                                   ; +0xe, 0x6f6b32\nDCB 5; jump table for switch statement                                 ; +0x12, 0x6f6b36\nDCB 0xA                                                                ; +0x13, 0x6f6b37\nDCB 0x1B                                                               ; +0x14, 0x6f6b38\nDCB 0xF                                                                ; +0x15, 0x6f6b39\nDCB 0x11                                                               ; +0x16, 0x6f6b3a\nDCB 0x15                                                               ; +0x17, 0x6f6b3b\nDCB 0x1B                                                               ; +0x18, 0x6f6b3c\nDCB 0x17                                                               ; +0x19, 0x6f6b3d\nDCB 0x19                                                               ; +0x1a, 0x6f6b3e\nALIGN 2                                                                ; +0x1b, 0x6f6b3f\nBL              _ZN11GameManager11sharedStateEv; jumptable 006F6B32 case 14 ; +0x1c, 0x6f6b40\nLDRB.W          R0, [R0,#0x2D1]; this                                  ; +0x20, 0x6f6b44\nB               loc_6F6BAC                                             ; +0x24, 0x6f6b48\nBL              _ZN11GameManager11sharedStateEv; jumptable 006F6B32 case 15 ; +0x26, 0x6f6b4a\nLDRB.W          R0, [R0,#0x2D2]                                        ; +0x2a, 0x6f6b4e\nB               loc_6F6BAC                                             ; +0x2e, 0x6f6b52\nLDR             R2, =(_ZN16LevelEditorLayer17s_showLocalDeathsE_ptr - 0xD1D93C); jumptable 006F6B32 case 17 ; +0x30, 0x6f6b54\nB               loc_6F6B5A                                             ; +0x32, 0x6f6b56\nLDR             R2, =(_ZN16LevelEditorLayer18s_showGlobalDeathsE_ptr - 0xD1D93C); jumptable 006F6B32 case 18 ; +0x34, 0x6f6b58\nLDR             R3, [R3,R2]; LevelEditorLayer::s_showDeathLabels       ; +0x36, 0x6f6b5a\nLDRB            R0, [R3]; LevelEditorLayer::s_showDeathLabels          ; +0x38, 0x6f6b5c\nB               loc_6F6BAC                                             ; +0x3a, 0x6f6b5e\nLDR             R2, =(_ZN16LevelEditorLayer17s_showDeathLabelsE_ptr - 0xD1D93C); jumptable 006F6B32 case 19 ; +0x3c, 0x6f6b60\nB               loc_6F6B5A                                             ; +0x3e, 0x6f6b62\nLDR             R2, =(_ZN16LevelEditorLayer13s_liveTraceInE_ptr - 0xD1D93C); jumptable 006F6B32 case 21 ; +0x40, 0x6f6b64\nB               loc_6F6B5A                                             ; +0x42, 0x6f6b66\nLDR             R2, =(_ZN16LevelEditorLayer14s_liveTraceOutE_ptr - 0xD1D93C); jumptable 006F6B32 case 22 ; +0x44, 0x6f6b68\nB               loc_6F6B5A                                             ; +0x46, 0x6f6b6a\nADD.W           R0, R0, #0x394; jumptable 006F6B32 default case, cases 16,20 ; +0x48, 0x6f6b6c\nADD             R1, SP, #8+var_4                                       ; +0x4c, 0x6f6b70\nBL              _ZNSt6__ndk112__hash_tableINS_17__hash_value_typeIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEEENS_22__unordered_map_hasherIiS8_NS_4hashIiEELb1EEENS_21__unordered_map_equalIiS8_NS_8equal_toIiEELb1EEENS5_IS8_EEE4findIiEENS_15__hash_iteratorIPNS_11__hash_nodeIS8_PvEEEERKT_; std::__hash_table<std::__hash_value_type<int,std::string>,std::__unordered_map_hasher<int,std::__hash_value_type<int,std::string>,std::hash<int>,true>,std::__unordered_map_equal<int,std::__hash_value_type<int,std::string>,std::equal_to<int>,true>,std::allocator<std::__hash_value_type<int,std::string>>>::find<int>(int const&) ; +0x4e, 0x6f6b72\nMOV             R4, R0                                                 ; +0x52, 0x6f6b76\nCBZ             R0, loc_6F6B88                                         ; +0x54, 0x6f6b78\nLDRB            R0, [R0,#0xC]                                          ; +0x56, 0x6f6b7a\nLSLS            R2, R0, #0x1F                                          ; +0x58, 0x6f6b7c\nITE PL                                                                 ; +0x5a, 0x6f6b7e\nASRPL           R0, R0, #1                                             ; +0x5c, 0x6f6b80\nLDRMI           R0, [R4,#0x10]; this                                   ; +0x5e, 0x6f6b82\nCBNZ            R0, loc_6F6B8A                                         ; +0x60, 0x6f6b84\nB               loc_6F6BAC                                             ; +0x62, 0x6f6b86\nB               loc_6F6BAC                                             ; +0x64, 0x6f6b88\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x66, 0x6f6b8a\nLDRB            R3, [R4,#0xC]                                          ; +0x6a, 0x6f6b8e\nLSLS            R3, R3, #0x1F                                          ; +0x6c, 0x6f6b90\nBPL             loc_6F6B98                                             ; +0x6e, 0x6f6b92\nLDR             R1, [R4,#0x14]                                         ; +0x70, 0x6f6b94\nB               loc_6F6B9C                                             ; +0x72, 0x6f6b96\nADD.W           R1, R4, #0xD; char *                                   ; +0x74, 0x6f6b98\nBL              _ZN11GameManager15getGameVariableEPKc; GameManager::getGameVariable(char const*) ; +0x78, 0x6f6b9c\nLDR             R3, [SP,#8+var_4]                                      ; +0x7c, 0x6f6ba0\nCMP             R3, #0                                                 ; +0x7e, 0x6f6ba2\nBGE             loc_6F6BAC                                             ; +0x80, 0x6f6ba4\nEOR.W           R0, R0, #1                                             ; +0x82, 0x6f6ba6\nUXTB            R0, R0                                                 ; +0x86, 0x6f6baa\nADD             SP, SP, #8                                             ; +0x88, 0x6f6bac\nPOP             {R4,PC}                                                ; +0x8a, 0x6f6bae", "xrefs": ["EditorUI::updateViewButtons @ 0x6f6c08", "EditorUI::toggleViewOption @ 0x70c604"], "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"}