{"type": "func", "start": 7291612, "end": 7291738, "name": "EditorUI::canSelectObject", "pseudocode": "// \n// EditorUI::canSelectObject from 0x6f42dc to 0x6f435a (126 bytes)\n// \n// 2 xrefs:\n// > EditorUI::getCycledObject @ 0x484fd4\n// > EditorUI::selectObject @ 0x6f4530\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:38 +0000\n// \n\nbool __fastcall EditorUI::canSelectObject(EditorUI *this, GameManager **a2)\n{\n  GameManager *v3; // r0\n  GameManager *GameVariable; // r0\n  GameManager *v5; // r0\n  GameManager *IntGameVariable; // r0\n  GameManager *v7; // r0\n  GameManager *v8; // r0\n  GameManager *v10; // r0\n  GJSpriteColor *v11; // r5\n\n  v3 = (GameManager *)GameManager::sharedState(this);\n  GameVariable = (GameManager *)GameManager::getGameVariable(v3, \"0064\");\n  if ( GameVariable )\n  {\n    v7 = (GameManager *)GameManager::sharedState(GameVariable);\n    GameVariable = (GameManager *)GameManager::getIntGameVariable(v7, \"0005\");\n    if ( GameVariable == (GameManager *)((char *)&dword_0 + 3) )\n    {\n      v8 = (GameManager *)GameManager::sharedState((GameManager *)((char *)&dword_0 + 3));\n      GameVariable = (GameManager *)GameManager::getIntGameVariable(v8, \"0006\");\n      if ( a2[223] != GameVariable )\n        return 0;\n    }\n  }\n  v5 = (GameManager *)GameManager::sharedState(GameVariable);\n  IntGameVariable = (GameManager *)GameManager::getIntGameVariable(v5, \"0133\");\n  if ( IntGameVariable )\n  {\n    IntGameVariable = (GameManager *)GameObject::belongsToGroup((GameObject *)a2, (int)IntGameVariable);\n    if ( !IntGameVariable )\n      return 0;\n  }\n  v10 = (GameManager *)GameManager::sharedState(IntGameVariable);\n  v11 = (GJSpriteColor *)GameManager::getIntGameVariable(v10, \"0139\");\n  return !v11\n      || GameObject::getMainColorMode((GameObject *)a2) == v11\n      || GameObject::getSecondaryColorMode((GameObject *)a2) == v11;\n}", "assembly": "; \n; EditorUI::canSelectObject from 0x6f42dc to 0x6f435a (126 bytes)\n; \n; 2 xrefs:\n; > EditorUI::getCycledObject @ 0x484fd4\n; > EditorUI::selectObject @ 0x6f4530\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:38 +0000\n; \nPUSH            {R3-R5,LR}                                             ; +0x0, 0x6f42dc\nMOV             R4, R1                                                 ; +0x2, 0x6f42de\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x4, 0x6f42e0\nLDR             R1, =(a0064 - 0x6F42EA); \"0064\"                        ; +0x8, 0x6f42e4\nADD             R1, PC; \"0064\"                                         ; +0xa, 0x6f42e6\nBL              _ZN11GameManager15getGameVariableEPKc; GameManager::getGameVariable(char const*) ; +0xc, 0x6f42e8\nCBNZ            R0, loc_6F4300                                         ; +0x10, 0x6f42ec\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x12, 0x6f42ee\nLDR             R1, =(a0133 - 0x6F42F8); \"0133\"                        ; +0x16, 0x6f42f2\nADD             R1, PC; \"0133\"                                         ; +0x18, 0x6f42f4\nBL              _ZN11GameManager18getIntGameVariableEPKc; GameManager::getIntGameVariable(char const*) ; +0x1a, 0x6f42f6\nMOV             R1, R0; int                                            ; +0x1e, 0x6f42fa\nCBNZ            R0, loc_6F4328                                         ; +0x20, 0x6f42fc\nB               loc_6F4332                                             ; +0x22, 0x6f42fe\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x24, 0x6f4300\nLDR             R1, =(a0005 - 0x6F430A); \"0005\"                        ; +0x28, 0x6f4304\nADD             R1, PC; \"0005\"                                         ; +0x2a, 0x6f4306\nBL              _ZN11GameManager18getIntGameVariableEPKc; GameManager::getIntGameVariable(char const*) ; +0x2c, 0x6f4308\nCMP             R0, #3                                                 ; +0x30, 0x6f430c\nBNE             loc_6F42EE                                             ; +0x32, 0x6f430e\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x34, 0x6f4310\nLDR             R1, =(a0006 - 0x6F431A); \"0006\"                        ; +0x38, 0x6f4314\nADD             R1, PC; \"0006\"                                         ; +0x3a, 0x6f4316\nBL              _ZN11GameManager18getIntGameVariableEPKc; GameManager::getIntGameVariable(char const*) ; +0x3c, 0x6f4318\nLDR.W           R3, [R4,#0x37C]                                        ; +0x40, 0x6f431c\nCMP             R3, R0                                                 ; +0x44, 0x6f4320\nBEQ             loc_6F42EE                                             ; +0x46, 0x6f4322\nMOVS            R0, #0                                                 ; +0x48, 0x6f4324\nPOP             {R3-R5,PC}                                             ; +0x4a, 0x6f4326\nMOV             R0, R4; this                                           ; +0x4c, 0x6f4328\nBL              _ZN10GameObject14belongsToGroupEi; GameObject::belongsToGroup(int) ; +0x4e, 0x6f432a\nCMP             R0, #0                                                 ; +0x52, 0x6f432e\nBEQ             loc_6F4324                                             ; +0x54, 0x6f4330\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x56, 0x6f4332\nLDR             R1, =(a0139 - 0x6F433C); \"0139\"                        ; +0x5a, 0x6f4336\nADD             R1, PC; \"0139\"                                         ; +0x5c, 0x6f4338\nBL              _ZN11GameManager18getIntGameVariableEPKc; GameManager::getIntGameVariable(char const*) ; +0x5e, 0x6f433a\nMOV             R5, R0                                                 ; +0x62, 0x6f433e\nCBZ             R0, loc_6F4356                                         ; +0x64, 0x6f4340\nMOV             R0, R4; this                                           ; +0x66, 0x6f4342\nBL              _ZN10GameObject16getMainColorModeEv; GameObject::getMainColorMode(void) ; +0x68, 0x6f4344\nCMP             R0, R5                                                 ; +0x6c, 0x6f4348\nBEQ             loc_6F4356                                             ; +0x6e, 0x6f434a\nMOV             R0, R4; this                                           ; +0x70, 0x6f434c\nBL              _ZN10GameObject21getSecondaryColorModeEv; GameObject::getSecondaryColorMode(void) ; +0x72, 0x6f434e\nCMP             R0, R5                                                 ; +0x76, 0x6f4352\nBNE             loc_6F4324                                             ; +0x78, 0x6f4354\nMOVS            R0, #1                                                 ; +0x7a, 0x6f4356\nPOP             {R3-R5,PC}                                             ; +0x7c, 0x6f4358", "xrefs": ["EditorUI::getCycledObject @ 0x484fd4", "EditorUI::selectObject @ 0x6f4530"], "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"}