{"type": "func", "start": 6852680, "end": 6852908, "name": "EditorUI::canSelectObject", "pseudocode": "// \n// EditorUI::canSelectObject from 0x689048 to 0x68912c (228 bytes)\n// \n// 3 xrefs:\n// > EditorUI::getCycledObject @ 0x690718\n// > EditorUI::selectObject @ 0x6be55c\n// > <???> @ 0x30e28\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\nbool EditorUI::canSelectObject(EditorUI *a1, GameObject *a2)\n{\n  GameManager *v3; // x0\n  GameManager *v4; // x0\n  GameManager *v5; // x0\n  int IntGameVariable; // w1\n  GameManager *v7; // x0\n  int v8; // w20\n  bool result; // w0\n  GameManager *v10; // x0\n\n  v3 = GameManager::sharedState();\n  if ( GameManager::getGameVariable(v3, \"0064\") )\n  {\n    v4 = GameManager::sharedState();\n    if ( GameManager::getIntGameVariable(v4, \"0005\") == 3 )\n    {\n      v10 = GameManager::sharedState();\n      if ( GameManager::getIntGameVariable(v10, \"0006\") != a2->m_objectID )\n        return 0;\n    }\n  }\n  v5 = GameManager::sharedState();\n  IntGameVariable = GameManager::getIntGameVariable(v5, \"0133\");\n  result = false;\n  if ( !IntGameVariable || GameObject::belongsToGroup(a2, IntGameVariable) )\n  {\n    v7 = GameManager::sharedState();\n    v8 = GameManager::getIntGameVariable(v7, \"0139\");\n    if ( !v8 || v8 == GameObject::getMainColorMode(a2) || v8 == GameObject::getSecondaryColorMode(a2) )\n      return true;\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::canSelectObject from 0x689048 to 0x68912c (228 bytes)\n; \n; 3 xrefs:\n; > EditorUI::getCycledObject @ 0x690718\n; > EditorUI::selectObject @ 0x6be55c\n; > <???> @ 0x30e28\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\nSTP             X29, X30, [SP,#-0x20+var_s0]!                          ; +0x0, 0x689048\nMOV             X29, SP                                                ; +0x4, 0x68904c\nSTP             X19, X20, [SP,#var_s10]                                ; +0x8, 0x689050\nMOV             X19, X1                                                ; +0xc, 0x689054\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x10, 0x689058\nADRL            X1, a0064; \"0064\"                                      ; +0x14, 0x68905c\nBL              _ZN11GameManager15getGameVariableEPKc; GameManager::getGameVariable(char const*) ; +0x1c, 0x689064\nUXTB            W0, W0; this                                           ; +0x20, 0x689068\nCBZ             W0, loc_689088                                         ; +0x24, 0x68906c\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x28, 0x689070\nADRL            X1, a0005; \"0005\"                                      ; +0x2c, 0x689074\nBL              _ZN11GameManager18getIntGameVariableEPKc; GameManager::getIntGameVariable(char const*) ; +0x34, 0x68907c\nCMP             W0, #3                                                 ; +0x38, 0x689080\nB.EQ            loc_689108                                             ; +0x3c, 0x689084\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x40, 0x689088\nADRL            X1, a0133; \"0133\"                                      ; +0x44, 0x68908c\nBL              _ZN11GameManager18getIntGameVariableEPKc; GameManager::getIntGameVariable(char const*) ; +0x4c, 0x689094\nMOV             W1, W0; int                                            ; +0x50, 0x689098\nCBZ             W0, loc_6890B0                                         ; +0x54, 0x68909c\nMOV             X0, X19; this                                          ; +0x58, 0x6890a0\nBL              _ZN10GameObject14belongsToGroupEi; GameObject::belongsToGroup(int) ; +0x5c, 0x6890a4\nUXTB            W0, W0; this                                           ; +0x60, 0x6890a8\nCBZ             W0, loc_6890F8                                         ; +0x64, 0x6890ac\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x68, 0x6890b0\nADRL            X1, a0139; \"0139\"                                      ; +0x6c, 0x6890b4\nBL              _ZN11GameManager18getIntGameVariableEPKc; GameManager::getIntGameVariable(char const*) ; +0x74, 0x6890bc\nMOV             W20, W0                                                ; +0x78, 0x6890c0\nCBNZ            W0, loc_6890D8                                         ; +0x7c, 0x6890c4\nMOV             W0, #1                                                 ; +0x80, 0x6890c8\nLDP             X19, X20, [SP,#var_s10]                                ; +0x84, 0x6890cc\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x88, 0x6890d0\nRET                                                                    ; +0x8c, 0x6890d4\nMOV             X0, X19; this                                          ; +0x90, 0x6890d8\nBL              _ZN10GameObject16getMainColorModeEv; GameObject::getMainColorMode(void) ; +0x94, 0x6890dc\nCMP             W20, W0                                                ; +0x98, 0x6890e0\nB.EQ            loc_6890C8                                             ; +0x9c, 0x6890e4\nMOV             X0, X19; this                                          ; +0xa0, 0x6890e8\nBL              _ZN10GameObject21getSecondaryColorModeEv; GameObject::getSecondaryColorMode(void) ; +0xa4, 0x6890ec\nCMP             W20, W0                                                ; +0xa8, 0x6890f0\nB.EQ            loc_6890C8                                             ; +0xac, 0x6890f4\nMOV             W0, #0                                                 ; +0xb0, 0x6890f8\nLDP             X19, X20, [SP,#var_s10]                                ; +0xb4, 0x6890fc\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0xb8, 0x689100\nRET                                                                    ; +0xbc, 0x689104\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0xc0, 0x689108\nADRL            X1, a0006; \"0006\"                                      ; +0xc4, 0x68910c\nBL              _ZN11GameManager18getIntGameVariableEPKc; GameManager::getIntGameVariable(char const*) ; +0xcc, 0x689114\nLDR             W1, [X19,#0x3F4]                                       ; +0xd0, 0x689118\nCMP             W0, W1                                                 ; +0xd4, 0x68911c\nB.EQ            loc_689088                                             ; +0xd8, 0x689120\nMOV             W0, #0                                                 ; +0xdc, 0x689124\nB               loc_6890FC                                             ; +0xe0, 0x689128", "xrefs": ["EditorUI::getCycledObject @ 0x690718", "EditorUI::selectObject @ 0x6be55c", "<???> @ 0x30e28"], "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"}