//
// cocos2d::extension::CCControlButton::setHighlighted from 0x7a8070 to 0x7a8102 (146 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 12:00:00 +0000
//
int __fastcall cocos2d::extension::CCControlButton::setHighlighted(
cocos2d::extension::CCControlButton *this,
_BOOL4 a2)
{
int v2; // r3
cocos2d::CCAction *ActionByTag; // r1
int result; // r0
float v6; // r2
float v7; // r1
cocos2d::CCAction *v8; // r5
if ( a2 )
v2 = 2;
else
v2 = 1;
*((_DWORD *)this + 83) = v2;
cocos2d::extension::CCControl::setHighlighted(this, a2);
ActionByTag = (cocos2d::CCAction *)cocos2d::CCNode::getActionByTag(this, -859111423);
if ( ActionByTag )
cocos2d::CCNode::stopAction(this, ActionByTag);
result = (*(int (__fastcall **)(cocos2d::extension::CCControlButton *, cocos2d::CCAction *))(*(_DWORD *)this + 656))(
this,
ActionByTag);
if ( *((_BYTE *)this + 380) )
{
if ( (*(int (__fastcall **)(cocos2d::extension::CCControlButton *))(*(_DWORD *)this + 652))(this)
&& (*(int (__fastcall **)(cocos2d::extension::CCControlButton *))(*(_DWORD *)this + 636))(this) )
{
if ( (*(int (__fastcall **)(cocos2d::extension::CCControlButton *))(*(_DWORD *)this + 644))(this) )
v7 = 1.0;
else
v7 = 1.1;
}
else
{
v7 = 1.0;
}
v8 = (cocos2d::CCAction *)cocos2d::CCScaleTo::create((cocos2d::CCScaleTo *)0x3D4CCCCD, v7, v6);
(*(void (__fastcall **)(cocos2d::CCAction *, int))(*(_DWORD *)v8 + 36))(v8, -859111423);
return cocos2d::CCNode::runAction(this, v8);
}
return result;
}