//
// CCMenuItemSpriteExtra::selected from 0x3c69e4 to 0x3c6b6c (392 bytes)
//
// 1 xrefs:
// > RowPressItem::selected @ 0x42469e
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:46:34 +0000
//
cocos2d::CCMenuItemSprite *__fastcall CCMenuItemSpriteExtra::selected(cocos2d::CCMenuItemSprite *this)
{
const char *v1; // r7
cocos2d::CCMenuItemSprite *v2; // r4
int v3; // r3
int v4; // r3
int v5; // r0
bool v6; // nf
int v7; // r8
size_t v8; // r0
float v9; // s16
int (*v10)(void); // r2
char v11; // r3
int v12; // r5
float v13; // r2
cocos2d::CCEaseBounceOut *v14; // r0
cocos2d::CCActionInterval *v15; // r1
cocos2d::CCAction *v16; // r7
cocos2d::CCNode *v17; // r0
cocos2d::CCAction *v18; // r1
cocos2d::CCNode *v19; // r7
cocos2d::CCMoveTo *v20; // r8
const cocos2d::CCPoint *v21; // r2
cocos2d::CCEaseInOut *v22; // r0
float v23; // r2
cocos2d::CCAction *v24; // r4
__int16 v25; // [sp+10h] [bp-18h] BYREF
char v26; // [sp+12h] [bp-16h]
int v27[3]; // [sp+18h] [bp-10h] BYREF
v2 = this;
if ( *((_BYTE *)this + 279) )
{
this = (cocos2d::CCMenuItemSprite *)cocos2d::CCMenuItemSprite::selected(this);
v3 = *((unsigned __int8 *)v2 + 340);
if ( (v3 & 1) != 0 )
v4 = *((_DWORD *)v2 + 86);
else
v4 = v3 >> 1;
if ( v4 )
{
v5 = FMODAudioEngine::sharedEngine(this);
v6 = (*((_BYTE *)v2 + 340) & 1) != 0;
if ( (*((_BYTE *)v2 + 340) & 1) == 0 )
v1 = (char *)v2 + 341;
v27[0] = 0;
if ( v6 )
v1 = *((const char **)v2 + 87);
v27[1] = 0;
v27[2] = 0;
v7 = v5;
v8 = strlen(v1);
std::string::__init(v27, v1, v8);
FMODAudioEngine::playEffect(v7, (int)v27, 1065353216, 0, *((float *)v2 + 81));
this = (cocos2d::CCMenuItemSprite *)std::string::~string((int)v27);
}
if ( *((_BYTE *)v2 + 321) )
{
v9 = *((float *)v2 + 88);
v10 = *(int (**)(void))(*(_DWORD *)(*(int (__fastcall **)(cocos2d::CCMenuItemSprite *))(*(_DWORD *)v2 + 536))(v2)
+ 480);
if ( *((_BYTE *)v2 + 388) )
{
v11 = *((_BYTE *)v2 + 391);
v25 = *(_WORD *)((char *)v2 + 389);
v26 = v11;
}
else
{
LOBYTE(v25) = (unsigned int)(float)(v9 * 255.0);
HIBYTE(v25) = v25;
v26 = v25;
}
this = (cocos2d::CCMenuItemSprite *)v10();
}
if ( *((_BYTE *)v2 + 320) )
{
v12 = *((_DWORD *)v2 + 93);
if ( v12 )
{
if ( v12 != 1 )
return this;
v19 = (cocos2d::CCNode *)(*(int (__fastcall **)(cocos2d::CCMenuItemSprite *))(*(_DWORD *)v2 + 536))(v2);
cocos2d::CCNode::stopActionByTag(v19, 0);
v20 = *((cocos2d::CCMoveTo **)v2 + 91);
cocos2d::CCPoint::operator+(&v25, (char *)v2 + 376, (char *)v2 + 356);
v22 = (cocos2d::CCEaseInOut *)cocos2d::CCMoveTo::create(v20, COERCE_FLOAT(&v25), v21);
v24 = (cocos2d::CCAction *)cocos2d::CCEaseInOut::create(v22, (cocos2d::CCActionInterval *)0x3FC00000, v23);
(*(void (__fastcall **)(cocos2d::CCAction *, _DWORD))(*(_DWORD *)v24 + 36))(v24, 0);
v17 = v19;
v18 = v24;
}
else
{
cocos2d::CCNode::stopActionByTag(v2, 0);
v14 = (cocos2d::CCEaseBounceOut *)cocos2d::CCScaleTo::create(
*((cocos2d::CCScaleTo **)v2 + 91),
*((float *)v2 + 79) * *((float *)v2 + 78),
v13);
v16 = (cocos2d::CCAction *)cocos2d::CCEaseBounceOut::create(v14, v15);
(*(void (__fastcall **)(cocos2d::CCAction *, _DWORD))(*(_DWORD *)v16 + 36))(v16, 0);
v17 = v2;
v18 = v16;
}
return (cocos2d::CCMenuItemSprite *)cocos2d::CCNode::runAction(v17, v18);
}
}
return this;
}