{"type": "func", "start": 5370583104, "end": 5370583244, "name": "EditorUI::deselectObjectsColor", "pseudocode": "// \n// EditorUI::deselectObjectsColor from 0x1401c9840 to 0x1401c98cc (140 bytes)\n// \n// 4 xrefs:\n// > EditorUI::checkLiveColorSelect @ 0x1401c97dc\n// > <???> @ 0x1408a2eb0\n// > <???> @ 0x1408a2ec0\n// > <???> @ 0x14091a8d0\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\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:28:06 +0000\n// \n\nunsigned int __fastcall EditorUI::deselectObjectsColor(__int64 a1)\n{\n  __int64 v2; // rcx\n  unsigned int result; // eax\n  unsigned int v4; // ebx\n  struct cocos2d::CCObject *v5; // rax\n\n  v2 = *(_QWORD *)(a1 + 1568);\n  if ( v2 )\n  {\n    *(_BYTE *)(v2 + 1141) = 0;\n    return GameObject::updateObjectEditorColor(v2);\n  }\n  else\n  {\n    result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 944));\n    if ( result )\n    {\n      v4 = 0;\n      result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 944));\n      if ( result )\n      {\n        do\n        {\n          v5 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 944), v4);\n          *((_BYTE *)v5 + 1141) = 0;\n          GameObject::updateObjectEditorColor(v5);\n          ++v4;\n          result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 944));\n        }\n        while ( v4 < result );\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::deselectObjectsColor from 0x1401c9840 to 0x1401c98cc (140 bytes)\n; \n; 4 xrefs:\n; > EditorUI::checkLiveColorSelect @ 0x1401c97dc\n; > <???> @ 0x1408a2eb0\n; > <???> @ 0x1408a2ec0\n; > <???> @ 0x14091a8d0\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\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:28:06 +0000\n; \npush    rdi                                                            ; +0x0, 0x1401c9840\nsub     rsp, 20h                                                       ; +0x2, 0x1401c9842\nmov     rdi, rcx                                                       ; +0x6, 0x1401c9846\nmov     rcx, [rcx+620h]                                                ; +0x9, 0x1401c9849\ntest    rcx, rcx                                                       ; +0x10, 0x1401c9850\njz      short loc_1401C9866                                            ; +0x13, 0x1401c9853\nmov     byte ptr [rcx+475h], 0                                         ; +0x15, 0x1401c9855\nadd     rsp, 20h                                                       ; +0x1c, 0x1401c985c\npop     rdi                                                            ; +0x20, 0x1401c9860\njmp     GameObject__updateObjectEditorColor                            ; +0x21, 0x1401c9861\nmov     rcx, [rdi+3B0h]                                                ; +0x26, 0x1401c9866\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x2d, 0x1401c986d\ntest    eax, eax                                                       ; +0x33, 0x1401c9873\njz      short loc_1401C98C6                                            ; +0x35, 0x1401c9875\nmov     rcx, [rdi+3B0h]                                                ; +0x37, 0x1401c9877\nmov     [rsp+28h+arg_0], rbx                                           ; +0x3e, 0x1401c987e\nxor     ebx, ebx                                                       ; +0x43, 0x1401c9883\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x45, 0x1401c9885\ntest    eax, eax                                                       ; +0x4b, 0x1401c988b\njz      short loc_1401C98C1                                            ; +0x4d, 0x1401c988d\nnop                                                                    ; +0x4f, 0x1401c988f\nmov     rcx, [rdi+3B0h]                                                ; +0x50, 0x1401c9890\nmov     edx, ebx                                                       ; +0x57, 0x1401c9897\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x59, 0x1401c9899\nmov     rcx, rax                                                       ; +0x5f, 0x1401c989f\nmov     byte ptr [rax+475h], 0                                         ; +0x62, 0x1401c98a2\ncall    GameObject__updateObjectEditorColor                            ; +0x69, 0x1401c98a9\nmov     rcx, [rdi+3B0h]                                                ; +0x6e, 0x1401c98ae\ninc     ebx                                                            ; +0x75, 0x1401c98b5\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x77, 0x1401c98b7\ncmp     ebx, eax                                                       ; +0x7d, 0x1401c98bd\njb      short loc_1401C9890                                            ; +0x7f, 0x1401c98bf\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x81, 0x1401c98c1\nadd     rsp, 20h                                                       ; +0x86, 0x1401c98c6\npop     rdi                                                            ; +0x8a, 0x1401c98ca\nretn                                                                   ; +0x8b, 0x1401c98cb", "xrefs": ["EditorUI::checkLiveColorSelect @ 0x1401c97dc", "<???> @ 0x1408a2eb0", "<???> @ 0x1408a2ec0", "<???> @ 0x14091a8d0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}