{"type": "func", "start": 3673432, "end": 3673546, "name": "EditorUI::resetSelectedObjectsColor", "pseudocode": "// \n// EditorUI::resetSelectedObjectsColor from 0x380d58 to 0x380dca (114 bytes)\n// \n// 1 xrefs:\n// > EditorUI::colorSelectClosed @ 0x380dfe\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::resetSelectedObjectsColor(EditorUI *a1)\n{\n  GameObject *m_selectedObject; // r0\n  cocos2d::CCArray *m_selectedObjects; // r3\n  cocos2d::ccArray *data; // r2\n  cocos2d::CCObject **arr; // r4\n  cocos2d::CCObject **v6; // r5\n  int v7; // r0\n  int v8; // t1\n\n  m_selectedObject = a1->m_selectedObject;\n  if ( m_selectedObject )\n  {\n    ((void (__fastcall *)(GameObject *, int))m_selectedObject->selectObject)(m_selectedObject, 65280);\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        v6 = &arr[data->num] + 0x3FFFFFFF;\n        while ( arr <= v6 )\n        {\n          v8 = (int)*arr++;\n          v7 = v8;\n          if ( !v8 )\n            break;\n          (*(void (__fastcall **)(int, int))(*(_DWORD *)v7 + 756))(v7, 65280);\n        }\n      }\n    }\n  }\n}", "assembly": "; \n; EditorUI::resetSelectedObjectsColor from 0x380d58 to 0x380dca (114 bytes)\n; \n; 1 xrefs:\n; > EditorUI::colorSelectClosed @ 0x380dfe\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            {R4-R6,LR}                                             ; +0x0, 0x380d58\nMOV             R4, R0                                                 ; +0x2, 0x380d5a\nLDR.W           R0, [R0,#0x374]                                        ; +0x4, 0x380d5c\nCBZ             R0, loc_380D80                                         ; +0x8, 0x380d60\nLDR             R2, =(word_9AA83C - 0x380D6A)                          ; +0xa, 0x380d62\nLDR             R4, [R0]                                               ; +0xc, 0x380d64\nADD             R2, PC; word_9AA83C                                    ; +0xe, 0x380d66\nLDRB            R1, [R2,#(byte_9AA843 - 0x9AA83C)]                     ; +0x10, 0x380d68\nLDRB            R3, [R2,#(byte_9AA842 - 0x9AA83C)]                     ; +0x12, 0x380d6a\nORR.W           R3, R3, R1,LSL#8                                       ; +0x14, 0x380d6c\nLDRB            R1, [R2,#(byte_9AA844 - 0x9AA83C)]                     ; +0x18, 0x380d70\nLDR.W           R2, [R4,#0x2F4]                                        ; +0x1a, 0x380d72\nPOP.W           {R4-R6,LR}                                             ; +0x1e, 0x380d76\nORR.W           R1, R3, R1,LSL#16                                      ; +0x22, 0x380d7a\nBX              R2                                                     ; +0x26, 0x380d7e\nLDR.W           R0, [R4,#0x260]; this                                  ; +0x28, 0x380d80\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x2c, 0x380d84\nCBZ             R0, locret_380DC8                                      ; +0x30, 0x380d88\nLDR.W           R3, [R4,#0x260]                                        ; +0x32, 0x380d8a\nCBZ             R3, locret_380DC8                                      ; +0x36, 0x380d8e\nLDR             R2, [R3,#0x34]                                         ; +0x38, 0x380d90\nLDR             R3, [R2]                                               ; +0x3a, 0x380d92\nCBZ             R3, locret_380DC8                                      ; +0x3c, 0x380d94\nADD.W           R3, R3, #0x40000000                                    ; +0x3e, 0x380d96\nLDR             R4, [R2,#0xC]                                          ; +0x42, 0x380d9a\nSUBS            R3, #1                                                 ; +0x44, 0x380d9c\nLDR             R6, =(word_9AA83C - 0x380DA8)                          ; +0x46, 0x380d9e\nADD.W           R5, R4, R3,LSL#2                                       ; +0x48, 0x380da0\nADD             R6, PC; word_9AA83C                                    ; +0x4c, 0x380da4\nCMP             R4, R5                                                 ; +0x4e, 0x380da6\nBHI             locret_380DC8                                          ; +0x50, 0x380da8\nLDR.W           R0, [R4],#4                                            ; +0x52, 0x380daa\nCBZ             R0, locret_380DC8                                      ; +0x56, 0x380dae\nLDRB            R1, [R6,#(byte_9AA843 - 0x9AA83C)]                     ; +0x58, 0x380db0\nLDRB            R3, [R6,#(byte_9AA842 - 0x9AA83C)]                     ; +0x5a, 0x380db2\nLDR             R2, [R0]                                               ; +0x5c, 0x380db4\nORR.W           R3, R3, R1,LSL#8                                       ; +0x5e, 0x380db6\nLDRB            R1, [R6,#(byte_9AA844 - 0x9AA83C)]                     ; +0x62, 0x380dba\nLDR.W           R2, [R2,#0x2F4]                                        ; +0x64, 0x380dbc\nORR.W           R1, R3, R1,LSL#16                                      ; +0x68, 0x380dc0\nBLX             R2                                                     ; +0x6c, 0x380dc4\nB               loc_380DA6                                             ; +0x6e, 0x380dc6\nPOP             {R4-R6,PC}                                             ; +0x70, 0x380dc8", "xrefs": ["EditorUI::colorSelectClosed @ 0x380dfe"], "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"}