//
// CCMenuItemSpriteExtra::activate from 0x3c692c to 0x3c69e0 (180 bytes)
//
// 0 xrefs:
//
// 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::CCMenuItem *__fastcall CCMenuItemSpriteExtra::activate(cocos2d::CCMenuItem *this)
{
const char *v1; // r7
cocos2d::CCMenuItem *v2; // r4
FMODAudioEngine *v3; // r0
int v4; // r3
int v5; // r3
int v6; // r0
bool v7; // nf
int v8; // r8
size_t v9; // r0
int v10[3]; // [sp+8h] [bp-10h] BYREF
v2 = this;
if ( *((_BYTE *)this + 279) )
{
v3 = (FMODAudioEngine *)cocos2d::CCNode::stopAllActions(this);
if ( !*((_DWORD *)v2 + 93) )
v3 = (FMODAudioEngine *)(*(int (__fastcall **)(cocos2d::CCMenuItem *, _DWORD))(*(_DWORD *)v2 + 80))(
v2,
*((_DWORD *)v2 + 79));
v4 = *((unsigned __int8 *)v2 + 328);
if ( (v4 & 1) != 0 )
v5 = *((_DWORD *)v2 + 83);
else
v5 = v4 >> 1;
if ( v5 )
{
v6 = FMODAudioEngine::sharedEngine(v3);
v7 = (*((_BYTE *)v2 + 328) & 1) != 0;
if ( (*((_BYTE *)v2 + 328) & 1) == 0 )
v1 = (char *)v2 + 329;
v10[0] = 0;
if ( v7 )
v1 = *((const char **)v2 + 84);
v10[1] = 0;
v10[2] = 0;
v8 = v6;
v9 = strlen(v1);
std::string::__init(v10, v1, v9);
FMODAudioEngine::playEffect(v8, (int)v10, 1065353216, 0, *((float *)v2 + 81));
std::string::~string((int)v10);
}
return (cocos2d::CCMenuItem *)cocos2d::CCMenuItem::activate(v2);
}
return this;
}