//
// ButtonSprite::create from 0x1000595c0 to 0x1000596eb (299 bytes)
//
// 32 xrefs:
// > EditorUI::init @ 0x100005c6f
// > EditorUI::getSpriteButton_2 @ 0x100007d1f
// > EditorUI::getSpriteButton @ 0x10000d8ea
// > EditorUI::getCreateMenuItemButton @ 0x10000dabb
// > sub_100059570 @ 0x100059593
// > sub_1000595A0 @ 0x1000595b2
// > LevelCell::loadCustomLevelCell @ 0x100237c35
// > LevelCell::loadCustomLevelCell @ 0x100238057
// > LevelCell::loadCustomLevelCell @ 0x100238141
// > LevelCell::loadCustomLevelCell @ 0x10023822b
// > SetupSpawnPopup::init @ 0x10027b0cc
// > SetupSpawnPopup::init @ 0x10027b1bf
// > LevelLeaderboard::getSpriteButton @ 0x1003c8209
// > SFXBrowser::init @ 0x10042c83c
// > SFXBrowser::init @ 0x10042c95d
// > SFXBrowser::init @ 0x10042cb98
// > SFXBrowser::init @ 0x10042ccdc
// > SFXBrowser::init @ 0x10042ce2f
// > SetupAudioTriggerPopup::addProxVolControls @ 0x1004b0819
// > SetupAreaMoveTriggerPopup::addAreaDefaultControls @ 0x1004cfc82
// > SetupSequenceTriggerPopup::init @ 0x1004d8eaa
// > LeaderboardsLayer::setupTabs @ 0x1005143ec
// > EditorUI::getCreateBtn @ 0x1006381dd
// > EditorUI::menuItemFromObjectString @ 0x100638feb
// > MusicBrowser::init @ 0x1006e7d49
// > MusicBrowser::init @ 0x1006e7e77
// > MusicBrowser::init @ 0x1006e7fee
// > MusicBrowser::init @ 0x1006e8126
// > MusicBrowser::init @ 0x1006e8271
// > MusicBrowser::init @ 0x1006e843a
// > InfoLayer::getSpriteButton @ 0x10089415b
// > EditorSFXActionConfigLayer::init @ 0x1008df834
//
// 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:19:39 +0000
//
char *__fastcall ButtonSprite::create(
int a1,
int a2,
int a3,
unsigned __int8 a4,
int a5,
char a6,
float a7,
float a8,
float a9)
{
char *v11; // rbx
v11 = (char *)operator new(0x2B8u);
cocos2d::CCSprite::CCSprite(v11);
*(_QWORD *)v11 = off_100AB73D0;
*((_QWORD *)v11 + 40) = off_100AB78B8;
*((_QWORD *)v11 + 43) = off_100AB7938;
*(_OWORD *)(v11 + 596) = 0;
*(_QWORD *)(v11 + 612) = 0x3F80000000000000LL;
v11[620] = 0;
*((_OWORD *)v11 + 39) = 0;
*((_OWORD *)v11 + 40) = 0;
sub_1002782A0(v11 + 656);
sub_1002782A0(v11 + 664);
*((_OWORD *)v11 + 42) = 0;
*((_QWORD *)v11 + 86) = 0;
if ( (unsigned __int8)ButtonSprite::init((_DWORD)v11, a1, a2, a3, a4, a5, a6) )
{
cocos2d::CCObject::autorelease(v11);
}
else
{
(*(void (__fastcall **)(char *, float, float, float))(*(_QWORD *)v11 + 16LL))(v11, a7, a8, a9);
return nullptr;
}
return v11;
}