{"type": "func", "start": 6442474368, "end": 6442474584, "name": "cocos2d::extension::CCControlButton::setHighlighted", "pseudocode": "// \n// cocos2d::extension::CCControlButton::setHighlighted from 0x180005b80 to 0x180005c58 (216 bytes)\n// \n// 6 xrefs:\n// > <???> @ 0x180026650\n// > <???> @ 0x18002a5c8\n// > <???> @ 0x18002fd98\n// > <???> @ 0x18002fda8\n// > <???> @ 0x180032408\n// > <???> @ 0x18004b4f8\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:36 +0000\n// \n\nvoid __fastcall cocos2d::extension::CCControlButton::setHighlighted(\n        cocos2d::extension::CCControlButton *this,\n        unsigned __int8 a2)\n{\n  __int64 v3; // rax\n  struct cocos2d::CCAction *ActionByTag; // rax\n  float v5; // xmm1_4\n  struct cocos2d::CCAction *v6; // rbx\n\n  *((_DWORD *)this + 109) = a2 + 1;\n  v3 = *(_QWORD *)this;\n  *((_BYTE *)this + 443) = a2;\n  (*(void (**)(void))(v3 + 1080))();\n  ActionByTag = cocos2d::CCNode::getActionByTag(this, -859111423);\n  if ( ActionByTag )\n    cocos2d::CCNode::stopAction(this, ActionByTag);\n  (*(void (__fastcall **)(cocos2d::extension::CCControlButton *))(*(_QWORD *)this + 1080LL))(this);\n  if ( *((_BYTE *)this + 512) )\n  {\n    if ( (*(unsigned __int8 (__fastcall **)(cocos2d::extension::CCControlButton *))(*(_QWORD *)this + 1072LL))(this)\n      && (*(unsigned __int8 (__fastcall **)(cocos2d::extension::CCControlButton *))(*(_QWORD *)this + 1040LL))(this)\n      && !(*(unsigned __int8 (__fastcall **)(cocos2d::extension::CCControlButton *))(*(_QWORD *)this + 1056LL))(this) )\n    {\n      v5 = 1.1;\n    }\n    else\n    {\n      v5 = 1.0;\n    }\n    v6 = cocos2d::CCScaleTo::create(0.050000001, v5);\n    (*(void (__fastcall **)(struct cocos2d::CCAction *, __int64))(*(_QWORD *)v6 + 64LL))(v6, 3435855873LL);\n    cocos2d::CCNode::runAction(this, v6);\n  }\n}", "assembly": "; \n; cocos2d::extension::CCControlButton::setHighlighted from 0x180005b80 to 0x180005c58 (216 bytes)\n; \n; 6 xrefs:\n; > <???> @ 0x180026650\n; > <???> @ 0x18002a5c8\n; > <???> @ 0x18002fd98\n; > <???> @ 0x18002fda8\n; > <???> @ 0x180032408\n; > <???> @ 0x18004b4f8\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:36 +0000\n; \npush    rdi                                                            ; +0x0, 0x180005b80\nsub     rsp, 20h                                                       ; +0x2, 0x180005b82\nmovzx   eax, dl                                                        ; +0x6, 0x180005b86\nmov     rdi, rcx                                                       ; +0x9, 0x180005b89\ninc     eax                                                            ; +0xc, 0x180005b8c\nmov     [rcx+1B4h], eax                                                ; +0xe, 0x180005b8e\nmov     rax, [rcx]                                                     ; +0x14, 0x180005b94\nmov     [rcx+1BBh], dl                                                 ; +0x17, 0x180005b97\ncall    qword ptr [rax+438h]                                           ; +0x1d, 0x180005b9d\nmov     edx, 0CCCB0001h                                                ; +0x23, 0x180005ba3\nmov     rcx, rdi                                                       ; +0x28, 0x180005ba8\ncall    cs:?getActionByTag@CCNode@cocos2d@@QEAAPEAVCCAction@2@H@Z; cocos2d::CCNode::getActionByTag(int) ; +0x2b, 0x180005bab\ntest    rax, rax                                                       ; +0x31, 0x180005bb1\njz      short loc_180005BC2                                            ; +0x34, 0x180005bb4\nmov     rdx, rax                                                       ; +0x36, 0x180005bb6\nmov     rcx, rdi                                                       ; +0x39, 0x180005bb9\ncall    cs:?stopAction@CCNode@cocos2d@@QEAAXPEAVCCAction@2@@Z; cocos2d::CCNode::stopAction(cocos2d::CCAction *) ; +0x3c, 0x180005bbc\nmov     rax, [rdi]                                                     ; +0x42, 0x180005bc2\nmov     rcx, rdi                                                       ; +0x45, 0x180005bc5\ncall    qword ptr [rax+438h]                                           ; +0x48, 0x180005bc8\ncmp     byte ptr [rdi+200h], 0                                         ; +0x4e, 0x180005bce\njz      short loc_180005C52                                            ; +0x55, 0x180005bd5\nmov     rax, [rdi]                                                     ; +0x57, 0x180005bd7\nmov     rcx, rdi                                                       ; +0x5a, 0x180005bda\nmov     [rsp+28h+arg_0], rbx                                           ; +0x5d, 0x180005bdd\ncall    qword ptr [rax+430h]                                           ; +0x62, 0x180005be2\ntest    al, al                                                         ; +0x68, 0x180005be8\njz      short loc_180005C16                                            ; +0x6a, 0x180005bea\nmov     rax, [rdi]                                                     ; +0x6c, 0x180005bec\nmov     rcx, rdi                                                       ; +0x6f, 0x180005bef\ncall    qword ptr [rax+410h]                                           ; +0x72, 0x180005bf2\ntest    al, al                                                         ; +0x78, 0x180005bf8\njz      short loc_180005C16                                            ; +0x7a, 0x180005bfa\nmov     rax, [rdi]                                                     ; +0x7c, 0x180005bfc\nmov     rcx, rdi                                                       ; +0x7f, 0x180005bff\ncall    qword ptr [rax+420h]                                           ; +0x82, 0x180005c02\ntest    al, al                                                         ; +0x88, 0x180005c08\njnz     short loc_180005C16                                            ; +0x8a, 0x180005c0a\nmovss   xmm1, cs:dword_18002BBE4                                       ; +0x8c, 0x180005c0c\njmp     short loc_180005C1E                                            ; +0x94, 0x180005c14\nmovss   xmm1, cs:dword_18002BBE0                                       ; +0x96, 0x180005c16\nmovss   xmm0, cs:dword_18002BBC8                                       ; +0x9e, 0x180005c1e\ncall    cs:?create@CCScaleTo@cocos2d@@SAPEAV12@MM@Z; cocos2d::CCScaleTo::create(float,float) ; +0xa6, 0x180005c26\nmov     edx, 0CCCB0001h                                                ; +0xac, 0x180005c2c\nmov     rbx, rax                                                       ; +0xb1, 0x180005c31\nmov     rcx, [rax]                                                     ; +0xb4, 0x180005c34\nmov     r8, [rcx+40h]                                                  ; +0xb7, 0x180005c37\nmov     rcx, rax                                                       ; +0xbb, 0x180005c3b\ncall    r8                                                             ; +0xbe, 0x180005c3e\nmov     rdx, rbx                                                       ; +0xc1, 0x180005c41\nmov     rcx, rdi                                                       ; +0xc4, 0x180005c44\ncall    cs:?runAction@CCNode@cocos2d@@QEAAPEAVCCAction@2@PEAV32@@Z; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0xc7, 0x180005c47\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xcd, 0x180005c4d\nadd     rsp, 20h                                                       ; +0xd2, 0x180005c52\npop     rdi                                                            ; +0xd6, 0x180005c56\nretn                                                                   ; +0xd7, 0x180005c57", "xrefs": ["<???> @ 0x180026650", "<???> @ 0x18002a5c8", "<???> @ 0x18002fd98", "<???> @ 0x18002fda8", "<???> @ 0x180032408", "<???> @ 0x18004b4f8"], "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"}