//
// CCMenuItemSpriteExtra::activate from 0x1002b035c to 0x1002b0420 (196 bytes)
//
// 3 xrefs:
// > ??> @ 0x1008df040
// > ??> @ 0x1008e5e30
// > ??> @ 0x10091b1b8
//
// 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 11:02:20 +0000
//
__int64 __fastcall CCMenuItemSpriteExtra::activate(__int64 result)
{
__int64 v1; // x19
char *v2; // x21
__int64 v3; // x20
void *__p[2]; // [xsp+8h] [xbp-38h] BYREF
char v5; // [xsp+1Fh] [xbp-21h]
if ( *(_BYTE *)(result + 339) == 1 )
{
v1 = result;
cocos2d::CCNode::stopAllActions(result);
if ( !*(_DWORD *)(v1 + 484) )
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v1 + 160LL))(v1, *(float *)(v1 + 404));
if ( (*(char *)(v1 + 439) & 0x8000000000000000LL) != 0 )
{
if ( !*(_QWORD *)(v1 + 424) )
return cocos2d::CCMenuItem::activate(v1);
}
else if ( !*(_BYTE *)(v1 + 439) )
{
return cocos2d::CCMenuItem::activate(v1);
}
v2 = (char *)(v1 + 416);
v3 = FMODAudioEngine::sharedEngine();
if ( *(char *)(v1 + 439) < 0 )
v2 = *(char **)v2;
sub_100009900(__p, v2);
FMODAudioEngine::playEffect(v3, (__int64)__p, 1.0, 0.0, *(float *)(v1 + 412));
if ( v5 < 0 )
operator delete(__p[0]);
return cocos2d::CCMenuItem::activate(v1);
}
return result;
}