//
// cocos2d::extension::CCControlButton::setTitleForState from 0xd0cee0 to 0xd0cf5c (124 bytes)
//
// 3 xrefs:
// > ??> @ 0x63a30
// > ??> @ 0x150aa18
// > ??> @ 0x1510198
//
// This function is hookable on this platform (idp: arm, 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 13:07:00 +0000
//
__int64 __fastcall cocos2d::extension::CCControlButton::setTitleForState(
cocos2d::CCDictionary **this,
cocos2d::CCString *a2,
unsigned int a3)
{
__int64 v4; // x21
__int64 result; // x0
v4 = a3;
cocos2d::CCDictionary::removeObjectForKey(*(this + 66), a3);
if ( a2 )
cocos2d::CCDictionary::setObject(*(this + 66), a2, v4);
result = *((unsigned int *)this + 107);
if ( a3 == (_DWORD)result )
return (*((__int64 (__fastcall **)(cocos2d::CCDictionary **))*this + 164))(this);
return result;
}