//
// EditorSoundConfigCell::loadFromConfig from 0xccb0f0 to 0xccc5d4 (5348 bytes)
//
// 2 xrefs:
// > CustomListView::loadCell @ 0x74d1b0
// > ??> @ 0xe34b8
//
// 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:06:24 +0000
//
__int64 __fastcall EditorSoundConfigCell::loadFromConfig(EditorSoundConfigCell *this, GJEditorSoundConfig *a2)
{
cocos2d::CCObject *v4; // x0
cocos2d::CCMenuItem *v5; // x1
__int64 v6; // x0
__int64 v7; // x0
float v8; // s10
__int64 v9; // x1
__int64 v10; // x1
__int64 v11; // x0
size_t v12; // x1
cocos2d::CCSprite *v13; // x20
long double v14; // q1
void (__fastcall *v15)(cocos2d::CCSprite *, __int64 *); // x23
__int64 v16; // x0
float v17; // s14
float v18; // s9
float v19; // s12
char *v20; // x2
size_t v21; // x1
cocos2d::CCLabelBMFont *v22; // x0
cocos2d::CCLabelBMFont *v23; // x24
void (__fastcall *v24)(cocos2d::CCLabelBMFont *, __int64 *); // x26
void (__fastcall *v25)(cocos2d::CCLabelBMFont *, __int64 *); // x26
float v26; // s13
float v27; // s11
float v28; // s15
const char *v29; // x1
__int64 v30; // x24
__int64 v31; // x26
cocos2d::CCNode *v32; // x27
void (__fastcall *v33)(__int64, __int64 *); // x24
__int64 v34; // x1
int v35; // w2
int v36; // w0
const char *v37; // x1
size_t v38; // x0
const char *v39; // x2
int v40; // w0
cocos2d::CCLabelBMFont *v41; // x0
cocos2d::CCLabelBMFont *v42; // x26
void (__fastcall *v43)(cocos2d::CCLabelBMFont *, __int64 *); // x24
void (__fastcall *v44)(cocos2d::CCLabelBMFont *, __int64 *); // x24
const char *v45; // x6
__int64 v46; // x26
_DWORD *v47; // x24
float v48; // s8
void (__fastcall *v49)(_DWORD *, __int64 *); // x28
cocos2d::CCNode *v50; // x21
cocos2d::CCString *v51; // x0
cocos2d::CCLabelBMFont *CString; // x0
const char *v53; // x2
cocos2d::CCLabelBMFont *v54; // x24
void (__fastcall *v55)(cocos2d::CCLabelBMFont *, _BYTE *); // x28
void (__fastcall *v56)(cocos2d::CCLabelBMFont *, char *); // x2
void (__fastcall *v57)(cocos2d::CCLabelBMFont *, _BYTE *); // x28
cocos2d::CCString *v58; // x0
cocos2d::CCLabelBMFont *v59; // x0
const char *v60; // x2
cocos2d::CCLabelBMFont *v61; // x24
void (__fastcall *v62)(cocos2d::CCLabelBMFont *, __int64 *); // x21
void (__fastcall *v63)(cocos2d::CCLabelBMFont *, char *); // x2
void (__fastcall *v64)(cocos2d::CCLabelBMFont *, _BYTE *); // x20
int v66; // w1
float v67; // s11
_BOOL4 v68; // w27
float v69; // s12
float v70; // s9
char *v71; // x2
size_t v72; // x1
cocos2d::CCLabelBMFont *v73; // x0
cocos2d::CCLabelBMFont *v74; // x24
void (__fastcall *v75)(cocos2d::CCLabelBMFont *, __int64 *); // x23
void (__fastcall *v76)(cocos2d::CCLabelBMFont *, __int64 *); // x23
float v77; // s0
float v78; // s0
float v79; // s8
float v80; // s11
float v81; // s11
const char *v82; // x1
__int64 v83; // x24
__int64 v84; // x24
void (__fastcall *v85)(__int64, __int64 *); // x28
const char *v86; // x2
char *v87; // x0
__int64 v88; // x24
void (__fastcall *v89)(__int64, __int64 *); // x27
void (__fastcall *v90)(__int64, __int64 *); // x2
void (__fastcall *v91)(__int64, __int64 *); // x27
__int64 v92; // x0
__int64 v93; // x1
__int64 v94; // x1
__int64 v95; // x0
size_t v96; // x1
cocos2d::CCLabelBMFont *v97; // x1
size_t v98; // x2
__int64 v99; // x0
const char *v100; // x2
__int64 v101; // x3
cocos2d::CCLabelBMFont *v102; // x0
cocos2d::CCLabelBMFont *v103; // x24
__int64 v104; // x27
cocos2d::CCNode *v105; // x28
float v106; // s8
float v107; // s0
float v108; // s8
float v109; // s8
const char *v110; // x1
__int64 v111; // x24
void (__fastcall *v112)(__int64, __int64 *); // x27
const char *v113; // x2
cocos2d::CCLabelBMFont *v114; // x0
cocos2d::CCLabelBMFont *v115; // x24
void (__fastcall *v116)(cocos2d::CCLabelBMFont *, __int64 *); // x27
void (__fastcall *v117)(cocos2d::CCLabelBMFont *, __int64 *); // x27
const char *v118; // x1
__int64 v119; // x24
float v120; // s8
void (__fastcall *v121)(__int64, __int64 *); // x27
const char *v122; // x2
cocos2d::CCLabelBMFont *v123; // x0
cocos2d::CCLabelBMFont *v124; // x24
void (__fastcall *v125)(cocos2d::CCLabelBMFont *, __int64 *); // x28
void (__fastcall *v126)(cocos2d::CCLabelBMFont *, __int64 *); // x28
const char *v127; // x6
__int64 v128; // x26
_DWORD *v129; // x24
float v130; // s8
void (__fastcall *v131)(_DWORD *, __int64 *); // x28
cocos2d::CCNode *v132; // x21
cocos2d::CCString *v133; // x0
cocos2d::CCLabelBMFont *v134; // x0
const char *v135; // x2
cocos2d::CCLabelBMFont *v136; // x24
void (__fastcall *v137)(cocos2d::CCLabelBMFont *, _BYTE *); // x28
void (__fastcall *v138)(cocos2d::CCLabelBMFont *, char *); // x2
void (__fastcall *v139)(cocos2d::CCLabelBMFont *, _BYTE *); // x28
cocos2d::CCString *v140; // x0
cocos2d::CCLabelBMFont *v141; // x0
const char *v142; // x2
cocos2d::CCLabelBMFont *v143; // x24
void (__fastcall *v144)(cocos2d::CCLabelBMFont *, __int64 *); // x21
void (__fastcall *v145)(cocos2d::CCLabelBMFont *, char *); // x2
void (__fastcall *v146)(cocos2d::CCLabelBMFont *, _BYTE *); // x20
__int64 v147; // x20
void (__fastcall *v148)(__int64, __int64 *); // x23
cocos2d::CCNode *v149; // [xsp+A8h] [xbp+A8h]
cocos2d::CCNode *v150; // [xsp+A8h] [xbp+A8h]
cocos2d::CCNode *v151; // [xsp+A8h] [xbp+A8h]
char v152; // [xsp+B0h] [xbp+B0h] BYREF
char v153; // [xsp+B1h] [xbp+B1h]
char v154; // [xsp+B2h] [xbp+B2h]
char v155; // [xsp+B8h] [xbp+B8h] BYREF
char v156; // [xsp+B9h] [xbp+B9h]
char v157; // [xsp+BAh] [xbp+BAh]
char v158; // [xsp+C0h] [xbp+C0h] BYREF
char v159; // [xsp+C1h] [xbp+C1h]
char v160; // [xsp+C2h] [xbp+C2h]
_BYTE v161[8]; // [xsp+C8h] [xbp+C8h] BYREF
__int64 v162; // [xsp+D0h] [xbp+D0h] BYREF
_BYTE v163[8]; // [xsp+D8h] [xbp+D8h] BYREF
_BYTE v164[8]; // [xsp+E0h] [xbp+E0h] BYREF
_BYTE v165[8]; // [xsp+E8h] [xbp+E8h] BYREF
__int64 v166; // [xsp+F0h] [xbp+F0h] BYREF
_QWORD v167[2]; // [xsp+F8h] [xbp+F8h] BYREF
cocos2d::CCLabelBMFont *v168; // [xsp+108h] [xbp+108h]
__int64 v169[2]; // [xsp+110h] [xbp+110h] BYREF
void *v170; // [xsp+120h] [xbp+120h]
__int64 v171; // [xsp+128h] [xbp+128h] BYREF
__int64 v172; // [xsp+130h] [xbp+130h]
cocos2d::CCLabelBMFont *v173; // [xsp+138h] [xbp+138h]
char v174[8]; // [xsp+140h] [xbp+140h] BYREF
size_t v175; // [xsp+148h] [xbp+148h]
cocos2d::CCLabelBMFont *v176; // [xsp+150h] [xbp+150h]
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 67) + 584LL))(*((_QWORD *)this + 67), 1);
v4 = *((cocos2d::CCObject **)this + 69);
if ( v4 )
cocos2d::CCObject::release(v4);
*((_QWORD *)this + 69) = a2;
if ( !a2 )
return _stack_chk_guard;
cocos2d::CCObject::retain(a2);
if ( !*((_QWORD *)this + 69) )
return _stack_chk_guard;
v6 = cocos2d::CCMenu::create(nullptr, v5);
*((_QWORD *)this + 71) = v6;
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 67) + 464LL))(*((_QWORD *)this + 67), v6, 3);
v171 = 0;
v7 = *((_QWORD *)this + 69);
v172 = 0;
v173 = nullptr;
v8 = *((float *)this + 131) * 0.5;
if ( (*(_BYTE *)(v7 + 424) & 1) != 0 )
{
std::string::__init(&v171, *(void **)(v7 + 440), *(_QWORD *)(v7 + 432));
}
else
{
v9 = *(_QWORD *)(v7 + 432);
v171 = *(_QWORD *)(v7 + 424);
v172 = v9;
v173 = *(cocos2d::CCLabelBMFont **)(v7 + 440);
}
v10 = (unsigned __int8)v171 >> 1;
if ( (v171 & 1) != 0 )
v10 = v172;
if ( v10 )
{
v11 = *((_QWORD *)this + 69);
*(_QWORD *)v174 = 0;
v175 = 0;
v176 = nullptr;
if ( (*(_BYTE *)(v11 + 424) & 1) != 0 )
{
std::string::__init((__int64 *)v174, *(void **)(v11 + 440), *(_QWORD *)(v11 + 432));
}
else
{
v12 = *(_QWORD *)(v11 + 432);
*(_QWORD *)v174 = *(_QWORD *)(v11 + 424);
v175 = v12;
v176 = *(cocos2d::CCLabelBMFont **)(v11 + 440);
}
}
else
{
*(_QWORD *)v174 = 0;
v175 = 0;
v176 = nullptr;
std::string::__init((__int64 *)v174, "music", 5u);
}
v13 = EmoteSprite::createWithName(v174);
if ( (v174[0] & 1) != 0 )
operator delete(v176);
if ( (v171 & 1) != 0 )
operator delete(v173);
if ( !v13 )
{
*(_QWORD *)v174 = 0;
v175 = 0;
v176 = nullptr;
std::string::__init((__int64 *)v174, "music", 5u);
v13 = EmoteSprite::createWithName(v174);
if ( (v174[0] & 1) != 0 )
{
operator delete(v176);
if ( !v13 )
goto LABEL_18;
}
else if ( !v13 )
{
goto LABEL_18;
}
}
LODWORD(v14) = 0;
EmoteSprite::fitToHeight(v13, 22.0, v14);
v15 = *(void (__fastcall **)(cocos2d::CCSprite *, __int64 *))(*(_QWORD *)v13 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v166, 19.0, v8);
v15(v13, &v166);
(*(void (__fastcall **)(_QWORD, cocos2d::CCSprite *, __int64))(**((_QWORD **)this + 67) + 464LL))(
*((_QWORD *)this + 67),
v13,
1);
LABEL_18:
v16 = *((_QWORD *)this + 69);
if ( *(_BYTE *)(v16 + 372) )
{
v147 = cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"GJ_featuredCoin_001.png",
(const char *)*(unsigned __int8 *)(v16 + 372));
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v147 + 160LL))(v147, 0.78);
v148 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v147 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v166, 19.0, v8 - 4.5);
v148(v147, &v166);
(*(void (__fastcall **)(_QWORD, __int64, _QWORD))(**((_QWORD **)this + 67) + 464LL))(
*((_QWORD *)this + 67),
v147,
0);
v16 = *((_QWORD *)this + 69);
}
if ( *((_BYTE *)this + 576) )
{
*(_QWORD *)v174 = 0;
v175 = 0;
v176 = nullptr;
v17 = *((float *)this + 131);
v18 = (float)(v17 * 0.5) + 8.0;
v19 = (float)(v17 * 0.5) + -8.0;
if ( (*(_BYTE *)(v16 + 376) & 1) != 0 )
{
std::string::__init((__int64 *)v174, *(void **)(v16 + 392), *(_QWORD *)(v16 + 384));
}
else
{
v20 = v174;
v21 = *(_QWORD *)(v16 + 384);
*(_QWORD *)v174 = *(_QWORD *)(v16 + 376);
v175 = v21;
v176 = *(cocos2d::CCLabelBMFont **)(v16 + 392);
}
v22 = (cocos2d::CCLabelBMFont *)&v174[1];
if ( (v174[0] & 1) != 0 )
v22 = v176;
v23 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v22, "bigFont.fnt", v20);
if ( (v174[0] & 1) != 0 )
operator delete(v176);
v24 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64 *))(*(_QWORD *)v23 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v166, 0.0, 0.5);
v24(v23, &v166);
v25 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64 *))(*(_QWORD *)v23 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v166, 40.0, v18);
v25(v23, &v166);
cocos2d::CCLabelBMFont::limitLabelWidth(v23, (float)(*((float *)this + 130) - 40.0) - 170.0, 0.55, 0.35);
(*(void (__fastcall **)(_QWORD, cocos2d::CCLabelBMFont *))(**((_QWORD **)this + 67) + 456LL))(
*((_QWORD *)this + 67),
v23);
v26 = (*(float (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v23 + 224LL))(v23);
v27 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v23 + 328LL))(v23);
v28 = (*(float (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v23 + 136LL))(v23);
v30 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_infoIcon_001.png", v29);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v30 + 160LL))(v30, 0.4);
v31 = CCMenuItemSpriteExtra::create(v30, 0, (__int64)this, (__int64)EditorSoundConfigCell::onInfoPopup, 0);
CCMenuItemSpriteExtra::setSizeMult(v31, 1.2);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 71) + 456LL))(*((_QWORD *)this + 71), v31);
v32 = *((cocos2d::CCNode **)this + 71);
v33 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v31 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v165, (float)(v26 + (float)(v27 * v28)) + 12.0, v18);
cocos2d::CCNode::convertToNodeSpace(&v166, v32, (const cocos2d::CCPoint *)v165);
v33(v31, &v166);
v34 = *((_QWORD *)this + 69);
v152 = -76;
v153 = -76;
v35 = *(unsigned __int8 *)(v34 + 324);
v154 = -76;
v36 = *(_DWORD *)(v34 + 316);
if ( v35 )
{
if ( v36 > 0 )
{
if ( *(_DWORD *)(v34 + 328) > *(_DWORD *)(v34 + 332) )
{
v152 = -1;
v37 = "Edited";
v154 = 70;
goto LABEL_31;
}
goto LABEL_30;
}
}
else if ( v36 > 0 )
{
LABEL_30:
v153 = -1;
v37 = "Uploaded";
v152 = 120;
v154 = 120;
LABEL_31:
v149 = (cocos2d::CCNode *)v37;
*(_QWORD *)v174 = 0;
v175 = 0;
v176 = nullptr;
v38 = strlen(v37);
std::string::__init((__int64 *)v174, v149, v38);
v40 = *(_DWORD *)(*((_QWORD *)this + 69) + 360LL);
if ( v40 == 3 )
{
std::string::append((__int64)v174, " (Friends Only)", 0xFu);
}
else if ( v40 == 4 )
{
std::string::append((__int64)v174, " (Unlisted)", 0xBu);
}
if ( (v174[0] & 1) != 0 )
v41 = v176;
else
v41 = (cocos2d::CCLabelBMFont *)&v174[1];
v42 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v41, "bigFont.fnt", v39);
v43 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64 *))(*(_QWORD *)v42 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v166, 0.0, 0.5);
v43(v42, &v166);
(*(void (__fastcall **)(cocos2d::CCLabelBMFont *, float))(*(_QWORD *)v42 + 160LL))(v42, 0.4);
(*(void (__fastcall **)(cocos2d::CCLabelBMFont *, char *))(*(_QWORD *)v42 + 1072LL))(v42, &v152);
v44 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64 *))(*(_QWORD *)v42 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v166, 40.0, v19);
v44(v42, &v166);
cocos2d::CCLabelBMFont::limitLabelWidth(v42, 140.0, 0.4, 0.0);
(*(void (__fastcall **)(_QWORD, cocos2d::CCLabelBMFont *))(**((_QWORD **)this + 67) + 456LL))(
*((_QWORD *)this + 67),
v42);
v46 = ButtonSprite::create(
(ButtonSprite *)"View",
(const char *)&dword_30 + 2,
0,
0,
0.6,
"bigFont.fnt",
"GJ_button_01.png",
v45,
30.0);
v47 = (_DWORD *)CCMenuItemSpriteExtra::create(v46, 0, (__int64)this, (__int64)EditorSoundConfigCell::onView, 0);
(*(void (__fastcall **)(_DWORD *, float))(*(_QWORD *)v47 + 160LL))(v47, 0.8);
v47[101] = 1061997773;
(*(void (__fastcall **)(_QWORD, _DWORD *))(**((_QWORD **)this + 71) + 456LL))(*((_QWORD *)this + 71), v47);
v48 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v46 + 328LL))(v46) * 0.8;
v49 = *(void (__fastcall **)(_DWORD *, __int64 *))(*(_QWORD *)v47 + 184LL);
v50 = *((cocos2d::CCNode **)this + 71);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v161,
(float)(*((float *)this + 130) - (float)(v48 * 0.5)) - 9.0,
v8);
cocos2d::CCNode::convertToNodeSpace(&v162, v50, (const cocos2d::CCPoint *)v161);
v49(v47, &v162);
v51 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"Actions: %d",
(const char *)*(unsigned int *)(*((_QWORD *)this + 69) + 352LL));
CString = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v51);
v54 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(CString, "chatFont.fnt", v53);
v55 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, _BYTE *))(*(_QWORD *)v54 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v164, 1.0, 0.5);
v55(v54, v164);
v56 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, char *))(*(_QWORD *)v54 + 1072LL);
v155 = 0;
v156 = 0;
v157 = 0;
v56(v54, &v155);
(*(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64))(*(_QWORD *)v54 + 1024LL))(v54, 4294967215LL);
cocos2d::CCLabelBMFont::limitLabelWidth(v54, 90.0, 0.6, 0.0);
v57 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, _BYTE *))(*(_QWORD *)v54 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v163, (float)(*((float *)this + 130) - v48) - 21.0, v18);
v57(v54, v163);
(*(void (__fastcall **)(_QWORD, cocos2d::CCLabelBMFont *))(**((_QWORD **)this + 67) + 456LL))(
*((_QWORD *)this + 67),
v54);
v58 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"Sounds: %d",
(const char *)*(unsigned int *)(*((_QWORD *)this + 69) + 356LL));
v59 = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v58);
v61 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v59, "chatFont.fnt", v60);
v62 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64 *))(*(_QWORD *)v61 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v166, 1.0, 0.5);
v62(v61, &v166);
v63 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, char *))(*(_QWORD *)v61 + 1072LL);
v158 = 0;
v159 = 0;
v160 = 0;
v63(v61, &v158);
(*(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64))(*(_QWORD *)v61 + 1024LL))(v61, 4294967215LL);
cocos2d::CCLabelBMFont::limitLabelWidth(v61, 90.0, 0.6, 0.0);
v64 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, _BYTE *))(*(_QWORD *)v61 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v165, (float)(*((float *)this + 130) - v48) - 21.0, v19);
v64(v61, v165);
(*(void (__fastcall **)(_QWORD, cocos2d::CCLabelBMFont *))(**((_QWORD **)this + 67) + 456LL))(
*((_QWORD *)this + 67),
v61);
if ( (v174[0] & 1) != 0 )
operator delete(v176);
return _stack_chk_guard;
}
v37 = "Local";
goto LABEL_31;
}
v66 = *(_DWORD *)(v16 + 360);
*(_QWORD *)v174 = 0;
v175 = 0;
v176 = nullptr;
v67 = *((float *)this + 131);
v68 = (unsigned int)(v66 - 3) <= 1;
v69 = (float)(v67 * 0.5) + 8.0;
v70 = (float)(v67 * 0.5) + -8.0;
if ( (*(_BYTE *)(v16 + 376) & 1) != 0 )
{
std::string::__init((__int64 *)v174, *(void **)(v16 + 392), *(_QWORD *)(v16 + 384));
}
else
{
v71 = v174;
v72 = *(_QWORD *)(v16 + 384);
*(_QWORD *)v174 = *(_QWORD *)(v16 + 376);
v175 = v72;
v176 = *(cocos2d::CCLabelBMFont **)(v16 + 392);
}
v73 = (cocos2d::CCLabelBMFont *)&v174[1];
if ( (v174[0] & 1) != 0 )
v73 = v176;
v74 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v73, "bigFont.fnt", v71);
if ( (v174[0] & 1) != 0 )
operator delete(v176);
v75 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64 *))(*(_QWORD *)v74 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v166, 0.0, 0.5);
v75(v74, &v166);
v76 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64 *))(*(_QWORD *)v74 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v166, 40.0, (float)(v67 * 0.5) + 8.0);
v76(v74, &v166);
v77 = *((float *)this + 130) - 40.0;
if ( v68 )
v78 = v77 - 230.0;
else
v78 = v77 - 170.0;
cocos2d::CCLabelBMFont::limitLabelWidth(v74, v78, 0.55, 0.35);
(*(void (__fastcall **)(_QWORD, cocos2d::CCLabelBMFont *))(**((_QWORD **)this + 67) + 456LL))(
*((_QWORD *)this + 67),
v74);
v79 = (*(float (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v74 + 224LL))(v74);
v80 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v74 + 328LL))(v74);
v81 = v79 + (float)(v80 * (*(float (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v74 + 136LL))(v74));
v83 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_infoIcon_001.png", v82);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v83 + 160LL))(v83, 0.4);
v84 = CCMenuItemSpriteExtra::create(v83, 0, (__int64)this, (__int64)EditorSoundConfigCell::onInfoPopup, 0);
CCMenuItemSpriteExtra::setSizeMult(v84, 1.2);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 71) + 456LL))(*((_QWORD *)this + 71), v84);
v150 = *((cocos2d::CCNode **)this + 71);
v85 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v84 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v165, v81 + 12.0, v69);
cocos2d::CCNode::convertToNodeSpace(&v166, v150, (const cocos2d::CCPoint *)v165);
v85(v84, &v166);
if ( v68 )
{
if ( *(_DWORD *)(*((_QWORD *)this + 69) + 360LL) == 3 )
v87 = "Friends Only";
else
v87 = "Unlisted";
v88 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)v87, "bigFont.fnt", v86);
v89 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v88 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v166, 0.0, 0.5);
v89(v88, &v166);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v88 + 160LL))(v88, 0.3);
v90 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v88 + 1072LL);
LOWORD(v166) = -19201;
BYTE2(v166) = 70;
v90(v88, &v166);
v91 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v88 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v166, v81 + 26.0, v69);
v91(v88, &v166);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 67) + 456LL))(*((_QWORD *)this + 67), v88);
}
v169[0] = 0;
v169[1] = 0;
v170 = nullptr;
std::string::__init(v169, "By ", 3u);
v92 = *((_QWORD *)this + 69);
v171 = 0;
v172 = 0;
v173 = nullptr;
if ( (*(_BYTE *)(v92 + 448) & 1) != 0 )
{
std::string::__init(&v171, *(void **)(v92 + 464), *(_QWORD *)(v92 + 456));
}
else
{
v93 = *(_QWORD *)(v92 + 456);
v171 = *(_QWORD *)(v92 + 448);
v172 = v93;
v173 = *(cocos2d::CCLabelBMFont **)(v92 + 464);
}
v94 = (unsigned __int8)v171 >> 1;
if ( (v171 & 1) != 0 )
v94 = v172;
if ( v94 )
{
v95 = *((_QWORD *)this + 69);
*(_QWORD *)v174 = 0;
v175 = 0;
v176 = nullptr;
if ( (*(_BYTE *)(v95 + 448) & 1) != 0 )
{
std::string::__init((__int64 *)v174, *(void **)(v95 + 464), *(_QWORD *)(v95 + 456));
}
else
{
v96 = *(_QWORD *)(v95 + 456);
*(_QWORD *)v174 = *(_QWORD *)(v95 + 448);
v175 = v96;
v176 = *(cocos2d::CCLabelBMFont **)(v95 + 464);
}
}
else
{
*(_QWORD *)v174 = 0;
v175 = 0;
v176 = nullptr;
std::string::__init((__int64 *)v174, &byte_1191DE0, 1u);
}
if ( (v174[0] & 1) != 0 )
{
v97 = v176;
v98 = v175;
}
else
{
v98 = (unsigned __int8)v174[0] >> 1;
v97 = (cocos2d::CCLabelBMFont *)&v174[1];
}
v99 = std::string::append((__int64)v169, v97, v98);
v100 = *(const char **)v99;
v101 = *(_QWORD *)(v99 + 8);
v167[0] = *(_QWORD *)v99;
v167[1] = v101;
v168 = *(cocos2d::CCLabelBMFont **)(v99 + 16);
*(_QWORD *)v99 = 0;
*(_QWORD *)(v99 + 8) = 0;
*(_QWORD *)(v99 + 16) = 0;
if ( (v174[0] & 1) != 0 )
operator delete(v176);
if ( (v171 & 1) != 0 )
operator delete(v173);
if ( (v169[0] & 1) != 0 )
operator delete(v170);
v102 = (cocos2d::CCLabelBMFont *)((char *)v167 + 1);
if ( (v167[0] & 1) != 0 )
v102 = v168;
v103 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v102, "goldFont.fnt", v100);
cocos2d::CCLabelBMFont::limitLabelWidth(v103, 90.0, 0.4, 0.0);
v104 = CCMenuItemSpriteExtra::create(
(__int64)v103,
0,
(__int64)this,
(__int64)EditorSoundConfigCell::onViewProfile,
0);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 71) + 456LL))(*((_QWORD *)this + 71), v104);
v105 = *((cocos2d::CCNode **)this + 71);
v151 = *(cocos2d::CCNode **)(*(_QWORD *)v104 + 184LL);
v106 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v103 + 328LL))(v103);
v107 = (*(float (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v103 + 168LL))(v103);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v165, (float)((float)(v106 * v107) * 0.5) + 40.0, v70);
cocos2d::CCNode::convertToNodeSpace(&v166, v105, (const cocos2d::CCPoint *)v165);
((void (__fastcall *)(__int64, __int64 *))v151)(v104, &v166);
v108 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v103 + 328LL))(v103);
v109 = (float)((float)(v108 * (*(float (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v103 + 168LL))(v103))
+ 40.0)
+ 10.0;
v111 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_downloadsIcon_001.png", v110);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v111 + 160LL))(v111, 0.5);
v112 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v111 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v166, v109, v70);
v112(v111, &v166);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 67) + 456LL))(*((_QWORD *)this + 67), v111);
GameToolbox::intToShortString((GameToolbox *)*(unsigned int *)(*((_QWORD *)this + 69) + 344LL), 0, &v171);
v114 = (cocos2d::CCLabelBMFont *)((char *)&v171 + 1);
if ( (v171 & 1) != 0 )
v114 = v173;
v115 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v114, "bigFont.fnt", v113);
if ( (v171 & 1) != 0 )
operator delete(v173);
v116 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64 *))(*(_QWORD *)v115 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v166, 0.0, 0.5);
v116(v115, &v166);
(*(void (__fastcall **)(cocos2d::CCLabelBMFont *, float))(*(_QWORD *)v115 + 160LL))(v115, 0.35);
v117 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64 *))(*(_QWORD *)v115 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v166, v109 + 9.0, v70);
v117(v115, &v166);
cocos2d::CCLabelBMFont::limitLabelWidth(v115, 30.0, 0.35, 0.0);
(*(void (__fastcall **)(_QWORD, cocos2d::CCLabelBMFont *))(**((_QWORD **)this + 67) + 456LL))(
*((_QWORD *)this + 67),
v115);
v119 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_likesIcon_001.png", v118);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v119 + 160LL))(v119, 0.5);
v120 = v109 + 47.0;
v121 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v119 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v166, v120, v70);
v121(v119, &v166);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 67) + 456LL))(*((_QWORD *)this + 67), v119);
GameToolbox::intToShortString((GameToolbox *)*(unsigned int *)(*((_QWORD *)this + 69) + 348LL), 0, (__int64 *)v174);
v123 = (cocos2d::CCLabelBMFont *)&v174[1];
if ( (v174[0] & 1) != 0 )
v123 = v176;
v124 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v123, "bigFont.fnt", v122);
if ( (v174[0] & 1) != 0 )
operator delete(v176);
v125 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64 *))(*(_QWORD *)v124 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v166, 0.0, 0.5);
v125(v124, &v166);
(*(void (__fastcall **)(cocos2d::CCLabelBMFont *, float))(*(_QWORD *)v124 + 160LL))(v124, 0.35);
v126 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64 *))(*(_QWORD *)v124 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v166, v120 + 9.0, v70);
v126(v124, &v166);
cocos2d::CCLabelBMFont::limitLabelWidth(v124, 30.0, 0.35, 0.0);
(*(void (__fastcall **)(_QWORD, cocos2d::CCLabelBMFont *))(**((_QWORD **)this + 67) + 456LL))(
*((_QWORD *)this + 67),
v124);
v128 = ButtonSprite::create(
(ButtonSprite *)"View",
(const char *)&dword_30 + 2,
0,
0,
0.6,
"bigFont.fnt",
"GJ_button_01.png",
v127,
30.0);
v129 = (_DWORD *)CCMenuItemSpriteExtra::create(v128, 0, (__int64)this, (__int64)EditorSoundConfigCell::onView, 0);
(*(void (__fastcall **)(_DWORD *, float))(*(_QWORD *)v129 + 160LL))(v129, 0.8);
v129[101] = 1061997773;
(*(void (__fastcall **)(_QWORD, _DWORD *))(**((_QWORD **)this + 71) + 456LL))(*((_QWORD *)this + 71), v129);
v130 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v128 + 328LL))(v128) * 0.8;
v131 = *(void (__fastcall **)(_DWORD *, __int64 *))(*(_QWORD *)v129 + 184LL);
v132 = *((cocos2d::CCNode **)this + 71);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v161, (float)(*((float *)this + 130) - (float)(v130 * 0.5)) - 9.0, v8);
cocos2d::CCNode::convertToNodeSpace(&v162, v132, (const cocos2d::CCPoint *)v161);
v131(v129, &v162);
v133 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"Actions: %d",
(const char *)*(unsigned int *)(*((_QWORD *)this + 69) + 352LL));
v134 = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v133);
v136 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v134, "chatFont.fnt", v135);
v137 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, _BYTE *))(*(_QWORD *)v136 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v164, 1.0, 0.5);
v137(v136, v164);
v138 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, char *))(*(_QWORD *)v136 + 1072LL);
v155 = 0;
v156 = 0;
v157 = 0;
v138(v136, &v155);
(*(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64))(*(_QWORD *)v136 + 1024LL))(v136, 4294967215LL);
cocos2d::CCLabelBMFont::limitLabelWidth(v136, 90.0, 0.6, 0.0);
v139 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, _BYTE *))(*(_QWORD *)v136 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v163, (float)(*((float *)this + 130) - v130) - 21.0, v69);
v139(v136, v163);
(*(void (__fastcall **)(_QWORD, cocos2d::CCLabelBMFont *))(**((_QWORD **)this + 67) + 456LL))(
*((_QWORD *)this + 67),
v136);
v140 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"Sounds: %d",
(const char *)*(unsigned int *)(*((_QWORD *)this + 69) + 356LL));
v141 = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v140);
v143 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v141, "chatFont.fnt", v142);
v144 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64 *))(*(_QWORD *)v143 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v166, 1.0, 0.5);
v144(v143, &v166);
v145 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, char *))(*(_QWORD *)v143 + 1072LL);
v158 = 0;
v159 = 0;
v160 = 0;
v145(v143, &v158);
(*(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64))(*(_QWORD *)v143 + 1024LL))(v143, 4294967215LL);
cocos2d::CCLabelBMFont::limitLabelWidth(v143, 90.0, 0.6, 0.0);
v146 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, _BYTE *))(*(_QWORD *)v143 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v165, (float)(*((float *)this + 130) - v130) - 21.0, v70);
v146(v143, v165);
(*(void (__fastcall **)(_QWORD, cocos2d::CCLabelBMFont *))(**((_QWORD **)this + 67) + 456LL))(
*((_QWORD *)this + 67),
v143);
if ( (v167[0] & 1) != 0 )
operator delete(v168);
return _stack_chk_guard;
}