//
// ColorSelectLiveOverlay::init from 0x1005957d0 to 0x100596627 (3671 bytes)
//
// 3 xrefs:
// > ColorSelectLiveOverlay::createWithObject @ 0x100595699
// > ColorSelectLiveOverlay::create @ 0x100595715
// > ColorSelectLiveOverlay::createWithActions @ 0x100595790
//
// This function is hookable on this platform (idp: pc, 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 12:32:29 +0000
//
__int64 __fastcall ColorSelectLiveOverlay::init(__int64 a1, __int64 a2, __int64 a3, __int64 a4)
{
__int64 v6; // rbx
__int64 result; // rax
__int64 v8; // rax
__int64 v9; // rax
__int64 v10; // rax
__int16 v11; // cx
char v12; // dl
double v13; // xmm0_8
__int64 v14; // rcx
__int64 v15; // rax
__int16 v16; // dx
char v17; // si
__int16 v18; // cx
__int64 v19; // rax
float *v20; // r15
char *v21; // rax
char *v22; // r12
double v23; // xmm0_8
char *v24; // rax
char *v25; // r14
double v26; // xmm0_8
char *v27; // rax
__int64 v28; // r14
__int64 v29; // r14
__int64 v30; // r14
char *v31; // rax
__int64 v32; // r12
__int64 v33; // rax
__int64 Thumb; // rax
char *v35; // rax
__int64 v36; // r15
__int64 v37; // rax
__int64 v38; // rax
char *v39; // rax
__int64 v40; // r15
__int64 v41; // rax
__int64 v42; // rax
char *v43; // rax
__int64 v44; // r14
__int64 v45; // rax
__int64 v46; // rax
void *v47; // r15
unsigned __int64 *v48; // r14
double v49; // xmm0_8
char *v50; // rax
__int64 v51; // r12
char *v52; // rax
__int64 v53; // r14
unsigned __int64 *v54; // r12
__int64 v55; // rax
__int64 v56; // r14
unsigned __int64 *v57; // r15
double v58; // xmm0_8
char *v59; // r14
unsigned int v60; // eax
int v61; // edx
int v62; // ecx
int v63; // r8d
int v64; // r9d
__int64 v65; // rax
__int64 v66; // r14
unsigned __int64 *v67; // r15
__int64 v68; // rax
char *v69; // r13
void *v70; // r14
char *v71; // r13
void *v72; // r15
__int64 v73; // r13
unsigned __int64 *v74; // r14
__int64 v75; // [rsp+10h] [rbp-70h] BYREF
unsigned __int64 v76; // [rsp+18h] [rbp-68h] BYREF
double v77; // [rsp+20h] [rbp-60h] BYREF
void *v78; // [rsp+28h] [rbp-58h]
unsigned __int64 v79; // [rsp+34h] [rbp-4Ch] BYREF
unsigned __int64 v80[2]; // [rsp+3Ch] [rbp-44h] BYREF
unsigned __int64 v81; // [rsp+4Ch] [rbp-34h] BYREF
unsigned __int8 v82; // [rsp+57h] [rbp-29h]
v6 = a1;
result = FLAlertLayer::init_1((_BYTE *)a1, 0);
if ( (_BYTE)result )
{
v82 = result;
if ( a2 )
{
*(_QWORD *)(a1 + 688) = a2;
a1 = a2;
cocos2d::CCObject::retain(a2);
}
v8 = 696;
if ( a3 || (v8 = 664, a3 = a4, a2 == 0 && a4 != 0) )
{
*(_QWORD *)(v6 + v8) = a3;
a1 = a3;
cocos2d::CCObject::retain(a3);
}
*(_BYTE *)(v6 + 746) = 1;
*(_BYTE *)(v6 + 596) = 1;
v9 = sub_1007FE900(a1);
*(_QWORD *)(v6 + 672) = v9;
cocos2d::CCObject::retain(v9);
*(_OWORD *)(v6 + 824) = xmmword_100A036A0;
*(_QWORD *)(v6 + 840) = 0x3FF0000000000000LL;
v10 = *(_QWORD *)(v6 + 664);
if ( v10 )
{
v11 = *(_WORD *)(v10 + 1448);
v12 = *(_BYTE *)(v10 + 1450);
*(_BYTE *)(v6 + 712) = v12;
*(_WORD *)(v6 + 710) = v11;
*(_QWORD *)&v13 = *(unsigned int *)(v10 + 1456);
*(_DWORD *)(v6 + 728) = LODWORD(v13);
*(_WORD *)(v6 + 704) = v11;
*(_BYTE *)(v6 + 706) = v12;
}
else
{
v14 = *(_QWORD *)(v6 + 688);
v15 = *(_QWORD *)(v6 + 696);
v16 = *(_WORD *)(v14 + 72);
v17 = *(_BYTE *)(v14 + 74);
*(_BYTE *)(v6 + 712) = v17;
*(_WORD *)(v6 + 710) = v16;
*(_WORD *)(v6 + 704) = v16;
*(_BYTE *)(v6 + 706) = v17;
*(_QWORD *)&v13 = *(unsigned int *)(v14 + 96);
*(_DWORD *)(v6 + 728) = LODWORD(v13);
if ( v15 )
{
v18 = *(_WORD *)(v15 + 72);
*(_BYTE *)(v6 + 709) = *(_BYTE *)(v15 + 74);
*(_WORD *)(v6 + 707) = v18;
}
}
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v6 + 1000LL))(v6, 0);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v6 + 1072LL))(v6, 0);
*(_BYTE *)(v6 + 744) = 1;
v19 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(&v75, v19);
v20 = (float *)cocos2d::CCSprite::createWithSpriteFrameName((__int64)"hueBar.png", v13);
(*(void (__fastcall **)(_QWORD, float *))(**(_QWORD **)(v6 + 584) + 456LL))(*(_QWORD *)(v6 + 584), v20);
sub_1007FEBF0(*(_QWORD *)(v6 + 672), v20);
v21 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"saturationBarBottom.png", v13);
*(_QWORD *)(v6 + 800) = v21;
(*(void (__fastcall **)(_QWORD, char *))(**(_QWORD **)(v6 + 584) + 456LL))(*(_QWORD *)(v6 + 584), v21);
sub_1007FEBF0(*(_QWORD *)(v6 + 672), *(_QWORD *)(v6 + 800));
v22 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"saturationBarTop.png", v13);
(*(void (__fastcall **)(_QWORD, char *, __int64))(**(_QWORD **)(v6 + 800) + 464LL))(*(_QWORD *)(v6 + 800), v22, 1);
cocos2d::CCNode::convertToNodeSpace((double *)v80, *(_QWORD *)(v6 + 800), (unsigned int *)&unk_100BE5630);
v23 = (*(double (__fastcall **)(char *, unsigned __int64 *))(*(_QWORD *)v22 + 184LL))(v22, v80);
v24 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"saturationBarBottom.png", v23);
*(_QWORD *)(v6 + 808) = v24;
(*(void (__fastcall **)(_QWORD, char *))(**(_QWORD **)(v6 + 584) + 456LL))(*(_QWORD *)(v6 + 584), v24);
sub_1007FEBF0(*(_QWORD *)(v6 + 672), *(_QWORD *)(v6 + 808));
v25 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"saturationBarTop.png", v23);
(*(void (__fastcall **)(char *, void *))(*(_QWORD *)v25 + 960LL))(v25, &unk_100A0CF30);
(*(void (__fastcall **)(_QWORD, char *, __int64))(**(_QWORD **)(v6 + 808) + 464LL))(*(_QWORD *)(v6 + 808), v25, 1);
cocos2d::CCNode::convertToNodeSpace((double *)v80, *(_QWORD *)(v6 + 808), (unsigned int *)&unk_100BE5630);
v26 = (*(double (__fastcall **)(char *, unsigned __int64 *))(*(_QWORD *)v25 + 184LL))(v25, v80);
v27 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"saturationBarTop.png", v26);
*(_QWORD *)(v6 + 816) = v27;
(*(void (__fastcall **)(_QWORD, char *))(**(_QWORD **)(v6 + 584) + 456LL))(*(_QWORD *)(v6 + 584), v27);
sub_1007FEBF0(*(_QWORD *)(v6 + 672), *(_QWORD *)(v6 + 816));
(*(void (__fastcall **)(float *, float))(*(_QWORD *)v20 + 128LL))(v20, 14.0 / v20[108]);
(*(void (__fastcall **)(float *, float))(*(_QWORD *)v20 + 144LL))(v20, 110.0 / v20[109]);
(*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(v6 + 800) + 128LL))(
*(_QWORD *)(v6 + 800),
14.0 / *(float *)(*(_QWORD *)(v6 + 800) + 432LL));
(*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(v6 + 800) + 144LL))(
*(_QWORD *)(v6 + 800),
110.0 / *(float *)(*(_QWORD *)(v6 + 800) + 436LL));
(*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(v6 + 808) + 128LL))(
*(_QWORD *)(v6 + 808),
14.0 / *(float *)(*(_QWORD *)(v6 + 808) + 432LL));
(*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(v6 + 808) + 144LL))(
*(_QWORD *)(v6 + 808),
110.0 / *(float *)(*(_QWORD *)(v6 + 808) + 436LL));
(*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(v6 + 816) + 128LL))(
*(_QWORD *)(v6 + 816),
14.0 / *(float *)(*(_QWORD *)(v6 + 816) + 432LL));
(*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(v6 + 816) + 144LL))(
*(_QWORD *)(v6 + 816),
-110.0 / *(float *)(*(_QWORD *)(v6 + 816) + 436LL));
sub_100278250((float *)&v79, 90.0, 180.0);
(*(void (__fastcall **)(float *, unsigned __int64 *))(*(_QWORD *)v20 + 184LL))(v20, &v79);
v28 = *(_QWORD *)(v6 + 800);
sub_100278250((float *)&v81, 34.0, 0.0);
sub_100278350((double *)v80, &v79, &v81);
(*(void (__fastcall **)(__int64, unsigned __int64 *))(*(_QWORD *)v28 + 184LL))(v28, v80);
v29 = *(_QWORD *)(v6 + 808);
sub_100278250((float *)&v81, 68.0, 0.0);
sub_100278350((double *)v80, &v79, &v81);
(*(void (__fastcall **)(__int64, unsigned __int64 *))(*(_QWORD *)v29 + 184LL))(v29, v80);
v30 = *(_QWORD *)(v6 + 816);
sub_100278250((float *)&v81, 102.0, 0.0);
sub_100278350((double *)v80, &v79, &v81);
(*(void (__fastcall **)(__int64, unsigned __int64 *))(*(_QWORD *)v30 + 184LL))(v30, v80);
v31 = Slider::create(
v6,
(int)ColorSelectLiveOverlay::sliderChanged,
0,
(int)"sliderBar.png",
(int)"slidergroove_02.png",
(__int64)"GJ_colorThumbBtn.png",
1.0,
(__int64)"GJ_colorThumbSBtn.png");
*(_QWORD *)(v6 + 752) = v31;
Slider::setBarVisibility((__int64)v31);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(v6 + 584) + 456LL))(
*(_QWORD *)(v6 + 584),
*(_QWORD *)(v6 + 752));
v32 = *(_QWORD *)(v6 + 752);
v33 = (*(__int64 (__fastcall **)(float *))(*(_QWORD *)v20 + 192LL))(v20);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v32 + 184LL))(v32, v33);
Slider::setRotated(*(_QWORD *)(v6 + 752), 1);
Slider::setMaxOffset(*(_QWORD *)(v6 + 752), 110.0);
Slider::hideGroove(*(_QWORD *)(v6 + 752), 1u);
Thumb = Slider::getThumb(*(_QWORD *)(v6 + 752));
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)Thumb + 72LL))(Thumb, 1);
sub_1007FEBF0(*(_QWORD *)(v6 + 672), *(_QWORD *)(v6 + 752));
v35 = Slider::create(
v6,
(int)ColorSelectLiveOverlay::sliderChanged,
0,
(int)"sliderBar.png",
(int)"slidergroove_02.png",
(__int64)"GJ_colorThumbBtn.png",
1.0,
(__int64)"GJ_colorThumbSBtn.png");
*(_QWORD *)(v6 + 760) = v35;
Slider::setBarVisibility((__int64)v35);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(v6 + 584) + 456LL))(
*(_QWORD *)(v6 + 584),
*(_QWORD *)(v6 + 760));
v36 = *(_QWORD *)(v6 + 760);
v37 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v6 + 800) + 192LL))(*(_QWORD *)(v6 + 800));
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v36 + 184LL))(v36, v37);
Slider::setRotated(*(_QWORD *)(v6 + 760), 1);
Slider::setMaxOffset(*(_QWORD *)(v6 + 760), 110.0);
Slider::hideGroove(*(_QWORD *)(v6 + 760), 1u);
v38 = Slider::getThumb(*(_QWORD *)(v6 + 760));
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v38 + 72LL))(v38, 2);
sub_1007FEBF0(*(_QWORD *)(v6 + 672), *(_QWORD *)(v6 + 760));
v39 = Slider::create(
v6,
(int)ColorSelectLiveOverlay::sliderChanged,
0,
(int)"sliderBar.png",
(int)"slidergroove_02.png",
(__int64)"GJ_colorThumbBtn.png",
1.0,
(__int64)"GJ_colorThumbSBtn.png");
*(_QWORD *)(v6 + 768) = v39;
Slider::setBarVisibility((__int64)v39);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(v6 + 584) + 456LL))(
*(_QWORD *)(v6 + 584),
*(_QWORD *)(v6 + 768));
v40 = *(_QWORD *)(v6 + 768);
v41 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v6 + 808) + 192LL))(*(_QWORD *)(v6 + 808));
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v40 + 184LL))(v40, v41);
Slider::setRotated(*(_QWORD *)(v6 + 768), 1);
Slider::setMaxOffset(*(_QWORD *)(v6 + 768), 110.0);
Slider::hideGroove(*(_QWORD *)(v6 + 768), 1u);
v42 = Slider::getThumb(*(_QWORD *)(v6 + 768));
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v42 + 72LL))(v42, 3);
sub_1007FEBF0(*(_QWORD *)(v6 + 672), *(_QWORD *)(v6 + 768));
v43 = Slider::create(
v6,
(int)ColorSelectLiveOverlay::sliderChanged,
0,
(int)"sliderBar.png",
(int)"slidergroove_02.png",
(__int64)"GJ_colorThumbBtn.png",
1.0,
(__int64)"GJ_colorThumbSBtn.png");
*(_QWORD *)(v6 + 776) = v43;
Slider::setBarVisibility((__int64)v43);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(v6 + 584) + 456LL))(
*(_QWORD *)(v6 + 584),
*(_QWORD *)(v6 + 776));
v44 = *(_QWORD *)(v6 + 776);
v45 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v6 + 816) + 192LL))(*(_QWORD *)(v6 + 816));
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v44 + 184LL))(v44, v45);
Slider::setRotated(*(_QWORD *)(v6 + 776), 1);
Slider::setMaxOffset(*(_QWORD *)(v6 + 776), 110.0);
Slider::hideGroove(*(_QWORD *)(v6 + 776), 1u);
v46 = Slider::getThumb(*(_QWORD *)(v6 + 776));
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v46 + 72LL))(v46, 4);
sub_1007FEBF0(*(_QWORD *)(v6 + 672), *(_QWORD *)(v6 + 776));
sub_100278270((__int64)v80, 0.0, 0.0, (__m128)0x42A00000u, (__m128)0x42A00000u);
v47 = cocos2d::extension::CCScale9Sprite::create_2((__int64)"square02_001.png", v80);
sub_100278260((float *)v80, 130.0, 130.0);
(*(void (__fastcall **)(void *, unsigned __int64 *))(*(_QWORD *)v47 + 320LL))(v47, v80);
(*(void (__fastcall **)(_QWORD, void *, __int64))(**(_QWORD **)(v6 + 584) + 464LL))(
*(_QWORD *)(v6 + 584),
v47,
0xFFFFFFFFLL);
v48 = (unsigned __int64 *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v6 + 760) + 192LL))(*(_QWORD *)(v6 + 760));
sub_100278250((float *)&v81, 17.0, 0.0);
sub_100278350((double *)v80, v48, &v81);
(*(void (__fastcall **)(void *, unsigned __int64 *))(*(_QWORD *)v47 + 184LL))(v47, v80);
v78 = v47;
v49 = (*(double (__fastcall **)(void *, __int64))(*(_QWORD *)v47 + 912LL))(v47, 125);
v50 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"whiteSquare60_001.png", v49);
*(_QWORD *)(v6 + 784) = v50;
(*(void (__fastcall **)(char *, float))(*(_QWORD *)v50 + 160LL))(v50, 0.5);
(*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**(_QWORD **)(v6 + 584) + 464LL))(
*(_QWORD *)(v6 + 584),
*(_QWORD *)(v6 + 784),
5);
v51 = *(_QWORD *)(v6 + 784);
sub_100278250((float *)&v81, 130.0, -40.0);
sub_100278350((double *)v80, &v79, &v81);
(*(void (__fastcall **)(__int64, unsigned __int64 *))(*(_QWORD *)v51 + 184LL))(v51, v80);
sub_1007FEBF0(*(_QWORD *)(v6 + 672), *(_QWORD *)(v6 + 784));
v52 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"whiteSquare60_001.png", COERCE_DOUBLE(1124204544));
*(_QWORD *)(v6 + 792) = v52;
(*(void (__fastcall **)(char *, float))(*(_QWORD *)v52 + 160LL))(v52, 0.5);
(*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**(_QWORD **)(v6 + 584) + 464LL))(
*(_QWORD *)(v6 + 584),
*(_QWORD *)(v6 + 792),
5);
v53 = *(_QWORD *)(v6 + 792);
v54 = (unsigned __int64 *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v6 + 784) + 192LL))(*(_QWORD *)(v6 + 784));
sub_100278250((float *)&v81, 0.0, -15.0);
sub_100278350((double *)v80, v54, &v81);
(*(void (__fastcall **)(__int64, unsigned __int64 *))(*(_QWORD *)v53 + 184LL))(v53, v80);
sub_1007FEBF0(*(_QWORD *)(v6 + 672), *(_QWORD *)(v6 + 792));
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v6 + 784) + 960LL))(*(_QWORD *)(v6 + 784), v6 + 710);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v6 + 792) + 960LL))(*(_QWORD *)(v6 + 792), v6 + 710);
v55 = cocos2d::CCLabelBMFont::create_3("label", "goldFont.fnt");
*(_QWORD *)(v6 + 848) = v55;
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v55 + 160LL))(v55, 0.5);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(v6 + 584) + 456LL))(
*(_QWORD *)(v6 + 584),
*(_QWORD *)(v6 + 848));
v56 = *(_QWORD *)(v6 + 848);
v57 = (unsigned __int64 *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v78 + 192LL))(v78);
sub_100278250((float *)&v81, 0.0, 75.0);
sub_100278350((double *)v80, v57, &v81);
v58 = (*(double (__fastcall **)(__int64, unsigned __int64 *))(*(_QWORD *)v56 + 184LL))(v56, v80);
v59 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_closeBtn_001.png", v58);
(*(void (__fastcall **)(char *, float))(*(_QWORD *)v59 + 160LL))(v59, 0.5);
v60 = (unsigned int)CCMenuItemSpriteExtra::create(
(__int64)v59,
0,
v6,
(__int64)ColorSelectLiveOverlay::closeColorSelect,
0);
v65 = sub_1008735E0(v60, 0, v61, v62, v63, v64);
*(_QWORD *)(v6 + 552) = v65;
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(v6 + 584) + 464LL))(*(_QWORD *)(v6 + 584), v65, 10);
v66 = *(_QWORD *)(v6 + 552);
v67 = (unsigned __int64 *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v78 + 192LL))(v78);
sub_100278250((float *)&v81, -74.0, 65.0);
sub_100278350((double *)v80, v67, &v81);
(*(void (__fastcall **)(__int64, unsigned __int64 *))(*(_QWORD *)v66 + 184LL))(v66, v80);
ColorSelectLiveOverlay::selectColor(v6, *(unsigned __int16 *)(v6 + 710) | (*(unsigned __int8 *)(v6 + 712) << 16));
if ( *(_QWORD *)(v6 + 688) )
{
if ( *(_QWORD *)(v6 + 696) )
{
v68 = sub_1007FE900(v6);
*(_QWORD *)(v6 + 680) = v68;
cocos2d::CCObject::retain(v68);
v69 = ButtonSprite::create_1(
(__int64)"1",
0x14u,
0,
1u,
(__int64)"bigFont.fnt",
(__int64)"GJ_button_01.png",
0.5,
30.0);
(*(void (__fastcall **)(char *, float))(*(_QWORD *)v69 + 160LL))(v69, 0.60000002);
v70 = CCMenuItemSpriteExtra::create((__int64)v69, 0, v6, (__int64)ColorSelectLiveOverlay::onSelectTab, 0);
(*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(v6 + 552) + 456LL))(*(_QWORD *)(v6 + 552), v70);
(*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v70 + 72LL))(v70, 1);
(*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v69 + 72LL))(v69, 1);
sub_1007FEBF0(*(_QWORD *)(v6 + 680), v69);
v71 = ButtonSprite::create_1(
(__int64)"2",
0x14u,
0,
1u,
(__int64)"bigFont.fnt",
(__int64)"GJ_button_04.png",
0.5,
30.0);
(*(void (__fastcall **)(char *, float))(*(_QWORD *)v71 + 160LL))(v71, 0.60000002);
v72 = CCMenuItemSpriteExtra::create((__int64)v71, 0, v6, (__int64)ColorSelectLiveOverlay::onSelectTab, 0);
(*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(v6 + 552) + 456LL))(*(_QWORD *)(v6 + 552), v72);
(*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v72 + 72LL))(v72, 2);
(*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v71 + 72LL))(v71, 2);
sub_1007FEBF0(*(_QWORD *)(v6 + 680), v71);
v78 = *(void **)(v6 + 552);
v73 = *(_QWORD *)(v6 + 584);
sub_100278250((float *)&v76, 130.0, 50.0);
sub_100278350(&v77, &v79, &v76);
cocos2d::CCNode::convertToWorldSpace((double *)&v81, v73, (unsigned int *)&v77);
cocos2d::CCNode::convertToNodeSpace((double *)v80, (__int64)v78, (unsigned int *)&v81);
(*(void (__fastcall **)(void *, unsigned __int64 *))(*(_QWORD *)v70 + 184LL))(v70, v80);
v74 = (unsigned __int64 *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v70 + 192LL))(v70);
sub_100278250((float *)&v81, 0.0, -24.0);
sub_100278350((double *)v80, v74, &v81);
(*(void (__fastcall **)(void *, unsigned __int64 *))(*(_QWORD *)v72 + 184LL))(v72, v80);
}
}
ColorSelectLiveOverlay::updateColorLabel(v6);
*(_BYTE *)(v6 + 744) = 0;
*(_BYTE *)(v6 + 746) = 0;
return v82;
}
return result;
}