{"type": "func", "start": 8152320, "end": 8152500, "name": "EditorUI::resetSelectedObjectsColor", "pseudocode": "// \n// EditorUI::resetSelectedObjectsColor from 0x7c6500 to 0x7c65b4 (180 bytes)\n// \n// 3 xrefs:\n// > EditorUI::colorSelectClosed @ 0x7c65f0\n// > EditorUI::colorSelectClosed @ 0x7c6610\n// > <???> @ 0xdea90\n// \n// This function is hookable on this platform (idp: arm, 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 12:54:08 +0000\n// \n\n__int64 __fastcall EditorUI::resetSelectedObjectsColor(EditorUI *this)\n{\n  __int64 v2; // x0\n  __int64 result; // x0\n  unsigned int *v4; // x1\n  __int64 *v5; // x19\n  __int64 *v6; // x20\n\n  v2 = *((_QWORD *)this + 187);\n  if ( v2 )\n    return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v2 + 1528LL))(v2, 65280);\n  result = cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 112));\n  if ( (_DWORD)result )\n  {\n    result = *((_QWORD *)this + 112);\n    if ( result )\n    {\n      v4 = *(unsigned int **)(result + 56);\n      result = *v4;\n      if ( (_DWORD)result )\n      {\n        v5 = *((__int64 **)v4 + 2);\n        v6 = &v5[(unsigned int)result - 1];\n        if ( v5 <= v6 )\n        {\n          for ( result = *v5; *v5; result = *v5 )\n          {\n            ++v5;\n            result = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)result + 1528LL))(result, 65280);\n            if ( v6 < v5 )\n              break;\n          }\n        }\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::resetSelectedObjectsColor from 0x7c6500 to 0x7c65b4 (180 bytes)\n; \n; 3 xrefs:\n; > EditorUI::colorSelectClosed @ 0x7c65f0\n; > EditorUI::colorSelectClosed @ 0x7c6610\n; > <???> @ 0xdea90\n; \n; This function is hookable on this platform (idp: arm, 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 12:54:08 +0000\n; \nSTP             X29, X30, [SP,#var_30]!                                ; +0x0, 0x7c6500\nMOV             X29, SP                                                ; +0x4, 0x7c6504\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0x8, 0x7c6508\nSTR             X21, [SP,#0x30+var_10]                                 ; +0xc, 0x7c650c\nMOV             X19, X0                                                ; +0x10, 0x7c6510\nLDR             X0, [X0,#0x5D8]                                        ; +0x14, 0x7c6514\nCBZ             X0, loc_7C6540                                         ; +0x18, 0x7c6518\nLDR             X1, [X0]                                               ; +0x1c, 0x7c651c\nLDR             X2, [X1,#0x5F8]                                        ; +0x20, 0x7c6520\nADRP            X1, #qword_1142278@PAGE                                ; +0x24, 0x7c6524\nLDR             X1, [X1,#qword_1142278@PAGEOFF]                        ; +0x28, 0x7c6528\nBLR             X2                                                     ; +0x2c, 0x7c652c\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x30, 0x7c6530\nLDR             X21, [SP,#0x30+var_10]                                 ; +0x34, 0x7c6534\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x38, 0x7c6538\nRET                                                                    ; +0x3c, 0x7c653c\nLDR             X0, [X19,#0x380]; this                                 ; +0x40, 0x7c6540\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x44, 0x7c6544\nCBZ             W0, loc_7C6530                                         ; +0x48, 0x7c6548\nLDR             X0, [X19,#0x380]                                       ; +0x4c, 0x7c654c\nCBZ             X0, loc_7C6530                                         ; +0x50, 0x7c6550\nLDR             X1, [X0,#0x38]                                         ; +0x54, 0x7c6554\nLDR             W0, [X1]                                               ; +0x58, 0x7c6558\nCBZ             W0, loc_7C6530                                         ; +0x5c, 0x7c655c\nLDR             X19, [X1,#0x10]                                        ; +0x60, 0x7c6560\nMOV             X20, #0xFFFFFFFFFFFFFFF8                               ; +0x64, 0x7c6564\nADD             X20, X20, W0,UXTW#3                                    ; +0x68, 0x7c6568\nADD             X20, X19, X20                                          ; +0x6c, 0x7c656c\nCMP             X19, X20                                               ; +0x70, 0x7c6570\nB.HI            loc_7C6530                                             ; +0x74, 0x7c6574\nLDR             X0, [X19]                                              ; +0x78, 0x7c6578\nCBZ             X0, loc_7C6530                                         ; +0x7c, 0x7c657c\nADRL            X1, word_1142210                                       ; +0x80, 0x7c6580\nLDR             X21, [X1,#(qword_1142278 - 0x1142210)]                 ; +0x88, 0x7c6588\nLDR             X2, [X0]                                               ; +0x8c, 0x7c658c\nMOV             X1, X21                                                ; +0x90, 0x7c6590\nADD             X19, X19, #8                                           ; +0x94, 0x7c6594\nLDR             X2, [X2,#0x5F8]                                        ; +0x98, 0x7c6598\nBLR             X2                                                     ; +0x9c, 0x7c659c\nCMP             X20, X19                                               ; +0xa0, 0x7c65a0\nB.CC            loc_7C6530                                             ; +0xa4, 0x7c65a4\nLDR             X0, [X19]                                              ; +0xa8, 0x7c65a8\nCBNZ            X0, loc_7C658C                                         ; +0xac, 0x7c65ac\nB               loc_7C6530                                             ; +0xb0, 0x7c65b0", "xrefs": ["EditorUI::colorSelectClosed @ 0x7c65f0", "EditorUI::colorSelectClosed @ 0x7c6610", "<???> @ 0xdea90"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}