{"type": "func", "start": 5040290, "end": 5040336, "name": "ColorSelectLiveOverlay::toggleControls", "pseudocode": "// \n// ColorSelectLiveOverlay::toggleControls from 0x4ce8a2 to 0x4ce8d0 (46 bytes)\n// \n// 1 xrefs:\n// > ColorSelectLiveOverlay::updateColorLabel @ 0x4ce96c\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 ColorSelectLiveOverlay::toggleControls(ColorSelectLiveOverlay *a1, bool a2)\n{\n  _BOOL4 v3; // r6\n  unsigned int i; // r4\n  int v5; // r0\n\n  v3 = a2;\n  for ( i = 0; i < cocos2d::CCArray::count(a1->m_barSprites); ++i )\n  {\n    v5 = cocos2d::CCArray::objectAtIndex(a1->m_barSprites, i);\n    (*(void (__fastcall **)(int, _BOOL4))(*(_DWORD *)v5 + 164))(v5, v3);\n  }\n}", "assembly": "; \n; ColorSelectLiveOverlay::toggleControls from 0x4ce8a2 to 0x4ce8d0 (46 bytes)\n; \n; 1 xrefs:\n; > ColorSelectLiveOverlay::updateColorLabel @ 0x4ce96c\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, 0x4ce8a2\nMOV             R5, R0                                                 ; +0x2, 0x4ce8a4\nMOV             R6, R1                                                 ; +0x4, 0x4ce8a6\nMOVS            R4, #0                                                 ; +0x6, 0x4ce8a8\nLDR.W           R0, [R5,#0x1F4]; this                                  ; +0x8, 0x4ce8aa\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0xc, 0x4ce8ae\nCMP             R4, R0                                                 ; +0x10, 0x4ce8b2\nBCS             locret_4CE8CE                                          ; +0x12, 0x4ce8b4\nMOV             R1, R4; unsigned int                                   ; +0x14, 0x4ce8b6\nLDR.W           R0, [R5,#0x1F4]; this                                  ; +0x16, 0x4ce8b8\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x1a, 0x4ce8bc\nMOV             R1, R6                                                 ; +0x1e, 0x4ce8c0\nADDS            R4, #1                                                 ; +0x20, 0x4ce8c2\nLDR             R3, [R0]                                               ; +0x22, 0x4ce8c4\nLDR.W           R3, [R3,#0xA4]                                         ; +0x24, 0x4ce8c6\nBLX             R3                                                     ; +0x28, 0x4ce8ca\nB               loc_4CE8AA                                             ; +0x2a, 0x4ce8cc\nPOP             {R4-R6,PC}                                             ; +0x2c, 0x4ce8ce", "xrefs": ["ColorSelectLiveOverlay::updateColorLabel @ 0x4ce96c"], "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"}