//
// cocos2d::extension::CCControlButton::getTitleForState from 0xd0d7b8 to 0xd0d894 (220 bytes)
//
// 3 xrefs:
// > ??> @ 0xf22f0
// > ??> @ 0x150aa10
// > ??> @ 0x1510190
//
// 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:01 +0000
//
__int64 __fastcall cocos2d::extension::CCControlButton::getTitleForState(
cocos2d::extension::CCControlButton *this,
unsigned int a2)
{
cocos2d::CCDictionary *v3; // x0
__int64 v4; // x20
__int64 v6[2]; // [xsp+30h] [xbp+30h] BYREF
void *v7; // [xsp+40h] [xbp+40h]
v3 = *((cocos2d::CCDictionary **)this + 66);
if ( v3 )
{
v4 = cocos2d::CCDictionary::objectForKey(v3, a2);
if ( !v4 )
return cocos2d::CCDictionary::objectForKey(*((cocos2d::CCDictionary **)this + 66), 1);
}
else
{
v6[0] = 0;
v6[1] = 0;
v7 = nullptr;
std::string::__init(v6, &byte_11B8890, 0);
v4 = cocos2d::CCString::create(v6);
if ( (v6[0] & 1) != 0 )
operator delete(v7);
}
return v4;
}