{"type": "func", "start": 4736140, "end": 4736266, "name": "EditorUI::resetSelectedObjectsColor", "pseudocode": "// \n// EditorUI::resetSelectedObjectsColor from 0x48448c to 0x48450a (126 bytes)\n// \n// 1 xrefs:\n// > EditorUI::colorSelectClosed @ 0x48453e\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::resetSelectedObjectsColor(EditorUI *this)\n{\n  int v2; // r0\n  int result; // r0\n  int v4; // r3\n  _DWORD *v5; // r2\n  int *v6; // r4\n  int *v7; // r5\n  int v8; // t1\n\n  v2 = *((_DWORD *)this + 249);\n  if ( v2 )\n    return (*(int (__fastcall **)(int, int))(*(_DWORD *)v2 + 764))(v2, 65280);\n  result = cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 167));\n  if ( result )\n  {\n    v4 = *((_DWORD *)this + 167);\n    if ( v4 )\n    {\n      v5 = *(_DWORD **)(v4 + 52);\n      if ( *v5 )\n      {\n        v6 = (int *)v5[3];\n        v7 = &v6[*v5 - 1];\n        while ( v6 <= v7 )\n        {\n          v8 = *v6++;\n          result = v8;\n          if ( !v8 )\n            break;\n          result = (*(int (__fastcall **)(int, int))(*(_DWORD *)result + 764))(result, 65280);\n        }\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; EditorUI::resetSelectedObjectsColor from 0x48448c to 0x48450a (126 bytes)\n; \n; 1 xrefs:\n; > EditorUI::colorSelectClosed @ 0x48453e\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            {R4-R6,LR}                                             ; +0x0, 0x48448c\nMOV             R4, R0                                                 ; +0x2, 0x48448e\nLDR.W           R0, [R0,#0x3E4]                                        ; +0x4, 0x484490\nCBZ             R0, loc_4844BA                                         ; +0x8, 0x484494\nLDR             R2, =(word_BEBDD8 - 0x48449E)                          ; +0xa, 0x484496\nLDR             R4, [R0]                                               ; +0xc, 0x484498\nADD             R2, PC; word_BEBDD8                                    ; +0xe, 0x48449a\nLDRB.W          R1, [R2,#(byte_BEBE40 - 0xBEBDD8)]                     ; +0x10, 0x48449c\nLDRB.W          R3, [R2,#(byte_BEBE3F - 0xBEBDD8)]                     ; +0x14, 0x4844a0\nORR.W           R3, R3, R1,LSL#8                                       ; +0x18, 0x4844a4\nLDRB.W          R1, [R2,#(byte_BEBE41 - 0xBEBDD8)]                     ; +0x1c, 0x4844a8\nLDR.W           R2, [R4,#0x2FC]                                        ; +0x20, 0x4844ac\nPOP.W           {R4-R6,LR}                                             ; +0x24, 0x4844b0\nORR.W           R1, R3, R1,LSL#16                                      ; +0x28, 0x4844b4\nBX              R2                                                     ; +0x2c, 0x4844b8\nLDR.W           R0, [R4,#0x29C]; this                                  ; +0x2e, 0x4844ba\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x32, 0x4844be\nCBZ             R0, locret_484508                                      ; +0x36, 0x4844c2\nLDR.W           R3, [R4,#0x29C]                                        ; +0x38, 0x4844c4\nCBZ             R3, locret_484508                                      ; +0x3c, 0x4844c8\nLDR             R2, [R3,#0x34]                                         ; +0x3e, 0x4844ca\nLDR             R3, [R2]                                               ; +0x40, 0x4844cc\nCBZ             R3, locret_484508                                      ; +0x42, 0x4844ce\nADD.W           R3, R3, #0x40000000                                    ; +0x44, 0x4844d0\nLDR             R4, [R2,#0xC]                                          ; +0x48, 0x4844d4\nSUBS            R3, #1                                                 ; +0x4a, 0x4844d6\nLDR             R6, =(word_BEBDD8 - 0x4844E2)                          ; +0x4c, 0x4844d8\nADD.W           R5, R4, R3,LSL#2                                       ; +0x4e, 0x4844da\nADD             R6, PC; word_BEBDD8                                    ; +0x52, 0x4844de\nCMP             R4, R5                                                 ; +0x54, 0x4844e0\nBHI             locret_484508                                          ; +0x56, 0x4844e2\nLDR.W           R0, [R4],#4                                            ; +0x58, 0x4844e4\nCBZ             R0, locret_484508                                      ; +0x5c, 0x4844e8\nLDRB.W          R1, [R6,#(byte_BEBE40 - 0xBEBDD8)]                     ; +0x5e, 0x4844ea\nLDRB.W          R3, [R6,#(byte_BEBE3F - 0xBEBDD8)]                     ; +0x62, 0x4844ee\nLDR             R2, [R0]                                               ; +0x66, 0x4844f2\nORR.W           R3, R3, R1,LSL#8                                       ; +0x68, 0x4844f4\nLDRB.W          R1, [R6,#(byte_BEBE41 - 0xBEBDD8)]                     ; +0x6c, 0x4844f8\nLDR.W           R2, [R2,#0x2FC]                                        ; +0x70, 0x4844fc\nORR.W           R1, R3, R1,LSL#16                                      ; +0x74, 0x484500\nBLX             R2                                                     ; +0x78, 0x484504\nB               loc_4844E0                                             ; +0x7a, 0x484506\nPOP             {R4-R6,PC}                                             ; +0x7c, 0x484508", "xrefs": ["EditorUI::colorSelectClosed @ 0x48453e"], "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"}