{"type": "func", "start": 4735236, "end": 4735316, "name": "EditorUI::showLiveColorSelectForModeSpecial", "pseudocode": "// \n// EditorUI::showLiveColorSelectForModeSpecial from 0x484104 to 0x484154 (80 bytes)\n// \n// 1 xrefs:\n// > CustomizeObjectLayer::onLiveEdit @ 0x57e6c0\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:49:24 +0000\n// \n\nint __fastcall EditorUI::showLiveColorSelectForModeSpecial(EditorUI *this, int a2)\n{\n  GameObject *v3; // r0\n  int v5; // r1\n  int v6; // r3\n  _DWORD *v7; // r2\n  GameObject **v8; // r5\n  GameObject **v9; // r4\n  GameObject *v10; // r0\n  GameObject *v11; // t1\n\n  v3 = *((GameObject **)this + 249);\n  if ( v3 )\n  {\n    GameObject::deselectObject(v3, a2);\n  }\n  else if ( cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 167)) )\n  {\n    v6 = *((_DWORD *)this + 167);\n    if ( v6 )\n    {\n      v7 = *(_DWORD **)(v6 + 52);\n      if ( *v7 )\n      {\n        v8 = (GameObject **)v7[3];\n        v9 = &v8[*v7] + 0x3FFFFFFF;\n        while ( v8 <= v9 )\n        {\n          v11 = *v8++;\n          v10 = v11;\n          if ( !v11 )\n            break;\n          GameObject::deselectObject(v10, v5);\n        }\n      }\n    }\n  }\n  return EditorUI::showLiveColorSelectForMode(this, a2);\n}", "assembly": "; \n; EditorUI::showLiveColorSelectForModeSpecial from 0x484104 to 0x484154 (80 bytes)\n; \n; 1 xrefs:\n; > CustomizeObjectLayer::onLiveEdit @ 0x57e6c0\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:49:24 +0000\n; \nPUSH            {R3-R7,LR}                                             ; +0x0, 0x484104\nMOV             R6, R0                                                 ; +0x2, 0x484106\nLDR.W           R0, [R0,#0x3E4]; this                                  ; +0x4, 0x484108\nMOV             R7, R1                                                 ; +0x8, 0x48410c\nCBZ             R0, loc_484116                                         ; +0xa, 0x48410e\nBL              _ZN10GameObject14deselectObjectEv; GameObject::deselectObject(void) ; +0xc, 0x484110\nB               loc_484148                                             ; +0x10, 0x484114\nLDR.W           R0, [R6,#0x29C]; this                                  ; +0x12, 0x484116\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x16, 0x48411a\nCBZ             R0, loc_484148                                         ; +0x1a, 0x48411e\nLDR.W           R3, [R6,#0x29C]                                        ; +0x1c, 0x484120\nCBZ             R3, loc_484148                                         ; +0x20, 0x484124\nLDR             R2, [R3,#0x34]                                         ; +0x22, 0x484126\nLDR             R3, [R2]                                               ; +0x24, 0x484128\nCBZ             R3, loc_484148                                         ; +0x26, 0x48412a\nADD.W           R3, R3, #0x40000000                                    ; +0x28, 0x48412c\nLDR             R5, [R2,#0xC]                                          ; +0x2c, 0x484130\nSUBS            R3, #1                                                 ; +0x2e, 0x484132\nADD.W           R4, R5, R3,LSL#2                                       ; +0x30, 0x484134\nCMP             R5, R4                                                 ; +0x34, 0x484138\nBHI             loc_484148                                             ; +0x36, 0x48413a\nLDR.W           R0, [R5],#4; this                                      ; +0x38, 0x48413c\nCBZ             R0, loc_484148                                         ; +0x3c, 0x484140\nBL              _ZN10GameObject14deselectObjectEv; GameObject::deselectObject(void) ; +0x3e, 0x484142\nB               loc_484138                                             ; +0x42, 0x484146\nMOV             R0, R6; this                                           ; +0x44, 0x484148\nMOV             R1, R7; int                                            ; +0x46, 0x48414a\nPOP.W           {R3-R7,LR}                                             ; +0x48, 0x48414c\nB.W             _ZN8EditorUI26showLiveColorSelectForModeEi; EditorUI::showLiveColorSelectForMode(int) ; +0x4c, 0x484150", "xrefs": ["CustomizeObjectLayer::onLiveEdit @ 0x57e6c0"], "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"}