{"type": "func", "start": 10901464, "end": 10901560, "name": "ColorSelectLiveOverlay::toggleControls", "pseudocode": "// \n// ColorSelectLiveOverlay::toggleControls from 0xa657d8 to 0xa65838 (96 bytes)\n// \n// 3 xrefs:\n// > ColorSelectLiveOverlay::updateColorLabel @ 0xa65904\n// > ColorSelectLiveOverlay::updateColorLabel @ 0xa65960\n// > <???> @ 0xfe668\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 13:00:17 +0000\n// \n\n__int64 __fastcall ColorSelectLiveOverlay::toggleControls(cocos2d::CCArray **this, unsigned __int8 a2)\n{\n  unsigned int v3; // w21\n  unsigned int v4; // w19\n  __int64 v5; // x0\n  __int64 result; // x0\n  bool v7; // cf\n  unsigned int v8; // w1\n\n  v3 = a2;\n  v4 = 0;\n  while ( 1 )\n  {\n    result = cocos2d::CCArray::count(*(this + 84));\n    v7 = v4 >= (unsigned int)result;\n    v8 = v4++;\n    if ( v7 )\n      break;\n    v5 = cocos2d::CCArray::objectAtIndex(*(this + 84), v8);\n    (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v5 + 344LL))(v5, v3);\n  }\n  return result;\n}", "assembly": "; \n; ColorSelectLiveOverlay::toggleControls from 0xa657d8 to 0xa65838 (96 bytes)\n; \n; 3 xrefs:\n; > ColorSelectLiveOverlay::updateColorLabel @ 0xa65904\n; > ColorSelectLiveOverlay::updateColorLabel @ 0xa65960\n; > <???> @ 0xfe668\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 13:00:17 +0000\n; \nSTP             X29, X30, [SP,#var_30]!                                ; +0x0, 0xa657d8\nMOV             X29, SP                                                ; +0x4, 0xa657dc\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0x8, 0xa657e0\nSTR             X21, [SP,#0x30+var_10]                                 ; +0xc, 0xa657e4\nMOV             X20, X0                                                ; +0x10, 0xa657e8\nUXTB            W21, W1                                                ; +0x14, 0xa657ec\nMOV             W19, #0                                                ; +0x18, 0xa657f0\nB               loc_A65810                                             ; +0x1c, 0xa657f4\nLDR             X0, [X20,#0x2A0]; this                                 ; +0x20, 0xa657f8\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x24, 0xa657fc\nLDR             X2, [X0]                                               ; +0x28, 0xa65800\nMOV             W1, W21                                                ; +0x2c, 0xa65804\nLDR             X2, [X2,#0x158]                                        ; +0x30, 0xa65808\nBLR             X2                                                     ; +0x34, 0xa6580c\nLDR             X0, [X20,#0x2A0]; this                                 ; +0x38, 0xa65810\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x3c, 0xa65814\nCMP             W19, W0                                                ; +0x40, 0xa65818\nMOV             W1, W19; unsigned int                                  ; +0x44, 0xa6581c\nADD             W19, W19, #1                                           ; +0x48, 0xa65820\nB.CC            loc_A657F8                                             ; +0x4c, 0xa65824\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x50, 0xa65828\nLDR             X21, [SP,#0x30+var_10]                                 ; +0x54, 0xa6582c\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x58, 0xa65830\nRET                                                                    ; +0x5c, 0xa65834", "xrefs": ["ColorSelectLiveOverlay::updateColorLabel @ 0xa65904", "ColorSelectLiveOverlay::updateColorLabel @ 0xa65960", "<???> @ 0xfe668"], "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"}