//
// cocos2d::extension::CCControlButton::getBackgroundSpriteForState from 0x1003547f0 to 0x10035482a (58 bytes)
//
// 2 xrefs:
// > ??> @ 0x100916208
// > ??> @ 0x100947950
//
// 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
//
cocos2d::extension::CCScale9Sprite *__fastcall cocos2d::extension::CCControlButton::getBackgroundSpriteForState(
cocos2d::extension::CCControlButton *a1,
unsigned int a2)
{
cocos2d::extension::CCScale9Sprite *result; // rax
result = (cocos2d::extension::CCScale9Sprite *)cocos2d::CCDictionary::objectForKey(
*(cocos2d::CCDictionary **)&a1[1].m_obPosition.y,
a2);
if ( !result )
return (cocos2d::extension::CCScale9Sprite *)cocos2d::CCDictionary::objectForKey(
*(cocos2d::CCDictionary **)&a1[1].m_obPosition.y,
1);
return result;
}