//
// ButtonSprite::create from 0x68b7b0 to 0x68b910 (352 bytes)
//
// 31 xrefs:
// > ButtonSprite::create @ 0x68b920
// > LevelCell::loadCustomLevelCell @ 0x747ad8
// > LevelCell::loadCustomLevelCell @ 0x747d24
// > LevelCell::loadCustomLevelCell @ 0x747e00
// > LevelCell::loadCustomLevelCell @ 0x747ee0
// > EditorUI::getSpriteButton @ 0x7c0e08
// > EditorUI::getSpriteButton @ 0x7c0f08
// > EditorUI::getCreateMenuItemButton @ 0x7c1200
// > InfoLayer::getSpriteButton @ 0x907554
// > LeaderboardsLayer::setupTabs @ 0x94f240
// > SetupSpawnPopup::init @ 0xa43c3c
// > SetupSpawnPopup::init @ 0xa43d14
// > LevelLeaderboard::getSpriteButton @ 0xa82560
// > SetupAreaMoveTriggerPopup::addAreaDefaultControls @ 0xb3ec60
// > SetupAudioTriggerPopup::addProxVolControls @ 0xb6e290
// > SetupSequenceTriggerPopup::init @ 0xb82a58
// > sub_B85DD0 @ 0xb86720
// > sub_B85DD0 @ 0xb8681c
// > sub_B85DD0 @ 0xb86948
// > sub_B85DD0 @ 0xb86a64
// > sub_B85DD0 @ 0xb86b80
// > sub_B85DD0 @ 0xb86d2c
// > sub_B947C8 @ 0xb95038
// > sub_B947C8 @ 0xb9512c
// > sub_B947C8 @ 0xb952f8
// > sub_B947C8 @ 0xb95414
// > sub_B947C8 @ 0xb95530
// > EditorUI::menuItemFromObjectString @ 0xbdf37c
// > EditorUI::getCreateBtn @ 0xbe2394
// > EditorSFXActionConfigLayer::init @ 0xcbeebc
// > ??> @ 0xe9ae8
//
// 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 12:50:33 +0000
//
__int64 __fastcall ButtonSprite::create(
ButtonSprite *this,
cocos2d::CCSprite *a2,
int a3,
char a4,
float a5,
float a6,
cocos2d::CCSprite *a7,
const char *a8,
float a9)
{
int v14; // w24
unsigned __int8 v17; // w20
__int64 v18; // x19
__int64 v20; // x1
__int64 v21; // x0
v14 = (int)a2;
v17 = (unsigned __int8)a8;
v18 = operator new(0x2B8u);
cocos2d::CCSprite::CCSprite((cocos2d::CCSprite *)v18);
*(_DWORD *)(v18 + 596) = 0;
*(_DWORD *)(v18 + 600) = 0;
*(_DWORD *)(v18 + 604) = 0;
*(_QWORD *)v18 = &off_14135E0;
*(_DWORD *)(v18 + 608) = 0;
*(_QWORD *)(v18 + 320) = &off_1413AC8;
*(_DWORD *)(v18 + 612) = 0;
*(_QWORD *)(v18 + 344) = &off_1413B48;
*(_BYTE *)(v18 + 620) = 0;
*(_QWORD *)(v18 + 624) = 0;
*(_QWORD *)(v18 + 632) = 0;
*(_QWORD *)(v18 + 640) = 0;
*(_QWORD *)(v18 + 648) = 0;
*(float *)(v18 + 616) = 1.0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v18 + 656));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v18 + 664));
*(_QWORD *)(v18 + 672) = 0;
*(_QWORD *)(v18 + 680) = 0;
*(_QWORD *)(v18 + 688) = 0;
if ( (unsigned __int8)ButtonSprite::init((ButtonSprite *)v18, this, v14, a3, a5, a6, a4, a7, v17, a9) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v18);
}
else
{
v20 = *(_QWORD *)v18;
v21 = v18;
v18 = 0;
(*(void (__fastcall **)(__int64))(v20 + 16))(v21);
}
return v18;
}