//
// CCMenuItemSpriteExtra::init from 0x140048940 to 0x140048a95 (341 bytes)
//
// 260 xrefs:
// > CCMenuItemSpriteExtra::create @ 0x1400488f6
// > ListButtonBar::init @ 0x14007812b
// > ListButtonBar::init @ 0x14007821f
// > ChallengesPage::init @ 0x14009dc14
// > CharacterColorPage::init @ 0x1400a116c
// > CharacterColorPage::createColorMenu @ 0x1400a1a36
// > AccountReviewPopup::init @ 0x1400afd08
// > AccountReviewPopup::init @ 0x1400afdf2
// > AccountReviewPopup::init @ 0x1400b0046
// > AccountReviewPopup::init @ 0x1400b02aa
// > AccountReviewPopup::init @ 0x1400b0407
// > AccountReviewPopup::init @ 0x1400b055c
// > AccountReviewPopup::init @ 0x1400b06a9
// > AccountReviewPopup::init @ 0x1400b0776
// > AccountReviewPopup::init @ 0x1400b08d8
// > AccountReviewPopup::buildReportedRows @ 0x1400b4d1b
// > AccountReviewPopup::buildReportedRows @ 0x1400b5570
// > AccountReviewPopup::buildFilterRows @ 0x1400b640b
// > AccountReviewPopup::buildFilterRows @ 0x1400b6e0f
// > AccountReviewPopup::buildHistoryRows @ 0x1400b7951
// > SFXFolderPickerPopup::rebuildList @ 0x1400c5ac2
// > ReportQueuePopup::buildRows @ 0x1400c83b3
// > ReportQueuePopup::buildRows @ 0x1400c86ad
// > AutoBackupPopup::buildRows @ 0x1400cb269
// > AutoBackupPopup::buildRows @ 0x1400cb372
// > MessageThreadsPage::init @ 0x1400d5168
// > MessageThreadsPage::init @ 0x1400d53c9
// > MessageThreadsPage::init @ 0x1400d54dc
// > MessageThreadsPage::init @ 0x1400d568b
// > MessageThreadsPage::init @ 0x1400d578f
// > MessageThreadsPage::init @ 0x1400d59f0
// > MemberListPopup::buildRows @ 0x1400ecd10
// > DeathTrackerPopup::init @ 0x14010593d
// > DeathTrackerPopup::init @ 0x140105a7f
// > DeathMarkerSettingsPopup::init @ 0x14011d390
// > DropdownListPopup::buildRows @ 0x140121f3d
// > DropdownListPopup::buildRows @ 0x140122127
// > CommunityCreditsPage::init @ 0x14012edb1
// > CommunityCreditsPage::init @ 0x14012eeb4
// > CommunityCreditsPage::init @ 0x14012efad
// > CreatorLayer::init @ 0x140136502
// > CreatorLayer::init @ 0x1401367ad
// > CreatorLayer::init @ 0x140136878
// > CustomizeObjectLayer::init @ 0x1401404ca
// > CustomizeObjectLayer::init @ 0x140140909
// > CustomizeObjectLayer::init @ 0x140140a06
// > CustomizeObjectLayer::init @ 0x140140b3a
// > CustomizeObjectLayer::init @ 0x140140d24
// > CustomizeObjectLayer::init @ 0x140140eb1
// > CustomizeObjectLayer::init @ 0x140141863
// > CustomizeObjectLayer::init @ 0x140141a65
// > CustomizeObjectLayer::init @ 0x140141abd
// > CustomizeObjectLayer::init @ 0x140141c6d
// > RowPressItem::create @ 0x1401593fc
// > GJThreadCell::loadFromThread @ 0x14015a875
// > GJNotificationCell::loadFromNotification @ 0x14015bb72
// > GJNotificationCell::loadFromNotification @ 0x14015bf10
// > DailyLevelPage::init @ 0x140170044
// > DailyLevelPage::init @ 0x140170141
// > DailyRecallUnlockPopup::init @ 0x1401744e3
// > DailyRecallUnlockPopup::init @ 0x140174592
// > EasingSelectPopup::init @ 0x14017611f
// > EasingSelectPopup::init @ 0x14017634e
// > EditButtonBar::loadFromItems @ 0x1401775c2
// > EditButtonBar::loadFromItems @ 0x1401776a4
// > EditButtonBar::loadFromItems @ 0x140177851
// > EditLevelLayer::init @ 0x1401798bc
// > EditLevelLayer::init @ 0x1401799c4
// > EditorSoundBrowserLayer::init @ 0x14018e60c
// > EditorSoundBrowserLayer::init @ 0x14018e6ee
// > EditorSoundBrowserLayer::init @ 0x14018e837
// > EditorSoundBrowserLayer::init @ 0x14018e936
// > EditorSoundBrowserLayer::init @ 0x14018ea3f
// > CreateMenuItem::create @ 0x14019f39a
// > EditorUI::createDpadMoveMenu @ 0x1401f3a08
// > FollowRewardPage::init @ 0x14020b326
// > FollowRewardPage::init @ 0x14020cc5a
// > FRequestProfilePage::updateModeButtons @ 0x140211cd8
// > FriendsProfilePage::init @ 0x140213ccd
// > FriendsProfilePage::init @ 0x1402141f9
// > GauntletLayer::setupGauntlet @ 0x1402fbf75
// > GJColorSetupLayer::init @ 0x14035ef4e
// > GJColorSetupLayer::init @ 0x14035f091
// > GJColorSetupLayer::init @ 0x14035f185
// > GJColorSetupLayer::init @ 0x14035f2cd
// > GJGarageLayer::setupIconSelect @ 0x14037e4f3
// > GJGarageLayer::setupIconSelect @ 0x14037e5f2
// > GJGarageLayer::setupPage @ 0x14037eda1
// > GJGarageLayer::getItems @ 0x14037f2fc
// > GJGarageLayer::setupSpecialPage @ 0x14037f9de
// > GJPathsLayer::init @ 0x140392d66
// > SocialLinksPopup::init @ 0x14039fd88
// > GJShopLayer::init @ 0x1403b0c2a
// > GJShopLayer::init @ 0x1403b15cf
// > GJSpecialColorSelect::init @ 0x1403bf51f
// > InfoAlertButton::create @ 0x1403cd756
// > KeybindingsLayer::buildContentForTab @ 0x1403d724b
// > KeybindingsLayer::buildContentForTab @ 0x1403d73c6
// > KeybindingsSettingsPopup::init @ 0x1403d9212
// > KeybindingsSettingsPopup::init @ 0x1403d9317
// > LeaderboardsLayer::setupTabs @ 0x1403dc05f
// > LevelAreaInnerLayer::init @ 0x1403dfe75
// > LevelAreaInnerLayer::init @ 0x1403e013e
// > LevelAreaInnerLayer::init @ 0x1403e0398
// > LevelAreaInnerLayer::init @ 0x1403e0615
// > SelectListIconLayer::init @ 0x14043170b
// > SelectListIconLayer::init @ 0x1404319d9
// > LevelSearchLayer::init @ 0x14043595a
// > LevelSearchLayer::init @ 0x140435a7e
// > LevelSearchLayer::init @ 0x140435c76
// > LevelSearchLayer::init @ 0x140435d89
// > LevelSearchLayer::init @ 0x140435e36
// > LevelSearchLayer::init @ 0x140435ece
// > LevelSearchLayer::init @ 0x140435fca
// > DemonFilterSelectLayer::init @ 0x140440f98
// > DemonFilterSelectLayer::init @ 0x140441111
// > LevelSelectLayer::init @ 0x140441fa5
// > LevelSelectLayer::init @ 0x1404420cf
// > LevelSelectLayer::init @ 0x1404421a3
// > LevelSelectLayer::init @ 0x140442265
// > LevelSelectLayer::init @ 0x1404423ab
// > LevelSelectLayer::init @ 0x14044242b
// > LevelPage::updateDynamicPage @ 0x140444a9b
// > PlatformerControlsPopup::init @ 0x14044fe75
// > PlatformerControlsPopup::init @ 0x14044ff64
// > ControlSlotsPopup::init @ 0x140456b0d
// > ControlSlotsPopup::init @ 0x140456c6f
// > ControlSlotsPopup::init @ 0x140456d5c
// > LevelSettingsLayer::init @ 0x1404592e3
// > LevelSettingsLayer::init @ 0x140459cee
// > LevelSettingsLayer::init @ 0x140459eb6
// > LevelSettingsLayer::init @ 0x14045a00f
// > SelectArtLayer::init @ 0x14045ba08
// > SelectArtLayer::init @ 0x14045bb9c
// > SelectSettingLayer::init @ 0x14045c7f4
// > SelectSettingLayer::init @ 0x14045c9bb
// > StartPosLayer::addModeButtons @ 0x14045f88d
// > StartPosLayer::addSpeedButtons @ 0x14045fb5f
// > NewsPopup::init @ 0x14049e048
// > NewsPopup::init @ 0x14049e14f
// > NewsPopup::init @ 0x14049e214
// > NumberInputLayer::init @ 0x1404a165e
// > VideoOptionsLayer::init @ 0x1404cd3da
// > VideoOptionsLayer::init @ 0x1404cd4d8
// > VideoOptionsLayer::init @ 0x1404cd5d3
// > VideoOptionsLayer::init @ 0x1404cd6b1
// > VideoOptionsLayer::init @ 0x1404cd7ec
// > VideoOptionsLayer::init @ 0x1404cd887
// > VideoOptionsLayer::init @ 0x1404cd994
// > VideoOptionsLayer::init @ 0x1404cdb45
// > PauseLayer::customSetup @ 0x1404d7b3d
// > PauseLayer::customSetup @ 0x1404d7dd0
// > PauseLayer::customSetup @ 0x1404d88f8
// > PauseLayer::customSetup @ 0x1404d89e7
// > PauseLayer::customSetup @ 0x1404d8b00
// > PauseLayer::customSetup @ 0x1404d8c2c
// > ProfilePage::loadPageFromUserInfo @ 0x1405535b8
// > ProfilePage::loadPageFromUserInfo @ 0x140553bf9
// > ProfilePage::loadPageFromUserInfo @ 0x140553f50
// > ProfilePage::loadPageFromUserInfo @ 0x140554065
// > ProfilePage::loadPageFromUserInfo @ 0x140554334
// > ProfilePage::loadPageFromUserInfo @ 0x1405548c4
// > ProfilePage::loadPageFromUserInfo @ 0x140554b48
// > ProfilePage::loadPageFromUserInfo @ 0x140554cc2
// > ProfilePage::loadPageFromUserInfo @ 0x140554e2b
// > ProfilePage::loadPageFromUserInfo @ 0x140554fbe
// > ProfilePage::loadPageFromUserInfo @ 0x140555392
// > ProfilePage::loadPageFromUserInfo @ 0x140555438
// > ProfilePage::loadPageFromUserInfo @ 0x14055555d
// > ProfilePage::loadPageFromUserInfo @ 0x140555605
// > ProfilePage::loadPageFromUserInfo @ 0x140555719
// > ProfilePage::loadPageFromUserInfo @ 0x140555ad7
// > DemonInfoPopup::init @ 0x14055b875
// > StarInfoPopup::init @ 0x14055c809
// > RateDemonLayer::init @ 0x14055d301
// > RateDemonLayer::init @ 0x14055d44b
// > RateDemonLayer::init @ 0x14055d4f2
// > RateLevelLayer::init @ 0x14055dea3
// > RateLevelLayer::init @ 0x14055dfcd
// > RateLevelLayer::init @ 0x14055e074
// > RateStarsLayer::init @ 0x14055eb1b
// > RateStarsLayer::init @ 0x14055ebbf
// > RateStarsModLayer::init @ 0x14055facf
// > RateStarsModLayer::init @ 0x14055fca8
// > RateStarsModLayer::init @ 0x14055fde3
// > RateStarsModLayer::init @ 0x14055fe88
// > RewardsPage::init @ 0x140561fea
// > RewardsPage::init @ 0x140562761
// > RewardsPage::init @ 0x140562922
// > RewardUnlockLayer::init @ 0x1405640bf
// > RewardUnlockLayer::init @ 0x140564130
// > SecretRewardsLayer::init @ 0x140568d83
// > SecretRewardsLayer::init @ 0x140569543
// > SecretRewardsLayer::init @ 0x14056a0fe
// > SecretRewardsLayer::init @ 0x14056a47b
// > SecretRewardsLayer::init @ 0x14056a590
// > SecretRewardsLayer::generateChestItems @ 0x14056b8ef
// > SecretLayer3::init @ 0x140580b21
// > SecretLayer3::init @ 0x140580e01
// > SecretLayer3::init @ 0x140581055
// > SetGroupIDLayer::init @ 0x14058f82c
// > SetGroupIDLayer::init @ 0x14058facb
// > SetGroupIDLayer::init @ 0x14058fee5
// > SetGroupIDLayer::init @ 0x140590269
// > SetGroupIDLayer::init @ 0x1405902c0
// > SetGroupIDLayer::init @ 0x140590317
// > SetGroupIDLayer::init @ 0x140590371
// > SetGroupIDLayer::init @ 0x1405903c9
// > SetGroupIDLayer::updateGroupIDButtons @ 0x14059296d
// > SetupAdvFollowPopup::init @ 0x14059a0b4
// > SetupAdvFollowPopup::init @ 0x14059c991
// > SelectPremadeLayer::init @ 0x14059e46e
// > SelectPremadeLayer::init @ 0x14059e633
// > SetupAreaMoveTriggerPopup::addAreaDefaultControls @ 0x1405a4de3
// > SetupGradientPopup::init @ 0x1405b6cab
// > SetupGradientPopup::init @ 0x1405b6da6
// > SetupGradientPopup::init @ 0x1405b6f82
// > CreateParticlePopup::init @ 0x1405c1e6c
// > CreateParticlePopup::init @ 0x1405c1f4c
// > CreateParticlePopup::init @ 0x1405c2016
// > CreateParticlePopup::init @ 0x1405c2248
// > CreateParticlePopup::init @ 0x1405c23d6
// > CreateParticlePopup::init @ 0x1405c24bb
// > CreateParticlePopup::init @ 0x1405c27e6
// > CreateParticlePopup::init @ 0x1405c32ae
// > CreateParticlePopup::init @ 0x1405c3453
// > CreateParticlePopup::init @ 0x1405c363c
// > CreateParticlePopup::init @ 0x1405c5a72
// > CreateParticlePopup::init @ 0x1405c5c6b
// > CreateParticlePopup::init @ 0x1405c5d54
// > SetupPulsePopup::init @ 0x1405cff02
// > SetupPulsePopup::init @ 0x1405cffe9
// > SetupPulsePopup::init @ 0x1405d00c0
// > SetupRandAdvTriggerPopup::updateGroupIDButtons @ 0x1405d41e6
// > SetupSequenceTriggerPopup::updateGroupIDButtons @ 0x1405d9d09
// > SetupAudioTriggerPopup::addProxVolControls @ 0x1405db709
// > SetupShaderEffectPopup::setupShaderTrigger @ 0x1405e01d0
// > SetupSpawnPopup::updateRemapButtons @ 0x1405f5680
// > SetupItemEditTriggerPopup::init @ 0x140601f67
// > SetupItemCompareTriggerPopup::init @ 0x140604a09
// > SFXBrowser::init @ 0x140617db4
// > SFXBrowser::init @ 0x140617e93
// > SFXBrowser::init @ 0x140617f7b
// > SFXBrowser::init @ 0x140618316
// > SFXBrowser::init @ 0x1406183fe
// > SFXBrowser::init @ 0x1406184ee
// > SFXBrowser::init @ 0x1406185d6
// > SelectSFXSortLayer::init @ 0x140621089
// > ShardsPage::init @ 0x14062ae23
// > ShardsPage::init @ 0x14062cf12
// > ShardsPage::init @ 0x14062d56e
// > ShardsPage::init @ 0x14062d6a2
// > SongInfoLayer::addLinkRows @ 0x140636596
// > TabbedPopupLayer::createTabButtons @ 0x14066c8d5
// > TabbedPopupLayer::createTabButtons @ 0x14066ca16
// > TabbedPopupLayer::createTabButtons @ 0x14066cb18
// > UILayer::init @ 0x14067020a
// > UILayer::init @ 0x14067041b
// > UILayer::init @ 0x1406704b5
// > ??> @ 0x14090fb78
//
// 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:32 +0000
//
char __fastcall CCMenuItemSpriteExtra::init(__int64 *a1, __int64 *a2, __int64 a3, __int64 a4, __int64 a5)
{
char result; // al
__int64 v8; // rbx
__int64 v9; // rax
float *v10; // rbx
__int64 v11; // rdi
float v12; // xmm6_4
double v13; // xmm0_8
float v14; // xmm7_4
float v15; // xmm6_4
double v16; // xmm0_8
__int64 v17; // rax
__int64 v18; // rbx
__int64 v19; // rax
__int64 v20; // rax
_BYTE v21[16]; // [rsp+30h] [rbp-38h] BYREF
result = cocos2d::CCMenuItemSprite::initWithNormalSprite(a1, a2, a3, 0, a4, a5);
if ( result )
{
*((_DWORD *)a1 + 101) = 1065353216;
v8 = *a2;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v21, 0.5, 0.5);
(*(void (__fastcall **)(__int64 *, __int64))(v8 + 288))(a2, v9);
v10 = (float *)(*(__int64 (__fastcall **)(__int64 *))(*a2 + 320))(a2);
v11 = *a1;
v12 = *(float *)((*(__int64 (__fastcall **)(__int64 *))(*a2 + 320))(a2) + 4);
v13 = (*(double (__fastcall **)(__int64 *))(*a2 + 144))(a2);
v14 = *(float *)&v13 * v12;
v15 = *v10;
v16 = (*(double (__fastcall **)(__int64 *))(*a2 + 128))(a2);
v17 = cocos2d::CCSize::CCSize((cocos2d::CCSize *)v21, *(float *)&v16 * v15, v14);
(*(void (__fastcall **)(__int64 *, __int64))(v11 + 312))(a1, v17);
v18 = *a2;
v19 = (*(__int64 (__fastcall **)(__int64 *))(*a2 + 504))(a2);
v20 = cocos2d::CCNode::convertToNodeSpace(v19, v21, &unk_140909A60);
(*(void (__fastcall **)(__int64 *, __int64))(v18 + 184))(a2, v20);
*((_BYTE *)a1 + 408) = 1;
*((_DWORD *)a1 + 100) = 1067534254;
return 1;
}
return result;
}