//
// WorldLevelPage::init from 0x1003c5730 to 0x1003c66c0 (3984 bytes)
//
// 1 xrefs:
// > WorldLevelPage::create @ 0x1003c4bf8
//
// 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 __fastcall WorldLevelPage::init(WorldLevelPage *a1, GJGameLevel *a2, GJWorldNode *a3)
{
bool inited; // r12
cocos2d::extension::CCScale9Sprite *v6; // rbx
double v7; // xmm0_8
std::string *p_m_levelName; // r15
const char *v9; // rdi
cocos2d::CCLabelBMFont *v10; // rbx
double v11; // xmm0_8
const char *v12; // rdi
cocos2d::CCLabelBMFont *v13; // r14
unsigned __int64 *v14; // rbx
cocos2d::CCSprite *v15; // r15
cocos2d::CCSprite *v16; // r15
cocos2d::CCSprite *v17; // r15
cocos2d::CCSprite *v18; // r14
WorldLevelPage *v19; // rbx
cocos2d::CCSprite *v20; // r13
cocos2d::CCSprite *v21; // r12
__int64 v22; // rax
cocos2d::CCSprite *v23; // r14
unsigned __int64 *v24; // r15
unsigned int *v25; // rbx
cocos2d::CCSprite_vtbl *v26; // rax
__int64 v27; // rax
cocos2d::CCLabelBMFont *v28; // r15
WorldLevelPage *v29; // r12
__int64 v30; // rax
cocos2d::CCLabelBMFont *v31; // r15
__int64 v32; // rax
cocos2d::CCLabelBMFont *v33; // r15
unsigned __int64 *v34; // r13
cocos2d::CCLabelBMFont *v35; // r15
unsigned __int64 *v36; // r14
__m128 v37; // xmm2
__m128 v38; // xmm2
cocos2d::CCString *v39; // rax
const char *CString; // rax
cocos2d::CCString *v41; // rax
const char *v42; // rsi
cocos2d::CCArray *v43; // rbx
int v44; // r12d
const char *v45; // rdi
cocos2d::CCSprite *v46; // r14
int v47; // r15d
const char *v48; // rdi
cocos2d::CCSprite *v49; // r14
cocos2d::CCPoint v50; // xmm1_8
cocos2d::CCSprite *v51; // rax
CCMenuItemSpriteExtra *v52; // rax
int v53; // ebx
int v54; // edx
int v55; // ecx
int v56; // r8d
int v57; // r9d
__int64 v58; // rbx
cocos2d::CCSprite *v59; // rbx
CCMenuItemSpriteExtra *v60; // rbx
const cocos2d::CCPoint *m_buttonMenu; // r14
cocos2d::CCSprite *v62; // rbx
CCMenuItemSpriteExtra *v63; // rbx
const cocos2d::CCPoint *v64; // r14
cocos2d::CCSprite *v65; // rax
CCMenuItemSpriteExtra *v66; // rbx
const cocos2d::CCPoint *v67; // r14
char v69; // [rsp+0h] [rbp-90h]
__int64 v70; // [rsp+0h] [rbp-90h]
cocos2d::CCLabelBMFont *v71; // [rsp+8h] [rbp-88h]
WorldLevelPage *v72; // [rsp+10h] [rbp-80h]
float v74; // [rsp+20h] [rbp-70h] BYREF
unsigned int *v75; // [rsp+28h] [rbp-68h]
float width; // [rsp+30h] [rbp-60h]
__int16 v77; // [rsp+34h] [rbp-5Ch] BYREF
char v78; // [rsp+36h] [rbp-5Ah]
bool v79; // [rsp+37h] [rbp-59h]
unsigned __int64 v80; // [rsp+38h] [rbp-58h] BYREF
_OWORD v81[2]; // [rsp+40h] [rbp-50h] BYREF
float v82; // [rsp+60h] [rbp-30h] BYREF
float v83; // [rsp+64h] [rbp-2Ch]
double v84; // 0:xmm0_8.8
double v85; // 0:xmm0_8.8
double v86; // 0:xmm0_8.8
cocos2d::CCRect v87; // 0:xmm0_8.8,8:xmm1_8.8
FLAlertLayer::incrementForcePrio(a1);
inited = FLAlertLayer::init_1(a1, 125);
if ( !inited )
return inited;
a1->m_worldNode = a3;
if ( a2 )
{
a1->m_level = a2;
cocos2d::CCObject::retain(a2);
}
cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v82);
v87.origin = 0;
v87.size = 0;
sub_10028CC00((__int64)v81, 0.0, 0.0, (__m128)0x42A00000u, (__m128)0x42A00000u);
v6 = cocos2d::extension::CCScale9Sprite::create_2("GJ_square01.png", v87);
((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, __int64))v6->setOpacity)(v6, 255);
sub_10028CBF0((float *)v81, 320.0, 260.0);
((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, _OWORD *))v6->setContentSize)(v6, v81);
((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::extension::CCScale9Sprite *, __int64))a1->m_mainLayer->addChild_0)(
a1->m_mainLayer,
v6,
0xFFFFFFFFLL);
*(_QWORD *)&v7 = LODWORD(v82);
*(float *)&v7 = v82 * 0.5;
sub_10028CBE0((float *)v81, v82 * 0.5, v83 * 0.5);
((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, _OWORD *))v6->setPosition)(v6, v81);
p_m_levelName = &a2->m_levelName;
if ( (a2->m_levelName.m_data.m_short.sizex2 & 1) != 0 )
{
sub_100006B70(v81, a2->m_levelName.m_data.m_long.longStorage, a2->m_levelName.m_data.m_long.size, v7);
if ( (v81[0] & 1) == 0 )
goto LABEL_6;
}
else
{
*(_QWORD *)&v81[1] = a2->m_levelName.m_data.m_long.longStorage;
v81[0] = *(_OWORD *)&p_m_levelName->m_data.m_short.sizex2;
if ( (v81[0] & 1) == 0 )
{
LABEL_6:
v9 = (char *)v81 + 1;
goto LABEL_9;
}
}
v9 = *(const char **)&v81[1];
LABEL_9:
v10 = cocos2d::CCLabelBMFont::create_3(v9, "goldFont.fnt");
if ( (v81[0] & 1) != 0 )
operator delete(*(void **)&v81[1]);
cocos2d::CCLabelBMFont::limitLabelWidth(v10, 220.0, 0.0, 0.0);
((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *, __int64))a1->m_mainLayer->addChild_0)(
a1->m_mainLayer,
v10,
1);
*(_QWORD *)&v11 = LODWORD(v82);
*(float *)&v11 = v82 * 0.5;
sub_10028CBE0((float *)v81, v82 * 0.5, (float)((float)(v83 * 0.5) + 130.0) + -25.0);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, _OWORD *))v10->setPosition)(v10, v81);
if ( (p_m_levelName->m_data.m_short.sizex2 & 1) != 0 )
{
sub_100006B70(v81, a2->m_levelName.m_data.m_long.longStorage, a2->m_levelName.m_data.m_long.size, v11);
if ( (v81[0] & 1) == 0 )
goto LABEL_13;
LABEL_15:
v12 = *(const char **)&v81[1];
goto LABEL_16;
}
*(_QWORD *)&v81[1] = a2->m_levelName.m_data.m_long.longStorage;
v81[0] = *(_OWORD *)&p_m_levelName->m_data.m_short.sizex2;
if ( (v81[0] & 1) != 0 )
goto LABEL_15;
LABEL_13:
v12 = (char *)v81 + 1;
LABEL_16:
v13 = cocos2d::CCLabelBMFont::create_3(v12, "goldFont.fnt");
v79 = inited;
if ( (v81[0] & 1) != 0 )
operator delete(*(void **)&v81[1]);
((void (__fastcall *)(cocos2d::CCLabelBMFont *))v10->getScale)(v10);
((void (__fastcall *)(cocos2d::CCLabelBMFont *))v13->setScale)(v13);
((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *, _QWORD))a1->m_mainLayer->addChild_0)(
a1->m_mainLayer,
v13,
0);
v14 = (unsigned __int64 *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v10->getPosition)(v10);
sub_10028CBE0((float *)&v80, 0.0, -2.0);
sub_10028CCE0((double *)v81, v14, &v80);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, _OWORD *))v13->setPosition)(v13, v81);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, void *))v13->setColor)(v13, &unk_10081ADDF);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int64))v13->setOpacity)(v13, 50);
v15 = cocos2d::CCSprite::createWithSpriteFrameName("dailyLevelCorner_001.png");
((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *, __int64))a1->m_mainLayer->addChild_0)(
a1->m_mainLayer,
v15,
8);
sub_10028CBE0((float *)v81, (float)(v82 * 0.5) + -135.0, (float)(v83 * 0.5) + -105.0);
((void (__fastcall *)(cocos2d::CCSprite *, _OWORD *))v15->setPosition)(v15, v81);
v16 = cocos2d::CCSprite::createWithSpriteFrameName("dailyLevelCorner_001.png");
((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *, __int64))a1->m_mainLayer->addChild_0)(
a1->m_mainLayer,
v16,
8);
cocos2d::CCSprite::setFlipY(v16, 1);
sub_10028CBE0((float *)v81, (float)(v82 * 0.5) + -135.0, (float)(v83 * 0.5) + 105.0);
((void (__fastcall *)(cocos2d::CCSprite *, _OWORD *))v16->setPosition)(v16, v81);
v17 = cocos2d::CCSprite::createWithSpriteFrameName("dailyLevelCorner_001.png");
((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *, __int64))a1->m_mainLayer->addChild_0)(
a1->m_mainLayer,
v17,
8);
cocos2d::CCSprite::setFlipX(v17, 1);
cocos2d::CCSprite::setFlipY(v17, 1);
sub_10028CBE0((float *)v81, (float)(v82 * 0.5) + 135.0, (float)(v83 * 0.5) + 105.0);
((void (__fastcall *)(cocos2d::CCSprite *, _OWORD *))v17->setPosition)(v17, v81);
v18 = cocos2d::CCSprite::createWithSpriteFrameName("dailyLevelCorner_001.png");
((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *, __int64))a1->m_mainLayer->addChild_0)(
a1->m_mainLayer,
v18,
8);
cocos2d::CCSprite::setFlipX(v18, 1);
sub_10028CBE0((float *)v81, (float)(v82 * 0.5) + 135.0, (float)(v83 * 0.5) + -105.0);
((void (__fastcall *)(cocos2d::CCSprite *, _OWORD *))v18->setPosition)(v18, v81);
v78 = 0;
v77 = 0;
v19 = a1;
v20 = cocos2d::CCSprite::create_1("GJ_progressBar_001.png");
((void (__fastcall *)(cocos2d::CCSprite *, __int16 *))v20->setColor)(v20, &v77);
((void (__fastcall *)(cocos2d::CCSprite *, __int64))v20->setOpacity)(v20, 125);
((void (__fastcall *)(cocos2d::CCSprite *, float))v20->setScale)(v20, 0.80000001);
v72 = v19;
((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *, __int64))v19->m_mainLayer->addChild_0)(
v19->m_mainLayer,
v20,
3);
sub_10028CBE0((float *)v81, v82 * 0.5, (float)(v83 * 0.5) + -48.0);
((void (__fastcall *)(cocos2d::CCSprite *, _OWORD *))v20->setPosition)(v20, v81);
v21 = cocos2d::CCSprite::create_1("GJ_progressBar_001.png");
((void (__fastcall *)(cocos2d::CCSprite *, float))v21->setScaleX)(v21, 0.99199998);
((void (__fastcall *)(cocos2d::CCSprite *, float))v21->setScaleY)(v21, 0.86000001);
((void (__fastcall *)(cocos2d::CCSprite *, void *))v21->setColor)(v21, &unk_10081ADE2);
width = v21->m_obRect.size.width;
*(float *)&v75 = width - (float)(width * 0.99199998);
((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCSprite *, __int64))v20->addChild_0)(v20, v21, 1);
sub_10028CBE0((float *)v81, 0.0, 0.5);
((void (__fastcall *)(cocos2d::CCSprite *, _OWORD *))v21->setAnchorPoint)(v21, v81);
*(float *)&v75 = *(float *)&v75 * 0.5;
v22 = ((__int64 (__fastcall *)(cocos2d::CCSprite *))v20->getContentSize)(v20);
sub_10028CBE0((float *)v81, *(float *)&v75, *(float *)(v22 + 4) * 0.5);
((void (__fastcall *)(cocos2d::CCSprite *, _OWORD *))v21->setPosition)(v21, v81);
v23 = cocos2d::CCSprite::create_1("GJ_progressBar_001.png");
((void (__fastcall *)(cocos2d::CCSprite *, __int16 *))v23->setColor)(v23, &v77);
((void (__fastcall *)(cocos2d::CCSprite *, __int64))v23->setOpacity)(v23, 125);
((void (__fastcall *)(cocos2d::CCSprite *, float))v23->setScale)(v23, 0.80000001);
((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *, __int64))v19->m_mainLayer->addChild_0)(
v19->m_mainLayer,
v23,
3);
v24 = (unsigned __int64 *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v20->getPosition)(v20);
sub_10028CBE0((float *)&v80, 0.0, -45.0);
sub_10028CCE0((double *)v81, v24, &v80);
((void (__fastcall *)(cocos2d::CCSprite *, _OWORD *))v23->setPosition)(v23, v81);
v25 = (unsigned int *)cocos2d::CCSprite::create_1("GJ_progressBar_001.png");
(*(void (__fastcall **)(unsigned int *, float))(*(_QWORD *)v25 + 128LL))(v25, 0.99199998);
(*(void (__fastcall **)(unsigned int *, float))(*(_QWORD *)v25 + 144LL))(v25, 0.86000001);
BYTE2(v81[0]) = -1;
LOWORD(v81[0]) = -256;
(*(void (__fastcall **)(unsigned int *, _OWORD *))(*(_QWORD *)v25 + 944LL))(v25, v81);
((void (__fastcall *)(cocos2d::CCSprite *, unsigned int *, __int64))v23->addChild_0)(v23, v25, 1);
sub_10028CBE0((float *)v81, 0.0, 0.5);
(*(void (__fastcall **)(unsigned int *, _OWORD *))(*(_QWORD *)v25 + 280LL))(v25, v81);
v26 = v21->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v75 = (unsigned int *)v21;
v27 = ((__int64 (__fastcall *)(cocos2d::CCSprite *))v26->getPosition)(v21);
(*(void (__fastcall **)(unsigned int *, __int64))(*(_QWORD *)v25 + 184LL))(v25, v27);
v28 = cocos2d::CCLabelBMFont::create_3(" ", "bigFont.fnt");
v29 = v72;
((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *, __int64))v72->m_mainLayer->addChild_0)(
v72->m_mainLayer,
v28,
4);
v30 = ((__int64 (__fastcall *)(cocos2d::CCSprite *))v20->getPosition)(v20);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int64))v28->setPosition)(v28, v30);
v69 = (char)v28;
((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v28->setScale)(v28, 0.40000001);
v31 = cocos2d::CCLabelBMFont::create_3(" ", "bigFont.fnt");
((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *, __int64))v29->m_mainLayer->addChild_0)(
v29->m_mainLayer,
v31,
4);
v32 = ((__int64 (__fastcall *)(cocos2d::CCSprite *))v23->getPosition)(v23);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int64))v31->setPosition)(v31, v32);
v71 = v31;
((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v31->setScale)(v31, 0.40000001);
v33 = cocos2d::CCLabelBMFont::create_3("Normal Mode", "bigFont.fnt");
((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *, __int64))v29->m_mainLayer->addChild_0)(
v29->m_mainLayer,
v33,
4);
v34 = (unsigned __int64 *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v20->getPosition)(v20);
sub_10028CBE0((float *)&v80, 0.0, 20.0);
sub_10028CCE0((double *)v81, v34, &v80);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, _OWORD *))v33->setPosition)(v33, v81);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v33->setScale)(v33, 0.40000001);
v35 = cocos2d::CCLabelBMFont::create_3("Practice Mode", "bigFont.fnt");
((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *, __int64))v72->m_mainLayer->addChild_0)(
v72->m_mainLayer,
v35,
4);
v36 = (unsigned __int64 *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v23->getPosition)(v23);
sub_10028CBE0((float *)&v80, 0.0, 20.0);
sub_10028CCE0((double *)v81, v36, &v80);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, _OWORD *))v35->setPosition)(v35, v81);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v35->setScale)(v35, 0.40000001);
v37 = (__m128)LODWORD(width);
if ( width > (float)((float)((float)GJGameLevel::getNormalPercent(a2) / 100.0) * width) )
{
v37 = 0;
v37.f32[0] = (float)((float)GJGameLevel::getNormalPercent(a2) / 100.0) * width;
}
sub_10028CC00((__int64)v81, 0.0, 0.0, v37, (__m128)v75[109]);
(*(void (__fastcall **)(unsigned int *, _OWORD *))(*(_QWORD *)v75 + 1120LL))(v75, v81);
v38 = 0;
v38.f32[0] = fminf((float)((float)a2->m_practicePercent / 100.0) * width, width);
sub_10028CC00((__int64)v81, 0.0, 0.0, v38, (__m128)v25[109]);
(*(void (__fastcall **)(unsigned int *, _OWORD *))(*(_QWORD *)v25 + 1120LL))(v25, v81);
GJGameLevel::getNormalPercent(a2);
v39 = (cocos2d::CCString *)sub_1007AB580("%i%%", v69);
CString = cocos2d::CCString::getCString(v39);
(*(void (__fastcall **)(__int64, const char *))(*(_QWORD *)v70 + 912LL))(v70, CString);
v41 = (cocos2d::CCString *)sub_1007AB580("%i%%", v70);
v42 = cocos2d::CCString::getCString(v41);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *))v71->setString)(v71, v42);
v43 = (cocos2d::CCArray *)sub_10071F9E0(v71, v42);
if ( GJGameLevel::getNormalPercent(v72->m_level) < 100 )
{
*(_QWORD *)&v81[1] = operator new(0x20u);
*(_QWORD *)&v81[0] = 33;
*((_QWORD *)&v81[0] + 1) = 25;
strcpy(*(char **)&v81[1], "GJ_starsIcon_gray_001.png");
if ( a2->m_stars.random > a2->m_stars.seed )
{
v47 = 0;
do
{
v48 = (char *)v81 + 1;
if ( (v81[0] & 1) != 0 )
v48 = *(const char **)&v81[1];
v49 = cocos2d::CCSprite::createWithSpriteFrameName(v48);
((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *))v72->m_mainLayer->addChild)(
v72->m_mainLayer,
v49);
((void (__fastcall *)(cocos2d::CCSprite *, float))v49->setScale)(v49, 0.60000002);
sub_10071FCD0(v43, v49);
((void (__fastcall *)(cocos2d::CCSprite *, __int64))v49->setOpacity)(v49, 200);
++v47;
}
while ( v47 < a2->m_stars.random - a2->m_stars.seed );
}
}
else
{
strcpy((char *)v81, "(GJ_starsIcon_001.png");
if ( a2->m_stars.random > a2->m_stars.seed )
{
v44 = 0;
do
{
v45 = (char *)v81 + 1;
if ( (v81[0] & 1) != 0 )
v45 = *(const char **)&v81[1];
v46 = cocos2d::CCSprite::createWithSpriteFrameName(v45);
((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *))v72->m_mainLayer->addChild)(
v72->m_mainLayer,
v46);
((void (__fastcall *)(cocos2d::CCSprite *, float))v46->setScale)(v46, 0.60000002);
sub_10071FCD0(v43, v46);
++v44;
}
while ( v44 < a2->m_stars.random - a2->m_stars.seed );
}
}
v50 = (cocos2d::CCPoint)LODWORD(v83);
v50.x = (float)((float)(v83 * 0.5) + -130.0) + 16.0;
sub_10028CBE0((float *)&v80, v82 * 0.5, v50.x);
GameToolbox::alignItemsHorisontally(v43, 15.0, v50, (bool)&v80);
v72->m_joystickConnected = -1;
v51 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_closeBtn_001.png");
inited = v79;
v52 = CCMenuItemSpriteExtra::create(
v51,
nullptr,
v72,
(cocos2d::SEL_MenuHandler)(unsigned __int64)WorldLevelPage::onClose);
v53 = (int)v52;
CCMenuItemSpriteExtra::setSizeMult(v52, 1.6);
v58 = sub_100792C50(v53, 0, v54, v55, v56, v57);
v72->m_buttonMenu = (cocos2d::CCMenu *)v58;
sub_10028CBE0((float *)&v80, (float)((float)(v82 * 0.5) + -160.0) + 10.0, (float)((float)(v83 * 0.5) + 130.0) + -10.0);
(*(void (__fastcall **)(__int64, unsigned __int64 *))(*(_QWORD *)v58 + 184LL))(v58, &v80);
((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCMenu *, __int64))v72->m_mainLayer->addChild_0)(
v72->m_mainLayer,
v72->m_buttonMenu,
10);
v59 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_playBtn2_001.png");
((void (__fastcall *)(cocos2d::CCSprite *, float))v59->setScale)(v59, 1.0);
v60 = CCMenuItemSpriteExtra::create(
v59,
nullptr,
v72,
(cocos2d::SEL_MenuHandler)(unsigned __int64)WorldLevelPage::onPlay);
((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))v72->m_buttonMenu->addChild)(v72->m_buttonMenu, v60);
m_buttonMenu = (const cocos2d::CCPoint *)v72->m_buttonMenu;
sub_10028CBE0(&v74, v82 * 0.5, (float)(v83 * 0.5) + 32.0);
*(cocos2d::CCPoint *)&v84 = cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)&v80, m_buttonMenu);
((void (__fastcall *)(CCMenuItemSpriteExtra *, unsigned __int64 *, double))v60->setPosition)(v60, &v80, v84);
v62 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_playMusicBtn_001.png");
((void (__fastcall *)(cocos2d::CCSprite *, float))v62->setScale)(v62, 0.80000001);
v63 = CCMenuItemSpriteExtra::create(
v62,
nullptr,
v72,
(cocos2d::SEL_MenuHandler)(unsigned __int64)WorldLevelPage::onSong);
CCMenuItemSpriteExtra::setSizeMult(v63, 2.0);
((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))v72->m_buttonMenu->addChild)(v72->m_buttonMenu, v63);
v64 = (const cocos2d::CCPoint *)v72->m_buttonMenu;
sub_10028CBE0(&v74, (float)((float)(v82 * 0.5) + 160.0) + -5.0, (float)((float)(v83 * 0.5) + -130.0) + 5.0);
*(cocos2d::CCPoint *)&v85 = cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)&v80, v64);
((void (__fastcall *)(CCMenuItemSpriteExtra *, unsigned __int64 *, double))v63->setPosition)(v63, &v80, v85);
v65 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_infoIcon_001.png");
v66 = CCMenuItemSpriteExtra::create(
v65,
nullptr,
v72,
(cocos2d::SEL_MenuHandler)(unsigned __int64)WorldLevelPage::onInfo);
CCMenuItemSpriteExtra::setSizeMult(v66, 2.0);
((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))v72->m_buttonMenu->addChild)(v72->m_buttonMenu, v66);
v67 = (const cocos2d::CCPoint *)v72->m_buttonMenu;
sub_10028CBE0(&v74, (float)((float)(v82 * 0.5) + 160.0) + -5.0, (float)((float)(0.5 * v83) + 130.0) + -5.0);
*(cocos2d::CCPoint *)&v86 = cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)&v80, v67);
((void (__fastcall *)(CCMenuItemSpriteExtra *, unsigned __int64 *, double))v66->setPosition)(v66, &v80, v86);
if ( (v81[0] & 1) != 0 )
operator delete(*(void **)&v81[1]);
return inited;
}