//
// cocos2d::extension::CCControlButton::setHighlighted from 0x180005b80 to 0x180005c58 (216 bytes)
//
// 6 xrefs:
// > ??> @ 0x180026650
// > ??> @ 0x18002a5c8
// > ??> @ 0x18002fd98
// > ??> @ 0x18002fda8
// > ??> @ 0x180032408
// > ??> @ 0x18004b4f8
//
// 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:15:36 +0000
//
void __fastcall cocos2d::extension::CCControlButton::setHighlighted(
cocos2d::extension::CCControlButton *this,
unsigned __int8 a2)
{
__int64 v3; // rax
struct cocos2d::CCAction *ActionByTag; // rax
float v5; // xmm1_4
struct cocos2d::CCAction *v6; // rbx
*((_DWORD *)this + 109) = a2 + 1;
v3 = *(_QWORD *)this;
*((_BYTE *)this + 443) = a2;
(*(void (**)(void))(v3 + 1080))();
ActionByTag = cocos2d::CCNode::getActionByTag(this, -859111423);
if ( ActionByTag )
cocos2d::CCNode::stopAction(this, ActionByTag);
(*(void (__fastcall **)(cocos2d::extension::CCControlButton *))(*(_QWORD *)this + 1080LL))(this);
if ( *((_BYTE *)this + 512) )
{
if ( (*(unsigned __int8 (__fastcall **)(cocos2d::extension::CCControlButton *))(*(_QWORD *)this + 1072LL))(this)
&& (*(unsigned __int8 (__fastcall **)(cocos2d::extension::CCControlButton *))(*(_QWORD *)this + 1040LL))(this)
&& !(*(unsigned __int8 (__fastcall **)(cocos2d::extension::CCControlButton *))(*(_QWORD *)this + 1056LL))(this) )
{
v5 = 1.1;
}
else
{
v5 = 1.0;
}
v6 = cocos2d::CCScaleTo::create(0.050000001, v5);
(*(void (__fastcall **)(struct cocos2d::CCAction *, __int64))(*(_QWORD *)v6 + 64LL))(v6, 3435855873LL);
cocos2d::CCNode::runAction(this, v6);
}
}