//
// cocos2d::extension::CCControlButton::getBackgroundSpriteForState from 0x180006b50 to 0x180006b89 (57 bytes)
//
// 4 xrefs:
// > ??> @ 0x1800241f8
// > ??> @ 0x180028040
// > ??> @ 0x18002fdf8
// > ??> @ 0x1800496c0
//
// 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
//
struct cocos2d::extension::CCScale9Sprite *__fastcall cocos2d::extension::CCControlButton::getBackgroundSpriteForState(
cocos2d::CCDictionary **this,
unsigned int a2)
{
struct cocos2d::extension::CCScale9Sprite *result; // rax
result = cocos2d::CCDictionary::objectForKey(*(this + 69), a2);
if ( !result )
return cocos2d::CCDictionary::objectForKey(*(this + 69), 1);
return result;
}