//
// ButtonSprite::create_1 from 0x140042be0 to 0x140042ca9 (201 bytes)
//
// 80 xrefs:
// > FLAlertLayer::init @ 0x14005b05d
// > FLAlertLayer::init @ 0x14005b0ed
// > AccountRegisterLayer::init @ 0x14008cefa
// > AccountRegisterLayer::init @ 0x14008cf5e
// > AccountLoginLayer::init @ 0x140090d91
// > AccountLoginLayer::init @ 0x140090df5
// > AccountLayer::customSetup @ 0x140092fcf
// > AccountLayer::customSetup @ 0x14009302e
// > AccountLayer::customSetup @ 0x14009312e
// > AccountLayer::customSetup @ 0x14009318d
// > AccountLayer::customSetup @ 0x1400931e9
// > AccountHelpLayer::customSetup @ 0x140094ed5
// > AccountHelpLayer::customSetup @ 0x140094f33
// > AccountHelpLayer::customSetup @ 0x140094f8a
// > AdminActionConfirmPopup::init @ 0x1400a5fe4
// > ReviewChoiceSheet::init @ 0x1400aea38
// > DeathStatsPopup::init @ 0x14011ebab
// > DeathStatsPopup::init @ 0x14011ed2b
// > DeathStatsPopup::init @ 0x14011edee
// > HSVWidgetPopup::init @ 0x14012f891
// > ConfigureValuePopup::init @ 0x140131dc3
// > CreateGuidelinesLayer::init @ 0x140133712
// > CreateGuidelinesLayer::init @ 0x140133aa8
// > CreateGuidelinesLayer::init @ 0x140133b75
// > CustomizeObjectLayer::init @ 0x14013f761
// > LevelCell::loadCustomLevelCell @ 0x14014a238
// > LevelCell::loadLocalLevelCell @ 0x14014caba
// > MapPackCell::loadFromMapPack @ 0x14014d9d8
// > CommentCell::loadFromComment @ 0x1401538e0
// > LevelListCell::loadFromList @ 0x14015ea7b
// > DailyRecallUnlockPopup::init @ 0x14017449d
// > DailyRecallUnlockPopup::init @ 0x140174553
// > EditorPauseLayer::customSetup @ 0x140181645
// > EditorPauseLayer::customSetup @ 0x140181698
// > EditorPauseLayer::customSetup @ 0x1401816f1
// > EditorPauseLayer::customSetup @ 0x140181751
// > EditorPauseLayer::customSetup @ 0x1401817ba
// > EditorSoundConfigInfoLayer::init @ 0x140193b10
// > ItemInfoPopup::init @ 0x140384bf8
// > TOSPopup::init @ 0x1403a96a6
// > GJSpecialColorSelect::init @ 0x1403be698
// > GJRateLevelLayer::init @ 0x140419e04
// > GJRateLevelLayer::init @ 0x140419e68
// > LevelStatsInfoPopup::init @ 0x140426c68
// > ShareListLayer::init @ 0x1404323ab
// > ShareListLayer::init @ 0x140432445
// > UploadListPopup::listUploadFinished @ 0x140433af0
// > UploadListPopup::listUploadFailed @ 0x140433de0
// > DemonFilterSelectLayer::init @ 0x1404410d3
// > OptionsLayer::customSetup @ 0x1404caf3f
// > OptionsLayer::customSetup @ 0x1404caf9b
// > OptionsLayer::customSetup @ 0x1404caff7
// > OptionsLayer::customSetup @ 0x1404cb050
// > OptionsLayer::customSetup @ 0x1404cb0ac
// > OptionsLayer::customSetup @ 0x1404cb10f
// > OptionsLayer::customSetup @ 0x1404cb176
// > VideoOptionsLayer::init @ 0x1404cd7ae
// > VideoOptionsLayer::init @ 0x1404cd849
// > DemonInfoPopup::init @ 0x14055b837
// > StarInfoPopup::init @ 0x14055c7cb
// > RateDemonLayer::init @ 0x14055d409
// > RateDemonLayer::init @ 0x14055d4b0
// > RateLevelLayer::init @ 0x14055df8b
// > RateLevelLayer::init @ 0x14055e032
// > RateStarsLayer::init @ 0x14055eadd
// > RateStarsLayer::init @ 0x14055eb81
// > RateStarsModLayer::init @ 0x14055fda4
// > RateStarsModLayer::init @ 0x14055fe49
// > SetupCameraOffsetTrigger::init @ 0x1405aca1d
// > SetupMGTrigger::init @ 0x1405bca0d
// > SetupGameplayOffsetPopup::init @ 0x1405d77ab
// > SetupItemEditTriggerPopup::init @ 0x140601ecc
// > SetupItemCompareTriggerPopup::init @ 0x14060496c
// > ShareCommentLayer::init @ 0x14062eabc
// > ShareCommentLayer::init @ 0x14062eb28
// > ShareLevelLayer::init @ 0x140630dbf
// > ShareLevelLayer::init @ 0x140630e3c
// > UploadPopup::levelUploadFinished @ 0x140632750
// > UploadPopup::levelUploadFailed @ 0x140632928
// > ??> @ 0x14090f674
//
// This function is hookable on this platform (idp: pc, 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 11:25:30 +0000
//
// Hidden C++ exception states: #wind=1
cocos2d::CCObject *__fastcall ButtonSprite::create_1(
int a1,
int a2,
int a3,
float a4,
char a5,
__int64 a6,
__int64 a7,
int a8)
{
cocos2d::CCObject *v11; // rbx
void *v13; // [rsp+50h] [rbp-28h]
v13 = operator new(0x2C8u);
v11 = (cocos2d::CCObject *)ButtonSprite::ButtonSprite((__int64)v13);
if ( v11 )
{
if ( (unsigned __int8)ButtonSprite::init_1((_DWORD)v11, a1, a2, a3, LODWORD(a4), a5, a6, a7, a8) )
{
cocos2d::CCObject::autorelease(v11);
}
else
{
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v11 + 8LL))(v11, 1);
return nullptr;
}
}
return v11;
}