{"type": "func", "start": 3672316, "end": 3672396, "name": "EditorUI::showLiveColorSelectForModeSpecial", "pseudocode": "// \n// EditorUI::showLiveColorSelectForModeSpecial from 0x3808fc to 0x38094c (80 bytes)\n// \n// 1 xrefs:\n// > CustomizeObjectLayer::onLiveEdit @ 0x461b88\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\nvoid EditorUI::showLiveColorSelectForModeSpecial(EditorUI *a1, int a2)\n{\n  GameObject *m_selectedObject; // r0\n  cocos2d::CCArray *m_selectedObjects; // r3\n  cocos2d::ccArray *data; // r2\n  cocos2d::CCObject **arr; // r5\n  cocos2d::CCObject **v8; // r4\n  GameObject *v9; // r0\n  GameObject *v10; // t1\n\n  m_selectedObject = a1->m_selectedObject;\n  if ( m_selectedObject )\n  {\n    GameObject::deselectObject(m_selectedObject);\n  }\n  else if ( cocos2d::CCArray::count(a1->m_selectedObjects) )\n  {\n    m_selectedObjects = a1->m_selectedObjects;\n    if ( m_selectedObjects )\n    {\n      data = m_selectedObjects->data;\n      if ( data->num )\n      {\n        arr = data->arr;\n        v8 = &arr[data->num] + 0x3FFFFFFF;\n        while ( arr <= v8 )\n        {\n          v10 = (GameObject *)*arr++;\n          v9 = v10;\n          if ( !v10 )\n            break;\n          GameObject::deselectObject(v9);\n        }\n      }\n    }\n  }\n  EditorUI::showLiveColorSelectForMode(a1, a2);\n}", "assembly": "; \n; EditorUI::showLiveColorSelectForModeSpecial from 0x3808fc to 0x38094c (80 bytes)\n; \n; 1 xrefs:\n; > CustomizeObjectLayer::onLiveEdit @ 0x461b88\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\nPUSH            {R3-R7,LR}                                             ; +0x0, 0x3808fc\nMOV             R6, R0                                                 ; +0x2, 0x3808fe\nLDR.W           R0, [R0,#0x374]; this                                  ; +0x4, 0x380900\nMOV             R7, R1                                                 ; +0x8, 0x380904\nCBZ             R0, loc_38090E                                         ; +0xa, 0x380906\nBL              _ZN10GameObject14deselectObjectEv; GameObject::deselectObject(void) ; +0xc, 0x380908\nB               loc_380940                                             ; +0x10, 0x38090c\nLDR.W           R0, [R6,#0x260]; this                                  ; +0x12, 0x38090e\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x16, 0x380912\nCBZ             R0, loc_380940                                         ; +0x1a, 0x380916\nLDR.W           R3, [R6,#0x260]                                        ; +0x1c, 0x380918\nCBZ             R3, loc_380940                                         ; +0x20, 0x38091c\nLDR             R2, [R3,#0x34]                                         ; +0x22, 0x38091e\nLDR             R3, [R2]                                               ; +0x24, 0x380920\nCBZ             R3, loc_380940                                         ; +0x26, 0x380922\nADD.W           R3, R3, #0x40000000                                    ; +0x28, 0x380924\nLDR             R5, [R2,#0xC]                                          ; +0x2c, 0x380928\nSUBS            R3, #1                                                 ; +0x2e, 0x38092a\nADD.W           R4, R5, R3,LSL#2                                       ; +0x30, 0x38092c\nCMP             R5, R4                                                 ; +0x34, 0x380930\nBHI             loc_380940                                             ; +0x36, 0x380932\nLDR.W           R0, [R5],#4; this                                      ; +0x38, 0x380934\nCBZ             R0, loc_380940                                         ; +0x3c, 0x380938\nBL              _ZN10GameObject14deselectObjectEv; GameObject::deselectObject(void) ; +0x3e, 0x38093a\nB               loc_380930                                             ; +0x42, 0x38093e\nMOV             R0, R6; this                                           ; +0x44, 0x380940\nMOV             R1, R7; int                                            ; +0x46, 0x380942\nPOP.W           {R3-R7,LR}                                             ; +0x48, 0x380944\nB.W             _ZN8EditorUI26showLiveColorSelectForModeEi; EditorUI::showLiveColorSelectForMode(int) ; +0x4c, 0x380948", "xrefs": ["CustomizeObjectLayer::onLiveEdit @ 0x461b88"], "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"}