//
// ButtonSprite::create from 0x14003eeb0 to 0x14003ef5d (173 bytes)
//
// 13 xrefs:
// > EditorUI::getSpriteButton @ 0x1400e29a7
// > EditorUI::createCustomItems @ 0x1400e49c0
// > EditorUI::createCustomItems @ 0x1400e4a72
// > EditorUI::createCustomItems @ 0x1400e4b23
// > EditorUI::createCustomItems @ 0x1400e4bd5
// > EditorUI::setupDeleteMenu @ 0x1400e5246
// > EditorUI::setupDeleteMenu @ 0x1400e53be
// > EditorUI::setupDeleteMenu @ 0x1400e5741
// > EditorUI::getCreateBtn @ 0x14010ed03
// > LevelLeaderboard::getSpriteButton @ 0x140301d79
// > SetupSequenceTriggerPopup::init @ 0x140443e03
// > SetupAudioTriggerPopup::addProxVolControls @ 0x1404462b4
// > ??> @ 0x1406c414c
//
// 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
//
// Hidden C++ exception states: #wind=1
ButtonSprite *ButtonSprite::create(
cocos2d::CCSprite *a1,
int a2,
int a3,
float a4,
float a5,
bool a6,
const char *a7,
bool a8)
{
ButtonSprite *v10; // rbx
int v11; // r9d
bool v13; // [rsp+30h] [rbp-48h]
ButtonSprite *v14; // [rsp+50h] [rbp-28h]
v14 = (ButtonSprite *)operator new(0x2C0u);
v10 = ButtonSprite::ButtonSprite(v14);
if ( v10 )
{
if ( ButtonSprite::init(v10, a1, a2, v11, a4, a5, v13, a7, a8) )
{
cocos2d::CCObject::autorelease(v10);
}
else
{
((void (__fastcall *)(ButtonSprite *, __int64))v10->~ButtonSprite)(v10, 1);
return nullptr;
}
}
return v10;
}