//
// cocos2d::extension::CCControlButton::getTitleForState from 0x10033f8c0 to 0x10033f92d (109 bytes)
//
// 2 xrefs:
// > ??> @ 0x100b1e018
// > ??> @ 0x100b52700
//
// This function is hookable on this platform (idp: pc, 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 12:28:43 +0000
//
__int64 __fastcall cocos2d::extension::CCControlButton::getTitleForState(__int64 a1, unsigned int a2)
{
__int64 v3; // rdi
__int64 result; // rax
__int64 v5; // rbx
_WORD v6[8]; // [rsp+0h] [rbp-20h] BYREF
void *__p; // [rsp+10h] [rbp-10h]
v3 = *(_QWORD *)(a1 + 528);
if ( v3 )
{
result = cocos2d::CCDictionary::objectForKey_1(v3, a2);
if ( !result )
return cocos2d::CCDictionary::objectForKey_1(*(_QWORD *)(a1 + 528), 1);
}
else
{
v6[0] = 0;
result = sub_10088E600(v6);
if ( (v6[0] & 1) != 0 )
{
v5 = result;
operator delete(__p);
return v5;
}
}
return result;
}