{"type": "func", "start": 6442487984, "end": 6442488093, "name": "cocos2d::extension::CCControlPotentiometer::setEnabled", "pseudocode": "// \n// cocos2d::extension::CCControlPotentiometer::setEnabled from 0x1800090b0 to 0x18000911d (109 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x180025310\n// > <???> @ 0x18002fdf8\n// > <???> @ 0x180049984\n// > <???> @ 0x180049990\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 __fastcall cocos2d::extension::CCControlPotentiometer::setEnabled(\n        cocos2d::extension::CCControlPotentiometer *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::CCControlPotentiometer *))(*(_QWORD *)this + 1064LL))(this);\n  v5 = *((_QWORD *)this + 59);\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::CCControlPotentiometer::setEnabled from 0x1800090b0 to 0x18000911d (109 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x180025310\n; > <???> @ 0x18002fdf8\n; > <???> @ 0x180049984\n; > <???> @ 0x180049990\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1800090b0\npush    rdi                                                            ; +0x5, 0x1800090b5\nsub     rsp, 20h                                                       ; +0x6, 0x1800090b6\nmov     rbx, rcx                                                       ; +0xa, 0x1800090ba\nmov     [rcx+1B9h], dl                                                 ; +0xd, 0x1800090bd\ntest    dl, dl                                                         ; +0x13, 0x1800090c3\nmov     ecx, 4                                                         ; +0x15, 0x1800090c5\nmov     eax, 1                                                         ; +0x1a, 0x1800090ca\nmovzx   edi, dl                                                        ; +0x1f, 0x1800090cf\ncmovz   eax, ecx                                                       ; +0x22, 0x1800090d2\nmov     rcx, rbx                                                       ; +0x25, 0x1800090d5\nmov     [rbx+1B4h], eax                                                ; +0x28, 0x1800090d8\nmov     rax, [rbx]                                                     ; +0x2e, 0x1800090de\ncall    qword ptr [rax+428h]                                           ; +0x31, 0x1800090e1\nmov     rcx, [rbx+1D8h]                                                ; +0x37, 0x1800090e7\ntest    rcx, rcx                                                       ; +0x3e, 0x1800090ee\njz      short loc_180009112                                            ; +0x41, 0x1800090f1\nadd     rcx, 140h                                                      ; +0x43, 0x1800090f3\nmov     edx, 80h                                                       ; +0x4a, 0x1800090fa\ntest    dil, dil                                                       ; +0x4f, 0x1800090ff\nmov     r8d, 0FFh                                                      ; +0x52, 0x180009102\ncmovnz  edx, r8d                                                       ; +0x58, 0x180009108\nmov     rax, [rcx]                                                     ; +0x5c, 0x18000910c\ncall    qword ptr [rax+28h]                                            ; +0x5f, 0x18000910f\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x62, 0x180009112\nadd     rsp, 20h                                                       ; +0x67, 0x180009117\npop     rdi                                                            ; +0x6b, 0x18000911b\nretn                                                                   ; +0x6c, 0x18000911c", "xrefs": ["<???> @ 0x180025310", "<???> @ 0x18002fdf8", "<???> @ 0x180049984", "<???> @ 0x180049990"], "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"}