//
// ButtonSprite::create_1 from 0x14003f1c0 to 0x14003f289 (201 bytes)
//
// 73 xrefs:
// > FLAlertLayer::init @ 0x140052566
// > FLAlertLayer::init @ 0x1400525e3
// > AccountRegisterLayer::init @ 0x140078ca0
// > AccountRegisterLayer::init @ 0x140078d01
// > AccountLoginLayer::init @ 0x14007bbd4
// > AccountLoginLayer::init @ 0x14007bc35
// > AccountLayer::customSetup @ 0x14007d923
// > AccountLayer::customSetup @ 0x14007d97f
// > AccountLayer::customSetup @ 0x14007da79
// > AccountLayer::customSetup @ 0x14007dad5
// > AccountLayer::customSetup @ 0x14007db31
// > AccountHelpLayer::customSetup @ 0x14007f7fa
// > AccountHelpLayer::customSetup @ 0x14007f855
// > AccountHelpLayer::customSetup @ 0x14007f8ac
// > HSVWidgetPopup::init @ 0x1400967fe
// > ConfigureValuePopup::init @ 0x1400988b3
// > CreateGuidelinesLayer::init @ 0x14009a13e
// > CreateGuidelinesLayer::init @ 0x14009a4cd
// > CreateGuidelinesLayer::init @ 0x14009a589
// > CustomizeObjectLayer::init @ 0x1400a574d
// > LevelCell::loadCustomLevelCell @ 0x1400aebf9
// > LevelCell::loadLocalLevelCell @ 0x1400b1028
// > MapPackCell::loadFromMapPack @ 0x1400b1ed2
// > CommentCell::loadFromComment @ 0x1400b73da
// > LevelListCell::loadFromList @ 0x1400bf3a2
// > EditorPauseLayer::customSetup @ 0x1400da620
// > EditorPauseLayer::customSetup @ 0x1400da671
// > EditorPauseLayer::customSetup @ 0x1400da6c8
// > EditorPauseLayer::customSetup @ 0x1400da726
// > EditorPauseLayer::customSetup @ 0x1400da78f
// > GJFollowCommandLayer::init @ 0x140270898
// > ItemInfoPopup::init @ 0x14027c154
// > GJPFollowCommandLayer::init @ 0x14028a985
// > TOSPopup::init @ 0x14029e39e
// > GameOptionsLayer::setupOptions @ 0x14029f8ad
// > GameOptionsLayer::setupOptions @ 0x14029f94f
// > GJSpecialColorSelect::init @ 0x1402b8062
// > GJRateLevelLayer::init @ 0x1402f52fa
// > GJRateLevelLayer::init @ 0x1402f535c
// > ShareListLayer::init @ 0x14030a2dd
// > ShareListLayer::init @ 0x14030a357
// > UploadListPopup::listUploadFinished @ 0x14030b820
// > UploadListPopup::listUploadFailed @ 0x14030bb08
// > DemonFilterSelectLayer::init @ 0x140317e4d
// > OptionsLayer::customSetup @ 0x140371def
// > OptionsLayer::customSetup @ 0x140371e48
// > OptionsLayer::customSetup @ 0x140371ea1
// > OptionsLayer::customSetup @ 0x140371efa
// > OptionsLayer::customSetup @ 0x140371f52
// > OptionsLayer::customSetup @ 0x140371fb1
// > OptionsLayer::customSetup @ 0x140372017
// > VideoOptionsLayer::init @ 0x140377a50
// > VideoOptionsLayer::init @ 0x140377aea
// > DemonInfoPopup::init @ 0x1403c79c6
// > StarInfoPopup::init @ 0x1403c88ce
// > RateDemonLayer::init @ 0x1403c8f53
// > RateDemonLayer::init @ 0x1403c8ffa
// > RateLevelLayer::init @ 0x1403c9ac5
// > RateLevelLayer::init @ 0x1403c9b6c
// > RateStarsLayer::init @ 0x1403ca6f6
// > RateStarsLayer::init @ 0x1403ca79a
// > SetupCameraOffsetTrigger::init @ 0x1404155f0
// > SetupMGTrigger::init @ 0x1404273f4
// > SetupGameplayOffsetPopup::init @ 0x140442678
// > SetupItemEditTriggerPopup::init @ 0x14046b9c7
// > SetupItemCompareTriggerPopup::init @ 0x14046e2b2
// > ShareCommentLayer::init @ 0x14048da46
// > ShareCommentLayer::init @ 0x14048daaf
// > ShareLevelLayer::init @ 0x14048f80e
// > ShareLevelLayer::init @ 0x14048f888
// > UploadPopup::levelUploadFinished @ 0x140490d00
// > UploadPopup::levelUploadFailed @ 0x140490ee1
// > ??> @ 0x1406c4164
//
// 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
//
// Hidden C++ exception states: #wind=1
ButtonSprite *ButtonSprite::create_1(
const char *a1,
int a2,
int a3,
float a4,
bool a5,
const char *a6,
const char *a7,
float a8)
{
ButtonSprite *v11; // rbx
ButtonSprite *v13; // [rsp+50h] [rbp-28h]
v13 = (ButtonSprite *)operator new(0x2C0u);
v11 = ButtonSprite::ButtonSprite(v13);
if ( v11 )
{
if ( ButtonSprite::init_1(v11, a1, a2, a3, a4, a5, a6, a7, a8) )
{
cocos2d::CCObject::autorelease(v11);
}
else
{
((void (__fastcall *)(ButtonSprite *, __int64))v11->~ButtonSprite)(v11, 1);
return nullptr;
}
}
return v11;
}