//
// CCMenuItemSpriteExtra::init from 0x140044c50 to 0x140044da8 (344 bytes)
//
// 177 xrefs:
// > CCMenuItemSpriteExtra::create @ 0x140044c06
// > ListButtonBar::init @ 0x14006b1f2
// > ListButtonBar::init @ 0x14006b2e6
// > ChallengesPage::init @ 0x140085605
// > CharacterColorPage::init @ 0x1400888e9
// > CharacterColorPage::createColorMenu @ 0x1400891ba
// > CommunityCreditsPage::init @ 0x140095d98
// > CommunityCreditsPage::init @ 0x140095e9c
// > CommunityCreditsPage::init @ 0x140095f92
// > CreatorLayer::init @ 0x14009cdc0
// > CreatorLayer::init @ 0x14009d02d
// > CreatorLayer::init @ 0x14009d0f7
// > CustomizeObjectLayer::init @ 0x1400a647a
// > CustomizeObjectLayer::init @ 0x1400a68ce
// > CustomizeObjectLayer::init @ 0x1400a69c5
// > CustomizeObjectLayer::init @ 0x1400a6af5
// > CustomizeObjectLayer::init @ 0x1400a6ccd
// > CustomizeObjectLayer::init @ 0x1400a6e57
// > CustomizeObjectLayer::init @ 0x1400a7806
// > CustomizeObjectLayer::init @ 0x1400a79fe
// > CustomizeObjectLayer::init @ 0x1400a7a56
// > CustomizeObjectLayer::init @ 0x1400a7c05
// > DailyLevelPage::init @ 0x1400cf168
// > DailyLevelPage::init @ 0x1400cf266
// > EditButtonBar::loadFromItems @ 0x1400d4ce9
// > EditButtonBar::loadFromItems @ 0x1400d4de7
// > CreateMenuItem::create @ 0x14012954a
// > FollowRewardPage::init @ 0x14013a0b4
// > FollowRewardPage::init @ 0x14013b65b
// > GauntletLayer::setupGauntlet @ 0x1401f71b3
// > GJColorSetupLayer::init @ 0x140256462
// > GJColorSetupLayer::init @ 0x14025659c
// > GJColorSetupLayer::init @ 0x14025668d
// > GJColorSetupLayer::init @ 0x1402567d3
// > GJGarageLayer::setupIconSelect @ 0x140275c24
// > GJGarageLayer::setupIconSelect @ 0x140275d21
// > GJGarageLayer::setupPage @ 0x14027645e
// > GJGarageLayer::getItems @ 0x140276995
// > GJGarageLayer::setupSpecialPage @ 0x140276fe2
// > GJPathsLayer::init @ 0x140285056
// > GJPFollowCommandLayer::init @ 0x14028b801
// > GJPFollowCommandLayer::init @ 0x14028b8e9
// > GJAccountSettingsLayer::init @ 0x140293801
// > GJAccountSettingsLayer::init @ 0x1402938ec
// > UISaveLoadLayer::init @ 0x1402a42fb
// > UISaveLoadLayer::init @ 0x1402a4454
// > GJShopLayer::init @ 0x1402aa91f
// > GJShopLayer::init @ 0x1402ab295
// > GJSpecialColorSelect::init @ 0x1402b87b1
// > InfoAlertButton::create @ 0x1402ba576
// > LeaderboardsLayer::setupTabs @ 0x1402c2e98
// > LevelAreaInnerLayer::init @ 0x1402c6b2a
// > LevelAreaInnerLayer::init @ 0x1402c6e11
// > LevelAreaInnerLayer::init @ 0x1402c7067
// > LevelAreaInnerLayer::init @ 0x1402c72e2
// > SelectListIconLayer::init @ 0x1403095a8
// > SelectListIconLayer::init @ 0x140309867
// > LevelSearchLayer::init @ 0x14030d5d3
// > LevelSearchLayer::init @ 0x14030d6f9
// > LevelSearchLayer::init @ 0x14030d8ea
// > LevelSearchLayer::init @ 0x14030d9f5
// > LevelSearchLayer::init @ 0x14030daa1
// > LevelSearchLayer::init @ 0x14030db99
// > DemonFilterSelectLayer::init @ 0x140317d15
// > DemonFilterSelectLayer::init @ 0x140317e8b
// > LevelSelectLayer::init @ 0x140318cd8
// > LevelSelectLayer::init @ 0x140318dfd
// > LevelSelectLayer::init @ 0x140318ed2
// > LevelSelectLayer::init @ 0x140318f95
// > LevelSelectLayer::init @ 0x1403190d2
// > LevelPage::updateDynamicPage @ 0x14031b548
// > LevelSettingsLayer::init @ 0x1403200d2
// > LevelSettingsLayer::init @ 0x140320b47
// > LevelSettingsLayer::init @ 0x140320cd9
// > LevelSettingsLayer::init @ 0x140320e20
// > SelectArtLayer::init @ 0x1403227d3
// > SelectArtLayer::init @ 0x14032295e
// > SelectSettingLayer::init @ 0x14032362f
// > SelectSettingLayer::init @ 0x1403237fc
// > NumberInputLayer::init @ 0x1403487f6
// > VideoOptionsLayer::init @ 0x14037767b
// > VideoOptionsLayer::init @ 0x14037777a
// > VideoOptionsLayer::init @ 0x140377876
// > VideoOptionsLayer::init @ 0x140377954
// > VideoOptionsLayer::init @ 0x140377a8e
// > VideoOptionsLayer::init @ 0x140377b28
// > VideoOptionsLayer::init @ 0x140377c35
// > VideoOptionsLayer::init @ 0x140377ddc
// > ProfilePage::loadPageFromUserInfo @ 0x1403c053c
// > ProfilePage::loadPageFromUserInfo @ 0x1403c0acf
// > ProfilePage::loadPageFromUserInfo @ 0x1403c122c
// > ProfilePage::loadPageFromUserInfo @ 0x1403c1440
// > ProfilePage::loadPageFromUserInfo @ 0x1403c1ef2
// > ProfilePage::loadPageFromUserInfo @ 0x1403c2146
// > ProfilePage::loadPageFromUserInfo @ 0x1403c22d1
// > ProfilePage::loadPageFromUserInfo @ 0x1403c23d0
// > ProfilePage::loadPageFromUserInfo @ 0x1403c2481
// > ProfilePage::loadPageFromUserInfo @ 0x1403c25c8
// > ProfilePage::loadPageFromUserInfo @ 0x1403c2753
// > ProfilePage::loadPageFromUserInfo @ 0x1403c29a5
// > ProfilePage::loadPageFromUserInfo @ 0x1403c2a4c
// > ProfilePage::loadPageFromUserInfo @ 0x1403c2aee
// > ProfilePage::loadPageFromUserInfo @ 0x1403c2b8f
// > ProfilePage::loadPageFromUserInfo @ 0x1403c2e5b
// > DemonInfoPopup::init @ 0x1403c7a04
// > StarInfoPopup::init @ 0x1403c890c
// > RateDemonLayer::init @ 0x1403c8e4e
// > RateDemonLayer::init @ 0x1403c8f95
// > RateDemonLayer::init @ 0x1403c903c
// > RateLevelLayer::init @ 0x1403c99e0
// > RateLevelLayer::init @ 0x1403c9b07
// > RateLevelLayer::init @ 0x1403c9bae
// > RateStarsLayer::init @ 0x1403ca734
// > RateStarsLayer::init @ 0x1403ca7d8
// > RewardsPage::init @ 0x1403cc817
// > RewardsPage::init @ 0x1403ccbeb
// > RewardsPage::init @ 0x1403ccecf
// > RewardsPage::init @ 0x1403cd091
// > RewardUnlockLayer::init @ 0x1403ce7ca
// > RewardUnlockLayer::init @ 0x1403ce83b
// > SecretRewardsLayer::init @ 0x1403d3395
// > SecretRewardsLayer::init @ 0x1403d3b3d
// > SecretRewardsLayer::init @ 0x1403d46d0
// > SecretRewardsLayer::init @ 0x1403d4a42
// > SecretRewardsLayer::init @ 0x1403d4b41
// > SecretRewardsLayer::generateChestItems @ 0x1403d5ea3
// > SecretLayer3::init @ 0x1403eaee0
// > SecretLayer3::init @ 0x1403eb1b3
// > SecretLayer3::init @ 0x1403eb403
// > SetGroupIDLayer::init @ 0x1403f9734
// > SetGroupIDLayer::init @ 0x1403f99d6
// > SetGroupIDLayer::init @ 0x1403f9db2
// > SetGroupIDLayer::init @ 0x1403fa122
// > SetGroupIDLayer::init @ 0x1403fa179
// > SetGroupIDLayer::init @ 0x1403fa1d0
// > SetGroupIDLayer::init @ 0x1403fa22a
// > SetGroupIDLayer::init @ 0x1403fa282
// > SetGroupIDLayer::updateGroupIDButtons @ 0x1403fc6d8
// > SetupAdvFollowPopup::init @ 0x14040306c
// > SetupAdvFollowPopup::init @ 0x14040546d
// > SelectPremadeLayer::init @ 0x140406f41
// > SelectPremadeLayer::init @ 0x1404070e5
// > SetupAreaMoveTriggerPopup::addAreaDefaultControls @ 0x14040d782
// > SetupGradientPopup::init @ 0x140421731
// > SetupGradientPopup::init @ 0x140421824
// > SetupGradientPopup::init @ 0x1404219f1
// > CreateParticlePopup::init @ 0x14042cb47
// > CreateParticlePopup::init @ 0x14042cc28
// > CreateParticlePopup::init @ 0x14042ccf5
// > CreateParticlePopup::init @ 0x14042cf26
// > CreateParticlePopup::init @ 0x14042d0b9
// > CreateParticlePopup::init @ 0x14042d19b
// > CreateParticlePopup::init @ 0x14042d4d0
// > CreateParticlePopup::init @ 0x14042df81
// > CreateParticlePopup::init @ 0x14042e114
// > CreateParticlePopup::init @ 0x14042e2fb
// > CreateParticlePopup::init @ 0x1404306dd
// > SetupPulsePopup::init @ 0x14043a66a
// > SetupPulsePopup::init @ 0x14043a74c
// > SetupPulsePopup::init @ 0x14043a822
// > SetupRandAdvTriggerPopup::init @ 0x14043db49
// > SetupRandAdvTriggerPopup::updateGroupIDButtons @ 0x14043e66c
// > SetupSequenceTriggerPopup::updateGroupIDButtons @ 0x140444aa4
// > SetupAudioTriggerPopup::addProxVolControls @ 0x1404462f2
// > SetupShaderEffectPopup::setupShaderTrigger @ 0x14044aad0
// > SetupSpawnPopup::updateRemapButtons @ 0x14045f82b
// > SetupItemEditTriggerPopup::init @ 0x14046ba5f
// > SetupItemCompareTriggerPopup::init @ 0x14046e358
// > SelectSFXSortLayer::init @ 0x140481557
// > ShardsPage::init @ 0x140489fa3
// > ShardsPage::init @ 0x14048c107
// > ShardsPage::init @ 0x14048c74c
// > ShardsPage::init @ 0x14048c85f
// > UILayer::init @ 0x1404ccd7d
// > UILayer::init @ 0x1404ccf82
// > UILayer::init @ 0x1404cd01c
// > ??> @ 0x1406c4680
//
// 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
//
bool CCMenuItemSpriteExtra::init(
CCMenuItemSpriteExtra *a1,
cocos2d::CCNode *a2,
cocos2d::CCNode *a3,
cocos2d::CCObject *a4,
cocos2d::SEL_MenuHandler *a5)
{
bool result; // al
cocos2d::CCNode_vtbl *v8; // rbx
const cocos2d::CCPoint *v9; // rax
CCMenuItemSpriteExtra_vtbl *v10; // rsi
const cocos2d::CCSize *v11; // rax
cocos2d::CCNode_vtbl *v12; // rbx
float height; // xmm7_4
const cocos2d::CCSize *v14; // rdi
double v15; // xmm0_8
float v16; // xmm6_4
double v17; // xmm0_8
const cocos2d::CCSize *v18; // rax
cocos2d::CCNode_vtbl *v19; // rbx
cocos2d::CCNode *v20; // rax
struct cocos2d::CCPoint v21; // rax
cocos2d::CCPoint v22[2]; // [rsp+30h] [rbp-38h] BYREF
result = cocos2d::CCMenuItemSprite::initWithNormalSprite(a1, a2, a3, 0, a4, a5);
if ( result )
{
HIDWORD(a1->m_pDisabledImage) = 1065353216;
v8 = a2->__vftable;
cocos2d::CCPoint::CCPoint(v22, 0.5, 0.5);
v8->setAnchorPoint(a2, v9);
v10 = a1->cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v11 = a2->getContentSize(a2);
v12 = a2->__vftable;
height = v11->height;
v14 = a2->getContentSize(a2);
v15 = ((double (__fastcall *)(cocos2d::CCNode *))v12->getScaleY)(a2);
v16 = *(float *)&v15 * height;
v17 = ((double (__fastcall *)(cocos2d::CCNode *))a2->getScaleX)(a2);
v18 = (const cocos2d::CCSize *)cocos2d::CCSize::CCSize((cocos2d::CCSize *)v22, *(float *)&v17 * v14->width, v16);
v10->setContentSize(a1, v18);
v19 = a2->__vftable;
v20 = a2->getParent(a2);
v21 = cocos2d::CCNode::convertToNodeSpace(v20, v22);
((void (__fastcall *)(cocos2d::CCNode *, struct cocos2d::CCPoint))v19->setPosition_0)(a2, v21);
LOBYTE(a1->m_scaleMultiplier) = 1;
LODWORD(a1->m_pDisabledImage) = 1067534254;
return 1;
}
return result;
}