{"type": "func", "start": 6442489712, "end": 6442489819, "name": "cocos2d::extension::CCControlSaturationBrightnessPicker::setEnabled", "pseudocode": "// \n// cocos2d::extension::CCControlSaturationBrightnessPicker::setEnabled from 0x180009770 to 0x1800097db (107 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x180027ec0\n// > <???> @ 0x180032408\n// > <???> @ 0x18004b99c\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 12:15:37 +0000\n// \n\nvoid __fastcall cocos2d::extension::CCControlSaturationBrightnessPicker::setEnabled(\n        cocos2d::extension::CCControlSaturationBrightnessPicker *this,\n        char a2)\n{\n  int v3; // eax\n  __int64 v5; // rcx\n  __int64 v6; // rcx\n  __int64 v7; // rdx\n\n  *((_BYTE *)this + 441) = a2;\n  v3 = 1;\n  if ( !a2 )\n    v3 = 4;\n  *((_DWORD *)this + 109) = v3;\n  (*(void (__fastcall **)(cocos2d::extension::CCControlSaturationBrightnessPicker *))(*(_QWORD *)this + 1080LL))(this);\n  v5 = *((_QWORD *)this + 63);\n  if ( v5 )\n  {\n    v6 = v5 + 320;\n    v7 = 128;\n    if ( a2 )\n      v7 = 255;\n    (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 40LL))(v6, v7);\n  }\n}", "assembly": "; \n; cocos2d::extension::CCControlSaturationBrightnessPicker::setEnabled from 0x180009770 to 0x1800097db (107 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x180027ec0\n; > <???> @ 0x180032408\n; > <???> @ 0x18004b99c\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 12:15:37 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180009770\npush    rdi                                                            ; +0x5, 0x180009775\nsub     rsp, 20h                                                       ; +0x6, 0x180009776\nmov     rbx, rcx                                                       ; +0xa, 0x18000977a\nmov     [rcx+1B9h], dl                                                 ; +0xd, 0x18000977d\ntest    dl, dl                                                         ; +0x13, 0x180009783\nmov     ecx, 4                                                         ; +0x15, 0x180009785\nmov     eax, 1                                                         ; +0x1a, 0x18000978a\nmovzx   edi, dl                                                        ; +0x1f, 0x18000978f\ncmovz   eax, ecx                                                       ; +0x22, 0x180009792\nmov     rcx, rbx                                                       ; +0x25, 0x180009795\nmov     [rbx+1B4h], eax                                                ; +0x28, 0x180009798\nmov     rax, [rbx]                                                     ; +0x2e, 0x18000979e\ncall    qword ptr [rax+438h]                                           ; +0x31, 0x1800097a1\nmov     rcx, [rbx+1F8h]                                                ; +0x37, 0x1800097a7\ntest    rcx, rcx                                                       ; +0x3e, 0x1800097ae\njz      short loc_1800097D0                                            ; +0x41, 0x1800097b1\nadd     rcx, 140h                                                      ; +0x43, 0x1800097b3\nmov     edx, 80h                                                       ; +0x4a, 0x1800097ba\ntest    dil, dil                                                       ; +0x4f, 0x1800097bf\nmov     eax, 0FFh                                                      ; +0x52, 0x1800097c2\ncmovnz  edx, eax                                                       ; +0x57, 0x1800097c7\nmov     rax, [rcx]                                                     ; +0x5a, 0x1800097ca\ncall    qword ptr [rax+28h]                                            ; +0x5d, 0x1800097cd\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x60, 0x1800097d0\nadd     rsp, 20h                                                       ; +0x65, 0x1800097d5\npop     rdi                                                            ; +0x69, 0x1800097d9\nretn                                                                   ; +0x6a, 0x1800097da", "xrefs": ["<???> @ 0x180027ec0", "<???> @ 0x180032408", "<???> @ 0x18004b99c"], "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"}