// // CCMenuItemSpriteExtra::selected from 0x691bc0 to 0x691e04 (580 bytes) // // 5 xrefs: // > RowPressItem::selected @ 0x735e58 // > @ 0x46198 // > @ 0x1416ba8 // > @ 0x1488108 // > @ 0x14e1808 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:50:35 +0000 // __int64 __fastcall CCMenuItemSpriteExtra::selected(CCMenuItemSpriteExtra *this) { FMODAudioEngine *v3; // x0 int v4; // w0 cocos2d::CCNode *v5; // x22 const cocos2d::CCPoint *v6; // x1 cocos2d::CCEaseInOut *v7; // x0 cocos2d::CCActionInterval *v8; // x1 cocos2d::CCAction *v9; // x19 __int64 v10; // x22 const char *v11; // x1 size_t v12; // x0 float v13; // s8 void (*v14)(void); // x2 cocos2d::CCScaleTo *v15; // x0 cocos2d::CCEaseBounceOut *v16; // x0 cocos2d::CCActionInterval *v17; // x1 cocos2d::CCAction *v18; // x21 float v19; // [xsp+40h] [xbp+40h] char *v20; // [xsp+40h] [xbp+40h] __int64 v21; // [xsp+58h] [xbp+58h] BYREF __int64 v22[2]; // [xsp+60h] [xbp+60h] BYREF void *v23; // [xsp+70h] [xbp+70h] if ( !*((_BYTE *)this + 339) ) return _stack_chk_guard; cocos2d::CCMenuItemSprite::selected(this); v3 = (FMODAudioEngine *)*((unsigned __int8 *)this + 440); if ( ((unsigned __int8)v3 & 1) != 0 ) { if ( !*((_QWORD *)this + 56) ) goto LABEL_5; LABEL_11: v10 = FMODAudioEngine::sharedEngine(v3); v11 = (char *)this + 441; if ( (*((_BYTE *)this + 440) & 1) != 0 ) v11 = *((const char **)this + 57); v20 = (char *)v11; v22[0] = 0; v22[1] = 0; v23 = nullptr; v12 = strlen(v11); std::string::__init(v22, v20, v12); FMODAudioEngine::playEffect(v10, 1.0, 0.0, *((float *)this + 103)); if ( (v22[0] & 1) != 0 ) operator delete(v23); goto LABEL_5; } if ( (unsigned __int8)v3 >> 1 ) goto LABEL_11; LABEL_5: if ( *((_BYTE *)this + 409) ) { v13 = *((float *)this + 116); v14 = *(void (**)(void))(*(_QWORD *)(*(__int64 (__fastcall **)(CCMenuItemSpriteExtra *))(*(_QWORD *)this + 1072LL))(this) + 960LL); if ( *((_BYTE *)this + 500) ) { BYTE2(v21) = *((_BYTE *)this + 503); LOWORD(v21) = *(_WORD *)((char *)this + 501); } else { LOBYTE(v21) = (unsigned int)(float)(v13 * 255.0); BYTE1(v21) = v21; BYTE2(v21) = v21; } v14(); } if ( *((_BYTE *)this + 408) ) { v4 = *((_DWORD *)this + 121); if ( v4 ) { if ( v4 == 1 ) { v5 = (cocos2d::CCNode *)(*(__int64 (__fastcall **)(CCMenuItemSpriteExtra *))(*(_QWORD *)this + 1072LL))(this); cocos2d::CCNode::stopActionByTag(v5, 0); v19 = *((float *)this + 119); cocos2d::CCPoint::operator+(&v21, (char *)this + 488, (char *)this + 468); v7 = (cocos2d::CCEaseInOut *)cocos2d::CCMoveTo::create((cocos2d::CCMoveTo *)&v21, v19, v6); v9 = (cocos2d::CCAction *)cocos2d::CCEaseInOut::create(v7, v8, 1.5); (*(void (__fastcall **)(cocos2d::CCAction *, _QWORD))(*(_QWORD *)v9 + 72LL))(v9, 0); cocos2d::CCNode::runAction(v5, v9); } } else { v15 = (cocos2d::CCScaleTo *)cocos2d::CCNode::stopActionByTag(this, 0); v16 = (cocos2d::CCEaseBounceOut *)cocos2d::CCScaleTo::create( v15, *((float *)this + 119), *((float *)this + 101) * *((float *)this + 100)); v18 = (cocos2d::CCAction *)cocos2d::CCEaseBounceOut::create(v16, v17); (*(void (__fastcall **)(cocos2d::CCAction *, _QWORD))(*(_QWORD *)v18 + 72LL))(v18, 0); cocos2d::CCNode::runAction(this, v18); } } return _stack_chk_guard; }