{"type": "func", "start": 5369915280, "end": 5369915398, "name": "ColorSelectLiveOverlay::toggleControls", "pseudocode": "// \n// ColorSelectLiveOverlay::toggleControls from 0x140126790 to 0x140126806 (118 bytes)\n// \n// 2 xrefs:\n// > ColorSelectLiveOverlay::updateColorLabel @ 0x1401266f3\n// > <???> @ 0x1409169e8\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:26:58 +0000\n// \n\nunsigned int __fastcall ColorSelectLiveOverlay::toggleControls(__int64 a1, unsigned __int8 a2)\n{\n  unsigned int v4; // ebx\n  unsigned int result; // eax\n  struct cocos2d::CCObject *v6; // rax\n\n  v4 = 0;\n  result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 672));\n  if ( result )\n  {\n    do\n    {\n      v6 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 672), v4);\n      (*(void (__fastcall **)(struct cocos2d::CCObject *, _QWORD))(*(_QWORD *)v6 + 336LL))(v6, a2);\n      ++v4;\n      result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 672));\n    }\n    while ( v4 < result );\n  }\n  return result;\n}", "assembly": "; \n; ColorSelectLiveOverlay::toggleControls from 0x140126790 to 0x140126806 (118 bytes)\n; \n; 2 xrefs:\n; > ColorSelectLiveOverlay::updateColorLabel @ 0x1401266f3\n; > <???> @ 0x1409169e8\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:26:58 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140126790\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x140126795\npush    rdi                                                            ; +0xa, 0x14012679a\nsub     rsp, 20h                                                       ; +0xb, 0x14012679b\nmov     rdi, rcx                                                       ; +0xf, 0x14012679f\nmovzx   esi, dl                                                        ; +0x12, 0x1401267a2\nmov     rcx, [rcx+2A0h]                                                ; +0x15, 0x1401267a5\nxor     ebx, ebx                                                       ; +0x1c, 0x1401267ac\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x1e, 0x1401267ae\ntest    eax, eax                                                       ; +0x24, 0x1401267b4\njz      short loc_1401267F6                                            ; +0x26, 0x1401267b6\nnop     dword ptr [rax+rax+00000000h]                                  ; +0x28, 0x1401267b8\nmov     rcx, [rdi+2A0h]                                                ; +0x30, 0x1401267c0\nmov     edx, ebx                                                       ; +0x37, 0x1401267c7\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x39, 0x1401267c9\nmovzx   edx, sil                                                       ; +0x3f, 0x1401267cf\nmov     rcx, [rax]                                                     ; +0x43, 0x1401267d3\nmov     r8, [rcx+150h]                                                 ; +0x46, 0x1401267d6\nmov     rcx, rax                                                       ; +0x4d, 0x1401267dd\ncall    r8                                                             ; +0x50, 0x1401267e0\nmov     rcx, [rdi+2A0h]                                                ; +0x53, 0x1401267e3\ninc     ebx                                                            ; +0x5a, 0x1401267ea\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x5c, 0x1401267ec\ncmp     ebx, eax                                                       ; +0x62, 0x1401267f2\njb      short loc_1401267C0                                            ; +0x64, 0x1401267f4\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x66, 0x1401267f6\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x6b, 0x1401267fb\nadd     rsp, 20h                                                       ; +0x70, 0x140126800\npop     rdi                                                            ; +0x74, 0x140126804\nretn                                                                   ; +0x75, 0x140126805", "xrefs": ["ColorSelectLiveOverlay::updateColorLabel @ 0x1401266f3", "<???> @ 0x1409169e8"], "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"}