{"type": "func", "start": 5369007616, "end": 5369007915, "name": "CCMenuItemSpriteExtra::unselected", "pseudocode": "// \n// CCMenuItemSpriteExtra::unselected from 0x140048e00 to 0x140048f2b (299 bytes)\n// \n// 7 xrefs:\n// > <???> @ 0x1407098a0\n// > <???> @ 0x1407500c0\n// > <???> @ 0x140784eb8\n// > <???> @ 0x140885a30\n// > <???> @ 0x140885a44\n// > <???> @ 0x140885a78\n// > <???> @ 0x14090fb9c\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:25:32 +0000\n// \n\nvoid __fastcall CCMenuItemSpriteExtra::unselected(__int64 a1)\n{\n  __int64 v2; // rax\n  int v3; // eax\n  struct cocos2d::CCActionInterval *v4; // rax\n  struct cocos2d::CCAction *v5; // rbx\n  cocos2d::CCNode *v6; // rdi\n  struct cocos2d::CCActionInterval *v7; // rax\n  struct cocos2d::CCAction *v8; // rbx\n\n  if ( *(_BYTE *)(a1 + 345) )\n  {\n    cocos2d::CCMenuItemSprite::unselected((cocos2d::CCMenuItemSprite *)a1);\n    if ( *(_BYTE *)(a1 + 409) )\n    {\n      v2 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 952LL))(a1);\n      (**(void (__fastcall ***)(__int64, void *))(v2 + 320))(v2 + 320, &unk_1406FE7B0);\n    }\n    if ( *(_BYTE *)(a1 + 408) )\n    {\n      v3 = *(_DWORD *)(a1 + 500);\n      if ( v3 )\n      {\n        if ( v3 == 1 )\n        {\n          v6 = (cocos2d::CCNode *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 952LL))(a1);\n          cocos2d::CCNode::stopActionByTag(v6, 0);\n          v7 = cocos2d::CCMoveTo::create(*(float *)(a1 + 496), (const struct cocos2d::CCPoint *)(a1 + 504));\n          v8 = cocos2d::CCEaseInOut::create(v7, 2.0);\n          (*(void (__fastcall **)(struct cocos2d::CCAction *, _QWORD))(*(_QWORD *)v8 + 64LL))(v8, 0);\n          cocos2d::CCNode::runAction(v6, v8);\n        }\n      }\n      else\n      {\n        cocos2d::CCNode::stopActionByTag((cocos2d::CCNode *)a1, 0);\n        v4 = cocos2d::CCScaleTo::create(*(float *)(a1 + 496), *(float *)(a1 + 404));\n        v5 = cocos2d::CCEaseBounceOut::create(v4);\n        (*(void (__fastcall **)(struct cocos2d::CCAction *, _QWORD))(*(_QWORD *)v5 + 64LL))(v5, 0);\n        cocos2d::CCNode::runAction((cocos2d::CCNode *)a1, v5);\n      }\n    }\n  }\n}", "assembly": "; \n; CCMenuItemSpriteExtra::unselected from 0x140048e00 to 0x140048f2b (299 bytes)\n; \n; 7 xrefs:\n; > <???> @ 0x1407098a0\n; > <???> @ 0x1407500c0\n; > <???> @ 0x140784eb8\n; > <???> @ 0x140885a30\n; > <???> @ 0x140885a44\n; > <???> @ 0x140885a78\n; > <???> @ 0x14090fb9c\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:25:32 +0000\n; \npush    rsi                                                            ; +0x0, 0x140048e00\nsub     rsp, 20h                                                       ; +0x2, 0x140048e02\ncmp     byte ptr [rcx+159h], 0                                         ; +0x6, 0x140048e06\nmov     rsi, rcx                                                       ; +0xd, 0x140048e0d\njz      loc_140048F25                                                  ; +0x10, 0x140048e10\ncall    cs:__imp_?unselected@CCMenuItemSprite@cocos2d@@UEAAXXZ; cocos2d::CCMenuItemSprite::unselected(void) ; +0x16, 0x140048e16\ncmp     byte ptr [rsi+199h], 0                                         ; +0x1c, 0x140048e1c\njz      short loc_140048E44                                            ; +0x23, 0x140048e23\nmov     rax, [rsi]                                                     ; +0x25, 0x140048e25\nmov     rcx, rsi                                                       ; +0x28, 0x140048e28\ncall    qword ptr [rax+3B8h]                                           ; +0x2b, 0x140048e2b\nlea     rdx, unk_1406FE7B0                                             ; +0x31, 0x140048e31\nlea     rcx, [rax+140h]                                                ; +0x38, 0x140048e38\nmov     rax, [rcx]                                                     ; +0x3f, 0x140048e3f\ncall    qword ptr [rax]                                                ; +0x42, 0x140048e42\ncmp     byte ptr [rsi+198h], 0                                         ; +0x44, 0x140048e44\njz      loc_140048F25                                                  ; +0x4b, 0x140048e4b\nmov     eax, [rsi+1F4h]                                                ; +0x51, 0x140048e51\nmov     [rsp+28h+arg_0], rbx                                           ; +0x57, 0x140048e57\ntest    eax, eax                                                       ; +0x5c, 0x140048e5c\njnz     short loc_140048EB3                                            ; +0x5e, 0x140048e5e\nxor     edx, edx                                                       ; +0x60, 0x140048e60\nmov     rcx, rsi                                                       ; +0x62, 0x140048e62\ncall    cs:?stopActionByTag@CCNode@cocos2d@@QEAAXH@Z; cocos2d::CCNode::stopActionByTag(int) ; +0x65, 0x140048e65\nmovss   xmm1, dword ptr [rsi+194h]                                     ; +0x6b, 0x140048e6b\nmovss   xmm0, dword ptr [rsi+1F0h]                                     ; +0x73, 0x140048e73\ncall    cs:?create@CCScaleTo@cocos2d@@SAPEAV12@MM@Z; cocos2d::CCScaleTo::create(float,float) ; +0x7b, 0x140048e7b\nmov     rcx, rax                                                       ; +0x81, 0x140048e81\ncall    cs:?create@CCEaseBounceOut@cocos2d@@SAPEAV12@PEAVCCActionInterval@2@@Z; cocos2d::CCEaseBounceOut::create(cocos2d::CCActionInterval *) ; +0x84, 0x140048e84\nxor     edx, edx                                                       ; +0x8a, 0x140048e8a\nmov     rbx, rax                                                       ; +0x8c, 0x140048e8c\nmov     rcx, [rax]                                                     ; +0x8f, 0x140048e8f\nmov     r8, [rcx+40h]                                                  ; +0x92, 0x140048e92\nmov     rcx, rax                                                       ; +0x96, 0x140048e96\ncall    r8                                                             ; +0x99, 0x140048e99\nmov     rdx, rbx                                                       ; +0x9c, 0x140048e9c\nmov     rcx, rsi                                                       ; +0x9f, 0x140048e9f\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xa2, 0x140048ea2\nadd     rsp, 20h                                                       ; +0xa7, 0x140048ea7\npop     rsi                                                            ; +0xab, 0x140048eab\njmp     cs:?runAction@CCNode@cocos2d@@QEAAPEAVCCAction@2@PEAV32@@Z; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0xac, 0x140048eac\ncmp     eax, 1                                                         ; +0xb3, 0x140048eb3\njnz     short loc_140048F20                                            ; +0xb6, 0x140048eb6\nmov     rax, [rsi]                                                     ; +0xb8, 0x140048eb8\nmov     rcx, rsi                                                       ; +0xbb, 0x140048ebb\nmov     [rsp+28h+arg_8], rdi                                           ; +0xbe, 0x140048ebe\ncall    qword ptr [rax+3B8h]                                           ; +0xc3, 0x140048ec3\nmov     rcx, rax                                                       ; +0xc9, 0x140048ec9\nxor     edx, edx                                                       ; +0xcc, 0x140048ecc\nmov     rdi, rax                                                       ; +0xce, 0x140048ece\ncall    cs:?stopActionByTag@CCNode@cocos2d@@QEAAXH@Z; cocos2d::CCNode::stopActionByTag(int) ; +0xd1, 0x140048ed1\nmovss   xmm0, dword ptr [rsi+1F0h]                                     ; +0xd7, 0x140048ed7\nlea     rdx, [rsi+1F8h]                                                ; +0xdf, 0x140048edf\ncall    cs:?create@CCMoveTo@cocos2d@@SAPEAV12@MAEBVCCPoint@2@@Z; cocos2d::CCMoveTo::create(float,cocos2d::CCPoint const &) ; +0xe6, 0x140048ee6\nmovss   xmm1, cs:width                                                 ; +0xec, 0x140048eec\nmov     rcx, rax                                                       ; +0xf4, 0x140048ef4\ncall    cs:?create@CCEaseInOut@cocos2d@@SAPEAV12@PEAVCCActionInterval@2@M@Z; cocos2d::CCEaseInOut::create(cocos2d::CCActionInterval *,float) ; +0xf7, 0x140048ef7\nxor     edx, edx                                                       ; +0xfd, 0x140048efd\nmov     rbx, rax                                                       ; +0xff, 0x140048eff\nmov     rcx, [rax]                                                     ; +0x102, 0x140048f02\nmov     r8, [rcx+40h]                                                  ; +0x105, 0x140048f05\nmov     rcx, rax                                                       ; +0x109, 0x140048f09\ncall    r8                                                             ; +0x10c, 0x140048f0c\nmov     rdx, rbx                                                       ; +0x10f, 0x140048f0f\nmov     rcx, rdi                                                       ; +0x112, 0x140048f12\ncall    cs:?runAction@CCNode@cocos2d@@QEAAPEAVCCAction@2@PEAV32@@Z; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x115, 0x140048f15\nmov     rdi, [rsp+28h+arg_8]                                           ; +0x11b, 0x140048f1b\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x120, 0x140048f20\nadd     rsp, 20h                                                       ; +0x125, 0x140048f25\npop     rsi                                                            ; +0x129, 0x140048f29\nretn                                                                   ; +0x12a, 0x140048f2a", "xrefs": ["<???> @ 0x1407098a0", "<???> @ 0x1407500c0", "<???> @ 0x140784eb8", "<???> @ 0x140885a30", "<???> @ 0x140885a44", "<???> @ 0x140885a78", "<???> @ 0x14090fb9c"], "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"}