{"type": "func", "start": 3958156, "end": 3958318, "name": "CCMenuItemSpriteExtra::unselected", "pseudocode": "// \n// CCMenuItemSpriteExtra::unselected from 0x3c658c to 0x3c662e (162 bytes)\n// \n// 1 xrefs:\n// > RowPressItem::unselected @ 0x4246bc\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:46:34 +0000\n// \n\ncocos2d::CCMenuItemSprite *__fastcall CCMenuItemSpriteExtra::unselected(cocos2d::CCMenuItemSprite *this)\n{\n  cocos2d::CCMenuItemSprite *v1; // r4\n  int v2; // r0\n  int v3; // r5\n  float v4; // r2\n  cocos2d::CCEaseBounceOut *v5; // r0\n  cocos2d::CCActionInterval *v6; // r1\n  cocos2d::CCAction *v7; // r6\n  cocos2d::CCNode *v8; // r5\n  const cocos2d::CCPoint *v9; // r2\n  cocos2d::CCEaseInOut *v10; // r0\n  float v11; // r2\n  cocos2d::CCAction *v12; // r4\n\n  v1 = this;\n  if ( *((_BYTE *)this + 279) )\n  {\n    this = (cocos2d::CCMenuItemSprite *)cocos2d::CCMenuItemSprite::unselected(this);\n    if ( *((_BYTE *)v1 + 321) )\n    {\n      v2 = (*(int (__fastcall **)(cocos2d::CCMenuItemSprite *))(*(_DWORD *)v1 + 536))(v1);\n      this = (cocos2d::CCMenuItemSprite *)(*(int (__fastcall **)(int, void *))(*(_DWORD *)v2 + 480))(v2, &unk_BEACA4);\n    }\n    if ( *((_BYTE *)v1 + 320) )\n    {\n      v3 = *((_DWORD *)v1 + 93);\n      if ( v3 )\n      {\n        if ( v3 == 1 )\n        {\n          v8 = (cocos2d::CCNode *)(*(int (__fastcall **)(cocos2d::CCMenuItemSprite *))(*(_DWORD *)v1 + 536))(v1);\n          cocos2d::CCNode::stopActionByTag(v8, 0);\n          v10 = (cocos2d::CCEaseInOut *)cocos2d::CCMoveTo::create(\n                                          *((cocos2d::CCMoveTo **)v1 + 92),\n                                          COERCE_FLOAT((cocos2d::CCMenuItemSprite *)((char *)v1 + 376)),\n                                          v9);\n          v12 = (cocos2d::CCAction *)cocos2d::CCEaseInOut::create(v10, (cocos2d::CCActionInterval *)0x40000000, v11);\n          (*(void (__fastcall **)(cocos2d::CCAction *, _DWORD))(*(_DWORD *)v12 + 36))(v12, 0);\n          return (cocos2d::CCMenuItemSprite *)cocos2d::CCNode::runAction(v8, v12);\n        }\n      }\n      else\n      {\n        cocos2d::CCNode::stopActionByTag(v1, 0);\n        v5 = (cocos2d::CCEaseBounceOut *)cocos2d::CCScaleTo::create(\n                                           *((cocos2d::CCScaleTo **)v1 + 92),\n                                           *((float *)v1 + 79),\n                                           v4);\n        v7 = (cocos2d::CCAction *)cocos2d::CCEaseBounceOut::create(v5, v6);\n        (*(void (__fastcall **)(cocos2d::CCAction *, _DWORD))(*(_DWORD *)v7 + 36))(v7, 0);\n        return (cocos2d::CCMenuItemSprite *)cocos2d::CCNode::runAction(v1, v7);\n      }\n    }\n  }\n  return this;\n}", "assembly": "; \n; CCMenuItemSpriteExtra::unselected from 0x3c658c to 0x3c662e (162 bytes)\n; \n; 1 xrefs:\n; > RowPressItem::unselected @ 0x4246bc\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:46:34 +0000\n; \nPUSH            {R4-R6,LR}                                             ; +0x0, 0x3c658c\nMOV             R4, R0                                                 ; +0x2, 0x3c658e\nLDRB.W          R3, [R0,#0x117]                                        ; +0x4, 0x3c6590\nCMP             R3, #0                                                 ; +0x8, 0x3c6594\nBEQ             locret_3C662C                                          ; +0xa, 0x3c6596\nBL              _ZN7cocos2d16CCMenuItemSprite10unselectedEv; cocos2d::CCMenuItemSprite::unselected(void) ; +0xc, 0x3c6598\nLDRB.W          R3, [R4,#0x141]                                        ; +0x10, 0x3c659c\nCBZ             R3, loc_3C65B8                                         ; +0x14, 0x3c65a0\nLDR             R3, [R4]                                               ; +0x16, 0x3c65a2\nMOV             R0, R4                                                 ; +0x18, 0x3c65a4\nLDR.W           R3, [R3,#0x218]                                        ; +0x1a, 0x3c65a6\nBLX             R3                                                     ; +0x1e, 0x3c65aa\nLDR             R1, =(unk_BEACA4 - 0x3C65B2)                           ; +0x20, 0x3c65ac\nADD             R1, PC; unk_BEACA4                                     ; +0x22, 0x3c65ae\nLDR             R3, [R0]                                               ; +0x24, 0x3c65b0\nLDR.W           R3, [R3,#0x1E0]                                        ; +0x26, 0x3c65b2\nBLX             R3                                                     ; +0x2a, 0x3c65b6\nLDRB.W          R3, [R4,#0x140]                                        ; +0x2c, 0x3c65b8\nCBZ             R3, locret_3C662C                                      ; +0x30, 0x3c65bc\nLDR.W           R5, [R4,#0x174]                                        ; +0x32, 0x3c65be\nCBNZ            R5, loc_3C65EC                                         ; +0x36, 0x3c65c2\nMOV             R0, R4; this                                           ; +0x38, 0x3c65c4\nMOV             R1, R5; int                                            ; +0x3a, 0x3c65c6\nBL              _ZN7cocos2d6CCNode15stopActionByTagEi; cocos2d::CCNode::stopActionByTag(int) ; +0x3c, 0x3c65c8\nLDR.W           R1, [R4,#0x13C]; float                                 ; +0x40, 0x3c65cc\nLDR.W           R0, [R4,#0x170]; this                                  ; +0x44, 0x3c65d0\nBL              _ZN7cocos2d9CCScaleTo6createEff; cocos2d::CCScaleTo::create(float,float) ; +0x48, 0x3c65d4\nBL              _ZN7cocos2d15CCEaseBounceOut6createEPNS_16CCActionIntervalE; cocos2d::CCEaseBounceOut::create(cocos2d::CCActionInterval *) ; +0x4c, 0x3c65d8\nMOV             R1, R5                                                 ; +0x50, 0x3c65dc\nLDR             R3, [R0]                                               ; +0x52, 0x3c65de\nMOV             R6, R0                                                 ; +0x54, 0x3c65e0\nLDR             R3, [R3,#0x24]                                         ; +0x56, 0x3c65e2\nBLX             R3                                                     ; +0x58, 0x3c65e4\nMOV             R0, R4                                                 ; +0x5a, 0x3c65e6\nMOV             R1, R6                                                 ; +0x5c, 0x3c65e8\nB               loc_3C6624                                             ; +0x5e, 0x3c65ea\nCMP             R5, #1                                                 ; +0x60, 0x3c65ec\nBNE             locret_3C662C                                          ; +0x62, 0x3c65ee\nLDR             R3, [R4]                                               ; +0x64, 0x3c65f0\nMOV             R0, R4                                                 ; +0x66, 0x3c65f2\nLDR.W           R3, [R3,#0x218]                                        ; +0x68, 0x3c65f4\nBLX             R3                                                     ; +0x6c, 0x3c65f8\nMOVS            R1, #0; int                                            ; +0x6e, 0x3c65fa\nMOV             R5, R0                                                 ; +0x70, 0x3c65fc\nBL              _ZN7cocos2d6CCNode15stopActionByTagEi; cocos2d::CCNode::stopActionByTag(int) ; +0x72, 0x3c65fe\nADD.W           R1, R4, #0x178; float                                  ; +0x76, 0x3c6602\nLDR.W           R0, [R4,#0x170]; this                                  ; +0x7a, 0x3c6606\nBL              _ZN7cocos2d8CCMoveTo6createEfRKNS_7CCPointE; cocos2d::CCMoveTo::create(float,cocos2d::CCPoint const&) ; +0x7e, 0x3c660a\nMOV.W           R1, #0x40000000; cocos2d::CCActionInterval *           ; +0x82, 0x3c660e\nBL              _ZN7cocos2d11CCEaseInOut6createEPNS_16CCActionIntervalEf; cocos2d::CCEaseInOut::create(cocos2d::CCActionInterval *,float) ; +0x86, 0x3c6612\nMOVS            R1, #0                                                 ; +0x8a, 0x3c6616\nLDR             R3, [R0]                                               ; +0x8c, 0x3c6618\nMOV             R4, R0                                                 ; +0x8e, 0x3c661a\nLDR             R3, [R3,#0x24]                                         ; +0x90, 0x3c661c\nBLX             R3                                                     ; +0x92, 0x3c661e\nMOV             R0, R5; this                                           ; +0x94, 0x3c6620\nMOV             R1, R4; cocos2d::CCAction *                            ; +0x96, 0x3c6622\nPOP.W           {R4-R6,LR}                                             ; +0x98, 0x3c6624\nB.W             _ZN7cocos2d6CCNode9runActionEPNS_8CCActionE; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x9c, 0x3c6628\nPOP             {R4-R6,PC}                                             ; +0xa0, 0x3c662c", "xrefs": ["RowPressItem::unselected @ 0x4246bc"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "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"}