//
// cocos2d::extension::CCControlButton::setTitleForState from 0x100354240 to 0x1003542a3 (99 bytes)
//
// 2 xrefs:
// > ??> @ 0x1009161b0
// > ??> @ 0x1009478f8
//
// 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 __fastcall cocos2d::extension::CCControlButton::setTitleForState(
cocos2d::extension::CCControlButton *a1,
cocos2d::CCString *a2,
unsigned int a3)
{
intptr_t v4; // r15
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 ( a1->m_eState == a3 )
((void (__fastcall *)(cocos2d::extension::CCControlButton *))a1->needsLayout)(a1);
}