//
// cocos2d::CCMenuItemLabel::selected from 0x1003a8570 to 0x1003a85fb (139 bytes)
//
// 3 xrefs:
// > ??> @ 0x100b34590
// > ??> @ 0x100b354c0
// > ??> @ 0x100b359b8
//
// This function is hookable on this platform (idp: pc, 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:29:22 +0000
//
void __fastcall cocos2d::CCMenuItemLabel::selected(__int64 a1)
{
__int64 ActionByTag; // rax
float v2; // xmm1_4
double v3; // xmm0_8
_OWORD *v4; // r14
if ( *(_BYTE *)(a1 + 339) == 1 )
{
*(_BYTE *)(a1 + 338) = 1;
ActionByTag = cocos2d::CCNode::getActionByTag(a1, -1061138430);
if ( ActionByTag )
{
cocos2d::CCNode::stopAction(a1, ActionByTag);
v2 = *(float *)(a1 + 396);
}
else
{
v3 = (*(double (__fastcall **)(__int64))(*(_QWORD *)a1 + 168LL))(a1);
v2 = *(float *)&v3;
*(_DWORD *)(a1 + 396) = LODWORD(v3);
}
v4 = cocos2d::CCScaleTo::create_1((__m128)0x3DCCCCCDu, v2 * 1.2);
(*(void (__fastcall **)(_OWORD *, __int64))(*(_QWORD *)v4 + 72LL))(v4, 3233828866LL);
cocos2d::CCNode::runAction(a1, (__int64)v4);
}
}