{"type": "func", "start": 4299085072, "end": 4299085276, "name": "EditorUI::canSelectObject", "pseudocode": "// \n// EditorUI::canSelectObject from 0x1003ed510 to 0x1003ed5dc (204 bytes)\n// \n// 2 xrefs:\n// > EditorUI::selectObject @ 0x1003e6e68\n// > EditorUI::getCycledObject @ 0x1003e99e0\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 __fastcall EditorUI::canSelectObject(EditorUI *a1, GameObject *a2)\n{\n  GameManager *v3; // x0\n  GameManager *v4; // x0\n  GameManager *v5; // x0\n  GameManager *v6; // x0\n  int IntGameVariable; // w0\n  _BOOL4 v8; // w0\n  GameManager *v9; // x0\n  int v10; // w0\n  int v11; // w20\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      v5 = GameManager::sharedState();\n      if ( a2->m_objectID != GameManager::getIntGameVariable(v5, \"0006\") )\n        goto LABEL_10;\n    }\n  }\n  v6 = GameManager::sharedState();\n  IntGameVariable = GameManager::getIntGameVariable(v6, \"0133\");\n  if ( !IntGameVariable || (v8 = GameObject::belongsToGroup(a2, IntGameVariable)) )\n  {\n    v9 = GameManager::sharedState();\n    v10 = GameManager::getIntGameVariable(v9, \"0139\");\n    if ( !v10 || (v11 = v10, GameObject::getMainColorMode(a2) == v10) || GameObject::getSecondaryColorMode(a2) == v11 )\n    {\n      LOBYTE(v8) = 1;\n      return v8;\n    }\nLABEL_10:\n    LOBYTE(v8) = 0;\n  }\n  return v8;\n}", "assembly": "; \n; EditorUI::canSelectObject from 0x1003ed510 to 0x1003ed5dc (204 bytes)\n; \n; 2 xrefs:\n; > EditorUI::selectObject @ 0x1003e6e68\n; > EditorUI::getCycledObject @ 0x1003e99e0\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             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x1003ed510\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1003ed514\nADD             X29, SP, #0x10                                         ; +0x8, 0x1003ed518\nMOV             X19, X1                                                ; +0xc, 0x1003ed51c\nBL              GameManager__sharedState                               ; +0x10, 0x1003ed520\nADRL            X1, a0064; \"0064\"                                      ; +0x14, 0x1003ed524\nBL              GameManager__getGameVariable                           ; +0x1c, 0x1003ed52c\nCBZ             W0, loc_1003ED568                                      ; +0x20, 0x1003ed530\nBL              GameManager__sharedState                               ; +0x24, 0x1003ed534\nADRL            X1, a0005; \"0005\"                                      ; +0x28, 0x1003ed538\nBL              GameManager__getIntGameVariable                        ; +0x30, 0x1003ed540\nCMP             W0, #3                                                 ; +0x34, 0x1003ed544\nB.NE            loc_1003ED568                                          ; +0x38, 0x1003ed548\nBL              GameManager__sharedState                               ; +0x3c, 0x1003ed54c\nADRL            X1, a0006; \"0006\"                                      ; +0x40, 0x1003ed550\nBL              GameManager__getIntGameVariable                        ; +0x48, 0x1003ed558\nLDR             W8, [X19,#0x404]                                       ; +0x4c, 0x1003ed55c\nCMP             W8, W0                                                 ; +0x50, 0x1003ed560\nB.NE            loc_1003ED5CC                                          ; +0x54, 0x1003ed564\nBL              GameManager__sharedState                               ; +0x58, 0x1003ed568\nADRL            X1, a0133; \"0133\"                                      ; +0x5c, 0x1003ed56c\nBL              GameManager__getIntGameVariable                        ; +0x64, 0x1003ed574\nCBZ             W0, loc_1003ED58C                                      ; +0x68, 0x1003ed578\nMOV             X1, X0                                                 ; +0x6c, 0x1003ed57c\nMOV             X0, X19                                                ; +0x70, 0x1003ed580\nBL              GameObject__belongsToGroup                             ; +0x74, 0x1003ed584\nCBZ             W0, loc_1003ED5D0                                      ; +0x78, 0x1003ed588\nBL              GameManager__sharedState                               ; +0x7c, 0x1003ed58c\nADRL            X1, a0139; \"0139\"                                      ; +0x80, 0x1003ed590\nBL              GameManager__getIntGameVariable                        ; +0x88, 0x1003ed598\nCBZ             W0, loc_1003ED5C4                                      ; +0x8c, 0x1003ed59c\nMOV             X20, X0                                                ; +0x90, 0x1003ed5a0\nMOV             X0, X19                                                ; +0x94, 0x1003ed5a4\nBL              GameObject__getMainColorMode                           ; +0x98, 0x1003ed5a8\nCMP             W0, W20                                                ; +0x9c, 0x1003ed5ac\nB.EQ            loc_1003ED5C4                                          ; +0xa0, 0x1003ed5b0\nMOV             X0, X19                                                ; +0xa4, 0x1003ed5b4\nBL              GameObject__getSecondaryColorMode                      ; +0xa8, 0x1003ed5b8\nCMP             W0, W20                                                ; +0xac, 0x1003ed5bc\nB.NE            loc_1003ED5CC                                          ; +0xb0, 0x1003ed5c0\nMOV             W0, #1                                                 ; +0xb4, 0x1003ed5c4\nB               loc_1003ED5D0                                          ; +0xb8, 0x1003ed5c8\nMOV             W0, #0                                                 ; +0xbc, 0x1003ed5cc\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0xc0, 0x1003ed5d0\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0xc4, 0x1003ed5d4\nRET                                                                    ; +0xc8, 0x1003ed5d8", "xrefs": ["EditorUI::selectObject @ 0x1003e6e68", "EditorUI::getCycledObject @ 0x1003e99e0"], "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"}