//
// cocos2d::extension::CCControlButton::setHighlighted from 0x10033f680 to 0x10033f74e (206 bytes)
//
// 2 xrefs:
// > ??> @ 0x100b1df88
// > ??> @ 0x100b52670
//
// 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:28:43 +0000
//
__int64 __fastcall cocos2d::extension::CCControlButton::setHighlighted(__int64 a1, int a2, double a3)
{
__int64 ActionByTag; // rax
__int64 result; // rax
float v5; // xmm1_4
__int64 v6; // r14
*(_DWORD *)(a1 + 428) = a2 + 1;
cocos2d::extension::CCControl::setHighlighted((_BYTE *)a1, a2);
ActionByTag = cocos2d::CCNode::getActionByTag(a1, -859111423);
if ( ActionByTag )
cocos2d::CCNode::stopAction(a1, ActionByTag);
result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 1312LL))(a1);
if ( *(_BYTE *)(a1 + 512) == 1 )
{
v5 = 1.0;
if ( (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)a1 + 1304LL))(a1) )
{
v5 = 1.0;
if ( (*(unsigned __int8 (__fastcall **)(__int64, double, float))(*(_QWORD *)a1 + 1272LL))(a1, a3, 1.0) )
{
if ( (*(unsigned __int8 (__fastcall **)(__int64, double, float))(*(_QWORD *)a1 + 1288LL))(a1, a3, 1.0) )
v5 = 1.0;
else
v5 = 1.1;
}
}
v6 = cocos2d::CCScaleTo::create_1(0.050000001, v5);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 72LL))(v6, 3435855873LL);
return cocos2d::CCNode::runAction(a1, v6);
}
return result;
}