//
// sub_601AE0 from 0x601ae0 to 0x602508 (2600 bytes)
//
// 1 xrefs:
// > ColorSelectLiveOverlay::init @ 0x602538
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:54:41 +0000
//
int __fastcall sub_601AE0(_BYTE *a1, cocos2d::CCObject *this, cocos2d::CCObject *a3, cocos2d::CCObject *a4)
{
cocos2d::CCArray *v6; // r0
cocos2d::CCObject *v7; // r0
cocos2d::CCObject *v8; // r0
cocos2d::CCDirector *v9; // r0
const char *v10; // r1
float *v11; // r8
const char *v12; // r1
int v13; // r0
const char *v14; // r1
int v15; // r6
const char *v16; // r1
int v17; // r0
const char *v18; // r1
int v19; // r6
void (__fastcall *v20)(int, _DWORD *); // r11
const char *v21; // r1
int v22; // r0
int v23; // r6
void (__fastcall *v24)(int, _DWORD *); // r11
int v25; // r6
void (__fastcall *v26)(int, _DWORD *); // r11
int v27; // r6
void (__fastcall *v28)(int, _DWORD *); // r11
Slider *v29; // r0
int v30; // r9
int v31; // r0
int v32; // r2
int v33; // r3
int Thumb; // r0
Slider *v35; // r0
int v36; // r8
void (__fastcall *v37)(int, int); // r9
int v38; // r0
int v39; // r2
int v40; // r3
int v41; // r0
Slider *v42; // r0
int v43; // r8
void (__fastcall *v44)(int, int); // r9
int v45; // r0
int v46; // r2
int v47; // r3
int v48; // r0
Slider *v49; // r0
int v50; // r8
void (__fastcall *v51)(int, int); // r9
int v52; // r0
int v53; // r2
int v54; // r3
int v55; // r0
int v56; // r8
void (__fastcall *v57)(int, _DWORD *); // r9
int v58; // r11
const char *v59; // r1
int v60; // r0
const char *v61; // r1
int v62; // r0
int v63; // r11
const char *v64; // r2
int v65; // r0
int v66; // r11
const char *v67; // r1
int v68; // r5
cocos2d::CCMenu *v69; // r0
int v70; // r0
int v71; // r5
int v72; // r11
cocos2d::CCArray *v73; // r0
cocos2d::CCObject *v74; // r0
cocos2d::CCObject *v75; // r9
int v76; // r5
cocos2d::CCObject *v77; // r7
int v78; // r6
const cocos2d::CCPoint *v79; // r7
const cocos2d::CCPoint *v80; // r11
void (__fastcall *v81)(int, _BYTE *); // r9
int v82; // r5
void (__fastcall *v84)(int, _DWORD *); // [sp+10h] [bp-94h]
void (__fastcall *v85)(int, _DWORD *); // [sp+10h] [bp-94h]
void (__fastcall *v86)(int, _DWORD *); // [sp+10h] [bp-94h]
int v87; // [sp+10h] [bp-94h]
int v88; // [sp+10h] [bp-94h]
void (__fastcall *v89)(int, _DWORD *); // [sp+10h] [bp-94h]
float v90; // [sp+10h] [bp-94h]
void (__fastcall *v91)(int, _BYTE *); // [sp+10h] [bp-94h]
int v92; // [sp+14h] [bp-90h]
void (__fastcall *v93)(int, _DWORD *); // [sp+14h] [bp-90h]
void (__fastcall *v94)(int, _DWORD *); // [sp+14h] [bp-90h]
void (__fastcall *v95)(int, int); // [sp+20h] [bp-84h]
_BYTE v96[8]; // [sp+2Ch] [bp-78h] BYREF
_BYTE v97[8]; // [sp+34h] [bp-70h] BYREF
_BYTE v98[8]; // [sp+3Ch] [bp-68h] BYREF
_BYTE v99[8]; // [sp+44h] [bp-60h] BYREF
_BYTE v100[8]; // [sp+4Ch] [bp-58h] BYREF
_BYTE v101[8]; // [sp+54h] [bp-50h] BYREF
_DWORD v102[2]; // [sp+5Ch] [bp-48h] BYREF
_DWORD v103[8]; // [sp+64h] [bp-40h] BYREF
_DWORD v104[2]; // [sp+84h] [bp-20h] BYREF
_DWORD v105[4]; // [sp+8Ch] [bp-18h] BYREF
v6 = (cocos2d::CCArray *)_stack_chk_guard;
if ( this )
{
*((_DWORD *)a1 + 133) = this;
v6 = (cocos2d::CCArray *)cocos2d::CCObject::retain(this);
if ( a3 )
{
LABEL_3:
*((_DWORD *)a1 + 134) = a3;
v7 = a3;
LABEL_7:
v6 = (cocos2d::CCArray *)cocos2d::CCObject::retain(v7);
}
}
else
{
if ( a3 )
goto LABEL_3;
if ( a4 )
{
v7 = a4;
*((_DWORD *)a1 + 130) = a4;
goto LABEL_7;
}
}
a1[574] = 1;
a1[468] = 1;
v8 = (cocos2d::CCObject *)cocos2d::CCArray::create(v6);
*((_DWORD *)a1 + 131) = v8;
cocos2d::CCObject::retain(v8);
*((_QWORD *)a1 + 77) = 0x3FF0000000000000LL;
*((_QWORD *)a1 + 78) = 0x3FF0000000000000LL;
*((_QWORD *)a1 + 79) = 0x3FF0000000000000LL;
ColorSelectLiveOverlay::determineStartValues((int)a1);
(*(void (__fastcall **)(_BYTE *, _DWORD))(*(_DWORD *)a1 + 500))(a1, 0);
v9 = (cocos2d::CCDirector *)(*(int (__fastcall **)(_BYTE *, _DWORD))(*(_DWORD *)a1 + 536))(a1, 0);
a1[572] = 1;
cocos2d::CCDirector::sharedDirector(v9);
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v96);
v11 = (float *)cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"hueBar.png", v10);
(*(void (__fastcall **)(_DWORD, float *))(**((_DWORD **)a1 + 115) + 228))(*((_DWORD *)a1 + 115), v11);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)a1 + 131), (cocos2d::CCObject *)v11);
v13 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"saturationBarBottom.png", v12);
*((_DWORD *)a1 + 150) = v13;
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)a1 + 115) + 228))(*((_DWORD *)a1 + 115), v13);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)a1 + 131), *((cocos2d::CCObject **)a1 + 150));
v15 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"saturationBarTop.png", v14);
(*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)a1 + 150) + 232))(*((_DWORD *)a1 + 150), v15, 1);
v84 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v15 + 92);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v105, *((const cocos2d::CCPoint **)a1 + 150));
v84(v15, v105);
v17 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"saturationBarBottom.png", v16);
*((_DWORD *)a1 + 151) = v17;
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)a1 + 115) + 228))(*((_DWORD *)a1 + 115), v17);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)a1 + 131), *((cocos2d::CCObject **)a1 + 151));
v19 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"saturationBarTop.png", v18);
(*(void (__fastcall **)(int, void *))(*(_DWORD *)v19 + 480))(v19, &unk_BEE723);
(*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)a1 + 151) + 232))(*((_DWORD *)a1 + 151), v19, 1);
v20 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v19 + 92);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v105, *((const cocos2d::CCPoint **)a1 + 151));
v20(v19, v105);
v22 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"saturationBarTop.png", v21);
*((_DWORD *)a1 + 152) = v22;
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)a1 + 115) + 228))(*((_DWORD *)a1 + 115), v22);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)a1 + 131), *((cocos2d::CCObject **)a1 + 152));
(*(void (__fastcall **)(float *, _DWORD))(*(_DWORD *)v11 + 64))(v11, 14.0 / v11[86]);
(*(void (__fastcall **)(float *, _DWORD))(*(_DWORD *)v11 + 72))(v11, 110.0 / v11[87]);
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)a1 + 150) + 64))(
*((_DWORD *)a1 + 150),
14.0 / *(float *)(*((_DWORD *)a1 + 150) + 344));
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)a1 + 150) + 72))(
*((_DWORD *)a1 + 150),
110.0 / *(float *)(*((_DWORD *)a1 + 150) + 348));
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)a1 + 151) + 64))(
*((_DWORD *)a1 + 151),
14.0 / *(float *)(*((_DWORD *)a1 + 151) + 344));
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)a1 + 151) + 72))(
*((_DWORD *)a1 + 151),
110.0 / *(float *)(*((_DWORD *)a1 + 151) + 348));
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)a1 + 152) + 64))(
*((_DWORD *)a1 + 152),
14.0 / *(float *)(*((_DWORD *)a1 + 152) + 344));
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)a1 + 152) + 72))(
*((_DWORD *)a1 + 152),
-(float)(110.0 / *(float *)(*((_DWORD *)a1 + 152) + 348)));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v97, 90.0, 180.0);
(*(void (__fastcall **)(float *, _BYTE *))(*(_DWORD *)v11 + 92))(v11, v97);
v23 = *((_DWORD *)a1 + 150);
v24 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v23 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v104, 34.0, 0.0);
cocos2d::CCPoint::operator+(v105, v97, v104);
v24(v23, v105);
v25 = *((_DWORD *)a1 + 151);
v26 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v25 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v104, 68.0, 0.0);
cocos2d::CCPoint::operator+(v105, v97, v104);
v26(v25, v105);
v27 = *((_DWORD *)a1 + 152);
v28 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v27 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v104, 102.0, 0.0);
cocos2d::CCPoint::operator+(v105, v97, v104);
v28(v27, v105);
v104[0] = ColorSelectLiveOverlay::sliderChanged;
v104[1] = 0;
v29 = (Slider *)Slider::create(
(int)a1,
(int)ColorSelectLiveOverlay::sliderChanged,
0,
(cocos2d::CCSprite *)"sliderBar.png",
(cocos2d::CCSprite *)"slidergroove_02.png",
(int)"GJ_colorThumbBtn.png",
(int)"GJ_colorThumbSBtn.png",
1.0);
*((_DWORD *)a1 + 144) = v29;
Slider::setBarVisibility(v29, 0);
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)a1 + 115) + 228))(*((_DWORD *)a1 + 115), *((_DWORD *)a1 + 144));
v30 = *((_DWORD *)a1 + 144);
v95 = *(void (__fastcall **)(int, int))(*(_DWORD *)v30 + 92);
v31 = (*(int (__fastcall **)(float *))(*(_DWORD *)v11 + 96))(v11);
v95(v30, v31);
Slider::setRotated(*((SliderTouchLogic ***)a1 + 144), 1, v32, v33);
Slider::setMaxOffset(*((SliderTouchLogic ***)a1 + 144), 110.0);
Slider::hideGroove(*((Slider **)a1 + 144), 1);
Thumb = Slider::getThumb(*((Slider **)a1 + 144));
(*(void (__fastcall **)(int, int))(*(_DWORD *)Thumb + 36))(Thumb, 1);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)a1 + 131), *((cocos2d::CCObject **)a1 + 144));
v103[6] = ColorSelectLiveOverlay::sliderChanged;
v103[7] = 0;
v35 = (Slider *)Slider::create(
(int)a1,
(int)ColorSelectLiveOverlay::sliderChanged,
0,
(cocos2d::CCSprite *)"sliderBar.png",
(cocos2d::CCSprite *)"slidergroove_02.png",
(int)"GJ_colorThumbBtn.png",
(int)"GJ_colorThumbSBtn.png",
1.0);
*((_DWORD *)a1 + 145) = v35;
Slider::setBarVisibility(v35, 0);
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)a1 + 115) + 228))(*((_DWORD *)a1 + 115), *((_DWORD *)a1 + 145));
v36 = *((_DWORD *)a1 + 145);
v37 = *(void (__fastcall **)(int, int))(*(_DWORD *)v36 + 92);
v38 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)a1 + 150) + 96))(*((_DWORD *)a1 + 150));
v37(v36, v38);
Slider::setRotated(*((SliderTouchLogic ***)a1 + 145), 1, v39, v40);
Slider::setMaxOffset(*((SliderTouchLogic ***)a1 + 145), 110.0);
Slider::hideGroove(*((Slider **)a1 + 145), 1);
v41 = Slider::getThumb(*((Slider **)a1 + 145));
(*(void (__fastcall **)(int, int))(*(_DWORD *)v41 + 36))(v41, 2);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)a1 + 131), *((cocos2d::CCObject **)a1 + 145));
v103[4] = ColorSelectLiveOverlay::sliderChanged;
v103[5] = 0;
v42 = (Slider *)Slider::create(
(int)a1,
(int)ColorSelectLiveOverlay::sliderChanged,
0,
(cocos2d::CCSprite *)"sliderBar.png",
(cocos2d::CCSprite *)"slidergroove_02.png",
(int)"GJ_colorThumbBtn.png",
(int)"GJ_colorThumbSBtn.png",
1.0);
*((_DWORD *)a1 + 146) = v42;
Slider::setBarVisibility(v42, 0);
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)a1 + 115) + 228))(*((_DWORD *)a1 + 115), *((_DWORD *)a1 + 146));
v43 = *((_DWORD *)a1 + 146);
v44 = *(void (__fastcall **)(int, int))(*(_DWORD *)v43 + 92);
v45 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)a1 + 151) + 96))(*((_DWORD *)a1 + 151));
v44(v43, v45);
Slider::setRotated(*((SliderTouchLogic ***)a1 + 146), 1, v46, v47);
Slider::setMaxOffset(*((SliderTouchLogic ***)a1 + 146), 110.0);
Slider::hideGroove(*((Slider **)a1 + 146), 1);
v48 = Slider::getThumb(*((Slider **)a1 + 146));
(*(void (__fastcall **)(int, int))(*(_DWORD *)v48 + 36))(v48, 3);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)a1 + 131), *((cocos2d::CCObject **)a1 + 146));
v103[2] = ColorSelectLiveOverlay::sliderChanged;
v103[3] = 0;
v49 = (Slider *)Slider::create(
(int)a1,
(int)ColorSelectLiveOverlay::sliderChanged,
0,
(cocos2d::CCSprite *)"sliderBar.png",
(cocos2d::CCSprite *)"slidergroove_02.png",
(int)"GJ_colorThumbBtn.png",
(int)"GJ_colorThumbSBtn.png",
1.0);
*((_DWORD *)a1 + 147) = v49;
Slider::setBarVisibility(v49, 0);
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)a1 + 115) + 228))(*((_DWORD *)a1 + 115), *((_DWORD *)a1 + 147));
v50 = *((_DWORD *)a1 + 147);
v51 = *(void (__fastcall **)(int, int))(*(_DWORD *)v50 + 92);
v52 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)a1 + 152) + 96))(*((_DWORD *)a1 + 152));
v51(v50, v52);
Slider::setRotated(*((SliderTouchLogic ***)a1 + 147), 1, v53, v54);
Slider::setMaxOffset(*((SliderTouchLogic ***)a1 + 147), 110.0);
Slider::hideGroove(*((Slider **)a1 + 147), 1);
v55 = Slider::getThumb(*((Slider **)a1 + 147));
(*(void (__fastcall **)(int, int))(*(_DWORD *)v55 + 36))(v55, 4);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)a1 + 131), *((cocos2d::CCObject **)a1 + 147));
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v105, 0.0, 0.0, 80.0, 80.0);
v56 = cocos2d::extension::CCScale9Sprite::create("square02_001.png", v105);
v57 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v56 + 160);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v105, 130.0, 130.0);
v57(v56, v105);
(*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)a1 + 115) + 232))(*((_DWORD *)a1 + 115), v56, -1);
v85 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v56 + 92);
v58 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)a1 + 145) + 96))(*((_DWORD *)a1 + 145));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v103, 17.0, 0.0);
cocos2d::CCPoint::operator+(v105, v58, v103);
v85(v56, v105);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v56 + 456))(v56, 125);
v60 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"whiteSquare60_001.png", v59);
*((_DWORD *)a1 + 148) = v60;
(*(void (__fastcall **)(int, int))(*(_DWORD *)v60 + 80))(v60, 1056964608);
(*(void (__fastcall **)(_DWORD, _DWORD, int))(**((_DWORD **)a1 + 115) + 232))(
*((_DWORD *)a1 + 115),
*((_DWORD *)a1 + 148),
5);
v92 = *((_DWORD *)a1 + 148);
v86 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v92 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v103, 130.0, -40.0);
cocos2d::CCPoint::operator+(v105, v97, v103);
v86(v92, v105);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)a1 + 131), *((cocos2d::CCObject **)a1 + 148));
v62 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"whiteSquare60_001.png", v61);
*((_DWORD *)a1 + 149) = v62;
(*(void (__fastcall **)(int, int))(*(_DWORD *)v62 + 80))(v62, 1056964608);
(*(void (__fastcall **)(_DWORD, _DWORD, int))(**((_DWORD **)a1 + 115) + 232))(
*((_DWORD *)a1 + 115),
*((_DWORD *)a1 + 149),
5);
v63 = *((_DWORD *)a1 + 149);
v93 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v63 + 92);
v87 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)a1 + 148) + 96))(*((_DWORD *)a1 + 148));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v103, 0.0, -15.0);
cocos2d::CCPoint::operator+(v105, v87, v103);
v93(v63, v105);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)a1 + 131), *((cocos2d::CCObject **)a1 + 149));
(*(void (__fastcall **)(_DWORD, _BYTE *))(**((_DWORD **)a1 + 148) + 480))(*((_DWORD *)a1 + 148), a1 + 546);
(*(void (__fastcall **)(_DWORD, _BYTE *))(**((_DWORD **)a1 + 149) + 480))(*((_DWORD *)a1 + 149), a1 + 546);
v65 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"label", "goldFont.fnt", v64);
*((_DWORD *)a1 + 160) = v65;
(*(void (__fastcall **)(int, int))(*(_DWORD *)v65 + 80))(v65, 1056964608);
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)a1 + 115) + 228))(*((_DWORD *)a1 + 115), *((_DWORD *)a1 + 160));
v66 = *((_DWORD *)a1 + 160);
v94 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v66 + 92);
v88 = (*(int (__fastcall **)(int))(*(_DWORD *)v56 + 96))(v56);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v103, 0.0, 75.0);
cocos2d::CCPoint::operator+(v105, v88, v103);
v94(v66, v105);
v68 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_closeBtn_001.png", v67);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v68 + 80))(v68, 1056964608);
v105[0] = ColorSelectLiveOverlay::closeColorSelect;
v105[1] = 0;
v69 = (cocos2d::CCMenu *)CCMenuItemSpriteExtra::create(
v68,
0,
(int)a1,
(int)ColorSelectLiveOverlay::closeColorSelect,
0);
v70 = cocos2d::CCMenu::create(v69, nullptr);
*((_DWORD *)a1 + 111) = v70;
(*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)a1 + 115) + 232))(*((_DWORD *)a1 + 115), v70, 10);
v71 = *((_DWORD *)a1 + 111);
v89 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v71 + 92);
v72 = (*(int (__fastcall **)(int))(*(_DWORD *)v56 + 96))(v56);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v102, -74.0, 65.0);
cocos2d::CCPoint::operator+(v103, v72, v102);
v89(v71, v103);
v73 = (cocos2d::CCArray *)ColorSelectLiveOverlay::selectColor(
(int)a1,
*((unsigned __int16 *)a1 + 273) | ((unsigned __int8)a1[548] << 16));
if ( *((_DWORD *)a1 + 133) && *((_DWORD *)a1 + 134) )
{
v74 = (cocos2d::CCObject *)cocos2d::CCArray::create(v73);
*((_DWORD *)a1 + 132) = v74;
cocos2d::CCObject::retain(v74);
v75 = ButtonSprite::create(
(ButtonSprite *)a1i2r3e45s789g,
(const char *)&dword_14,
0,
0.5,
1,
"bigFont.fnt",
"GJ_button_01.png",
COERCE_CONST_CHAR_(30.0),
*(float *)&v89);
(*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v75 + 80))(v75, 1058642330);
v103[0] = ColorSelectLiveOverlay::onSelectTab;
v103[1] = 0;
v76 = CCMenuItemSpriteExtra::create((int)v75, 0, (int)a1, (int)ColorSelectLiveOverlay::onSelectTab, 0);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)a1 + 111) + 228))(*((_DWORD *)a1 + 111), v76);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v76 + 36))(v76, 1);
(*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v75 + 36))(v75, 1);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)a1 + 132), v75);
v77 = ButtonSprite::create(
(ButtonSprite *)&a1i2r3e45s789g[2],
(const char *)&dword_14,
0,
0.5,
1,
"bigFont.fnt",
"GJ_button_04.png",
COERCE_CONST_CHAR_(30.0),
v90);
(*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v77 + 80))(v77, 1058642330);
v102[0] = ColorSelectLiveOverlay::onSelectTab;
v102[1] = 0;
v78 = CCMenuItemSpriteExtra::create((int)v77, 0, (int)a1, (int)ColorSelectLiveOverlay::onSelectTab, 0);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)a1 + 111) + 228))(*((_DWORD *)a1 + 111), v78);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v78 + 36))(v78, 2);
(*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v77 + 36))(v77, 2);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)a1 + 132), v77);
v79 = *((const cocos2d::CCPoint **)a1 + 115);
v80 = *((const cocos2d::CCPoint **)a1 + 111);
v91 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v76 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v98, 130.0, 50.0);
cocos2d::CCPoint::operator+(v99, v97, v98);
cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)v100, v79);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v101, v80);
v91(v76, v101);
v81 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v78 + 92);
v82 = (*(int (__fastcall **)(int))(*(_DWORD *)v76 + 96))(v76);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v100, 0.0, -24.0);
cocos2d::CCPoint::operator+(v101, v82, v100);
v81(v78, v101);
}
ColorSelectLiveOverlay::updateColorLabel((ColorSelectLiveOverlay *)a1);
a1[572] = 0;
a1[574] = 0;
return 1;
}