//
// ButtonSprite::create from 0x10005ebbc to 0x10005ec74 (184 bytes)
//
// 22 xrefs:
// > SetupAreaMoveTriggerPopup::addAreaDefaultControls @ 0x100035a58
// > SetupSpawnPopup::init @ 0x1000f8028
// > SetupSpawnPopup::init @ 0x1000f8110
// > LevelCell::loadCustomLevelCell @ 0x10010cf88
// > LevelCell::loadCustomLevelCell @ 0x10010d05c
// > LevelCell::loadCustomLevelCell @ 0x10010d12c
// > SFXBrowser::init @ 0x1001690f8
// > SFXBrowser::init @ 0x1001691e8
// > SetupAudioTriggerPopup::addProxVolControls @ 0x10017ed7c
// > FRequestProfilePage::init @ 0x1001b645c
// > MessagesProfilePage::init @ 0x1001cc328
// > SetupSequenceTriggerPopup::init @ 0x1001d29dc
// > LevelLeaderboard::getSpriteButton @ 0x100250240
// > InfoLayer::getSpriteButton @ 0x100351ce8
// > LeaderboardsLayer::setupTabs @ 0x1003b14d4
// > MusicBrowser::init @ 0x1003c1570
// > MusicBrowser::init @ 0x1003c1660
// > EditorUI::getSpriteButton @ 0x1003e71e4
// > EditorUI::getCreateMenuItemButton @ 0x1003e72dc
// > EditorUI::menuItemFromObjectString @ 0x1003e8fd4
// > EditorUI::getCreateBtn @ 0x1003ea44c
// > LevelBrowserLayer::init @ 0x100414e6c
//
// 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
//
ButtonSprite *__fastcall ButtonSprite::create(
cocos2d::CCSprite *a1,
int a2,
int a3,
float a4,
float a5,
bool a6,
const char *a7,
bool a8)
{
ButtonSprite *v16; // x19
v16 = (ButtonSprite *)operator new(0x2B8u);
ButtonSprite::ButtonSprite(v16);
if ( ButtonSprite::init(v16, a1, a2, a3, a4, a5, a6, a7, a8) )
{
cocos2d::CCObject::autorelease(v16);
}
else
{
((void (__fastcall *)(ButtonSprite *))v16->~ButtonSprite_0)(v16);
return nullptr;
}
return v16;
}