//
// CCMenuItemSpriteExtra::activate from 0x691a9c to 0x691bc0 (292 bytes)
//
// 4 xrefs:
// > ??> @ 0xc28a8
// > ??> @ 0x1416ba0
// > ??> @ 0x14314b0
// > ??> @ 0x14e1800
//
// 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::activate(CCMenuItemSpriteExtra *this)
{
FMODAudioEngine *v3; // x0
__int64 v4; // x1
__int64 v5; // x22
const char *v6; // x1
size_t v7; // x0
char *v8; // [xsp+38h] [xbp+38h]
__int64 v9[2]; // [xsp+40h] [xbp+40h] BYREF
void *v10; // [xsp+50h] [xbp+50h]
if ( *((_BYTE *)this + 339) )
{
cocos2d::CCNode::stopAllActions(this);
if ( !*((_DWORD *)this + 121) )
(*(void (__fastcall **)(CCMenuItemSpriteExtra *, float))(*(_QWORD *)this + 160LL))(this, *((float *)this + 101));
v3 = (FMODAudioEngine *)*((unsigned __int8 *)this + 416);
v4 = (unsigned __int8)v3 >> 1;
if ( ((unsigned __int8)v3 & 1) != 0 )
v4 = *((_QWORD *)this + 53);
if ( v4 )
{
v5 = FMODAudioEngine::sharedEngine(v3);
v6 = (char *)this + 417;
if ( (*((_BYTE *)this + 416) & 1) != 0 )
v6 = *((const char **)this + 54);
v8 = (char *)v6;
v9[0] = 0;
v9[1] = 0;
v10 = nullptr;
v7 = strlen(v6);
std::string::__init(v9, v8, v7);
FMODAudioEngine::playEffect(v5, 1.0, 0.0, *((float *)this + 103));
if ( (v9[0] & 1) != 0 )
operator delete(v10);
}
cocos2d::CCMenuItem::activate(this);
}
return _stack_chk_guard;
}