//
// GJGarageLayer::setupIconSelect from 0x7981cc to 0x798e10 (3140 bytes)
//
// 2 xrefs:
// > GJGarageLayer::init @ 0x7995cc
// > ??> @ 0x6d578
//
// 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
//
void GJGarageLayer::setupIconSelect(GJGarageLayer *a1)
{
unsigned int v2; // w20
cocos2d::CCDirector *v3; // x0
std::_rb_tree_base *p_m_header; // x22
cocos2d::CCNode *v5; // x24
void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x21
cocos2d::CCSprite *v7; // x21
void (__fastcall *setAnchorPoint)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x27
void (__fastcall *v9)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x27
cocos2d::CCArray *v10; // x0
cocos2d::CCArray *v11; // x0
cocos2d::CCMenu *v12; // x21
cocos2d::CCSprite *v13; // x27
cocos2d::CCSprite *v14; // x0
CCMenuItemToggler *v15; // x27
cocos2d::CCSprite *v16; // x27
cocos2d::CCSprite *v17; // x0
CCMenuItemToggler *v18; // x27
cocos2d::CCSprite *v19; // x27
cocos2d::CCSprite *v20; // x0
CCMenuItemToggler *v21; // x27
cocos2d::CCSprite *v22; // x27
cocos2d::CCSprite *v23; // x0
CCMenuItemToggler *v24; // x27
cocos2d::CCSprite *v25; // x27
cocos2d::CCSprite *v26; // x0
CCMenuItemToggler *v27; // x27
cocos2d::CCSprite *v28; // x27
cocos2d::CCSprite *v29; // x0
CCMenuItemToggler *v30; // x27
cocos2d::CCSprite *v31; // x27
cocos2d::CCSprite *v32; // x0
CCMenuItemToggler *v33; // x27
cocos2d::CCSprite *v34; // x27
cocos2d::CCSprite *v35; // x0
CCMenuItemToggler *v36; // x27
cocos2d::CCSprite *v37; // x27
cocos2d::CCSprite *v38; // x0
CCMenuItemToggler *v39; // x27
cocos2d::CCSprite *v40; // x27
cocos2d::CCSprite *v41; // x0
CCMenuItemToggler *v42; // x27
cocos2d::CCSprite *v43; // x0
CCMenuItemToggler *v44; // x28
_QWORD **v45; // x27
int v46; // w28
__int64 v47; // x0
__int64 v48; // x0
std::_rb_tree_base *m_parent; // x0
__int64 insert_unique_pos; // x27
__int64 v51; // x0
int *v52; // x3
int v53; // w5
std::_rb_tree_base *m_right; // x2
int *v55; // x1
_BOOL8 v56; // x0
void (__fastcall *v57)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x22
cocos2d::CCSprite *v58; // x0
cocos2d::CCSprite_vtbl *v59; // x1
cocos2d::CCSprite *v60; // x0
cocos2d::CCSprite_vtbl *v61; // x1
cocos2d::CCString *v62; // x0
const char *CString; // x28
cocos2d::CCSprite *v64; // x22
CCMenuItemSpriteExtra *v65; // x0
cocos2d::CCMenu_vtbl *v66; // x2
CCMenuItemSpriteExtra *m_leftArrow; // x22
cocos2d::CCSprite *v68; // x22
CCMenuItemSpriteExtra *v69; // x0
cocos2d::CCMenu_vtbl *v70; // x2
CCMenuItemSpriteExtra *m_rightArrow; // x22
cocos2d::CCNode *v72; // x0
const cocos2d::CCPoint *(__fastcall *getPosition)(cocos2d::CCNode *__hidden); // x1
void (__fastcall *v74)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x24
__int64 v75; // x25
cocos2d::CCArray *v76; // x0
cocos2d::CCArray *v77; // x0
cocos2d::CCMenu *v78; // x0
GJGarageLayer_vtbl *v79; // x2
cocos2d::CCMenu *m_navDotMenu; // x20
void (__fastcall *v81)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x21
std::_rb_tree_base *v82; // x1
int v83; // [xsp+88h] [xbp+88h]
int *v84; // [xsp+90h] [xbp+90h]
void (__fastcall *v85)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // [xsp+90h] [xbp+90h]
int *v86; // [xsp+90h] [xbp+90h]
__int64 v87; // [xsp+98h] [xbp+98h]
cocos2d::CCSprite *v88; // [xsp+98h] [xbp+98h]
int *v89; // [xsp+98h] [xbp+98h]
__int64 v90; // [xsp+98h] [xbp+98h]
int *v91; // [xsp+98h] [xbp+98h]
int *v92; // [xsp+98h] [xbp+98h]
float v93; // [xsp+A8h] [xbp+A8h]
float v94; // [xsp+ACh] [xbp+ACh]
cocos2d::CCSize v95; // [xsp+B0h] [xbp+B0h] BYREF
cocos2d::CCPoint v96; // [xsp+B8h] [xbp+B8h] BYREF
cocos2d::CCPoint v97; // [xsp+C0h] [xbp+C0h] BYREF
cocos2d::CCRect v98; // [xsp+C8h] [xbp+C8h] BYREF
cocos2d::CCPoint v99; // 0:kr08_8.8
cocos2d::CCPoint v100; // 0:kr10_8.8
cocos2d::SEL_MenuHandler v101; // 0:x2.16
cocos2d::SEL_MenuHandler v102; // 0:x2.16
cocos2d::SEL_MenuHandler v103; // 0:x3.16
cocos2d::SEL_MenuHandler v104; // 0:x3.16
cocos2d::SEL_MenuHandler v105; // 0:x3.16
cocos2d::SEL_MenuHandler v106; // 0:x3.16
cocos2d::SEL_MenuHandler v107; // 0:x3.16
cocos2d::SEL_MenuHandler v108; // 0:x3.16
cocos2d::SEL_MenuHandler v109; // 0:x3.16
cocos2d::SEL_MenuHandler v110; // 0:x3.16
cocos2d::SEL_MenuHandler v111; // 0:x3.16
cocos2d::SEL_MenuHandler v112; // 0:x3.16
cocos2d::SEL_MenuHandler v113; // 0:x3.16
cocos2d::CCRect v114; // 0:s0.4,4:s1.4,8:s2.4,12:s3.4
v2 = 0;
v3 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(v3);
p_m_header = &a1->m_iconPages.m_header;
cocos2d::CCRect::CCRect(&v98, 0.0, 0.0, 80.0, 80.0);
v5 = (cocos2d::CCNode *)cocos2d::extension::CCScale9Sprite::create(
(cocos2d::extension::CCScale9Sprite *)"square02_001.png",
(const char *)&v98,
v114);
((void (__fastcall *)(cocos2d::CCNode *, __int64))v5->__vftable[1].~CCNode_0)(v5, 75);
cocos2d::CCSize::CCSize(&v95, 385.0, 100.0);
v5->setContentSize(v5, &v95);
a1->addChild_0(a1, v5, -1);
setPosition = v5->setPosition;
cocos2d::CCPoint::CCPoint(&v98.origin, v93 * 0.5, (float)((float)(v94 * 0.5) + -5.0) - 60.0);
setPosition(v5, &v98.origin);
v7 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_unlockTxt_001.png");
a1->addChild(a1, v7);
setAnchorPoint = v7->setAnchorPoint;
cocos2d::CCPoint::CCPoint(&v98.origin, 0.5, 0.5);
setAnchorPoint(v7, &v98.origin);
v9 = v7->setPosition;
v87 = (__int64)v5->getPosition(v5);
cocos2d::CCPoint::CCPoint(&v97, 0.0, (float)(v95.height * 0.5) + 12.0);
cocos2d::CCPoint::operator+(&v98, v87, &v97);
v10 = (cocos2d::CCArray *)((__int64 (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCRect *))v9)(v7, &v98);
v11 = (cocos2d::CCArray *)cocos2d::CCArray::create(v10);
a1->m_tabButtons = v11;
cocos2d::CCObject::retain(v11);
v12 = cocos2d::CCMenu::create();
a1->addChild_0(a1, v12, 100);
v13 = cocos2d::CCSprite::createWithSpriteFrameName("gj_iconBtn_off_001.png");
v14 = cocos2d::CCSprite::createWithSpriteFrameName("gj_iconBtn_on_001.png");
v103.ptr = (void (__cdecl *)(cocos2d::CCObject *))GJGarageLayer::onSelectTab;
v103.adj = 0;
v15 = CCMenuItemToggler::create(v13, v14, a1, v103);
CCMenuItemToggler::setSizeMult(v15, 1.2);
v12->addChild(v12, v15);
v15->setTag(v15, 0);
cocos2d::CCArray::addObject(a1->m_tabButtons, v15);
v16 = cocos2d::CCSprite::createWithSpriteFrameName("gj_shipBtn_off_001.png");
v17 = cocos2d::CCSprite::createWithSpriteFrameName("gj_shipBtn_on_001.png");
v104.ptr = (void (__cdecl *)(cocos2d::CCObject *))GJGarageLayer::onSelectTab;
v104.adj = 0;
v18 = CCMenuItemToggler::create(v16, v17, a1, v104);
CCMenuItemToggler::setSizeMult(v18, 1.2);
v12->addChild(v12, v18);
v18->setTag(v18, 1);
cocos2d::CCArray::addObject(a1->m_tabButtons, v18);
v19 = cocos2d::CCSprite::createWithSpriteFrameName("gj_ballBtn_off_001.png");
v20 = cocos2d::CCSprite::createWithSpriteFrameName("gj_ballBtn_on_001.png");
v105.ptr = (void (__cdecl *)(cocos2d::CCObject *))GJGarageLayer::onSelectTab;
v105.adj = 0;
v21 = CCMenuItemToggler::create(v19, v20, a1, v105);
CCMenuItemToggler::setSizeMult(v21, 1.2);
v12->addChild(v12, v21);
v21->setTag(v21, 2);
cocos2d::CCArray::addObject(a1->m_tabButtons, v21);
v22 = cocos2d::CCSprite::createWithSpriteFrameName("gj_birdBtn_off_001.png");
v23 = cocos2d::CCSprite::createWithSpriteFrameName("gj_birdBtn_on_001.png");
v106.ptr = (void (__cdecl *)(cocos2d::CCObject *))GJGarageLayer::onSelectTab;
v106.adj = 0;
v24 = CCMenuItemToggler::create(v22, v23, a1, v106);
CCMenuItemToggler::setSizeMult(v24, 1.2);
v12->addChild(v12, v24);
v24->setTag(v24, 3);
cocos2d::CCArray::addObject(a1->m_tabButtons, v24);
v25 = cocos2d::CCSprite::createWithSpriteFrameName("gj_dartBtn_off_001.png");
v26 = cocos2d::CCSprite::createWithSpriteFrameName("gj_dartBtn_on_001.png");
v107.ptr = (void (__cdecl *)(cocos2d::CCObject *))GJGarageLayer::onSelectTab;
v107.adj = 0;
v27 = CCMenuItemToggler::create(v25, v26, a1, v107);
CCMenuItemToggler::setSizeMult(v27, 1.2);
v12->addChild(v12, v27);
v27->setTag(v27, 4);
cocos2d::CCArray::addObject(a1->m_tabButtons, v27);
v28 = cocos2d::CCSprite::createWithSpriteFrameName("gj_robotBtn_off_001.png");
v29 = cocos2d::CCSprite::createWithSpriteFrameName("gj_robotBtn_on_001.png");
v108.ptr = (void (__cdecl *)(cocos2d::CCObject *))GJGarageLayer::onSelectTab;
v108.adj = 0;
v30 = CCMenuItemToggler::create(v28, v29, a1, v108);
CCMenuItemToggler::setSizeMult(v30, 1.2);
v12->addChild(v12, v30);
v30->setTag(v30, 5);
cocos2d::CCArray::addObject(a1->m_tabButtons, v30);
v31 = cocos2d::CCSprite::createWithSpriteFrameName("gj_spiderBtn_off_001.png");
v32 = cocos2d::CCSprite::createWithSpriteFrameName("gj_spiderBtn_on_001.png");
v109.ptr = (void (__cdecl *)(cocos2d::CCObject *))GJGarageLayer::onSelectTab;
v109.adj = 0;
v33 = CCMenuItemToggler::create(v31, v32, a1, v109);
CCMenuItemToggler::setSizeMult(v33, 1.2);
v12->addChild(v12, v33);
v33->setTag(v33, 6);
cocos2d::CCArray::addObject(a1->m_tabButtons, v33);
v34 = cocos2d::CCSprite::createWithSpriteFrameName("gj_swingBtn_off_001.png");
v35 = cocos2d::CCSprite::createWithSpriteFrameName("gj_swingBtn_on_001.png");
v110.ptr = (void (__cdecl *)(cocos2d::CCObject *))GJGarageLayer::onSelectTab;
v110.adj = 0;
v36 = CCMenuItemToggler::create(v34, v35, a1, v110);
CCMenuItemToggler::setSizeMult(v36, 1.2);
v12->addChild(v12, v36);
v36->setTag(v36, 7);
cocos2d::CCArray::addObject(a1->m_tabButtons, v36);
v37 = cocos2d::CCSprite::createWithSpriteFrameName("gj_jetpackBtn_off_001.png");
v38 = cocos2d::CCSprite::createWithSpriteFrameName("gj_jetpackBtn_on_001.png");
v111.ptr = (void (__cdecl *)(cocos2d::CCObject *))GJGarageLayer::onSelectTab;
v111.adj = 0;
v39 = CCMenuItemToggler::create(v37, v38, a1, v111);
CCMenuItemToggler::setSizeMult(v39, 1.2);
v12->addChild(v12, v39);
v39->setTag(v39, 8);
cocos2d::CCArray::addObject(a1->m_tabButtons, v39);
v40 = cocos2d::CCSprite::createWithSpriteFrameName("gj_streakBtn_off_001.png");
v41 = cocos2d::CCSprite::createWithSpriteFrameName("gj_streakBtn_on_001.png");
v112.ptr = (void (__cdecl *)(cocos2d::CCObject *))GJGarageLayer::onSelectTab;
v112.adj = 0;
v42 = CCMenuItemToggler::create(v40, v41, a1, v112);
CCMenuItemToggler::setSizeMult(v42, 1.2);
v12->addChild(v12, v42);
v42->setTag(v42, 99);
cocos2d::CCArray::addObject(a1->m_tabButtons, v42);
v88 = cocos2d::CCSprite::createWithSpriteFrameName("gj_explosionBtn_off_001.png");
v43 = cocos2d::CCSprite::createWithSpriteFrameName("gj_explosionBtn_on_001.png");
v113.adj = 0;
v113.ptr = (void (__cdecl *)(cocos2d::CCObject *))GJGarageLayer::onSelectTab;
v44 = CCMenuItemToggler::create(v88, v43, a1, v113);
CCMenuItemToggler::setSizeMult(v44, 1.2);
v12->addChild(v12, v44);
v44->setTag(v44, 98);
cocos2d::CCArray::addObject(a1->m_tabButtons, v44);
if ( (unsigned int)cocos2d::CCArray::count(a1->m_tabButtons) )
{
while ( 1 )
{
v45 = (_QWORD **)cocos2d::CCArray::objectAtIndex(a1->m_tabButtons, v2);
v46 = ((__int64 (__fastcall *)(_QWORD **))(*v45)[8])(v45);
v47 = (*(__int64 (__fastcall **)(_QWORD *))(*v45[47] + 1056LL))(v45[47]);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v47 + 160LL))(v47, 0.9);
v48 = (*(__int64 (__fastcall **)(_QWORD *))(*v45[48] + 1056LL))(v45[48]);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v48 + 160LL))(v48, 0.9);
m_parent = a1->m_iconPages.m_header.m_parent;
if ( !m_parent )
goto LABEL_25;
insert_unique_pos = (__int64)&a1->m_iconPages.m_header;
do
{
while ( v46 <= *(_DWORD *)&m_parent[1].m_isblack )
{
insert_unique_pos = (__int64)m_parent;
m_parent = m_parent->m_left;
if ( !m_parent )
goto LABEL_6;
}
m_parent = m_parent->m_right;
}
while ( m_parent );
LABEL_6:
if ( p_m_header == (std::_rb_tree_base *)insert_unique_pos )
{
LABEL_25:
v52 = (int *)operator new(0x28u);
v55 = v52 + 8;
v52[8] = v46;
v52[9] = 0;
if ( a1->m_iconPages.m_nodecount )
{
m_right = a1->m_iconPages.m_header.m_right;
if ( v46 > *(_DWORD *)&m_right[1].m_isblack )
{
insert_unique_pos = 0;
goto LABEL_14;
}
}
goto LABEL_28;
}
if ( v46 < *(_DWORD *)(insert_unique_pos + 32) )
break;
LABEL_19:
*(_DWORD *)(insert_unique_pos + 36) = -1;
if ( ++v2 >= (unsigned int)cocos2d::CCArray::count(a1->m_tabButtons) )
goto LABEL_20;
}
v51 = operator new(0x28u);
*(_DWORD *)(v51 + 32) = v46;
*(_DWORD *)(v51 + 36) = 0;
v52 = (int *)v51;
v53 = *(_DWORD *)(insert_unique_pos + 32);
if ( v46 < v53 )
{
v89 = (int *)(v51 + 32);
if ( a1->m_iconPages.m_header.m_left == (std::_rb_tree_base *)insert_unique_pos )
{
m_right = (std::_rb_tree_base *)insert_unique_pos;
goto LABEL_14;
}
v84 = (int *)v51;
m_right = (std::_rb_tree_base *)sub_CFABD4(insert_unique_pos);
v52 = v84;
v55 = v89;
if ( v46 > *(_DWORD *)&m_right[1].m_isblack )
{
if ( m_right->m_right )
m_right = (std::_rb_tree_base *)insert_unique_pos;
else
insert_unique_pos = 0;
goto LABEL_14;
}
goto LABEL_28;
}
if ( v46 <= v53 )
goto LABEL_24;
v92 = (int *)(v51 + 32);
if ( a1->m_iconPages.m_header.m_right != (std::_rb_tree_base *)insert_unique_pos )
{
v86 = (int *)v51;
v83 = *(_DWORD *)(insert_unique_pos + 32);
m_right = (std::_rb_tree_base *)sub_CFAB14(insert_unique_pos);
v52 = v86;
v55 = v92;
if ( v46 >= *(_DWORD *)&m_right[1].m_isblack )
{
LABEL_28:
v91 = v52;
insert_unique_pos = std::_Rb_tree,std::_Select1st>,std::less,std::allocator>>::_M_get_insert_unique_pos(
(__int64)&a1->m_iconPages,
v55);
m_right = v82;
v52 = v91;
if ( !v82 )
{
LABEL_24:
operator delete(v52);
goto LABEL_19;
}
LABEL_14:
if ( insert_unique_pos || p_m_header == m_right )
{
insert_unique_pos = (__int64)v52;
v56 = 1;
goto LABEL_18;
}
v46 = v52[8];
v53 = *(_DWORD *)&m_right[1].m_isblack;
LABEL_17:
insert_unique_pos = (__int64)v52;
v56 = v46 < v53;
LABEL_18:
sub_CFAD74(v56, v52, m_right, &a1->m_iconPages.m_header);
++a1->m_iconPages.m_nodecount;
goto LABEL_19;
}
v53 = v83;
if ( *(_QWORD *)(insert_unique_pos + 24) )
{
insert_unique_pos = (__int64)m_right;
goto LABEL_14;
}
}
m_right = (std::_rb_tree_base *)insert_unique_pos;
goto LABEL_17;
}
LABEL_20:
cocos2d::CCMenu::alignItemsHorizontallyWithPadding(v12, 2.0);
v57 = v12->setPosition;
cocos2d::CCPoint::CCPoint(&v98.origin, v93 * 0.5, (float)(v94 * 0.5) + 30.0);
v57(v12, &v98.origin);
v58 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_select_001.png");
v59 = v58->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
a1->m_cursor1 = v58;
((void (__fastcall *)(float))v59->setScale)(0.85);
a1->addChild_0(a1, a1->m_cursor1, 1);
v60 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_select_001.png");
v61 = v60->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
a1->m_cursor2 = v60;
((void (__fastcall *)(float))v61->setScale)(0.85);
a1->addChild_0(a1, a1->m_cursor2, 1);
v62 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"GJ_arrow_%02d_001.png",
(const char *)&dword_0 + 1);
CString = cocos2d::CCString::getCString(v62);
v64 = cocos2d::CCSprite::createWithSpriteFrameName(CString);
v64->setScale(v64, 0.8);
v101.adj = (size_t)GJGarageLayer::onArrow;
v101.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1;
v65 = CCMenuItemSpriteExtra::create(v64, nullptr, v101);
v66 = v12->cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
a1->m_leftArrow = v65;
v66->addChild(v12, v65);
CCMenuItemSpriteExtra::setSizeMult(a1->m_leftArrow, 2.2);
m_leftArrow = a1->m_leftArrow;
v85 = m_leftArrow->setPosition;
v90 = (__int64)v5->getPosition(v5);
cocos2d::CCPoint::CCPoint(&v96, -220.0, 0.0);
cocos2d::CCPoint::operator+(&v97, v90, &v96);
v99 = cocos2d::CCNode::convertToNodeSpace(v12, &v97);
((void (__fastcall *)(CCMenuItemSpriteExtra *, cocos2d::CCRect *, float, float))v85)(m_leftArrow, &v98, v99.x, v99.y);
v68 = cocos2d::CCSprite::createWithSpriteFrameName(CString);
v68->setScale(v68, 0.8);
cocos2d::CCSprite::setFlipX(v68, 1);
v102.adj = (size_t)GJGarageLayer::onArrow;
v102.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1;
v69 = CCMenuItemSpriteExtra::create(v68, nullptr, v102);
v70 = v12->cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
a1->m_rightArrow = v69;
((void (__fastcall *)(cocos2d::CCMenu *))v70->addChild)(v12);
a1->m_rightArrow->setTag(a1->m_rightArrow, 1);
m_rightArrow = a1->m_rightArrow;
v72 = v5;
getPosition = v5->getPosition;
v74 = m_rightArrow->setPosition;
v75 = (__int64)getPosition(v72);
cocos2d::CCPoint::CCPoint(&v96, 220.0, 0.0);
cocos2d::CCPoint::operator+(&v97, v75, &v96);
v100 = cocos2d::CCNode::convertToNodeSpace(v12, &v97);
((void (__fastcall *)(CCMenuItemSpriteExtra *, cocos2d::CCRect *, float, float))v74)(
m_rightArrow,
&v98,
v100.x,
v100.y);
CCMenuItemSpriteExtra::setSizeMult(a1->m_rightArrow, 2.2);
v77 = (cocos2d::CCArray *)cocos2d::CCArray::create(v76);
a1->m_pageButtons = v77;
cocos2d::CCObject::retain(v77);
v78 = cocos2d::CCMenu::create();
v79 = a1->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
a1->m_navDotMenu = v78;
((void (__fastcall *)(GJGarageLayer *))v79->addChild)(a1);
m_navDotMenu = a1->m_navDotMenu;
v81 = m_navDotMenu->setPosition;
cocos2d::CCPoint::CCPoint(&v98.origin, v93 * 0.5, 25.0);
v81(m_navDotMenu, &v98.origin);
GJGarageLayer::selectTab(a1, Cube);
}