//
// ButtonSprite::create from 0x3c2c60 to 0x3c2ccc (108 bytes)
//
// 29 xrefs:
// > ButtonSprite::create @ 0x3c2ce8
// > LevelCell::loadCustomLevelCell @ 0x42ef5a
// > LevelCell::loadCustomLevelCell @ 0x42f1b8
// > LevelCell::loadCustomLevelCell @ 0x42f252
// > LevelCell::loadCustomLevelCell @ 0x42f2e2
// > EditorUI::getSpriteButton @ 0x481562
// > EditorUI::getCreateMenuItemButton @ 0x4817be
// > InfoLayer::getSpriteButton @ 0x53cc0a
// > LeaderboardsLayer::setupTabs @ 0x563a44
// > SetupSpawnPopup::init @ 0x5eb57e
// > SetupSpawnPopup::init @ 0x5eb616
// > LevelLeaderboard::getSpriteButton @ 0x614d92
// > SetupAreaMoveTriggerPopup::addAreaDefaultControls @ 0x68fcb2
// > SetupAudioTriggerPopup::addProxVolControls @ 0x6b04aa
// > SetupSequenceTriggerPopup::init @ 0x6bc85e
// > sub_6BEA10 @ 0x6bf122
// > sub_6BEA10 @ 0x6bf1ee
// > sub_6BEA10 @ 0x6bf32c
// > sub_6BEA10 @ 0x6bf3fa
// > sub_6BEA10 @ 0x6bf4ce
// > sub_6BEA10 @ 0x6bf664
// > sub_6C6B24 @ 0x6c71a8
// > sub_6C6B24 @ 0x6c72b2
// > sub_6C6B24 @ 0x6c7434
// > sub_6C6B24 @ 0x6c7508
// > sub_6C6B24 @ 0x6c75e4
// > EditorUI::menuItemFromObjectString @ 0x6f60e4
// > EditorUI::getCreateBtn @ 0x6f8220
// > EditorSFXActionConfigLayer::init @ 0x77c972
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:46:32 +0000
//
ButtonSprite *__fastcall ButtonSprite::create(
ButtonSprite *this,
cocos2d::CCSprite *a2,
int a3,
float a4,
float a5,
_BOOL4 a6,
char *a7,
const char *a8,
float a9,
float a10)
{
ButtonSprite *v14; // r4
int v15; // r3
ButtonSprite *v16; // r0
v14 = (ButtonSprite *)operator new(0x244u);
ButtonSprite::ButtonSprite(v14);
if ( ButtonSprite::init(v14, this, (int)a2, a3, a4, a5, a6, (cocos2d::CCSprite *)a7, (bool)a8, a9) )
{
cocos2d::CCObject::autorelease(v14);
}
else
{
v15 = *(_DWORD *)v14;
v16 = v14;
v14 = nullptr;
(*(void (__fastcall **)(ButtonSprite *))(v15 + 8))(v16);
}
return v14;
}