//
// ColorSelectLiveOverlay::init from 0xa659c0 to 0xa66774 (3508 bytes)
//
// 2 xrefs:
// > ColorSelectLiveOverlay::create @ 0xa66930
// > ??> @ 0xf8f68
//
// This function is hookable on this platform (idp: arm, 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 13:00:17 +0000
//
__int64 __fastcall ColorSelectLiveOverlay::init(
ColorSelectLiveOverlay *this,
ColorAction *a2,
ColorAction *a3,
EffectGameObject *a4)
{
__int64 v7; // x0
cocos2d::CCObject *v8; // x0
cocos2d::CCDirector *v9; // x0
cocos2d::CCDirector *v10; // x0
const char *v11; // x1
float *v12; // x28
const char *v13; // x1
__int64 v14; // x0
const char *v15; // x1
__int64 v16; // x27
const char *v17; // x1
__int64 v18; // x0
const char *v19; // x1
__int64 v20; // x25
void (__fastcall *v21)(__int64, __int64 *); // x26
const char *v22; // x1
__int64 v23; // x0
__int64 v24; // x24
void (__fastcall *v25)(__int64, __int64 *); // x25
__int64 v26; // x24
void (__fastcall *v27)(__int64, __int64 *); // x25
__int64 v28; // x24
void (__fastcall *v29)(__int64, __int64 *); // x25
Slider *v30; // x0
__int64 v31; // x0
__int64 Thumb; // x0
Slider *v33; // x0
__int64 v34; // x0
__int64 v35; // x0
Slider *v36; // x0
__int64 v37; // x0
__int64 v38; // x0
Slider *v39; // x0
__int64 v40; // x24
void (__fastcall *v41)(__int64, __int64); // x25
__int64 v42; // x0
__int64 v43; // x0
__int64 v44; // x24
void (__fastcall *v45)(__int64, __int64 *); // x25
void (__fastcall *v46)(__int64, __int64 *); // x25
__int64 v47; // x26
const char *v48; // x1
__int64 v49; // x0
__int64 v50; // x26
void (__fastcall *v51)(__int64, __int64 *); // x27
const char *v52; // x1
__int64 v53; // x0
__int64 v54; // x25
void (__fastcall *v55)(__int64, __int64 *); // x26
__int64 v56; // x27
const char *v57; // x2
__int64 v58; // x0
__int64 v59; // x26
void (__fastcall *v60)(__int64, __int64 *); // x27
const char *v61; // x1
__int64 v62; // x26
cocos2d::CCMenu *v63; // x0
__int64 v64; // x0
__int64 v65; // x26
__int64 v66; // x0
__int64 (__fastcall *v67)(__int64); // x1
void (__fastcall *v68)(__int64, __int64 *); // x24
__int64 v69; // x27
cocos2d::CCArray *v70; // x0
cocos2d::CCObject *v71; // x0
const char *v72; // x6
cocos2d::CCObject *v73; // x26
__int64 v74; // x24
const char *v75; // x6
cocos2d::CCObject *v76; // x26
__int64 v77; // x22
void (__fastcall *v78)(__int64, __int64 *); // x26
void (__fastcall *v79)(__int64, __int64 *); // x23
__int64 v80; // x24
cocos2d::CCNode *v82; // [xsp+78h] [xbp+78h]
cocos2d::CCNode *v83; // [xsp+78h] [xbp+78h]
cocos2d::CCNode *v84; // [xsp+78h] [xbp+78h]
cocos2d::CCNode *v85; // [xsp+78h] [xbp+78h]
cocos2d::CCObject *v87; // [xsp+80h] [xbp+80h]
cocos2d::CCObject *v88; // [xsp+80h] [xbp+80h]
cocos2d::CCObject *v89; // [xsp+80h] [xbp+80h]
cocos2d::CCObject *v90; // [xsp+80h] [xbp+80h]
cocos2d::CCObject *v91; // [xsp+80h] [xbp+80h]
cocos2d::CCObject *v92; // [xsp+80h] [xbp+80h]
unsigned __int8 v93; // [xsp+8Fh] [xbp+8Fh]
__int64 v94; // [xsp+90h] [xbp+90h] BYREF
_BYTE v95[8]; // [xsp+98h] [xbp+98h] BYREF
__int64 v96; // [xsp+A0h] [xbp+A0h] BYREF
__int64 v97; // [xsp+A8h] [xbp+A8h] BYREF
__int64 v98; // [xsp+B0h] [xbp+B0h] BYREF
__int64 v99[2]; // [xsp+B8h] [xbp+B8h] BYREF
v93 = FLAlertLayer::init(this, 0);
v7 = v93;
if ( !v93 )
return v93;
if ( a2 )
{
*((_QWORD *)this + 86) = a2;
v7 = cocos2d::CCObject::retain(a2);
if ( !a3 )
goto LABEL_5;
}
else if ( !a3 )
{
if ( a4 )
{
*((_QWORD *)this + 83) = a4;
v7 = cocos2d::CCObject::retain(a4);
}
goto LABEL_5;
}
*((_QWORD *)this + 87) = a3;
v7 = cocos2d::CCObject::retain(a3);
LABEL_5:
*((_BYTE *)this + 746) = 1;
*((_BYTE *)this + 596) = 1;
v8 = (cocos2d::CCObject *)cocos2d::CCArray::create((cocos2d::CCArray *)v7);
*((_QWORD *)this + 84) = v8;
cocos2d::CCObject::retain(v8);
*((double *)this + 103) = 1.0;
*((double *)this + 104) = 1.0;
*((double *)this + 105) = 1.0;
ColorSelectLiveOverlay::determineStartValues((__int64)this);
(*(void (__fastcall **)(ColorSelectLiveOverlay *, _QWORD))(*(_QWORD *)this + 1000LL))(this, 0);
v9 = (cocos2d::CCDirector *)(*(__int64 (__fastcall **)(ColorSelectLiveOverlay *, _QWORD))(*(_QWORD *)this + 1072LL))(
this,
0);
*((_BYTE *)this + 744) = 1;
v10 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v9);
cocos2d::CCDirector::getWinSize(&v94, v10);
v12 = (float *)cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"hueBar.png", v11);
(*(void (__fastcall **)(_QWORD, float *))(**((_QWORD **)this + 73) + 456LL))(*((_QWORD *)this + 73), v12);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 84), (cocos2d::CCObject *)v12);
v14 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"saturationBarBottom.png", v13);
*((_QWORD *)this + 100) = v14;
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 73) + 456LL))(*((_QWORD *)this + 73), v14);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 84), *((cocos2d::CCObject **)this + 100));
v16 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"saturationBarTop.png", v15);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 100) + 464LL))(
*((_QWORD *)this + 100),
v16,
1);
v87 = *(cocos2d::CCObject **)(*(_QWORD *)v16 + 184LL);
cocos2d::CCNode::convertToNodeSpace(v99, *((cocos2d::CCNode **)this + 100), (const cocos2d::CCPoint *)&unk_155D6A8);
((void (__fastcall *)(__int64, __int64 *))v87)(v16, v99);
v18 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"saturationBarBottom.png", v17);
*((_QWORD *)this + 101) = v18;
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 73) + 456LL))(*((_QWORD *)this + 73), v18);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 84), *((cocos2d::CCObject **)this + 101));
v20 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"saturationBarTop.png", v19);
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v20 + 960LL))(v20, &unk_1173C60);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 101) + 464LL))(
*((_QWORD *)this + 101),
v20,
1);
v21 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v20 + 184LL);
cocos2d::CCNode::convertToNodeSpace(v99, *((cocos2d::CCNode **)this + 101), (const cocos2d::CCPoint *)&unk_155D6A8);
v21(v20, v99);
v23 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"saturationBarTop.png", v22);
*((_QWORD *)this + 102) = v23;
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 73) + 456LL))(*((_QWORD *)this + 73), v23);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 84), *((cocos2d::CCObject **)this + 102));
(*(void (__fastcall **)(float *, float))(*(_QWORD *)v12 + 128LL))(v12, 14.0 / v12[108]);
(*(void (__fastcall **)(float *, float))(*(_QWORD *)v12 + 144LL))(v12, 110.0 / v12[109]);
(*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 100) + 128LL))(
*((_QWORD *)this + 100),
14.0 / *(float *)(*((_QWORD *)this + 100) + 432LL));
(*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 100) + 144LL))(
*((_QWORD *)this + 100),
110.0 / *(float *)(*((_QWORD *)this + 100) + 436LL));
(*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 101) + 128LL))(
*((_QWORD *)this + 101),
14.0 / *(float *)(*((_QWORD *)this + 101) + 432LL));
(*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 101) + 144LL))(
*((_QWORD *)this + 101),
110.0 / *(float *)(*((_QWORD *)this + 101) + 436LL));
(*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 102) + 128LL))(
*((_QWORD *)this + 102),
14.0 / *(float *)(*((_QWORD *)this + 102) + 432LL));
(*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 102) + 144LL))(
*((_QWORD *)this + 102),
-(float)(110.0 / *(float *)(*((_QWORD *)this + 102) + 436LL)));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v95, 90.0, 180.0);
(*(void (__fastcall **)(float *, _BYTE *))(*(_QWORD *)v12 + 184LL))(v12, v95);
v24 = *((_QWORD *)this + 100);
v25 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v24 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v99, 34.0, 0.0);
cocos2d::CCPoint::operator+(&v98, v95);
v25(v24, &v98);
v26 = *((_QWORD *)this + 101);
v27 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v26 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v99, 68.0, 0.0);
cocos2d::CCPoint::operator+(&v98, v95);
v27(v26, &v98);
v28 = *((_QWORD *)this + 102);
v29 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v28 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v99, 102.0, 0.0);
cocos2d::CCPoint::operator+(&v98, v95);
v29(v28, &v98);
v30 = (Slider *)Slider::create(
(int)this,
(int)ColorSelectLiveOverlay::sliderChanged,
0,
(cocos2d::CCSprite *)"sliderBar.png",
(cocos2d::CCSprite *)"slidergroove_02.png",
(cocos2d::CCSprite *)"GJ_colorThumbBtn.png",
1.0);
*((_QWORD *)this + 94) = v30;
Slider::setBarVisibility(v30);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 73) + 456LL))(
*((_QWORD *)this + 73),
*((_QWORD *)this + 94));
v82 = *((cocos2d::CCNode **)this + 94);
v88 = *(cocos2d::CCObject **)(*(_QWORD *)v82 + 184LL);
v31 = (*(__int64 (__fastcall **)(float *))(*(_QWORD *)v12 + 192LL))(v12);
((void (__fastcall *)(cocos2d::CCNode *, __int64))v88)(v82, v31);
Slider::setRotated(*((SliderTouchLogic ***)this + 94), 1u);
Slider::setMaxOffset(*((SliderTouchLogic ***)this + 94), 110.0);
Slider::hideGroove(*((Slider **)this + 94), 1u);
Thumb = Slider::getThumb(*((Slider **)this + 94));
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)Thumb + 72LL))(Thumb, 1);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 84), *((cocos2d::CCObject **)this + 94));
v33 = (Slider *)Slider::create(
(int)this,
(int)ColorSelectLiveOverlay::sliderChanged,
0,
(cocos2d::CCSprite *)"sliderBar.png",
(cocos2d::CCSprite *)"slidergroove_02.png",
(cocos2d::CCSprite *)"GJ_colorThumbBtn.png",
1.0);
*((_QWORD *)this + 95) = v33;
Slider::setBarVisibility(v33);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 73) + 456LL))(
*((_QWORD *)this + 73),
*((_QWORD *)this + 95));
v83 = *((cocos2d::CCNode **)this + 95);
v89 = *(cocos2d::CCObject **)(*(_QWORD *)v83 + 184LL);
v34 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 100) + 192LL))(*((_QWORD *)this + 100));
((void (__fastcall *)(cocos2d::CCNode *, __int64))v89)(v83, v34);
Slider::setRotated(*((SliderTouchLogic ***)this + 95), 1u);
Slider::setMaxOffset(*((SliderTouchLogic ***)this + 95), 110.0);
Slider::hideGroove(*((Slider **)this + 95), 1u);
v35 = Slider::getThumb(*((Slider **)this + 95));
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v35 + 72LL))(v35, 2);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 84), *((cocos2d::CCObject **)this + 95));
v36 = (Slider *)Slider::create(
(int)this,
(int)ColorSelectLiveOverlay::sliderChanged,
0,
(cocos2d::CCSprite *)"sliderBar.png",
(cocos2d::CCSprite *)"slidergroove_02.png",
(cocos2d::CCSprite *)"GJ_colorThumbBtn.png",
1.0);
*((_QWORD *)this + 96) = v36;
Slider::setBarVisibility(v36);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 73) + 456LL))(
*((_QWORD *)this + 73),
*((_QWORD *)this + 96));
v84 = *((cocos2d::CCNode **)this + 96);
v90 = *(cocos2d::CCObject **)(*(_QWORD *)v84 + 184LL);
v37 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 101) + 192LL))(*((_QWORD *)this + 101));
((void (__fastcall *)(cocos2d::CCNode *, __int64))v90)(v84, v37);
Slider::setRotated(*((SliderTouchLogic ***)this + 96), 1u);
Slider::setMaxOffset(*((SliderTouchLogic ***)this + 96), 110.0);
Slider::hideGroove(*((Slider **)this + 96), 1u);
v38 = Slider::getThumb(*((Slider **)this + 96));
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v38 + 72LL))(v38, 3);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 84), *((cocos2d::CCObject **)this + 96));
v39 = (Slider *)Slider::create(
(int)this,
(int)ColorSelectLiveOverlay::sliderChanged,
0,
(cocos2d::CCSprite *)"sliderBar.png",
(cocos2d::CCSprite *)"slidergroove_02.png",
(cocos2d::CCSprite *)"GJ_colorThumbBtn.png",
1.0);
*((_QWORD *)this + 97) = v39;
Slider::setBarVisibility(v39);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 73) + 456LL))(
*((_QWORD *)this + 73),
*((_QWORD *)this + 97));
v40 = *((_QWORD *)this + 97);
v41 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v40 + 184LL);
v42 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 102) + 192LL))(*((_QWORD *)this + 102));
v41(v40, v42);
Slider::setRotated(*((SliderTouchLogic ***)this + 97), 1u);
Slider::setMaxOffset(*((SliderTouchLogic ***)this + 97), 110.0);
Slider::hideGroove(*((Slider **)this + 97), 1u);
v43 = Slider::getThumb(*((Slider **)this + 97));
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v43 + 72LL))(v43, 4);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 84), *((cocos2d::CCObject **)this + 97));
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v99, 0.0, 0.0, 80.0, 80.0);
v44 = cocos2d::extension::CCScale9Sprite::create("square02_001.png", v99);
v45 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v44 + 320LL);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v99, 130.0, 130.0);
v45(v44, v99);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))(
*((_QWORD *)this + 73),
v44,
0xFFFFFFFFLL);
v46 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v44 + 184LL);
v47 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 95) + 192LL))(*((_QWORD *)this + 95));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v99, 17.0, 0.0);
cocos2d::CCPoint::operator+(&v98, v47);
v46(v44, &v98);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v44 + 912LL))(v44, 125);
v49 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"whiteSquare60_001.png", v48);
*((_QWORD *)this + 98) = v49;
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v49 + 160LL))(v49, 0.5);
(*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**((_QWORD **)this + 73) + 464LL))(
*((_QWORD *)this + 73),
*((_QWORD *)this + 98),
5);
v50 = *((_QWORD *)this + 98);
v51 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v50 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v99, 130.0, -40.0);
cocos2d::CCPoint::operator+(&v98, v95);
v51(v50, &v98);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 84), *((cocos2d::CCObject **)this + 98));
v53 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"whiteSquare60_001.png", v52);
*((_QWORD *)this + 99) = v53;
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v53 + 160LL))(v53, 0.5);
(*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**((_QWORD **)this + 73) + 464LL))(
*((_QWORD *)this + 73),
*((_QWORD *)this + 99),
5);
v54 = *((_QWORD *)this + 99);
v55 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v54 + 184LL);
v56 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 98) + 192LL))(*((_QWORD *)this + 98));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v99, 0.0, -15.0);
cocos2d::CCPoint::operator+(&v98, v56);
v55(v54, &v98);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 84), *((cocos2d::CCObject **)this + 99));
(*(void (__fastcall **)(_QWORD, char *))(**((_QWORD **)this + 98) + 960LL))(
*((_QWORD *)this + 98),
(char *)this + 710);
(*(void (__fastcall **)(_QWORD, char *))(**((_QWORD **)this + 99) + 960LL))(
*((_QWORD *)this + 99),
(char *)this + 710);
v58 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"label", "goldFont.fnt", v57);
*((_QWORD *)this + 106) = v58;
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v58 + 160LL))(v58, 0.5);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 73) + 456LL))(
*((_QWORD *)this + 73),
*((_QWORD *)this + 106));
v59 = *((_QWORD *)this + 106);
v60 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v59 + 184LL);
v91 = (cocos2d::CCObject *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v44 + 192LL))(v44);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v99, 0.0, 75.0);
cocos2d::CCPoint::operator+(&v98, v91);
v60(v59, &v98);
v62 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_closeBtn_001.png", v61);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v62 + 160LL))(v62, 0.5);
v63 = (cocos2d::CCMenu *)CCMenuItemSpriteExtra::create(
v62,
0,
(__int64)this,
(__int64)ColorSelectLiveOverlay::closeColorSelect,
0);
v64 = cocos2d::CCMenu::create(v63, nullptr);
*((_QWORD *)this + 69) = v64;
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))(*((_QWORD *)this + 73), v64, 10);
v65 = *((_QWORD *)this + 69);
v66 = v44;
v67 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v44 + 192LL);
v68 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v65 + 184LL);
v69 = v67(v66);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v99, -74.0, 65.0);
cocos2d::CCPoint::operator+(&v98, v69);
v68(v65, &v98);
ColorSelectLiveOverlay::selectColor((__int64)this, *(_QWORD *)((char *)this + 710));
if ( *((_QWORD *)this + 86) )
{
v70 = *((cocos2d::CCArray **)this + 87);
if ( v70 )
{
v71 = (cocos2d::CCObject *)cocos2d::CCArray::create(v70);
*((_QWORD *)this + 85) = v71;
cocos2d::CCObject::retain(v71);
v73 = (cocos2d::CCObject *)ButtonSprite::create(
(ButtonSprite *)"1",
(const char *)&dword_14,
0,
1,
0.5,
"bigFont.fnt",
"GJ_button_01.png",
v72,
30.0);
(*(void (__fastcall **)(cocos2d::CCObject *, float))(*(_QWORD *)v73 + 160LL))(v73, 0.6);
v74 = CCMenuItemSpriteExtra::create(
(__int64)v73,
0,
(__int64)this,
(__int64)ColorSelectLiveOverlay::onSelectTab,
0);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v74);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v74 + 72LL))(v74, 1);
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v73 + 72LL))(v73, 1);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 85), v73);
v76 = (cocos2d::CCObject *)ButtonSprite::create(
(ButtonSprite *)&byte_120A098,
(const char *)&dword_14,
0,
1,
0.5,
"bigFont.fnt",
"GJ_button_04.png",
v75,
30.0);
(*(void (__fastcall **)(cocos2d::CCObject *, float))(*(_QWORD *)v76 + 160LL))(v76, 0.6);
v77 = CCMenuItemSpriteExtra::create(
(__int64)v76,
0,
(__int64)this,
(__int64)ColorSelectLiveOverlay::onSelectTab,
0);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v77);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v77 + 72LL))(v77, 2);
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v76 + 72LL))(v76, 2);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 85), v76);
v85 = *((cocos2d::CCNode **)this + 69);
v78 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v74 + 184LL);
v92 = *((cocos2d::CCObject **)this + 73);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v99, 130.0, 50.0);
cocos2d::CCPoint::operator+(&v98, v95);
cocos2d::CCNode::convertToWorldSpace(&v97, v92, (const cocos2d::CCPoint *)&v98);
cocos2d::CCNode::convertToNodeSpace(&v96, v85, (const cocos2d::CCPoint *)&v97);
v78(v74, &v96);
v79 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v77 + 184LL);
v80 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v74 + 192LL))(v74);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v99, 0.0, -24.0);
cocos2d::CCPoint::operator+(&v98, v80);
v79(v77, &v98);
}
}
ColorSelectLiveOverlay::updateColorLabel(this);
*((_BYTE *)this + 744) = 0;
*((_BYTE *)this + 746) = 0;
return v93;
}