{"type": "func", "start": 6442824816, "end": 6442824960, "name": "cocos2d::CCMenuItemLabel::selected", "pseudocode": "// \n// cocos2d::CCMenuItemLabel::selected from 0x18005b470 to 0x18005b500 (144 bytes)\n// \n// 7 xrefs:\n// > <???> @ 0x1800f79f8\n// > <???> @ 0x1800f7e40\n// > <???> @ 0x1800f8288\n// > <???> @ 0x180138c2c\n// > <???> @ 0x180138c3c\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b2dfc\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::CCMenuItemLabel::selected(cocos2d::CCMenuItemLabel *this)\n{\n  struct cocos2d::CCAction *ActionByTag; // rax\n  struct cocos2d::CCScaleTo *v3; // rbx\n\n  if ( this->m_bEnabled )\n  {\n    this->m_bSelected = 1;\n    ActionByTag = cocos2d::CCNode::getActionByTag(this, 0xC0C05002);\n    if ( ActionByTag )\n      cocos2d::CCNode::stopAction(this, ActionByTag);\n    else\n      *((float *)this + 99) = ((float (__fastcall *)(cocos2d::CCMenuItemLabel *))this->getScale)(this);\n    v3 = cocos2d::CCScaleTo::create(0.1, *((float *)this + 99) * 1.2);\n    ((void (__fastcall *)(struct cocos2d::CCScaleTo *, __int64))v3->setTag)(v3, 3233828866LL);\n    cocos2d::CCNode::runAction(this, v3);\n  }\n}", "assembly": "; \n; cocos2d::CCMenuItemLabel::selected from 0x18005b470 to 0x18005b500 (144 bytes)\n; \n; 7 xrefs:\n; > <???> @ 0x1800f79f8\n; > <???> @ 0x1800f7e40\n; > <???> @ 0x1800f8288\n; > <???> @ 0x180138c2c\n; > <???> @ 0x180138c3c\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b2dfc\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\npush    rdi                                                            ; +0x0, 0x18005b470\nsub     rsp, 20h                                                       ; +0x2, 0x18005b472\ncmp     byte ptr [rcx+159h], 0                                         ; +0x6, 0x18005b476\nmov     rdi, rcx                                                       ; +0xd, 0x18005b47d\njz      short loc_18005B4FA                                            ; +0x10, 0x18005b480\nmov     edx, 0C0C05002h; int                                           ; +0x12, 0x18005b482\nmov     [rsp+28h+arg_0], rbx                                           ; +0x17, 0x18005b487\nmov     byte ptr [rcx+158h], 1                                         ; +0x1c, 0x18005b48c\ncall    ?getActionByTag@CCNode@cocos2d@@QEAAPEAVCCAction@2@H@Z; cocos2d::CCNode::getActionByTag(int) ; +0x23, 0x18005b493\nmov     rcx, rdi; this                                                 ; +0x28, 0x18005b498\ntest    rax, rax                                                       ; +0x2b, 0x18005b49b\njz      short loc_18005B4AA                                            ; +0x2e, 0x18005b49e\nmov     rdx, rax; struct cocos2d::CCAction *                           ; +0x30, 0x18005b4a0\ncall    ?stopAction@CCNode@cocos2d@@QEAAXPEAVCCAction@2@@Z; cocos2d::CCNode::stopAction(cocos2d::CCAction *) ; +0x33, 0x18005b4a3\njmp     short loc_18005B4BB                                            ; +0x38, 0x18005b4a8\nmov     rax, [rdi]                                                     ; +0x3a, 0x18005b4aa\ncall    qword ptr [rax+0A8h]                                           ; +0x3d, 0x18005b4ad\nmovss   dword ptr [rdi+18Ch], xmm0                                     ; +0x43, 0x18005b4b3\nmovss   xmm1, dword ptr [rdi+18Ch]                                     ; +0x4b, 0x18005b4bb\nmulss   xmm1, cs:dword_1800F9060; float                                ; +0x53, 0x18005b4c3\nmovss   xmm0, cs:flt_1800E8D34; float                                  ; +0x5b, 0x18005b4cb\ncall    ?create@CCScaleTo@cocos2d@@SAPEAV12@MM@Z; cocos2d::CCScaleTo::create(float,float) ; +0x63, 0x18005b4d3\nmov     edx, 0C0C05002h                                                ; +0x68, 0x18005b4d8\nmov     rcx, rax                                                       ; +0x6d, 0x18005b4dd\nmov     rbx, rax                                                       ; +0x70, 0x18005b4e0\nmov     r8, [rax]                                                      ; +0x73, 0x18005b4e3\ncall    qword ptr [r8+40h]                                             ; +0x76, 0x18005b4e6\nmov     rdx, rbx; struct cocos2d::CCAction *                           ; +0x7a, 0x18005b4ea\nmov     rcx, rdi; this                                                 ; +0x7d, 0x18005b4ed\ncall    ?runAction@CCNode@cocos2d@@QEAAPEAVCCAction@2@PEAV32@@Z; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x80, 0x18005b4f0\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x85, 0x18005b4f5\nadd     rsp, 20h                                                       ; +0x8a, 0x18005b4fa\npop     rdi                                                            ; +0x8e, 0x18005b4fe\nretn                                                                   ; +0x8f, 0x18005b4ff", "xrefs": ["<???> @ 0x1800f79f8", "<???> @ 0x1800f7e40", "<???> @ 0x1800f8288", "<???> @ 0x180138c2c", "<???> @ 0x180138c3c", "<???> @ 0x1801438a8", "<???> @ 0x1801b2dfc"], "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"}