//
// ButtonSprite::create from 0x1000678a4 to 0x10006796c (200 bytes)
//
// 28 xrefs:
// > sub_100038870 @ 0x100039488
// > SetupSpawnPopup::init @ 0x10011caa0
// > SetupSpawnPopup::init @ 0x10011cb8c
// > LevelCell::loadCustomLevelCell @ 0x100133cc8
// > LevelCell::loadCustomLevelCell @ 0x10013402c
// > LevelCell::loadCustomLevelCell @ 0x10013410c
// > LevelCell::loadCustomLevelCell @ 0x1001341e8
// > EditorUI::getCreateBtn @ 0x10018462c
// > EditorUI::menuItemFromObjectString @ 0x100185230
// > SFXBrowser::init @ 0x1001f1e78
// > SFXBrowser::init @ 0x1001f1f74
// > SFXBrowser::init @ 0x1001f2158
// > SFXBrowser::init @ 0x1001f2278
// > SFXBrowser::init @ 0x1001f2394
// > sub_1002113A0 @ 0x100211b1c
// > SetupSequenceTriggerPopup::init @ 0x10026a9bc
// > sub_1002ED39C @ 0x1002ed438
// > sub_1003F01F0 @ 0x1003f0250
// > sub_10045800C @ 0x1004584b4
// > sub_100467BDC @ 0x10046849c
// > sub_100467BDC @ 0x100468594
// > sub_100467BDC @ 0x1004686d4
// > sub_100467BDC @ 0x1004687f4
// > sub_100467BDC @ 0x100468908
// > sub_100467BDC @ 0x100468abc
// > EditorUI::getSpriteButton @ 0x100474bc4
// > EditorUI::getCreateMenuItemButton @ 0x100474cc4
// > EditorSFXActionConfigLayer::init @ 0x1004c629c
//
// This function is hookable on this platform (idp: arm, 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 10:57:56 +0000
//
void *__fastcall ButtonSprite::create(
__int64 a1,
__int64 a2,
__int64 a3,
__int64 a4,
__int64 a5,
__int64 a6,
float a7,
float a8,
float a9)
{
void *v18; // x19
v18 = operator new(0x2B8u);
ButtonSprite::ButtonSprite();
if ( (unsigned int)ButtonSprite::init(v18, a1, a2, a3, a4, a5, a6, a7, a8, a9) )
{
cocos2d::CCObject::autorelease(v18);
}
else
{
(*(void (__fastcall **)(void *))(*(_QWORD *)v18 + 16LL))(v18);
return nullptr;
}
return v18;
}