//
// EditorSoundConfigCell::loadFromConfig from 0x783ca4 to 0x7845b2 (2318 bytes)
//
// 1 xrefs:
// > CustomListView::loadCell @ 0x4342da
//
// 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:31 +0000
//
cocos2d::CCObject *__fastcall EditorSoundConfigCell::loadFromConfig(
EditorSoundConfigCell *this,
GJEditorSoundConfig *a2)
{
cocos2d::CCMenuItem *v4; // r1
cocos2d::CCObject *result; // r0
int v6; // r0
int v7; // r1
int v8; // r3
int v9; // r1
int v10; // r2
int v11; // r3
cocos2d::CCSprite *v12; // r7
int v13; // r1
int v14; // r2
int v15; // r3
const char *v16; // r1
void (__fastcall *v17)(cocos2d::CCSprite *, _DWORD *); // r9
int v18; // r7
void (__fastcall *v19)(int, _DWORD *); // r9
float v20; // s15
int v21; // r3
int v22; // r1
float v23; // s15
const char *v24; // r2
cocos2d::CCLabelBMFont *v25; // r0
cocos2d::CCLabelBMFont *v26; // r7
void (__fastcall *v27)(cocos2d::CCLabelBMFont *, _DWORD *); // r8
void (__fastcall *v28)(cocos2d::CCLabelBMFont *, _DWORD *); // r8
const char *v29; // r1
int v30; // r3
int v31; // r2
const char *v32; // r7
size_t v33; // r0
const char *v34; // r2
int v35; // r3
size_t v36; // r2
const char *v37; // r1
cocos2d::CCLabelBMFont *v38; // r0
cocos2d::CCLabelBMFont *v39; // r7
void (__fastcall *v40)(cocos2d::CCLabelBMFont *, _DWORD *); // r8
void (__fastcall *v41)(cocos2d::CCLabelBMFont *, _DWORD *); // r8
int *v42; // r0
int v43; // r3
float v44; // s19
float v45; // s16
_BOOL4 v46; // r10
const char *v47; // r2
cocos2d::CCLabelBMFont *v48; // r0
cocos2d::CCLabelBMFont *v49; // r7
void (__fastcall *v50)(cocos2d::CCLabelBMFont *, _DWORD *); // r11
void (__fastcall *v51)(cocos2d::CCLabelBMFont *, _DWORD *); // r11
float v52; // s14
float v53; // s20
float v54; // s22
double v55; // r0
float v56; // s20
const char *v57; // r2
char *v58; // r0
int v59; // r7
void (__fastcall *v60)(int, _DWORD *); // r9
void (__fastcall *v61)(int, _DWORD *); // r3
void (__fastcall *v62)(int, _DWORD *); // r9
int v63; // r3
cocos2d::CCLabelBMFont *v64; // r1
size_t v65; // r2
_DWORD *v66; // r0
int v67; // r1
cocos2d::CCLabelBMFont *v68; // r2
const char *v69; // r2
cocos2d::CCLabelBMFont *v70; // r0
cocos2d::CCLabelBMFont *v71; // r6
int v72; // r8
const cocos2d::CCPoint *v73; // r11
void (__fastcall *v74)(int, char *); // r10
float v75; // s20
float v76; // r0
float v77; // s18
double v78; // r0
float v79; // s17
int v80; // r6
void (__fastcall *v81)(int, char *); // r8
cocos2d::CCLabelBMFont *v82; // r0
cocos2d::CCLabelBMFont *v83; // r6
void (__fastcall *v84)(cocos2d::CCLabelBMFont *, char *); // r8
void (__fastcall *v85)(cocos2d::CCLabelBMFont *, char *); // r8
const char *v86; // r1
int v87; // r6
float v88; // s17
void (__fastcall *v89)(int, char *); // r8
const char *v90; // r2
cocos2d::CCLabelBMFont *v91; // r0
cocos2d::CCLabelBMFont *v92; // r6
void (__fastcall *v93)(cocos2d::CCLabelBMFont *, char *); // r8
void (__fastcall *v94)(cocos2d::CCLabelBMFont *, char *); // r8
float v95; // [sp+10h] [bp-6Ch] BYREF
EditorSoundConfigCell *v96; // [sp+14h] [bp-68h] BYREF
EditorSoundConfigCell *v97; // [sp+18h] [bp-64h] BYREF
float *v98[2]; // [sp+1Ch] [bp-60h] BYREF
int v99[2]; // [sp+24h] [bp-58h] BYREF
_BYTE v100[8]; // [sp+2Ch] [bp-50h] BYREF
char v101; // [sp+34h] [bp-48h] BYREF
char v102; // [sp+35h] [bp-47h]
char v103; // [sp+36h] [bp-46h]
_DWORD v104[2]; // [sp+3Ch] [bp-40h] BYREF
_DWORD v105[2]; // [sp+44h] [bp-38h] BYREF
cocos2d::CCLabelBMFont *v106; // [sp+4Ch] [bp-30h]
int v107[3]; // [sp+50h] [bp-2Ch] BYREF
int v108; // [sp+5Ch] [bp-20h] BYREF
int v109; // [sp+60h] [bp-1Ch]
cocos2d::CCLabelBMFont *v110; // [sp+64h] [bp-18h]
int v111; // [sp+68h] [bp-14h] BYREF
size_t v112; // [sp+6Ch] [bp-10h]
cocos2d::CCLabelBMFont *v113; // [sp+70h] [bp-Ch]
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 103) + 292))(*((_DWORD *)this + 103), 1);
result = *((cocos2d::CCObject **)this + 105);
if ( result )
result = (cocos2d::CCObject *)cocos2d::CCObject::release(result);
*((_DWORD *)this + 105) = a2;
if ( a2 )
result = (cocos2d::CCObject *)cocos2d::CCObject::retain(a2);
if ( *((_DWORD *)this + 105) )
{
v6 = cocos2d::CCMenu::create(nullptr, v4);
*((_DWORD *)this + 107) = v6;
(*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 103) + 232))(*((_DWORD *)this + 103), v6, 3);
v7 = *((_DWORD *)this + 105) + 348;
v95 = *((float *)this + 101) * 0.5;
std::string::basic_string(&v108, v7);
if ( (v108 & 1) != 0 )
v8 = v109;
else
v8 = (int)(unsigned __int8)v108 >> 1;
if ( v8 )
{
std::string::basic_string(&v111, *((_DWORD *)this + 105) + 348);
}
else
{
v111 = 0;
v112 = 0;
v113 = nullptr;
std::string::__init(&v111, "music", 5u);
}
v12 = EmoteSprite::createWithName((int)&v111, v9, v10, v11);
std::string::~string((int)&v111);
std::string::~string((int)&v108);
if ( v12
|| (v111 = 0,
v112 = 0,
v113 = nullptr,
std::string::__init(&v111, "music", 5u),
v12 = EmoteSprite::createWithName((int)&v111, v13, v14, v15),
std::string::~string((int)&v111),
v12) )
{
EmoteSprite::fitToHeight(v12, 22.0, 0.0);
v17 = *(void (__fastcall **)(cocos2d::CCSprite *, _DWORD *))(*(_DWORD *)v12 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v104, 19.0, v95);
v17(v12, v104);
(*(void (__fastcall **)(_DWORD, cocos2d::CCSprite *, int))(**((_DWORD **)this + 103) + 232))(
*((_DWORD *)this + 103),
v12,
1);
}
if ( *(_BYTE *)(*((_DWORD *)this + 105) + 320) )
{
v18 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_featuredCoin_001.png", v16);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v18 + 80))(v18, 1061662228);
v19 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v18 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v104, 19.0, v95 - 4.5);
v19(v18, v104);
(*(void (__fastcall **)(_DWORD, int, _DWORD))(**((_DWORD **)this + 103) + 232))(*((_DWORD *)this + 103), v18, 0);
}
v98[1] = &v95;
v20 = *((float *)this + 101);
v96 = this;
v97 = this;
v99[0] = (int)&v97;
v21 = *((unsigned __int8 *)this + 432);
v98[0] = (float *)this;
v99[1] = (int)this;
v22 = *((_DWORD *)this + 105);
v23 = v20 * 0.5;
if ( !v21 )
{
v43 = *(_DWORD *)(v22 + 308);
v44 = v23 + 8.0;
v45 = v23 - 8.0;
v46 = v43 == 3 || v43 == 4;
std::string::basic_string(&v111, v22 + 324);
if ( (v111 & 1) != 0 )
v48 = v113;
else
v48 = (cocos2d::CCLabelBMFont *)((char *)&v111 + 1);
v49 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v48, "bigFont.fnt", v47);
std::string::~string((int)&v111);
v50 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, _DWORD *))(*(_DWORD *)v49 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v104, 0.0, 0.5);
v50(v49, v104);
v51 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, _DWORD *))(*(_DWORD *)v49 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v104, 40.0, v44);
v51(v49, v104);
if ( v46 )
v52 = 230.0;
else
v52 = 170.0;
cocos2d::CCLabelBMFont::limitLabelWidth(v49, (float)(*((float *)this + 100) - 40.0) - v52, 0.55, 0.35);
(*(void (__fastcall **)(_DWORD, cocos2d::CCLabelBMFont *))(**((_DWORD **)this + 103) + 228))(
*((_DWORD *)this + 103),
v49);
v53 = COERCE_FLOAT((*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v49 + 112))(v49));
v54 = *(float *)(*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v49 + 164))(v49);
v55 = ((double (__fastcall *)(cocos2d::CCLabelBMFont *))*(_DWORD *)(*(_DWORD *)v49 + 68))(v49);
v56 = v53 + (float)(v54 * *(float *)&v55);
sub_78392C((int *)&v96, (const char *)HIDWORD(v55));
if ( v46 )
{
if ( *(_DWORD *)(*((_DWORD *)this + 105) + 308) == 3 )
v58 = "Friends Only";
else
v58 = "Unlisted";
v59 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)v58, "bigFont.fnt", v57);
v60 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v59 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v104, 0.0, 0.5);
v60(v59, v104);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v59 + 80))(v59, 1050253722);
v61 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v59 + 536);
LOWORD(v104[0]) = -19201;
BYTE2(v104[0]) = 70;
v61(v59, v104);
v62 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v59 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v104, v56 + 26.0, v44);
v62(v59, v104);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 103) + 228))(*((_DWORD *)this + 103), v59);
}
memset(v107, 0, sizeof(v107));
std::string::__init(v107, "By ", 3u);
std::string::basic_string(&v108, *((_DWORD *)this + 105) + 360);
if ( (v108 & 1) != 0 )
v63 = v109;
else
v63 = (int)(unsigned __int8)v108 >> 1;
if ( v63 )
{
std::string::basic_string(&v111, *((_DWORD *)this + 105) + 360);
}
else
{
v111 = 0;
v112 = 0;
v113 = nullptr;
std::string::__init(&v111, "-", 1u);
}
if ( (v111 & 1) != 0 )
{
v64 = v113;
v65 = v112;
}
else
{
v65 = (int)(unsigned __int8)v111 >> 1;
v64 = (cocos2d::CCLabelBMFont *)((char *)&v111 + 1);
}
v66 = std::string::append(v107, v64, v65);
v67 = v66[1];
v68 = (cocos2d::CCLabelBMFont *)v66[2];
v105[0] = *v66;
v105[1] = v67;
v106 = v68;
*v66 = 0;
v66[1] = 0;
v66[2] = 0;
std::string::~string((int)&v111);
std::string::~string((int)&v108);
std::string::~string((int)v107);
if ( (v105[0] & 1) != 0 )
v70 = v106;
else
v70 = (cocos2d::CCLabelBMFont *)((char *)v105 + 1);
v71 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v70, "goldFont.fnt", v69);
cocos2d::CCLabelBMFont::limitLabelWidth(v71, 90.0, 0.4, 0.0);
v104[0] = EditorSoundConfigCell::onViewProfile;
v104[1] = 0;
v72 = CCMenuItemSpriteExtra::create((int)v71, 0, (int)this, (int)EditorSoundConfigCell::onViewProfile, 0);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 107) + 228))(*((_DWORD *)this + 107), v72);
v73 = *((const cocos2d::CCPoint **)this + 107);
v74 = *(void (__fastcall **)(int, char *))(*(_DWORD *)v72 + 92);
v75 = *(float *)(*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v71 + 164))(v71);
v76 = (*(float (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v71 + 84))(v71);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v100, (float)((float)(v75 * v76) * 0.5) + 40.0, v45);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)&v101, v73);
v74(v72, &v101);
v77 = *(float *)(*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v71 + 164))(v71);
v78 = ((double (__fastcall *)(cocos2d::CCLabelBMFont *))*(_DWORD *)(*(_DWORD *)v71 + 84))(v71);
v79 = (float)((float)(v77 * *(float *)&v78) + 40.0) + 10.0;
v80 = cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"GJ_downloadsIcon_001.png",
(const char *)HIDWORD(v78));
(*(void (__fastcall **)(int, int))(*(_DWORD *)v80 + 80))(v80, 1056964608);
v81 = *(void (__fastcall **)(int, char *))(*(_DWORD *)v80 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v101, v79, v45);
v81(v80, &v101);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 103) + 228))(*((_DWORD *)this + 103), v80);
GameToolbox::intToShortString((GameToolbox *)&v108, *(_DWORD *)(*((_DWORD *)this + 105) + 292), 0);
if ( (v108 & 1) != 0 )
v82 = v110;
else
v82 = (cocos2d::CCLabelBMFont *)((char *)&v108 + 1);
v83 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(
v82,
"bigFont.fnt",
(const char *)((unsigned __int8)v108 << 31));
std::string::~string((int)&v108);
v84 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, char *))(*(_DWORD *)v83 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v101, 0.0, 0.5);
v84(v83, &v101);
(*(void (__fastcall **)(cocos2d::CCLabelBMFont *, int))(*(_DWORD *)v83 + 80))(v83, 1051931443);
v85 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, char *))(*(_DWORD *)v83 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v101, v79 + 9.0, v45);
v85(v83, &v101);
cocos2d::CCLabelBMFont::limitLabelWidth(v83, 30.0, 0.35, 0.0);
(*(void (__fastcall **)(_DWORD, cocos2d::CCLabelBMFont *))(**((_DWORD **)this + 103) + 228))(
*((_DWORD *)this + 103),
v83);
v87 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_likesIcon_001.png", v86);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v87 + 80))(v87, 1056964608);
v88 = v79 + 47.0;
v89 = *(void (__fastcall **)(int, char *))(*(_DWORD *)v87 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v101, v88, v45);
v89(v87, &v101);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 103) + 228))(*((_DWORD *)this + 103), v87);
GameToolbox::intToShortString((GameToolbox *)&v111, *(_DWORD *)(*((_DWORD *)this + 105) + 296), 0);
if ( (v111 & 1) != 0 )
v91 = v113;
else
v91 = (cocos2d::CCLabelBMFont *)((char *)&v111 + 1);
v92 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v91, "bigFont.fnt", v90);
std::string::~string((int)&v111);
v93 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, char *))(*(_DWORD *)v92 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v101, 0.0, 0.5);
v93(v92, &v101);
(*(void (__fastcall **)(cocos2d::CCLabelBMFont *, int))(*(_DWORD *)v92 + 80))(v92, 1051931443);
v94 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, char *))(*(_DWORD *)v92 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v101, v88 + 9.0, v45);
v94(v92, &v101);
cocos2d::CCLabelBMFont::limitLabelWidth(v92, 30.0, 0.35, 0.0);
(*(void (__fastcall **)(_DWORD, cocos2d::CCLabelBMFont *))(**((_DWORD **)this + 103) + 228))(
*((_DWORD *)this + 103),
v92);
sub_7839D8(v98);
sub_783AD8(v99);
v42 = v105;
return (cocos2d::CCObject *)std::string::~string((int)v42);
}
std::string::basic_string(&v111, v22 + 324);
if ( (v111 & 1) != 0 )
v25 = v113;
else
v25 = (cocos2d::CCLabelBMFont *)((char *)&v111 + 1);
v26 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v25, "bigFont.fnt", v24);
std::string::~string((int)&v111);
v27 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, _DWORD *))(*(_DWORD *)v26 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v104, 0.0, 0.5);
v27(v26, v104);
v28 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, _DWORD *))(*(_DWORD *)v26 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v104, 40.0, v23 + 8.0);
v28(v26, v104);
cocos2d::CCLabelBMFont::limitLabelWidth(v26, (float)(*((float *)this + 100) - 40.0) - 170.0, 0.55, 0.35);
(*(void (__fastcall **)(_DWORD, cocos2d::CCLabelBMFont *))(**((_DWORD **)this + 103) + 228))(
*((_DWORD *)this + 103),
v26);
(*(void (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v26 + 112))(v26);
(*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v26 + 164))(v26);
v29 = (const char *)((unsigned __int64)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))*(_DWORD *)(*(_DWORD *)v26 + 68))(v26) >> 32);
sub_78392C((int *)&v96, v29);
v101 = -76;
v102 = -76;
v103 = -76;
v30 = *((_DWORD *)this + 105);
v31 = *(_DWORD *)(v30 + 264);
if ( *(_BYTE *)(v30 + 272) && v31 > 0 && *(_DWORD *)(v30 + 276) > *(_DWORD *)(v30 + 280) )
{
v101 = -1;
v32 = "Edited";
v103 = 70;
}
else if ( v31 <= 0 )
{
v32 = "Local";
}
else
{
v101 = 120;
v102 = -1;
v32 = "Uploaded";
v103 = 120;
}
v111 = 0;
v112 = 0;
v113 = nullptr;
v33 = strlen(v32);
std::string::__init(&v111, v32, v33);
v35 = *(_DWORD *)(*((_DWORD *)this + 105) + 308);
if ( v35 == 3 )
{
v36 = 15;
v37 = " (Friends Only)";
}
else
{
if ( v35 != 4 )
goto LABEL_29;
v36 = 11;
v37 = " (Unlisted)";
}
std::string::append(&v111, v37, v36);
LABEL_29:
if ( (v111 & 1) != 0 )
v38 = v113;
else
v38 = (cocos2d::CCLabelBMFont *)((char *)&v111 + 1);
v39 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v38, "bigFont.fnt", v34);
v40 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, _DWORD *))(*(_DWORD *)v39 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v104, 0.0, 0.5);
v40(v39, v104);
(*(void (__fastcall **)(cocos2d::CCLabelBMFont *, int))(*(_DWORD *)v39 + 80))(v39, 1053609165);
(*(void (__fastcall **)(cocos2d::CCLabelBMFont *, char *))(*(_DWORD *)v39 + 536))(v39, &v101);
v41 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, _DWORD *))(*(_DWORD *)v39 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v104, 40.0, v23 - 8.0);
v41(v39, v104);
cocos2d::CCLabelBMFont::limitLabelWidth(v39, 140.0, 0.4, 0.0);
(*(void (__fastcall **)(_DWORD, cocos2d::CCLabelBMFont *))(**((_DWORD **)this + 103) + 228))(
*((_DWORD *)this + 103),
v39);
sub_7839D8(v98);
sub_783AD8(v99);
v42 = &v111;
return (cocos2d::CCObject *)std::string::~string((int)v42);
}
return result;
}