//
// ButtonSprite::create_1 from 0x100059e80 to 0x100059f9e (286 bytes)
//
// 352 xrefs:
// > SetupRotateCommandPopup::init @ 0x100001fd9
// > SetupOpacityPopup::init @ 0x10001ca3e
// > sub_100059E00 @ 0x100059e24
// > sub_100059E30 @ 0x100059e46
// > sub_100059E50 @ 0x100059e6c
// > sub_100059FD0 @ 0x100059fd8
// > AccountLayer::customSetup @ 0x10009a42a
// > CustomizeObjectLayer::init @ 0x1001d78e7
// > CustomizeObjectLayer::init @ 0x1001d79e2
// > CustomizeObjectLayer::init @ 0x1001d7e12
// > CustomizeObjectLayer::init @ 0x1001d7eb2
// > CustomizeObjectLayer::init @ 0x1001d7f4e
// > CustomizeObjectLayer::init @ 0x1001d7fe3
// > CustomizeObjectLayer::init @ 0x1001d81a3
// > CustomizeObjectLayer::init @ 0x1001d8a62
// > CustomizeObjectLayer::init @ 0x1001d90eb
// > CustomizeObjectLayer::init @ 0x1001d9270
// > CustomizeObjectLayer::init @ 0x1001d93a3
// > CustomizeObjectLayer::init @ 0x1001d93d4
// > CustomizeObjectLayer::init @ 0x1001d9518
// > GJColorSetupLayer::init @ 0x1001eeeb1
// > CustomSongLayer::init @ 0x1001f8cf1
// > NewgroundsInfoLayer::init @ 0x1001fb080
// > NewgroundsInfoLayer::init @ 0x1001fb0f0
// > NewgroundsInfoLayer::init @ 0x1001fb15c
// > NewgroundsInfoLayer::init @ 0x1001fb1c8
// > NCSInfoLayer::init @ 0x1001fb8c6
// > NCSInfoLayer::init @ 0x1001fb98f
// > NCSInfoLayer::init @ 0x1001fba02
// > NCSInfoLayer::init @ 0x1001fba6e
// > SongSelectNode::init @ 0x1001fc436
// > SongSelectNode::init @ 0x1001fc511
// > SongSelectNode::init @ 0x1001fc63a
// > SetupTriggerPopup::addCloseButton @ 0x10021a834
// > MapPackCell::loadFromMapPack @ 0x10022a859
// > LevelListCell::loadFromList @ 0x10022b795
// > SongCell::loadFromObject @ 0x10022cbe9
// > ArtistCell::loadFromObject @ 0x10022cff9
// > URLCell::loadFromObject @ 0x10022d32d
// > CommentCell::loadFromComment @ 0x10022e81b
// > CommentCell::loadFromComment @ 0x10022e9d3
// > GJMessageCell::loadFromMessage @ 0x100232284
// > GJMessageCell::loadFromMessage @ 0x100232360
// > GJNotificationCell::loadFromNotification @ 0x100234acd
// > SmartTemplateCell::loadFromObject @ 0x100234ffb
// > SmartTemplateCell::loadFromObject @ 0x100235062
// > LevelCell::loadLocalLevelCell @ 0x100236dc6
// > LevelCell::loadCustomLevelCell @ 0x100237ce4
// > LevelCell::loadCustomLevelCell @ 0x10023830e
// > HSVLiveOverlay::init @ 0x100254c07
// > HSVLiveOverlay::init @ 0x100254cac
// > LevelSettingsLayer::init @ 0x10025658a
// > LevelSettingsLayer::init @ 0x10025665b
// > LevelSettingsLayer::init @ 0x100256c2a
// > LevelSettingsLayer::init @ 0x100256d15
// > SelectArtLayer::init @ 0x100259f69
// > SelectArtLayer::init @ 0x10025a153
// > SelectArtLayer::init @ 0x10025a23e
// > SelectArtLayer::init @ 0x10025a329
// > SelectSettingLayer::init @ 0x10025ae86
// > StartPosLayer::init @ 0x10025c756
// > ShareLevelLayer::setupStars @ 0x10026d669
// > ShareLevelLayer::getStarsButton @ 0x10026dc93
// > RateStarsLayer::init @ 0x100277014
// > RateStarsLayer::init @ 0x1002770de
// > RateStarsLayer::init @ 0x1002771a8
// > RateStarsLayer::init @ 0x100277272
// > RateStarsLayer::init @ 0x10027733c
// > RateStarsLayer::init @ 0x10027741d
// > sub_1002777F0 @ 0x100277853
// > SetupSpawnPopup::init @ 0x10027b2c2
// > SetupSpawnPopup::updateRemapButtons @ 0x10027bc1e
// > EditorPauseLayer::customSetup @ 0x10027d375
// > EditorPauseLayer::customSetup @ 0x10027d3c9
// > EditorPauseLayer::customSetup @ 0x10027d42b
// > EditorPauseLayer::customSetup @ 0x10027d489
// > EditorPauseLayer::customSetup @ 0x10027d4eb
// > SelectFontLayer::init @ 0x100285217
// > EditTriggersPopup::init @ 0x100285b1f
// > GJAccountSettingsLayer::init @ 0x10028b658
// > GJAccountSettingsLayer::init @ 0x10028b744
// > GJAccountSettingsLayer::init @ 0x10028b7ae
// > sub_10028E090 @ 0x10028eab5
// > FriendRequestPopup::loadFromGJFriendRequest @ 0x100291f7b
// > FriendRequestPopup::loadFromGJFriendRequest @ 0x100292031
// > FriendRequestPopup::loadFromGJFriendRequest @ 0x1002920f8
// > FriendRequestPopup::loadFromGJFriendRequest @ 0x10029217f
// > GJMessagePopup::loadFromGJMessage @ 0x10029422e
// > GJMessagePopup::loadFromGJMessage @ 0x10029429c
// > GJMessagePopup::loadFromGJMessage @ 0x10029431a
// > GJWriteMessagePopup::init @ 0x10029585e
// > GJWriteMessagePopup::init @ 0x1002958cc
// > SetIDPopup::init @ 0x10029832c
// > sub_10029AA90 @ 0x10029ad6f
// > UIOptionsLayer::init @ 0x1002a036d
// > UIOptionsLayer::init @ 0x1002a0425
// > UISaveLoadLayer::init @ 0x1002a3149
// > UISaveLoadLayer::init @ 0x1002a3222
// > UISaveLoadLayer::init @ 0x1002a32fb
// > UISaveLoadLayer::init @ 0x1002a33cf
// > UISaveLoadLayer::init @ 0x1002a34a8
// > UISaveLoadLayer::init @ 0x1002a3581
// > UIPOptionsLayer::init @ 0x1002a5250
// > UIPOptionsLayer::init @ 0x1002a5307
// > SetupTouchTogglePopup::init @ 0x1002a6ce6
// > SetupShaderEffectPopup::setupShaderTrigger @ 0x1002bc922
// > SetupAdvFollowPopup::init @ 0x1002f0d59
// > SetupAdvFollowPopup::init @ 0x1002f0ea9
// > SetupAdvFollowPopup::init @ 0x1002f1001
// > SetupAdvFollowPopup::init @ 0x1002f3725
// > SelectPremadeLayer::init @ 0x1002f4d0c
// > SelectPremadeLayer::init @ 0x1002f4de3
// > SelectPremadeLayer::init @ 0x1002f4e9d
// > SetGroupIDLayer::init @ 0x1002fd491
// > SetGroupIDLayer::init @ 0x1002fda7c
// > SetGroupIDLayer::init @ 0x1002fdb53
// > SetGroupIDLayer::init @ 0x1002fddb4
// > SetGroupIDLayer::init @ 0x1002fe729
// > SetGroupIDLayer::init @ 0x1002fe762
// > SetGroupIDLayer::init @ 0x1002fe79c
// > SetGroupIDLayer::init @ 0x1002fe7d5
// > SetGroupIDLayer::init @ 0x1002fe80e
// > SetGroupIDLayer::updateGroupIDButtons @ 0x100300f0f
// > SetupObjectOptionsPopup::init @ 0x10030330a
// > PurchaseItemPopup::init @ 0x1003137a4
// > PurchaseItemPopup::init @ 0x10031381e
// > SelectListIconLayer::init @ 0x10034d1cc
// > SetupRandAdvTriggerPopup::init @ 0x100378848
// > SetupRandAdvTriggerPopup::init @ 0x100378e3e
// > SetupRandAdvTriggerPopup::updateGroupIDButtons @ 0x100379c6f
// > SupportLayer::customSetup @ 0x10038238f
// > SupportLayer::customSetup @ 0x1003823de
// > SupportLayer::customSetup @ 0x100382427
// > SupportLayer::customSetup @ 0x100382473
// > SupportLayer::customSetup @ 0x1003824c3
// > SupportLayer::customSetup @ 0x1003826f0
// > SupportLayer::customSetup @ 0x10038280d
// > SetupPulsePopup::init @ 0x10039492c
// > SetupPulsePopup::init @ 0x1003949aa
// > SetupPulsePopup::init @ 0x100394dec
// > SetupPulsePopup::init @ 0x100394e5d
// > SetupPulsePopup::init @ 0x1003958c8
// > SetupPulsePopup::init @ 0x1003958f9
// > sub_1003BDEC0 @ 0x1003bdfda
// > CreateStartPosPopup::init @ 0x1003c488b
// > CreateStartPosPopup::init @ 0x1003c48f7
// > SetupGravityModPopup::init @ 0x1003c5828
// > SFXBrowser::init @ 0x10042d738
// > SelectSFXSortLayer::init @ 0x1004356b7
// > CreateParticlePopup::init @ 0x100463357
// > CreateParticlePopup::init @ 0x1004633b3
// > CreateParticlePopup::init @ 0x1004633f8
// > CreateParticlePopup::init @ 0x100463591
// > CreateParticlePopup::init @ 0x10046369d
// > CreateParticlePopup::init @ 0x1004637a4
// > CreateParticlePopup::init @ 0x100463894
// > CreateParticlePopup::init @ 0x100463ab2
// > CreateParticlePopup::init @ 0x100463bbe
// > CreateParticlePopup::init @ 0x100463ccf
// > CreateParticlePopup::init @ 0x100463de0
// > CreateParticlePopup::init @ 0x100464a37
// > CreateParticlePopup::createParticleSlider @ 0x100468706
// > CreateParticlePopup::createParticleSlider @ 0x100468833
// > CreateParticlePopup::createParticleSlider @ 0x10046895b
// > NumberInputLayer::init @ 0x100489612
// > NumberInputLayer::init @ 0x1004896e7
// > NumberInputLayer::init @ 0x1004897b7
// > NumberInputLayer::init @ 0x10048988b
// > NumberInputLayer::init @ 0x10048996d
// > NumberInputLayer::init @ 0x100489a36
// > NumberInputLayer::init @ 0x100489bd3
// > AccountLoginLayer::init @ 0x100491b2c
// > AccountLoginLayer::init @ 0x100491b87
// > SetupCameraModePopup::init @ 0x1004a1d9a
// > TutorialLayer::init @ 0x1004d7b2a
// > TutorialLayer::init @ 0x1004d7b86
// > SetupSequenceTriggerPopup::init @ 0x1004d8a29
// > SetupSequenceTriggerPopup::updateGroupIDButtons @ 0x1004d9b3d
// > SetupSmartBlockLayer::init @ 0x1004e0866
// > SetupSmartBlockLayer::init @ 0x1004e08b6
// > SetupSmartBlockLayer::init @ 0x1004e0909
// > SetupSmartBlockLayer::init @ 0x1004e0955
// > SetupSmartBlockLayer::init @ 0x1004e09a4
// > SetupSmartBlockLayer::init @ 0x1004e09ec
// > SetupSmartBlockLayer::init @ 0x1004e0a34
// > SetupSmartTemplateLayer::init @ 0x1004e2bf7
// > SetupSmartTemplateLayer::init @ 0x1004e2caf
// > BrowseSmartKeyLayer::init @ 0x1004e5edb
// > BrowseSmartKeyLayer::init @ 0x1004e5f52
// > BrowseSmartKeyLayer::init @ 0x1004e5fc2
// > BrowseSmartKeyLayer::init @ 0x1004e602a
// > SetupTimeWarpPopup::init @ 0x100501abf
// > GJRateLevelLayer::init @ 0x100504c3a
// > sub_100505150 @ 0x1005051b3
// > sub_1005070C0 @ 0x100507c23
// > sub_1005070C0 @ 0x100507cc7
// > GJRateEditorSoundLayer::init @ 0x1005092ce
// > GJRateEditorSoundLayer::init @ 0x10050936e
// > ColorSelectLiveOverlay::init @ 0x100596436
// > ColorSelectLiveOverlay::init @ 0x1005964db
// > KeybindCapturePopup::init @ 0x1005b4242
// > KeybindCapturePopup::init @ 0x1005b4277
// > KeybindCapturePopup::init @ 0x1005b44ce
// > KeybindCapturePopup::init @ 0x1005b45b8
// > AutoSaveSettingsLayer::init @ 0x1005bc5e5
// > AutoSaveSettingsLayer::init @ 0x1005bcfba
// > AutoSaveSettingsLayer::init @ 0x1005bd07a
// > GameSettingsLayer::setupTabs @ 0x1005fe741
// > GameSettingsLayer::addSpecialContent @ 0x100600db9
// > EditorUI::setupDeleteMenu @ 0x10063baed
// > EditorUI::setupDeleteMenu @ 0x10063bbd4
// > sub_10063F6F0 @ 0x10063f8b7
// > sub_100648530 @ 0x1006485ff
// > sub_100648530 @ 0x100648d3b
// > SetupRandTriggerPopup::init @ 0x1006b8f26
// > sub_1006C4830 @ 0x1006c49b3
// > sub_1006C4830 @ 0x1006c57f4
// > sub_1006D9240 @ 0x1006d93c4
// > KeybindingsLayer::buildContentForTab @ 0x1006e2ae8
// > KeybindingsLayer::buildContentForTab @ 0x1006e32d2
// > OptionsScrollLayer::addTagMatchToggle @ 0x1006eac5d
// > CustomSongWidget::init @ 0x1006f7941
// > GJSpecialColorSelect::init @ 0x1007031e4
// > MoreSearchLayer::init @ 0x10070a7b0
// > MoreSearchLayer::init @ 0x10070a8a0
// > FriendsProfilePage::init @ 0x100735614
// > CharacterColorPage::init @ 0x10073c7ba
// > CharacterColorPage::init @ 0x10073c902
// > CharacterColorPage::init @ 0x10073ca55
// > SetupShakePopup::init @ 0x10074376a
// > SetupEndPopup::init @ 0x10074808b
// > ColorSelectPopup::init @ 0x100803e95
// > ColorSelectPopup::init @ 0x10080450b
// > ColorSelectPopup::init @ 0x10080453c
// > ColorSelectPopup::init @ 0x10080456d
// > MoreOptionsLayer::init @ 0x10087d4d5
// > MoreOptionsLayer::init @ 0x10087dd7f
// > VideoOptionsLayer::init @ 0x100880ef8
// > InfoLayer::init @ 0x10089229e
// > InfoLayer::init @ 0x100892e34
// > ClearPlatformerSavesPopup::init @ 0x1008b4818
// > CreatorSettingsPopup::init @ 0x1008b64a7
// > CreatorSettingsPopup::init @ 0x1008b6571
// > DeathMarkerSettingsPopup::init @ 0x1008c7958
// > sub_1008CA190 @ 0x1008ca4ca
// > EditorCommandsPopup::onBuildWindowContent @ 0x1008de138
// > EditorCommandsPopup::onBuildWindowContent @ 0x1008de1bb
// > EditorCommandsPopup::onBuildWindowContent @ 0x1008de237
// > EditorCommandsPopup::onBuildWindowContent @ 0x1008de2b3
// > EditorCommandsPopup::onBuildWindowContent @ 0x1008de32f
// > EditorCommandsPopup::onBuildWindowContent @ 0x1008de3ab
// > EditorCommandsPopup::onBuildWindowContent @ 0x1008de427
// > EditorCommandsPopup::onBuildWindowContent @ 0x1008de4a3
// > EditorCommandsPopup::onBuildWindowContent @ 0x1008de51f
// > EditorCommandsPopup::onBuildWindowContent @ 0x1008de59b
// > EditorCommandsPopup::onBuildWindowContent @ 0x1008de617
// > EditorCommandsPopup::onBuildWindowContent @ 0x1008de693
// > EditorCommandsPopup::onBuildWindowContent @ 0x1008de70f
// > EditorCommandsPopup::onBuildWindowContent @ 0x1008de78b
// > EditorCommandsPopup::onBuildWindowContent @ 0x1008de807
// > EditorCommandsPopup::onBuildWindowContent @ 0x1008de883
// > EditorCommandsPopup::onBuildWindowContent @ 0x1008de8ff
// > EditorCommandsPopup::onBuildWindowContent @ 0x1008de97b
// > EditorCommandsPopup::onBuildWindowContent @ 0x1008de9f7
// > EditorCommandsPopup::addCommandButton @ 0x1008dea9d
// > EditorSFXActionConfigLayer::init @ 0x1008df778
// > EditorSoundConfigCell::loadFromConfig @ 0x1008f2b3c
// > EditorSoundConfigCell::loadFromConfig @ 0x1008f3091
// > sub_1008F3770 @ 0x1008f4670
// > SoundPackDescPopup::init @ 0x1008fa6bd
// > sub_1008FB260 @ 0x1008fb9c0
// > sub_1008FB260 @ 0x1008fbb35
// > sub_1008FB260 @ 0x1008fbc34
// > sub_1008FB260 @ 0x1008fbcde
// > sub_1008FD5B0 @ 0x1008fdb1b
// > EditorSoundsLayer::buildContentForTab @ 0x1008fe6e2
// > sub_1008FF5F0 @ 0x1008ff7e8
// > sub_1008FF5F0 @ 0x1008ff86d
// > FindObjectPopup::onBuildWindowContent @ 0x1009062c2
// > IDNameBrowserPopup::init @ 0x100909c65
// > IDNameBrowserPopup::init @ 0x10090a672
// > sub_10091DEE0 @ 0x10091e201
// > MessageThreadsPage::init @ 0x1009285e3
// > MessageThreadsPage::init @ 0x100928834
// > ThreadViewPopup::init @ 0x10092e69b
// > ThreadViewPopup::threadSearchFinished @ 0x100931de5
// > ThreadViewPopup::mountVirtualRow @ 0x1009381c3
// > ThreadViewPopup::mountVirtualRow @ 0x100938401
// > ThreadViewPopup::mountVirtualRow @ 0x1009384c0
// > sub_10093ADB0 @ 0x10093b31c
// > FriendPickerPopup::init @ 0x10093c702
// > FriendPickerPopup::init @ 0x10093c7e3
// > sub_10093E4A0 @ 0x10093e845
// > sub_10093E4A0 @ 0x10093ea54
// > MemberListPopup::init @ 0x100941891
// > MemberListPopup::refreshPolicyBtn @ 0x100941b20
// > NewThreadPopup::init @ 0x1009454c5
// > ThreadOptionsPopup::init @ 0x100949de0
// > InvitesPopup::init @ 0x10094bd5e
// > sub_10094C500 @ 0x10094e07f
// > sub_10094C500 @ 0x10094e162
// > sub_10094F400 @ 0x10094f8f2
// > ThreadSearchPopup::init @ 0x100950c69
// > ThreadSearchPopup::init @ 0x100951228
// > ThreadDescPopup::buildUI @ 0x100952ac9
// > sub_1009543D0 @ 0x100954f3a
// > sub_1009543D0 @ 0x100954ff4
// > PlatformerControlsPopup::init @ 0x10095da3b
// > PlatformerControlsPopup::init @ 0x10095daa1
// > PlatformerControlsPopup::init @ 0x10095db07
// > PlatformerControlsPopup::init @ 0x10095db9c
// > PlatformerControlsPopup::init @ 0x10095e0c9
// > RateStarsModLayer::init @ 0x100962c6d
// > RateStarsModLayer::init @ 0x100962d37
// > RateStarsModLayer::init @ 0x100962e01
// > RateStarsModLayer::init @ 0x100962ecb
// > RateStarsModLayer::init @ 0x100962f95
// > RateStarsModLayer::init @ 0x10096306d
// > sub_100963840 @ 0x1009638a3
// > sub_100964B50 @ 0x100965462
// > CommentOptionsPopup::init @ 0x10096821f
// > ReportQueuePopup::init @ 0x100968dea
// > sub_100969480 @ 0x10096991a
// > SFXFolderPickerPopup::init @ 0x100972117
// > SFXFolderPickerPopup::init @ 0x100972308
// > SFXFolderPickerPopup::init @ 0x1009723d0
// > TouchControlEditLayer::buildHud @ 0x10097873d
// > TouchControlEditLayer::buildHud @ 0x1009787f6
// > TouchControlEditLayer::buildHud @ 0x100978cbd
// > TouchControlEditLayer::buildHud @ 0x100978d13
// > TouchControlEditLayer::buildHud @ 0x100978dce
// > TouchControlEditLayer::buildHud @ 0x100978e92
// > ControlSlotsPopup::init @ 0x10097bea6
// > ControlSlotsPopup::init @ 0x10097bf9f
// > sub_10097CC90 @ 0x10097ce6e
// > sub_10097E2F0 @ 0x10097ec24
// > sub_100982340 @ 0x100982741
// > sub_100982340 @ 0x1009827f3
// > sub_100982340 @ 0x100982898
// > sub_10098EDF0 @ 0x10098f17b
// > sub_10098EDF0 @ 0x10098f27c
// > sub_100993790 @ 0x100993fe6
// > sub_1009948B0 @ 0x100994e85
// > sub_1009948B0 @ 0x100994f55
// > sub_1009948B0 @ 0x100995008
// > sub_1009948B0 @ 0x100995213
// > sub_1009948B0 @ 0x1009953c2
// > sub_1009948B0 @ 0x1009954b0
// > sub_1009948B0 @ 0x1009955a8
// > sub_1009948B0 @ 0x100995692
// > sub_1009A4C50 @ 0x1009a553b
// > sub_1009A4C50 @ 0x1009a560a
//
// 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 12:19:39 +0000
//
char *__fastcall ButtonSprite::create_1(
__int64 a1,
unsigned int a2,
unsigned int a3,
unsigned __int8 a4,
__int64 a5,
__int64 a6,
float a7,
float a8)
{
char *v10; // rbx
v10 = (char *)operator new(0x2B8u);
cocos2d::CCSprite::CCSprite(v10);
*(_QWORD *)v10 = off_100AB73D0;
*((_QWORD *)v10 + 40) = off_100AB78B8;
*((_QWORD *)v10 + 43) = off_100AB7938;
*(_OWORD *)(v10 + 596) = 0;
*(_QWORD *)(v10 + 612) = 0x3F80000000000000LL;
v10[620] = 0;
*((_OWORD *)v10 + 39) = 0;
*((_OWORD *)v10 + 40) = 0;
sub_1002782A0(v10 + 656);
sub_1002782A0(v10 + 664);
*((_OWORD *)v10 + 42) = 0;
*((_QWORD *)v10 + 86) = 0;
if ( (unsigned __int8)ButtonSprite::init_1(v10, a1, a2, a3, a4, a5, a7, a8, a6) )
{
cocos2d::CCObject::autorelease(v10);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v10 + 16LL))(v10);
return nullptr;
}
return v10;
}