{"type": "func", "start": 4297552288, "end": 4297552546, "name": "CCMenuItemSpriteExtra::unselected", "pseudocode": "// \n// CCMenuItemSpriteExtra::unselected from 0x1002771a0 to 0x1002772a2 (258 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x1008b1ea8\n// > <???> @ 0x1008ef678\n// > <???> @ 0x1009657f0\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 CCMenuItemSpriteExtra::unselected(CCMenuItemSpriteExtra *a1)\n{\n  __int64 v1; // rax\n  MenuAnimationType m_animationType; // eax\n  cocos2d::CCScaleTo *v3; // rax\n  cocos2d::CCEaseBounceOut *v4; // r14\n  cocos2d::CCNode *v5; // r14\n  cocos2d::CCMoveTo *v6; // rax\n  cocos2d::CCEaseInOut *v7; // rbx\n\n  if ( a1->m_bEnabled )\n  {\n    cocos2d::CCMenuItemSprite::unselected(a1);\n    if ( a1->m_colorEnabled )\n    {\n      v1 = ((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))a1->getNormalImage)(a1);\n      (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v1 + 944LL))(v1, &unk_10081886C);\n    }\n    if ( a1->m_animationEnabled )\n    {\n      m_animationType = a1->m_animationType;\n      if ( m_animationType == Move )\n      {\n        v5 = (cocos2d::CCNode *)((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))a1->getNormalImage)(a1);\n        cocos2d::CCNode::stopActionByTag(v5, 0);\n        v6 = cocos2d::CCMoveTo::create(a1->m_unselectedDuration, &a1->m_startPosition);\n        v7 = cocos2d::CCEaseInOut::create(v6, 2.0);\n        ((void (__fastcall *)(cocos2d::CCEaseInOut *, _QWORD))v7->setTag)(v7, 0);\n        cocos2d::CCNode::runAction(v5, v7);\n      }\n      else if ( !m_animationType )\n      {\n        cocos2d::CCNode::stopActionByTag(a1, 0);\n        v3 = cocos2d::CCScaleTo::create_1(a1->m_unselectedDuration, a1->m_baseScale);\n        v4 = cocos2d::CCEaseBounceOut::create(v3);\n        ((void (__fastcall *)(cocos2d::CCEaseBounceOut *, _QWORD))v4->setTag)(v4, 0);\n        cocos2d::CCNode::runAction(a1, v4);\n      }\n    }\n  }\n}", "assembly": "; \n; CCMenuItemSpriteExtra::unselected from 0x1002771a0 to 0x1002772a2 (258 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x1008b1ea8\n; > <???> @ 0x1008ef678\n; > <???> @ 0x1009657f0\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    rbp                                                            ; +0x0, 0x1002771a0\nmov     rbp, rsp                                                       ; +0x1, 0x1002771a1\npush    r14                                                            ; +0x4, 0x1002771a4\npush    rbx                                                            ; +0x6, 0x1002771a6\ncmp     byte ptr [rdi+153h], 1                                         ; +0x7, 0x1002771a7\njnz     loc_100277240                                                  ; +0xe, 0x1002771ae\nmov     rbx, rdi                                                       ; +0x14, 0x1002771b4\ncall    cocos2d__CCMenuItemSprite__unselected                          ; +0x17, 0x1002771b7\ncmp     byte ptr [rbx+199h], 1                                         ; +0x1c, 0x1002771bc\njnz     short loc_1002771E4                                            ; +0x23, 0x1002771c3\nmov     rax, [rbx]                                                     ; +0x25, 0x1002771c5\nmov     rdi, rbx                                                       ; +0x28, 0x1002771c8\ncall    qword ptr [rax+420h]                                           ; +0x2b, 0x1002771cb\nmov     rcx, [rax]                                                     ; +0x31, 0x1002771d1\nlea     rsi, unk_10081886C                                             ; +0x34, 0x1002771d4\nmov     rdi, rax                                                       ; +0x3b, 0x1002771db\ncall    qword ptr [rcx+3B0h]                                           ; +0x3e, 0x1002771de\ncmp     byte ptr [rbx+198h], 1                                         ; +0x44, 0x1002771e4\njnz     short loc_100277240                                            ; +0x4b, 0x1002771eb\nmov     eax, [rbx+1E4h]                                                ; +0x4d, 0x1002771ed\ncmp     eax, 1                                                         ; +0x53, 0x1002771f3\njz      short loc_100277245                                            ; +0x56, 0x1002771f6\ntest    eax, eax                                                       ; +0x58, 0x1002771f8\njnz     short loc_100277240                                            ; +0x5a, 0x1002771fa\nmov     rdi, rbx                                                       ; +0x5c, 0x1002771fc\nxor     esi, esi                                                       ; +0x5f, 0x1002771ff\ncall    cocos2d__CCNode__stopActionByTag                               ; +0x61, 0x100277201\nmovss   xmm1, dword ptr [rbx+194h]                                     ; +0x66, 0x100277206\nmovss   xmm0, dword ptr [rbx+1E0h]                                     ; +0x6e, 0x10027720e\ncall    cocos2d__CCScaleTo__create_1                                   ; +0x76, 0x100277216\nmov     rdi, rax                                                       ; +0x7b, 0x10027721b\ncall    cocos2d__CCEaseBounceOut__create                               ; +0x7e, 0x10027721e\nmov     r14, rax                                                       ; +0x83, 0x100277223\nmov     rax, [rax]                                                     ; +0x86, 0x100277226\nmov     rdi, r14                                                       ; +0x89, 0x100277229\nxor     esi, esi                                                       ; +0x8c, 0x10027722c\ncall    qword ptr [rax+48h]                                            ; +0x8e, 0x10027722e\nmov     rdi, rbx                                                       ; +0x91, 0x100277231\nmov     rsi, r14                                                       ; +0x94, 0x100277234\npop     rbx                                                            ; +0x97, 0x100277237\npop     r14                                                            ; +0x98, 0x100277238\npop     rbp                                                            ; +0x9a, 0x10027723a\njmp     cocos2d__CCNode__runAction                                     ; +0x9b, 0x10027723b\npop     rbx                                                            ; +0xa0, 0x100277240\npop     r14                                                            ; +0xa1, 0x100277241\npop     rbp                                                            ; +0xa3, 0x100277243\nretn                                                                   ; +0xa4, 0x100277244\nmov     rax, [rbx]                                                     ; +0xa5, 0x100277245\nmov     rdi, rbx                                                       ; +0xa8, 0x100277248\ncall    qword ptr [rax+420h]                                           ; +0xab, 0x10027724b\nmov     r14, rax                                                       ; +0xb1, 0x100277251\nmov     rdi, rax                                                       ; +0xb4, 0x100277254\nxor     esi, esi                                                       ; +0xb7, 0x100277257\ncall    cocos2d__CCNode__stopActionByTag                               ; +0xb9, 0x100277259\nmovss   xmm0, dword ptr [rbx+1E0h]                                     ; +0xbe, 0x10027725e\nadd     rbx, 1E8h                                                      ; +0xc6, 0x100277266\nmov     rdi, rbx                                                       ; +0xcd, 0x10027726d\ncall    cocos2d__CCMoveTo__create                                      ; +0xd0, 0x100277270\nmovss   xmm0, cs:width                                                 ; +0xd5, 0x100277275\nmov     rdi, rax                                                       ; +0xdd, 0x10027727d\ncall    cocos2d__CCEaseInOut__create                                   ; +0xe0, 0x100277280\nmov     rbx, rax                                                       ; +0xe5, 0x100277285\nmov     rax, [rax]                                                     ; +0xe8, 0x100277288\nmov     rdi, rbx                                                       ; +0xeb, 0x10027728b\nxor     esi, esi                                                       ; +0xee, 0x10027728e\ncall    qword ptr [rax+48h]                                            ; +0xf0, 0x100277290\nmov     rdi, r14                                                       ; +0xf3, 0x100277293\nmov     rsi, rbx                                                       ; +0xf6, 0x100277296\npop     rbx                                                            ; +0xf9, 0x100277299\npop     r14                                                            ; +0xfa, 0x10027729a\npop     rbp                                                            ; +0xfc, 0x10027729c\njmp     cocos2d__CCNode__runAction                                     ; +0xfd, 0x10027729d", "xrefs": ["<???> @ 0x1008b1ea8", "<???> @ 0x1008ef678", "<???> @ 0x1009657f0"], "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"}