//
// ButtonSprite::create from 0x100092220 to 0x100092334 (276 bytes)
//
// 73 xrefs:
// > EditorUI::init @ 0x100009954
// > EditorUI::init @ 0x100009a25
// > EditorUI::init @ 0x100009aee
// > EditorUI::init @ 0x100009bb7
// > EditorUI::getSpriteButton_2 @ 0x10000bcfc
// > EditorUI::setupDeleteMenu @ 0x10000cac4
// > EditorUI::setupDeleteMenu @ 0x10000ccd0
// > EditorUI::setupDeleteMenu @ 0x10000ce47
// > EditorUI::setupDeleteMenu @ 0x10000cf9c
// > EditorUI::setupDeleteMenu @ 0x10000d0c1
// > EditorUI::setupDeleteMenu @ 0x10000d1bd
// > EditorUI::setupDeleteMenu @ 0x10000d335
// > EditorUI::setupDeleteMenu @ 0x10000d6d9
// > EditorUI::setupDeleteMenu @ 0x10000d7ec
// > EditorUI::getSpriteButton @ 0x10002eb68
// > EditorUI::getCreateMenuItemButton @ 0x10002ed39
// > EditorUI::menuItemFromObjectString @ 0x100031af8
// > EditorUI::getCreateBtn @ 0x1000339f7
// > EditorUI::createMoveMenu @ 0x10004602f
// > EditorUI::createMoveMenu @ 0x100046101
// > EditorUI::createMoveMenu @ 0x1000461cc
// > EditorUI::createMoveMenu @ 0x1000462a2
// > EditorUI::createMoveMenu @ 0x100046370
// > EditorUI::createMoveMenu @ 0x100046442
// > EditorUI::createMoveMenu @ 0x100046510
// > EditorUI::createMoveMenu @ 0x1000465e2
// > EditorUI::createMoveMenu @ 0x1000466b3
// > EditorUI::createMoveMenu @ 0x100046781
// > EditorUI::createMoveMenu @ 0x100046853
// > EditorUI::createMoveMenu @ 0x100046921
// > EditorUI::createMoveMenu @ 0x1000469f0
// > EditorUI::createMoveMenu @ 0x100046ac7
// > EditorUI::createMoveMenu @ 0x100046b98
// > EditorUI::createMoveMenu @ 0x100046c6c
// > EditorUI::createMoveMenu @ 0x100046dd2
// > EditorUI::createMoveMenu @ 0x100046ea8
// > EditorUI::createMoveMenu @ 0x100046f76
// > EditorUI::createMoveMenu @ 0x100047048
// > EditorUI::createMoveMenu @ 0x100047119
// > EditorUI::createMoveMenu @ 0x1000471e7
// > EditorUI::createMoveMenu @ 0x1000472b6
// > EditorUI::createMoveMenu @ 0x100047388
// > EditorUI::createMoveMenu @ 0x100047456
// > EditorUI::createMoveMenu @ 0x1000475ec
// > EditorUI::createMoveMenu @ 0x100047786
// > EditorUI::createMoveMenu @ 0x100047920
// > EditorUI::createMoveMenu @ 0x100047aba
// > EditorUI::createMoveMenu @ 0x100047c54
// > EditorUI::createMoveMenu @ 0x100047dee
// > sub_1000921D0 @ 0x1000921f0
// > sub_100092200 @ 0x10009220f
// > MessagesProfilePage::init @ 0x10022deab
// > LevelCell::loadCustomLevelCell @ 0x10024fb34
// > LevelCell::loadCustomLevelCell @ 0x10024fc1b
// > LevelCell::loadCustomLevelCell @ 0x10024fd02
// > SetupSpawnPopup::init @ 0x10028fc09
// > SetupSpawnPopup::init @ 0x10028fcfc
// > LevelLeaderboard::getSpriteButton @ 0x1003db226
// > SFXBrowser::init @ 0x10043ef77
// > SFXBrowser::init @ 0x10043f090
// > LevelBrowserLayer::init @ 0x10048bc5b
// > SetupAudioTriggerPopup::addProxVolControls @ 0x1004b76c0
// > SetupAreaMoveTriggerPopup::addAreaDefaultControls @ 0x1004d43d1
// > SetupSequenceTriggerPopup::init @ 0x1004ddea7
// > LeaderboardsLayer::setupTabs @ 0x1005133b9
// > MusicBrowser::init @ 0x10060e46d
// > MusicBrowser::init @ 0x10060e599
// > FRequestProfilePage::init @ 0x1007902e8
// > InfoLayer::init @ 0x1007af8e2
// > InfoLayer::init @ 0x1007af9ae
// > InfoLayer::init @ 0x1007afa96
// > InfoLayer::init @ 0x1007afb8d
// > InfoLayer::getSpriteButton @ 0x1007b0fa8
//
// 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)
{
char *v10; // rbx
v10 = (char *)operator new(0x2B8u);
cocos2d::CCSprite::CCSprite(v10);
*(_QWORD *)v10 = off_1008B3DC0;
*((_QWORD *)v10 + 40) = off_1008B4298;
*((_QWORD *)v10 + 43) = off_1008B4318;
*(_OWORD *)(v10 + 596) = 0;
*(_QWORD *)(v10 + 609) = 0;
*((_OWORD *)v10 + 39) = 0;
*((_OWORD *)v10 + 40) = 0;
sub_10028CC30(v10 + 656);
sub_10028CC30(v10 + 664);
*((_OWORD *)v10 + 42) = 0;
*((_QWORD *)v10 + 86) = 0;
if ( ButtonSprite::init((ButtonSprite *)v10, a1, a2, a3, a4, a5, a6, a7, a8) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v10);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v10 + 16LL))(v10);
return nullptr;
}
return (ButtonSprite *)v10;
}