//
// cocos2d::extension::CCControlButton::getTitleForState from 0x7a7b80 to 0x7a7bea (106 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 11:59:59 +0000
//
int __fastcall cocos2d::extension::CCControlButton::getTitleForState(
cocos2d::CCDictionary **this,
int a2,
int a3,
int a4)
{
int v5; // r0
int v6; // r5
cocos2d::CCDictionary **v8; // [sp+0h] [bp-10h] BYREF
int v9; // [sp+4h] [bp-Ch]
int v10; // [sp+8h] [bp-8h]
int v11; // [sp+Ch] [bp-4h]
v8 = this;
v9 = a2;
v10 = a3;
v11 = a4;
if ( *(this + 99) )
{
v5 = cocos2d::CCDictionary::objectForKey(*(this + 99), a2);
if ( !v5 )
return cocos2d::CCDictionary::objectForKey(*(this + 99), 1);
return v5;
}
else
{
v8 = nullptr;
v9 = 0;
v10 = 0;
std::string::__init((int *)&v8, &unk_B6B226, 0);
v6 = cocos2d::CCString::create(&v8);
std::string::~string((int)&v8);
}
return v6;
}