//
// EditorSoundConfigInfoLayer::init from 0x786f14 to 0x7882da (5062 bytes)
//
// 1 xrefs:
// > EditorSoundConfigInfoLayer::create @ 0x7883f8
//
// 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:59:34 +0000
//
GameManager *__fastcall EditorSoundConfigInfoLayer::init(int a1, cocos2d::CCObject *a2, int a3, int a4)
{
char *v4; // r10
cocos2d::CCDirector *v9; // r0
cocos2d::CCMenu *WinSize; // r0
float v11; // s16
float v12; // s20
int v13; // r0
int v14; // r1
const char *v15; // r2
cocos2d::CCLabelBMFont *v16; // r0
cocos2d::CCLabelBMFont *v17; // r6
void (__fastcall *v18)(cocos2d::CCLabelBMFont *, void **); // r8
int v19; // r1
int v20; // r3
const char *v21; // r2
cocos2d::CCLabelBMFont *v22; // r0
cocos2d::CCLabelBMFont *v23; // r9
int v24; // r8
float v25; // s18
float v26; // s18
float v27; // s16
float v28; // r0
int v29; // r8
void (__fastcall *v30)(int, void **); // r11
float v31; // s18
float v32; // s15
void (__fastcall *v33)(cocos2d::CCLabelBMFont *, void **); // r10
int v34; // r11
int v35; // r11
int v36; // r1
const char *v37; // r1
int v39; // r1
int v40; // r2
int v41; // r3
cocos2d::CCSprite *v42; // r8
int v43; // r1
int v44; // r2
int v45; // r3
float v46; // s16
float v47; // s18
float v48; // s18
void (__fastcall *v49)(cocos2d::CCSprite *, void **); // r9
float v50; // r0
const char *v51; // r1
int v52; // r6
void (__fastcall *v53)(int, void **); // r9
int v54; // r10
int v55; // r6
void (__fastcall *v56)(int, void **); // r8
void (__fastcall *v57)(int, void **); // r8
int *v58; // r0
int v59; // r8
int v60; // r8
int v61; // r9
void (__fastcall *v62)(int, void **); // r8
float v63; // s16
int v64; // r6
void (__fastcall *v65)(int, void **); // r8
const char *v66; // r2
cocos2d::CCLabelBMFont *v67; // r0
int v68; // r8
const char *v69; // r1
int v70; // r8
int v71; // r6
const char *v72; // r2
cocos2d::CCLabelBMFont *v73; // r0
int v74; // r9
void (__fastcall *v75)(int, void **); // r10
int v76; // r11
float v77; // s18
float v78; // s19
float v79; // s18
int v80; // r6
void (__fastcall *v81)(int, void **); // r8
void (__fastcall *v82)(int, void **); // r8
int v83; // r1
int v84; // r2
int v85; // r3
int *v86; // r0
int *v87; // r6
void (__fastcall *v88)(int *, void **); // r8
ScrollableContentLayer *v89; // r6
int v90; // r2
char *v91; // r3
char *v92; // r3
const char *v93; // r1
char *v94; // r3
const char *v95; // r1
char *v96; // r3
const char *v97; // r1
char *v98; // r3
char *v99; // r3
const char *v100; // r1
char *v101; // r3
int v102; // r5
float v103; // s16
int v104; // s21
float v105; // s18
float v106; // s19
ButtonSprite *v107; // r2
char *v108; // r6
int *v109; // r3
int v110; // r1
ButtonSprite *v111; // r0
int v112; // r6
const cocos2d::CCPoint *v113; // r10
void (__fastcall *v114)(int, _BYTE *); // r11
const char *v115; // r1
int v116; // r5
int v117; // r8
const cocos2d::CCPoint *v118; // r10
int (__fastcall *v119)(int, const char **); // r9
cocos2d::CCDirector *v120; // r0
cocos2d::CCDirector *v121; // r0
float v122; // r0
float v123; // r8
cocos2d::CCDirector *v124; // r0
float v125; // r0
const char *v126; // r1
float v127; // s16
int v128; // r9
int v129; // r9
int v130; // r0
int v131; // r0
int v132; // r9
const cocos2d::CCPoint *v133; // r11
void (__fastcall *v134)(int, const char **); // r10
const char *v135; // r1
float v136; // s16
int v137; // r9
int v138; // r0
int v139; // r9
const cocos2d::CCPoint *v140; // r11
void (__fastcall *v141)(int, const char **); // r10
int v142; // r9
void *v143; // r3
int v144; // r9
const cocos2d::CCPoint *v145; // r11
void (__fastcall *v146)(int, const char **); // r10
int v147; // r3
int v148; // r9
int v149; // r0
int v150; // r9
const cocos2d::CCPoint *v151; // r11
void (__fastcall *v152)(int, const char **); // r10
int v153; // r1
char *v154; // r2
int v155; // r3
int v156; // r9
const cocos2d::CCPoint *v157; // r11
void (__fastcall *v158)(int, const char **); // r10
int v159; // r9
int v160; // r0
int v161; // r9
const cocos2d::CCPoint *v162; // r11
void (__fastcall *v163)(int, const char **); // r10
cocos2d::CCDirector *v164; // r0
const char *v165; // r1
int v166; // r9
int v167; // r9
const cocos2d::CCPoint *v168; // r11
int (__fastcall *v169)(int, const char **); // r10
cocos2d::CCDirector *v170; // r0
float v171; // r0
float v172; // s18
float v173; // s16
int v174; // r0
int v175; // r6
int v176; // r8
int isOwner; // r0
const char *v178; // r1
int v179; // r5
int v180; // r6
int v181; // r0
int v182; // r8
const cocos2d::CCPoint *v183; // r11
void (__fastcall *v184)(int, const char **); // r10
int v185; // r5
int v186; // r0
int v187; // r6
const cocos2d::CCPoint *v188; // r9
void (__fastcall *v189)(int, const char **); // r8
int v190; // r3
int v192; // r9
size_t v193; // r0
char *v194; // [sp+8h] [bp-12Ch]
float *v195; // [sp+10h] [bp-124h]
_BOOL4 v196; // [sp+14h] [bp-120h]
GameManager *v197; // [sp+18h] [bp-11Ch]
void (__fastcall *v198)(int, void **); // [sp+1Ch] [bp-118h]
void (__fastcall *v199)(int, void **); // [sp+1Ch] [bp-118h]
void (__fastcall *v200)(int, void **); // [sp+1Ch] [bp-118h]
int *v201; // [sp+1Ch] [bp-118h]
char *v202; // [sp+24h] [bp-110h]
float v203; // [sp+2Ch] [bp-108h] BYREF
float v204; // [sp+30h] [bp-104h] BYREF
int v205; // [sp+34h] [bp-100h] BYREF
int *v206; // [sp+38h] [bp-FCh] BYREF
float v207; // [sp+3Ch] [bp-F8h] BYREF
float v208; // [sp+40h] [bp-F4h]
FLAlertLayer *(__fastcall *v209)(FLAlertLayer *, cocos2d::CCObject *); // [sp+44h] [bp-F0h]
int v210; // [sp+48h] [bp-ECh]
GJEditorSoundConfig *(__fastcall *v211)(EditorSoundConfigInfoLayer *, cocos2d::CCObject *); // [sp+4Ch] [bp-E8h]
int v212; // [sp+50h] [bp-E4h]
_DWORD (*v213)(EditorSoundConfigInfoLayer *__hidden, cocos2d::CCObject *); // [sp+54h] [bp-E0h]
int v214; // [sp+58h] [bp-DCh]
EditorSFXManager *(__fastcall *v215)(EditorSFXManager *, cocos2d::CCObject *); // [sp+5Ch] [bp-D8h]
int v216; // [sp+60h] [bp-D4h]
int (__fastcall *v217)(int, cocos2d::CCObject *); // [sp+64h] [bp-D0h]
int v218; // [sp+68h] [bp-CCh]
int (__fastcall *v219)(int, cocos2d::CCObject *); // [sp+6Ch] [bp-C8h]
int v220; // [sp+70h] [bp-C4h]
_DWORD *(__fastcall *v221)(_DWORD *, cocos2d::CCObject *); // [sp+74h] [bp-C0h]
int v222; // [sp+78h] [bp-BCh]
GameLevelManager *(__fastcall *v223)(GameLevelManager *, cocos2d::CCObject *); // [sp+7Ch] [bp-B8h]
int v224; // [sp+80h] [bp-B4h]
EditorSFXManager *(__fastcall *v225)(EditorSFXManager *, cocos2d::CCObject *); // [sp+84h] [bp-B0h]
int v226; // [sp+88h] [bp-ACh]
int (__fastcall *v227)(int, cocos2d::CCObject *); // [sp+8Ch] [bp-A8h]
int v228; // [sp+90h] [bp-A4h]
int (__fastcall *v229)(EditorSoundConfigInfoLayer *, cocos2d::CCObject *); // [sp+94h] [bp-A0h]
int v230; // [sp+98h] [bp-9Ch]
int (__fastcall *v231)(int, cocos2d::CCObject *); // [sp+9Ch] [bp-98h]
int v232; // [sp+A0h] [bp-94h]
int v233; // [sp+A4h] [bp-90h]
int v234; // [sp+A8h] [bp-8Ch]
_BYTE v235[8]; // [sp+ACh] [bp-88h] BYREF
const char *v236; // [sp+B4h] [bp-80h] BYREF
const char *v237; // [sp+B8h] [bp-7Ch]
int v238[2]; // [sp+BCh] [bp-78h] BYREF
cocos2d::CCLabelBMFont *v239; // [sp+C4h] [bp-70h]
int v240[3]; // [sp+C8h] [bp-6Ch] BYREF
int v241[3]; // [sp+D4h] [bp-60h] BYREF
int v242[2]; // [sp+E0h] [bp-54h] BYREF
char *v243; // [sp+E8h] [bp-4Ch]
_DWORD v244[3]; // [sp+ECh] [bp-48h] BYREF
int v245; // [sp+F8h] [bp-3Ch] BYREF
int v246; // [sp+FCh] [bp-38h]
cocos2d::CCLabelBMFont *v247; // [sp+100h] [bp-34h]
void *v248; // [sp+104h] [bp-30h] BYREF
char *v249; // [sp+108h] [bp-2Ch]
unsigned int v250; // [sp+10Ch] [bp-28h]
void *v251; // [sp+110h] [bp-24h] BYREF
char *v252; // [sp+114h] [bp-20h]
unsigned int v253; // [sp+118h] [bp-1Ch]
void *v254; // [sp+11Ch] [bp-18h] BYREF
char *v255; // [sp+120h] [bp-14h]
const char *v256; // [sp+124h] [bp-10h]
v197 = SetupTriggerPopup::init((SetupTriggerPopup *)a1, nullptr, nullptr, 380.0, 240.0, (_BYTE *)&dword_0 + 1, 0.0);
if ( !v197 )
return v197;
*(_DWORD *)(a1 + 748) = a2;
if ( a2 )
cocos2d::CCObject::retain(a2);
*(_DWORD *)(a1 + 752) = a3;
*(_DWORD *)(a1 + 756) = a4;
v9 = (cocos2d::CCDirector *)SetupTriggerPopup::preSetup((SetupTriggerPopup *)a1);
*(_BYTE *)(a1 + 468) = 1;
cocos2d::CCDirector::sharedDirector(v9);
WinSize = (cocos2d::CCMenu *)cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v207);
v195 = &v203;
v11 = *(float *)(a1 + 560);
v203 = v207 * 0.5;
v12 = (float)(v208 * 0.5) - (float)(v11 * 0.5);
v204 = (float)(v208 * 0.5) + (float)(v11 * 0.5);
v13 = cocos2d::CCMenu::create(WinSize);
*(_DWORD *)(a1 + 444) = v13;
(*(void (__fastcall **)(_DWORD, int, int))(**(_DWORD **)(a1 + 460) + 232))(*(_DWORD *)(a1 + 460), v13, 10);
v14 = *(_DWORD *)(a1 + 748);
if ( !v14 )
{
v238[0] = 0;
v238[1] = 0;
v239 = nullptr;
std::string::__init(v238, "-", 1u);
goto LABEL_9;
}
if ( *(_DWORD *)(a1 + 752) != 2 || *(int *)(v14 + 264) > 0 )
{
std::string::basic_string(v238, v14 + 324);
LABEL_9:
if ( (v238[0] & 1) != 0 )
v16 = v239;
else
v16 = (cocos2d::CCLabelBMFont *)((char *)v238 + 1);
v17 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v16, "bigFont.fnt", v15);
cocos2d::CCLabelBMFont::limitLabelWidth(v17, 200.0, 0.8, 0.0);
v18 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, void **))(*(_DWORD *)v17 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v254, v203 + 12.0, v204 - 22.0);
v18(v17, &v254);
(*(void (__fastcall **)(_DWORD, cocos2d::CCLabelBMFont *))(**(_DWORD **)(a1 + 460) + 228))(
*(_DWORD *)(a1 + 460),
v17);
v19 = *(_DWORD *)(a1 + 748);
if ( v19 && *(_DWORD *)(a1 + 752) != 2 )
{
std::string::basic_string(v240, v19 + 360);
if ( (v240[0] & 1) != 0 )
v20 = v240[1];
else
v20 = (int)LOBYTE(v240[0]) >> 1;
if ( v20 )
{
std::string::basic_string(&v245, *(_DWORD *)(a1 + 748) + 360);
}
else
{
v245 = 0;
v246 = 0;
v247 = nullptr;
std::string::__init(&v245, "-", 1u);
}
std::string::~string((int)v240);
if ( (v245 & 1) != 0 )
v22 = v247;
else
v22 = (cocos2d::CCLabelBMFont *)((char *)&v245 + 1);
v23 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v22, "goldFont.fnt", v21);
cocos2d::CCLabelBMFont::limitLabelWidth(v23, 90.0, 0.8, 0.0);
v24 = (*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v17 + 96))(v17);
v25 = *(float *)(*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v17 + 164))(v17);
v26 = (float)(v25 * 0.5)
* COERCE_FLOAT((*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v17 + 84))(v17));
v27 = *(float *)(*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v23 + 164))(v23);
v28 = (*(float (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v23 + 84))(v23);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v254, (float)(v26 + (float)((float)(v27 * 0.5) * v28)) + 10.0, 0.0);
cocos2d::CCPoint::operator+(&v248, v24, &v254);
v210 = 0;
v209 = EditorSoundConfigInfoLayer::onViewProfile;
v29 = CCMenuItemSpriteExtra::create((int)v23, 0, a1, (int)EditorSoundConfigInfoLayer::onViewProfile, 0);
(*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 444) + 228))(*(_DWORD *)(a1 + 444), v29);
v30 = *(void (__fastcall **)(int, void **))(*(_DWORD *)v29 + 92);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)&v254, *(const cocos2d::CCPoint **)(a1 + 444));
v30(v29, &v254);
v31 = *(float *)(*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v23 + 164))(v23);
v32 = COERCE_FLOAT((*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v23 + 84))(v23));
v33 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, void **))(*(_DWORD *)v17 + 92);
v34 = (*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v17 + 96))(v17);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v251, -(float)((float)((float)(v31 * v32) + 10.0) * 0.5), 0.0);
cocos2d::CCPoint::operator+(&v254, v34, &v251);
v33(v17, &v254);
v198 = *(void (__fastcall **)(int, void **))(*(_DWORD *)v29 + 92);
v35 = (*(int (__fastcall **)(int))(*(_DWORD *)v29 + 96))(v29);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v251, -(float)((float)((float)(v31 * v32) + 10.0) * 0.5), 0.0);
cocos2d::CCPoint::operator+(&v254, v35, &v251);
v198(v29, &v254);
std::string::~string((int)&v245);
}
v36 = *(_DWORD *)(a1 + 748);
if ( v36 )
{
std::string::basic_string(v241, v36 + 348);
if ( (v241[0] & 1) != 0 ? v241[1] : (int)LOBYTE(v241[0]) >> 1 )
{
std::string::basic_string(v242, *(_DWORD *)(a1 + 748) + 348);
}
else
{
v242[0] = 0;
v242[1] = 0;
v243 = nullptr;
std::string::__init(v242, "music", 5u);
}
v42 = EmoteSprite::createWithName((int)v242, v39, v40, v41);
std::string::~string((int)v242);
std::string::~string((int)v241);
if ( v42
|| (v245 = 0,
v246 = 0,
v247 = nullptr,
std::string::__init(&v245, "music", 5u),
v42 = EmoteSprite::createWithName((int)&v245, v43, v44, v45),
std::string::~string((int)&v245),
v42) )
{
EmoteSprite::fitToHeight(v42, 22.0, 0.0);
v46 = COERCE_FLOAT((*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v17 + 112))(v17));
v47 = *(float *)(*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v17 + 164))(v17);
v48 = v47 * COERCE_FLOAT((*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v17 + 84))(v17));
v49 = *(void (__fastcall **)(cocos2d::CCSprite *, void **))(*(_DWORD *)v42 + 92);
v50 = (*(float (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v17 + 120))(v17);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v254, (float)(v46 - (float)(v48 * 0.5)) - 18.0, v50 - 1.0);
v49(v42, &v254);
(*(void (__fastcall **)(_DWORD, cocos2d::CCSprite *, int))(**(_DWORD **)(a1 + 460) + 232))(
*(_DWORD *)(a1 + 460),
v42,
1);
if ( *(_BYTE *)(*(_DWORD *)(a1 + 748) + 320) )
{
v52 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_featuredCoin_001.png", v51);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v52 + 80))(v52, 1061662228);
v53 = *(void (__fastcall **)(int, void **))(*(_DWORD *)v52 + 92);
v54 = (*(int (__fastcall **)(cocos2d::CCSprite *))(*(_DWORD *)v42 + 96))(v42);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v251, 0.0, -4.5);
cocos2d::CCPoint::operator+(&v254, v54, &v251);
v53(v52, &v254);
(*(void (__fastcall **)(_DWORD, int, _DWORD))(**(_DWORD **)(a1 + 460) + 232))(*(_DWORD *)(a1 + 460), v52, 0);
}
}
}
std::string::~string((int)v238);
goto LABEL_42;
}
cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v254, 0.0, 0.0, 40.0, 40.0);
v55 = cocos2d::extension::CCScale9Sprite::create("square02_small.png", &v254);
v56 = *(void (__fastcall **)(int, void **))(*(_DWORD *)v55 + 160);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v254, 320.0, 30.0);
v56(v55, &v254);
(*(void (__fastcall **)(int, void *))(*(_DWORD *)v55 + 480))(v55, &unk_BF0CF7);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v55 + 456))(v55, 100);
v57 = *(void (__fastcall **)(int, void **))(*(_DWORD *)v55 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v254, v203, v204 - 27.0);
v57(v55, &v254);
(*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 460) + 228))(*(_DWORD *)(a1 + 460), v55);
v58 = CCTextInputNode::create(
(CCTextInputNode *)0x43A00000,
30.0,
"Pack Name",
"Thonburi",
(const char *)&dword_18,
"bigFont.fnt",
v194);
*(_DWORD *)(a1 + 820) = v58;
v58[105] = a1 + 440;
v59 = *(_DWORD *)(a1 + 820);
v245 = 0;
v246 = 0;
v247 = nullptr;
std::string::__init(&v245, " abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789", 0x3Fu);
CCTextInputNode::setAllowedChars(v59, (unsigned __int8 *)&v245);
std::string::~string((int)&v245);
*(_DWORD *)(*(_DWORD *)(a1 + 820) + 424) = 20;
CCTextInputNode::setMaxLabelScale(*(_DWORD *)(a1 + 820), 0.9);
CCTextInputNode::setMaxLabelWidth(*(_DWORD *)(a1 + 820), 310.0);
std::string::basic_string(&v245, *(_DWORD *)(a1 + 748) + 324);
if ( (v245 & 1) != 0 )
v60 = v246;
else
v60 = (int)(unsigned __int8)v245 >> 1;
std::string::~string((int)&v245);
if ( v60 )
{
v192 = *(_DWORD *)(a1 + 820);
std::string::basic_string(v242, *(_DWORD *)(a1 + 748) + 324);
if ( (v242[0] & 1) == 0 )
v4 = (char *)v242 + 1;
v245 = 0;
if ( (v242[0] & 1) != 0 )
v4 = v243;
v246 = 0;
v247 = nullptr;
v193 = strlen(v4);
std::string::__init(&v245, v4, v193);
CCTextInputNode::setString(v192, (int)&v245);
std::string::~string((int)&v245);
std::string::~string((int)v242);
}
v61 = *(_DWORD *)(a1 + 820);
v62 = *(void (__fastcall **)(int, void **))(*(_DWORD *)v61 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v254, v203, v204 - 27.0);
v62(v61, &v254);
(*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(a1 + 460) + 228))(*(_DWORD *)(a1 + 460), *(_DWORD *)(a1 + 820));
LABEL_42:
v244[0] = a1;
v244[1] = &v203;
v244[2] = &v204;
if ( !*(_DWORD *)(a1 + 748) )
{
sub_7847B4((int)v244, v37);
SetupTriggerPopup::postSetup((SetupTriggerPopup *)a1);
return v197;
}
if ( *(_DWORD *)(a1 + 752) != 2 )
{
v63 = (float)(v208 * 0.5) + 88.0;
v64 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_downloadsIcon_001.png", v37);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v64 + 80))(v64, 1061997773);
v65 = *(void (__fastcall **)(int, void **))(*(_DWORD *)v64 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v254, 26.0, v63);
v65(v64, &v254);
(*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 460) + 228))(*(_DWORD *)(a1 + 460), v64);
GameToolbox::intToShortString((GameToolbox *)&v245, *(_DWORD *)(*(_DWORD *)(a1 + 748) + 292), 0);
if ( (v245 & 1) != 0 )
v67 = v247;
else
v67 = (cocos2d::CCLabelBMFont *)((char *)&v245 + 1);
v68 = cocos2d::CCLabelBMFont::create(v67, "bigFont.fnt", v66);
std::string::~string((int)&v245);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v68 + 80))(v68, 1053609165);
v199 = *(void (__fastcall **)(int, void **))(*(_DWORD *)v68 + 92);
v202 = (char *)(*(int (__fastcall **)(int))(*(_DWORD *)v64 + 96))(v64);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v251, 0.0, -21.0);
cocos2d::CCPoint::operator+(&v254, v202, &v251);
v199(v68, &v254);
(*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 460) + 228))(*(_DWORD *)(a1 + 460), v68);
v70 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_likesIcon_001.png", v69);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v70 + 80))(v70, 1061997773);
v200 = *(void (__fastcall **)(int, void **))(*(_DWORD *)v70 + 92);
v71 = (*(int (__fastcall **)(int))(*(_DWORD *)v64 + 96))(v64);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v251, 0.0, -52.0);
cocos2d::CCPoint::operator+(&v254, v71, &v251);
v200(v70, &v254);
(*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 460) + 228))(*(_DWORD *)(a1 + 460), v70);
GameToolbox::intToShortString((GameToolbox *)&v245, *(_DWORD *)(*(_DWORD *)(a1 + 748) + 296), 0);
if ( (v245 & 1) != 0 )
v73 = v247;
else
v73 = (cocos2d::CCLabelBMFont *)((char *)&v245 + 1);
*(_DWORD *)(a1 + 772) = cocos2d::CCLabelBMFont::create(v73, "bigFont.fnt", v72);
std::string::~string((int)&v245);
(*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 772) + 80))(*(_DWORD *)(a1 + 772), 1053609165);
v74 = *(_DWORD *)(a1 + 772);
v75 = *(void (__fastcall **)(int, void **))(*(_DWORD *)v74 + 92);
v76 = (*(int (__fastcall **)(int))(*(_DWORD *)v70 + 96))(v70);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v251, 0.0, -21.0);
cocos2d::CCPoint::operator+(&v254, v76, &v251);
v75(v74, &v254);
(*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(a1 + 460) + 228))(
*(_DWORD *)(a1 + 460),
*(_DWORD *)(a1 + 772));
}
v77 = v204;
v78 = *(float *)(a1 + 556) - 50.0;
cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v254, 0.0, 0.0, 40.0, 40.0);
v79 = v77 - 52.0;
v80 = cocos2d::extension::CCScale9Sprite::create("square02_small.png", &v254);
v81 = *(void (__fastcall **)(int, void **))(*(_DWORD *)v80 + 160);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v254, v78, v79 - (float)(v12 + 52.0));
v81(v80, &v254);
(*(void (__fastcall **)(int, void *))(*(_DWORD *)v80 + 480))(v80, &unk_BF0CF7);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v80 + 456))(v80, 95);
v82 = *(void (__fastcall **)(int, void **))(*(_DWORD *)v80 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v254, v203, (float)(v79 + (float)(v12 + 52.0)) * 0.5);
v82(v80, &v254);
(*(void (__fastcall **)(_DWORD, int, int))(**(_DWORD **)(a1 + 460) + 232))(*(_DWORD *)(a1 + 460), v80, 4);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v254, v78, v79 - (float)(v12 + 52.0));
v86 = ScrollableContentLayer::create((const cocos2d::CCSize *)&v254, v83, v84, v85);
*(_DWORD *)(a1 + 824) = v86;
v87 = v86;
v88 = *(void (__fastcall **)(int *, void **))(*v86 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v254, v203 - (float)(v78 * 0.5), v12 + 52.0);
v88(v87, &v254);
v89 = *(ScrollableContentLayer **)(a1 + 824);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v254, -2.0, 0.0);
ScrollableContentLayer::setThumbOffset(v89, (int)&v254);
(*(void (__fastcall **)(_DWORD, _DWORD, int))(**(_DWORD **)(a1 + 460) + 232))(
*(_DWORD *)(a1 + 460),
*(_DWORD *)(a1 + 824),
5);
EditorSoundConfigInfoLayer::buildSummary((EditorSoundConfigInfoLayer *)a1);
v90 = *(_DWORD *)(a1 + 752) - 2;
v248 = nullptr;
v249 = nullptr;
v196 = v90 == 0;
v250 = 0;
v236 = "Load";
v251 = nullptr;
v252 = nullptr;
v253 = 0;
v254 = nullptr;
v255 = nullptr;
v256 = nullptr;
v237 = "GJ_button_01.png";
std::vector>::__push_back_slow_path>(
&v248,
(int *)&v236);
v91 = v252;
v237 = nullptr;
v236 = (const char *)EditorSoundConfigInfoLayer::onLoad;
if ( (unsigned int)v252 >= v253 )
{
std::vector>::__push_back_slow_path(
(int)&v251,
&v236);
}
else
{
if ( v252 )
{
*(_DWORD *)v252 = EditorSoundConfigInfoLayer::onLoad;
*(int (__fastcall **)(_DWORD, _DWORD))((char *)&byte_4 + (_DWORD)v91) = nullptr;
}
v252 += 8;
}
v236 = (const char *)(a1 + 776);
if ( v255 >= v256 )
{
std::vector::__push_back_slow_path((int)&v254, &v236);
}
else
{
if ( v255 )
*(_DWORD *)v255 = a1 + 776;
v255 += 4;
}
v236 = "Merge";
v237 = "GJ_button_05.png";
v92 = v249;
if ( (unsigned int)v249 >= v250 )
{
std::vector>::__push_back_slow_path>(
&v248,
(int *)&v236);
}
else
{
if ( v249 )
{
v93 = v237;
*(_DWORD *)v249 = v236;
*((_DWORD *)v92 + 1) = v93;
}
v249 += 8;
}
v94 = v252;
v237 = nullptr;
v236 = (const char *)EditorSoundConfigInfoLayer::onMerge;
if ( (unsigned int)v252 >= v253 )
{
std::vector>::__push_back_slow_path(
(int)&v251,
&v236);
}
else
{
if ( v252 )
{
*(_DWORD *)v252 = EditorSoundConfigInfoLayer::onMerge;
*((_DWORD *)v94 + 1) = 0;
}
v252 += 8;
}
v95 = v256;
v236 = (const char *)(a1 + 780);
if ( v255 >= v256 )
{
std::vector::__push_back_slow_path((int)&v254, &v236);
}
else
{
if ( v255 )
*(_DWORD *)v255 = a1 + 780;
v255 += 4;
}
if ( v196 )
{
v236 = "Overwrite";
v237 = "GJ_button_02.png";
v96 = v249;
if ( (unsigned int)v249 >= v250 )
{
std::vector>::__push_back_slow_path>(
&v248,
(int *)&v236);
}
else
{
if ( v249 )
{
v97 = v237;
*(_DWORD *)v249 = v236;
*((_DWORD *)v96 + 1) = v97;
}
v249 += 8;
}
v98 = v252;
v237 = nullptr;
v236 = (const char *)EditorSoundConfigInfoLayer::onOverwrite;
if ( (unsigned int)v252 >= v253 )
{
std::vector>::__push_back_slow_path(
(int)&v251,
&v236);
}
else
{
if ( v252 )
{
*(_DWORD *)v252 = EditorSoundConfigInfoLayer::onOverwrite;
*((_DWORD *)v98 + 1) = 0;
}
v252 += 8;
}
v236 = (const char *)(a1 + 788);
if ( v255 >= v256 )
{
std::vector::__push_back_slow_path((int)&v254, &v236);
}
else
{
if ( v255 )
*(_DWORD *)v255 = a1 + 788;
v255 += 4;
}
v236 = "Upload";
v237 = "GJ_button_01.png";
v99 = v249;
if ( (unsigned int)v249 >= v250 )
{
std::vector>::__push_back_slow_path>(
&v248,
(int *)&v236);
}
else
{
if ( v249 )
{
v100 = v237;
*(_DWORD *)v249 = v236;
*((_DWORD *)v99 + 1) = v100;
}
v249 += 8;
}
v101 = v252;
v237 = nullptr;
v236 = (const char *)EditorSoundConfigInfoLayer::onUpload;
if ( (unsigned int)v252 >= v253 )
{
std::vector>::__push_back_slow_path(
(int)&v251,
&v236);
}
else
{
if ( v252 )
{
*(_DWORD *)v252 = EditorSoundConfigInfoLayer::onUpload;
*((_DWORD *)v101 + 1) = 0;
}
v252 += 8;
}
v95 = v256;
v236 = (const char *)(a1 + 792);
if ( v255 >= v256 )
{
std::vector::__push_back_slow_path((int)&v254, &v236);
}
else
{
if ( v255 )
*(_DWORD *)v255 = a1 + 792;
v255 += 4;
}
}
v102 = 0;
v103 = *(float *)(a1 + 556);
v104 = (v249 - (_BYTE *)v248) >> 3;
v105 = (float)(v103 - 40.0) / (float)v104;
v106 = (float)((float)((float)(v207 * 0.5) - (float)(v103 * 0.5)) + 20.0) + (float)(v105 * 0.5);
while ( v102 < v104 )
{
v201 = *((int **)v254 + v102);
v107 = *((ButtonSprite **)v248 + 2 * v102);
v108 = *((char **)v248 + 2 * v102 + 1);
v109 = (int *)((char *)v251 + 8 * v102);
v110 = v109[1];
v233 = *v109;
v234 = v110;
v111 = ButtonSprite::create(
v107,
(const char *)off_3C,
0,
0.6,
1,
"bigFont.fnt",
v108,
(const char *)0x41E00000,
*(float *)&v195);
v112 = CCMenuItemSpriteExtra::create((int)v111, 0, a1, v233, v234);
(*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 444) + 228))(*(_DWORD *)(a1 + 444), v112);
v113 = *(const cocos2d::CCPoint **)(a1 + 444);
v114 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v112 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v236, v106 + (float)(v105 * (float)v102), v12 + 25.0);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v235, v113);
v114(v112, v235);
++v102;
*v201 = v112;
}
sub_7847B4((int)v244, v95);
v116 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_infoIcon_001.png", v115);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v116 + 80))(v116, 1061997773);
v212 = 0;
v211 = EditorSoundConfigInfoLayer::onShowDescription;
v117 = CCMenuItemSpriteExtra::create(v116, 0, a1, (int)EditorSoundConfigInfoLayer::onShowDescription, 0);
CCMenuItemSpriteExtra::setSizeMult(v117, 2.0);
(*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 444) + 228))(*(_DWORD *)(a1 + 444), v117);
v118 = *(const cocos2d::CCPoint **)(a1 + 444);
v119 = *(int (__fastcall **)(int, const char **))(*(_DWORD *)v117 + 92);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v235,
(float)(*v195 + (float)(*(float *)(a1 + 556) * 0.5)) - 14.0,
v204 - 17.0);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)&v236, v118);
v120 = (cocos2d::CCDirector *)v119(v117, &v236);
v205 = 1061997773;
v121 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v120);
v122 = COERCE_FLOAT(cocos2d::CCDirector::getScreenRight(v121));
v123 = v122 - 25.0;
v124 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)LODWORD(v122));
v125 = COERCE_FLOAT(cocos2d::CCDirector::getScreenTop(v124));
v206 = &v205;
v127 = v125 - 25.0;
if ( *(_DWORD *)(a1 + 748) )
{
v129 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_downloadBtn_001.png", v126);
sub_784874((cocos2d::CCSpriteFrameCache *)&v206, v129);
v214 = 0;
v213 = EditorSoundConfigInfoLayer::onDownloadSFX;
v130 = CCMenuItemSpriteExtra::create(v129, 0, a1, (int)EditorSoundConfigInfoLayer::onDownloadSFX, 0);
*(_DWORD *)(a1 + 796) = v130;
(*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 444) + 228))(*(_DWORD *)(a1 + 444), v130);
}
v128 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_deleteBtn_001.png", v126);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v128 + 80))(v128, 1061997773);
v216 = 0;
v215 = EditorSoundConfigInfoLayer::onLocalDelete;
v131 = CCMenuItemSpriteExtra::create(v128, 0, a1, (int)EditorSoundConfigInfoLayer::onLocalDelete, 0);
*(_DWORD *)(a1 + 808) = v131;
(*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 444) + 228))(*(_DWORD *)(a1 + 444), v131);
v132 = *(_DWORD *)(a1 + 808);
v133 = *(const cocos2d::CCPoint **)(a1 + 444);
v134 = *(void (__fastcall **)(int, const char **))(*(_DWORD *)v132 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v235, v123, v127);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)&v236, v133);
v134(v132, &v236);
v136 = v127 - 41.0;
if ( !v196 )
{
v137 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_updateBtn_001.png", v135);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v137 + 80))(v137, 1061997773);
v218 = 0;
v217 = EditorSoundConfigInfoLayer::onUpdate;
v138 = CCMenuItemSpriteExtra::create(v137, 0, a1, (int)EditorSoundConfigInfoLayer::onUpdate, 0);
*(_DWORD *)(a1 + 800) = v138;
(*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 444) + 228))(*(_DWORD *)(a1 + 444), v138);
v139 = *(_DWORD *)(a1 + 800);
v140 = *(const cocos2d::CCPoint **)(a1 + 444);
v141 = *(void (__fastcall **)(int, const char **))(*(_DWORD *)v139 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v235, v123, v136);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)&v236, v140);
v141(v139, &v236);
v136 = v136 - 41.0;
}
if ( *(_DWORD *)(a1 + 752) == 2 )
{
v142 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_editBtn_001.png", v135);
sub_784874((cocos2d::CCSpriteFrameCache *)&v206, v142);
v143 = EditorSoundConfigInfoLayer::onDescription;
v220 = 0;
v219 = EditorSoundConfigInfoLayer::onDescription;
}
else
{
if ( *(int *)(*(_DWORD *)(a1 + 748) + 264) <= 0 )
goto LABEL_120;
v142 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_infoBtn_001.png", v135);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v142 + 80))(v142, 1061997773);
v143 = EditorSoundConfigInfoLayer::onInfo;
v222 = 0;
v221 = EditorSoundConfigInfoLayer::onInfo;
}
v144 = CCMenuItemSpriteExtra::create(v142, 0, a1, (int)v143, 0);
(*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 444) + 228))(*(_DWORD *)(a1 + 444), v144);
v145 = *(const cocos2d::CCPoint **)(a1 + 444);
v146 = *(void (__fastcall **)(int, const char **))(*(_DWORD *)v144 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v235, v123, v136);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)&v236, v145);
v146(v144, &v236);
v136 = v136 - 41.0;
LABEL_120:
if ( !v196 )
{
v147 = *(_DWORD *)(a1 + 748);
if ( v147 )
{
if ( *(int *)(v147 + 264) > 0 )
{
v148 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_like2Btn_001.png", v135);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v148 + 80))(v148, 1061997773);
v224 = 0;
v223 = EditorSoundConfigInfoLayer::onLike;
v149 = CCMenuItemSpriteExtra::create(v148, 0, a1, (int)EditorSoundConfigInfoLayer::onLike, 0);
*(_DWORD *)(a1 + 768) = v149;
(*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 444) + 228))(*(_DWORD *)(a1 + 444), v149);
v150 = *(_DWORD *)(a1 + 768);
v151 = *(const cocos2d::CCPoint **)(a1 + 444);
v152 = *(void (__fastcall **)(int, const char **))(*(_DWORD *)v150 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v235, v123, v136);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)&v236, v151);
v152(v150, &v236);
v136 = v136 - 41.0;
EditorSoundConfigInfoLayer::refreshLikeState((_DWORD *)a1, v153, v154, v155);
}
}
}
v156 = *(_DWORD *)(a1 + 796);
if ( v156 )
{
v157 = *(const cocos2d::CCPoint **)(a1 + 444);
v158 = *(void (__fastcall **)(int, const char **))(*(_DWORD *)v156 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v235, v123, v136);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)&v236, v157);
v158(v156, &v236);
v136 = v136 - 41.0;
}
if ( !v196 && *(_DWORD *)(a1 + 748) )
{
v159 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"gj_heartOff_001.png", v135);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v159 + 80))(v159, 1064682128);
v226 = 0;
v225 = EditorSoundConfigInfoLayer::onFavorite;
v160 = CCMenuItemSpriteExtra::create(v159, 0, a1, (int)EditorSoundConfigInfoLayer::onFavorite, 0);
*(_DWORD *)(a1 + 784) = v160;
(*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 444) + 228))(*(_DWORD *)(a1 + 444), v160);
v161 = *(_DWORD *)(a1 + 784);
v162 = *(const cocos2d::CCPoint **)(a1 + 444);
v163 = *(void (__fastcall **)(int, const char **))(*(_DWORD *)v161 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v235, v123, v136);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)&v236, v162);
v163(v161, &v236);
v136 = v136 - 41.0;
}
v164 = (cocos2d::CCDirector *)EditorSoundConfigInfoLayer::editsServerDescription((EditorSoundConfigInfoLayer *)a1);
if ( v164 )
{
v166 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_editBtn_001.png", v165);
sub_784874((cocos2d::CCSpriteFrameCache *)&v206, v166);
v228 = 0;
v227 = EditorSoundConfigInfoLayer::onDescription;
v167 = CCMenuItemSpriteExtra::create(v166, 0, a1, (int)EditorSoundConfigInfoLayer::onDescription, 0);
(*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 444) + 228))(*(_DWORD *)(a1 + 444), v167);
v168 = *(const cocos2d::CCPoint **)(a1 + 444);
v169 = *(int (__fastcall **)(int, const char **))(*(_DWORD *)v167 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v235, v123, v136);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)&v236, v168);
v164 = (cocos2d::CCDirector *)v169(v167, &v236);
}
v170 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v164);
v171 = COERCE_FLOAT(cocos2d::CCDirector::getScreenLeft(v170));
v172 = v171 + 24.0;
v173 = (float)((float)(v208 * 0.5) - 50.0) + 20.5;
v174 = GameManager::sharedState((GameManager *)LODWORD(v171));
v175 = *(_DWORD *)(v174 + 820);
v176 = *(_DWORD *)(v174 + 824);
isOwner = EditorSoundConfigInfoLayer::isOwner((EditorSoundConfigInfoLayer *)a1);
v179 = *(_DWORD *)(a1 + 748);
if ( (isOwner || v175 - v176 > 1) && v179 && *(int *)(v179 + 264) > 0 && *(_DWORD *)(a1 + 752) != 2 )
{
v180 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_deleteServerBtn_001.png", v178);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v180 + 80))(v180, 1061997773);
v230 = 0;
v229 = EditorSoundConfigInfoLayer::onDeleteServer;
v181 = CCMenuItemSpriteExtra::create(v180, 0, a1, (int)EditorSoundConfigInfoLayer::onDeleteServer, 0);
*(_DWORD *)(a1 + 816) = v181;
(*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 444) + 228))(*(_DWORD *)(a1 + 444), v181);
v182 = *(_DWORD *)(a1 + 816);
v183 = *(const cocos2d::CCPoint **)(a1 + 444);
v184 = *(void (__fastcall **)(int, const char **))(*(_DWORD *)v182 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v235, v172, v173);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)&v236, v183);
v184(v182, &v236);
v173 = v173 - 41.0;
}
if ( v179 )
{
v185 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_duplicateBtn_001.png", v178);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v185 + 80))(v185, 1061997773);
v232 = 0;
v231 = EditorSoundConfigInfoLayer::onDuplicate;
v186 = CCMenuItemSpriteExtra::create(v185, 0, a1, (int)EditorSoundConfigInfoLayer::onDuplicate, 0);
*(_DWORD *)(a1 + 812) = v186;
(*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 444) + 228))(*(_DWORD *)(a1 + 444), v186);
v187 = *(_DWORD *)(a1 + 812);
v188 = *(const cocos2d::CCPoint **)(a1 + 444);
v189 = *(void (__fastcall **)(int, const char **))(*(_DWORD *)v187 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v235, v172, v173);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)&v236, v188);
v189(v187, &v236);
}
SetupTriggerPopup::postSetup((SetupTriggerPopup *)a1);
EditorSoundConfigInfoLayer::refreshActionButtons((EditorSoundConfigInfoLayer *)a1);
if ( !v196 )
{
v190 = *(_DWORD *)(a1 + 748);
if ( v190 )
{
if ( *(int *)(v190 + 264) > 0 && !*(_BYTE *)(v190 + 384) )
EditorSoundConfigInfoLayer::startDownload(a1);
}
}
if ( v254 )
{
v255 -= 4 * ((unsigned int)(v255 - (_BYTE *)v254) >> 2);
operator delete(v254);
}
if ( v251 )
{
v252 -= 8 * ((unsigned int)(v252 - (_BYTE *)v251) >> 3);
operator delete(v251);
}
if ( v248 )
{
v249 -= 8 * ((unsigned int)(v249 - (_BYTE *)v248) >> 3);
operator delete(v248);
}
return v197;
}