{"type": "func", "start": 3040912, "end": 3041074, "name": "CCMenuItemSpriteExtra::unselected", "pseudocode": "// \n// CCMenuItemSpriteExtra::unselected from 0x2e6690 to 0x2e6732 (162 bytes)\n// \n// 0 xrefs:\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 CCMenuItemSpriteExtra::unselected(CCMenuItemSpriteExtra *a1)\n{\n  cocos2d::CCNode *v2; // r0\n  MenuAnimationType m_animationType; // r5\n  float v4; // r2\n  cocos2d::CCActionInterval *v5; // r0\n  cocos2d::CCEaseBounceOut *v6; // r6\n  cocos2d::CCNode *v7; // r5\n  cocos2d::CCMoveTo *v8; // r0\n  cocos2d::CCEaseInOut *v9; // r4\n\n  if ( a1->m_bEnabled )\n  {\n    cocos2d::CCMenuItemSprite::unselected(a1);\n    if ( a1->m_colorEnabled )\n    {\n      v2 = a1->getNormalImage(a1);\n      ((void (__fastcall *)(cocos2d::CCNode *, void *))v2->__vftable[1].getTag)(v2, &unk_9A97D8);\n    }\n    if ( a1->m_animationEnabled )\n    {\n      m_animationType = a1->m_animationType;\n      if ( m_animationType )\n      {\n        if ( m_animationType == Move )\n        {\n          v7 = a1->getNormalImage(a1);\n          cocos2d::CCNode::stopActionByTag(v7, 0);\n          v8 = cocos2d::CCMoveTo::create(a1->m_unselectedDuration, &a1->m_startPosition);\n          v9 = cocos2d::CCEaseInOut::create(v8, 2.0);\n          v9->setTag(v9, 0);\n          cocos2d::CCNode::runAction(v7, v9);\n        }\n      }\n      else\n      {\n        cocos2d::CCNode::stopActionByTag(a1, 0);\n        v5 = (cocos2d::CCActionInterval *)cocos2d::CCScaleTo::create(\n                                            (cocos2d::CCScaleTo *)LODWORD(a1->m_unselectedDuration),\n                                            a1->m_baseScale,\n                                            v4);\n        v6 = cocos2d::CCEaseBounceOut::create(v5);\n        v6->setTag(v6, 0);\n        cocos2d::CCNode::runAction(a1, v6);\n      }\n    }\n  }\n}", "assembly": "; \n; CCMenuItemSpriteExtra::unselected from 0x2e6690 to 0x2e6732 (162 bytes)\n; \n; 0 xrefs:\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\nLDRB.W          R3, [R0,#0x117]                                        ; +0x0, 0x2e6690\nPUSH            {R4-R6,LR}                                             ; +0x4, 0x2e6694\nMOV             R4, R0                                                 ; +0x6, 0x2e6696\nCMP             R3, #0                                                 ; +0x8, 0x2e6698\nBEQ             locret_2E6730                                          ; +0xa, 0x2e669a\nBL              _ZN7cocos2d16CCMenuItemSprite10unselectedEv; cocos2d::CCMenuItemSprite::unselected(void) ; +0xc, 0x2e669c\nLDRB.W          R3, [R4,#0x141]                                        ; +0x10, 0x2e66a0\nCBZ             R3, loc_2E66BC                                         ; +0x14, 0x2e66a4\nLDR             R3, [R4]                                               ; +0x16, 0x2e66a6\nMOV             R0, R4                                                 ; +0x18, 0x2e66a8\nLDR.W           R3, [R3,#0x210]                                        ; +0x1a, 0x2e66aa\nBLX             R3                                                     ; +0x1e, 0x2e66ae\nLDR             R1, =(unk_9A97D8 - 0x2E66B6)                           ; +0x20, 0x2e66b0\nADD             R1, PC; unk_9A97D8                                     ; +0x22, 0x2e66b2\nLDR             R3, [R0]                                               ; +0x24, 0x2e66b4\nLDR.W           R3, [R3,#0x1D8]                                        ; +0x26, 0x2e66b6\nBLX             R3                                                     ; +0x2a, 0x2e66ba\nLDRB.W          R3, [R4,#0x140]                                        ; +0x2c, 0x2e66bc\nCBZ             R3, locret_2E6730                                      ; +0x30, 0x2e66c0\nLDR.W           R5, [R4,#0x164]                                        ; +0x32, 0x2e66c2\nCBNZ            R5, loc_2E66F0                                         ; +0x36, 0x2e66c6\nMOV             R0, R4; this                                           ; +0x38, 0x2e66c8\nMOV             R1, R5; int                                            ; +0x3a, 0x2e66ca\nBL              _ZN7cocos2d6CCNode15stopActionByTagEi; cocos2d::CCNode::stopActionByTag(int) ; +0x3c, 0x2e66cc\nLDR.W           R1, [R4,#0x13C]; float                                 ; +0x40, 0x2e66d0\nLDR.W           R0, [R4,#0x160]; this                                  ; +0x44, 0x2e66d4\nBL              _ZN7cocos2d9CCScaleTo6createEff; cocos2d::CCScaleTo::create(float,float) ; +0x48, 0x2e66d8\nBL              _ZN7cocos2d15CCEaseBounceOut6createEPNS_16CCActionIntervalE; cocos2d::CCEaseBounceOut::create(cocos2d::CCActionInterval *) ; +0x4c, 0x2e66dc\nMOV             R1, R5                                                 ; +0x50, 0x2e66e0\nLDR             R3, [R0]                                               ; +0x52, 0x2e66e2\nMOV             R6, R0                                                 ; +0x54, 0x2e66e4\nLDR             R3, [R3,#0x24]                                         ; +0x56, 0x2e66e6\nBLX             R3                                                     ; +0x58, 0x2e66e8\nMOV             R0, R4                                                 ; +0x5a, 0x2e66ea\nMOV             R1, R6                                                 ; +0x5c, 0x2e66ec\nB               loc_2E6728                                             ; +0x5e, 0x2e66ee\nCMP             R5, #1                                                 ; +0x60, 0x2e66f0\nBNE             locret_2E6730                                          ; +0x62, 0x2e66f2\nLDR             R3, [R4]                                               ; +0x64, 0x2e66f4\nMOV             R0, R4                                                 ; +0x66, 0x2e66f6\nLDR.W           R3, [R3,#0x210]                                        ; +0x68, 0x2e66f8\nBLX             R3                                                     ; +0x6c, 0x2e66fc\nMOVS            R1, #0; int                                            ; +0x6e, 0x2e66fe\nMOV             R5, R0                                                 ; +0x70, 0x2e6700\nBL              _ZN7cocos2d6CCNode15stopActionByTagEi; cocos2d::CCNode::stopActionByTag(int) ; +0x72, 0x2e6702\nADD.W           R1, R4, #0x168; float                                  ; +0x76, 0x2e6706\nLDR.W           R0, [R4,#0x160]; this                                  ; +0x7a, 0x2e670a\nBL              _ZN7cocos2d8CCMoveTo6createEfRKNS_7CCPointE; cocos2d::CCMoveTo::create(float,cocos2d::CCPoint const&) ; +0x7e, 0x2e670e\nMOV.W           R1, #0x40000000; cocos2d::CCActionInterval *           ; +0x82, 0x2e6712\nBL              _ZN7cocos2d11CCEaseInOut6createEPNS_16CCActionIntervalEf; cocos2d::CCEaseInOut::create(cocos2d::CCActionInterval *,float) ; +0x86, 0x2e6716\nMOVS            R1, #0                                                 ; +0x8a, 0x2e671a\nLDR             R3, [R0]                                               ; +0x8c, 0x2e671c\nMOV             R4, R0                                                 ; +0x8e, 0x2e671e\nLDR             R3, [R3,#0x24]                                         ; +0x90, 0x2e6720\nBLX             R3                                                     ; +0x92, 0x2e6722\nMOV             R0, R5; this                                           ; +0x94, 0x2e6724\nMOV             R1, R4; cocos2d::CCAction *                            ; +0x96, 0x2e6726\nPOP.W           {R4-R6,LR}                                             ; +0x98, 0x2e6728\nB.W             _ZN7cocos2d6CCNode9runActionEPNS_8CCActionE; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x9c, 0x2e672c\nPOP             {R4-R6,PC}                                             ; +0xa0, 0x2e6730", "xrefs": [], "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"}