//
// cocos2d::extension::CCControlButton::setTitleForState from 0xa9b350 to 0xa9b3cc (124 bytes)
//
// 3 xrefs:
// > ??> @ 0x462a8
// > ??> @ 0x11f5268
// > ??> @ 0x11fa878
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void cocos2d::extension::CCControlButton::setTitleForState(
cocos2d::extension::CCControlButton *a1,
cocos2d::CCString *a2,
unsigned int a3)
{
intptr_t v4; // x21
v4 = a3;
cocos2d::CCDictionary::removeObjectForKey(*(cocos2d::CCDictionary **)&a1[1].m_fRotationX, a3);
if ( a2 )
cocos2d::CCDictionary::setObject(*(cocos2d::CCDictionary **)&a1[1].m_fRotationX, a2, v4);
if ( a3 == a1->m_eState )
a1->needsLayout(a1);
}