//
// LevelCell::loadLocalLevelCell from 0x428340 to 0x4289e0 (1696 bytes)
//
// 1 xrefs:
// > LevelCell::loadFromLevel @ 0x430a86
//
// 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:48:05 +0000
//
int __fastcall LevelCell::loadLocalLevelCell(LevelCell *this)
{
const char *v2; // r2
cocos2d::CCLabelBMFont *v3; // r0
int v4; // r4
void (__fastcall *v5)(int, _DWORD *); // r7
void (__fastcall *v6)(int, _DWORD *); // r7
void (__fastcall *v7)(int, _DWORD); // r7
float *v8; // r0
void (__fastcall *v9)(int, int); // r7
int v10; // r1
const char *v11; // r1
cocos2d::CCString *v12; // r0
cocos2d::CCLabelBMFont *CString; // r0
const char *v14; // r2
int v15; // r7
void (__fastcall *v16)(int, _DWORD *); // r10
float v17; // s17
const cocos2d::CCSize *v18; // r0
int v19; // r11
ButtonSprite *v20; // r0
ButtonSprite *v21; // r5
int v22; // r0
float v23; // r1
int v24; // r10
float v25; // s17
float *v26; // r0
void (__fastcall *v27)(int, _BYTE *); // r11
__int64 v28; // r0
float v29; // s16
int v30; // r10
void (__fastcall *v31)(int, _BYTE *); // r4
cocos2d::CCLabelBMFont *v32; // r0
int v33; // r4
void (__fastcall *v34)(int, _BYTE *); // r11
void (__fastcall *v35)(int, _BYTE *); // r11
int v36; // r10
void (__fastcall *v37)(int, _DWORD); // r10
float v38; // s15
const char *v39; // r1
int v40; // r10
int v41; // r11
float v42; // s19
float v43; // r0
const char *v44; // r2
cocos2d::CCLabelBMFont *v45; // r0
int v46; // r4
void (__fastcall *v47)(int, _BYTE *); // r9
void (__fastcall *v48)(int, _BYTE *); // r9
int v49; // r10
void (__fastcall *v50)(int, _DWORD); // r9
float v51; // s15
const char *v52; // r1
int v53; // r9
void (__fastcall *v54)(int, _BYTE *); // r10
int v55; // r11
float v56; // s16
float v57; // r0
int v58; // r2
int v59; // r3
char *v60; // r0
int v61; // r4
void (__fastcall *v62)(int, _BYTE *); // r6
void (__fastcall *v63)(int, _BYTE *); // r6
int v64; // r9
int (__fastcall *v65)(int, _DWORD); // r5
float v66; // s16
cocos2d::CCPoint *v68; // [sp+10h] [bp-34h]
cocos2d::CCPoint *v69; // [sp+10h] [bp-34h]
cocos2d::CCPoint *v70; // [sp+10h] [bp-34h]
float v71[2]; // [sp+18h] [bp-2Ch] BYREF
_BYTE v72[8]; // [sp+20h] [bp-24h] BYREF
_DWORD v73[2]; // [sp+28h] [bp-1Ch] BYREF
int v74[2]; // [sp+30h] [bp-14h] BYREF
cocos2d::CCLabelBMFont *v75; // [sp+38h] [bp-Ch]
std::string::basic_string(v74, *((_DWORD *)this + 106) + 280);
if ( (v74[0] & 1) != 0 )
v3 = v75;
else
v3 = (cocos2d::CCLabelBMFont *)((char *)v74 + 1);
v4 = cocos2d::CCLabelBMFont::create(v3, "bigFont.fnt", v2);
std::string::~string((int)v74);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 103) + 228))(*((_DWORD *)this + 103), v4);
v5 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v4 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v73, 0.0, 0.5);
v5(v4, v73);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v4 + 80))(v4, 1065353216);
v6 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v4 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v73, 12.0, (float)(*((float *)this + 101) * 0.5) + 14.0);
v6(v4, v73);
if ( *(float *)(*(int (__fastcall **)(int))(*(_DWORD *)v4 + 164))(v4) > 200.0 )
{
v7 = *(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v4 + 80);
v8 = (float *)(*(int (__fastcall **)(int))(*(_DWORD *)v4 + 164))(v4);
v7(v4, 200.0 / *v8);
}
v9 = *(void (__fastcall **)(int, int))(*(_DWORD *)v4 + 80);
if ( (*(float (__fastcall **)(int))(*(_DWORD *)v4 + 84))(v4) > 0.8 )
v10 = 1061997773;
else
v10 = (*(int (__fastcall **)(int))(*(_DWORD *)v4 + 84))(v4);
v9(v4, v10);
v11 = *(const char **)(*((_DWORD *)this + 106) + 440);
if ( (int)v11 > 0 )
{
v12 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"Rev. %i", v11);
CString = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v12);
v15 = cocos2d::CCLabelBMFont::create(CString, "goldFont.fnt", v14);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 103) + 228))(*((_DWORD *)this + 103), v15);
v16 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v15 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v73, 0.0, 0.0);
v16(v15, v73);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v15 + 80))(v15, 1053609165);
v17 = COERCE_FLOAT((*(int (__fastcall **)(int))(*(_DWORD *)v4 + 84))(v4));
v18 = (const cocos2d::CCSize *)(*(int (__fastcall **)(int))(*(_DWORD *)v4 + 164))(v4);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v71, v18);
v68 = *(cocos2d::CCPoint **)(*(_DWORD *)v15 + 92);
v19 = (*(int (__fastcall **)(int))(*(_DWORD *)v4 + 96))(v4);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v72,
(float)(v17 * v71[0]) + 10.0,
(float)-(float)(0.5 * v71[1]) * v17);
cocos2d::CCPoint::operator+(v73, v19, v72);
((void (__fastcall *)(int, _DWORD *))v68)(v15, v73);
}
v20 = ButtonSprite::create(
(ButtonSprite *)"View",
(const char *)&word_32,
0,
0.6,
0,
"bigFont.fnt",
"GJ_button_01.png",
(const char *)0x41F00000,
*(float *)&v68);
v73[0] = LevelCell::onClick;
v73[1] = 0;
v21 = v20;
v22 = CCMenuItemSpriteExtra::create((int)v20, 0, (int)this, (int)LevelCell::onClick, 0);
if ( *(_BYTE *)(*((_DWORD *)this + 106) + 596) )
v23 = 1.0;
else
v23 = 1.5;
v24 = v22;
CCMenuItemSpriteExtra::setSizeMult(v22, v23);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v24);
v25 = *((float *)this + 100);
v26 = (float *)(*(int (__fastcall **)(ButtonSprite *))(*(_DWORD *)v21 + 164))(v21);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v72,
(float)(v25 - (float)(*v26 * 0.5)) - 9.0,
*((float *)this + 101) * 0.5);
cocos2d::CCPoint::operator=((char *)this + 436, v72);
v27 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v24 + 92);
v69 = *((cocos2d::CCPoint **)this + 111);
cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)v71, *((const cocos2d::CCPoint **)this + 103));
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v72, v69);
v27(v24, v72);
v28 = ((__int64 (__fastcall *)(int))*(_DWORD *)(*(_DWORD *)v4 + 96))(v4);
v29 = *(float *)v28;
v30 = cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"GJ_timeIcon_001.png",
(const char *)HIDWORD(v28));
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 103) + 228))(*((_DWORD *)this + 103), v30);
v31 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v30 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v72, v29 + 9.0, 20.0);
v31(v30, v72);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v30 + 80))(v30, 1060320051);
GJGameLevel::lengthKeyToString((GJGameLevel *)v74, *(_DWORD *)(*((_DWORD *)this + 106) + 724));
if ( (v74[0] & 1) != 0 )
v32 = v75;
else
v32 = (cocos2d::CCLabelBMFont *)((char *)v74 + 1);
v33 = cocos2d::CCLabelBMFont::create(v32, "bigFont.fnt", (const char *)(LOBYTE(v74[0]) << 31));
std::string::~string((int)v74);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 103) + 228))(*((_DWORD *)this + 103), v33);
v34 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v33 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v72, 0.0, 0.5);
v34(v33, v72);
v35 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v33 + 92);
v36 = (*(int (__fastcall **)(int))(*(_DWORD *)v30 + 96))(v30);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v71, 9.0, 0.0);
cocos2d::CCPoint::operator+(v72, v36, v71);
v35(v33, v72);
v37 = *(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v33 + 80);
if ( (float)(100.0 / *(float *)(*(int (__fastcall **)(int))(*(_DWORD *)v33 + 164))(v33)) > 0.4 )
v38 = 0.4;
else
v38 = 100.0 / *(float *)(*(int (__fastcall **)(int))(*(_DWORD *)v33 + 164))(v33);
v37(v33, LODWORD(v38));
v40 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_noteIcon_001.png", v39);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 103) + 228))(*((_DWORD *)this + 103), v40);
v70 = *(cocos2d::CCPoint **)(*(_DWORD *)v40 + 92);
v41 = (*(int (__fastcall **)(int))(*(_DWORD *)v33 + 96))(v33);
v42 = *(float *)(*(int (__fastcall **)(int))(*(_DWORD *)v33 + 164))(v33);
v43 = (*(float (__fastcall **)(int))(*(_DWORD *)v33 + 84))(v33);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v71, (float)(v42 * v43) + 17.0, 0.0);
cocos2d::CCPoint::operator+(v72, v41, v71);
((void (__fastcall *)(int, _BYTE *))v70)(v40, v72);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v40 + 80))(v40, 1060320051);
GJGameLevel::getSongName((GJGameLevel *)v74);
if ( (v74[0] & 1) != 0 )
v45 = v75;
else
v45 = (cocos2d::CCLabelBMFont *)((char *)v74 + 1);
v46 = cocos2d::CCLabelBMFont::create(v45, "bigFont.fnt", v44);
std::string::~string((int)v74);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 103) + 228))(*((_DWORD *)this + 103), v46);
v47 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v46 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v72, 0.0, 0.5);
v47(v46, v72);
v48 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v46 + 92);
v49 = (*(int (__fastcall **)(int))(*(_DWORD *)v40 + 96))(v40);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v71, 9.0, 0.0);
cocos2d::CCPoint::operator+(v72, v49, v71);
v48(v46, v72);
v50 = *(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v46 + 80);
if ( (float)(100.0 / *(float *)(*(int (__fastcall **)(int))(*(_DWORD *)v46 + 164))(v46)) > 0.4 )
v51 = 0.4;
else
v51 = 100.0 / *(float *)(*(int (__fastcall **)(int))(*(_DWORD *)v46 + 164))(v46);
v50(v46, LODWORD(v51));
v53 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_infoIcon_001.png", v52);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 103) + 228))(*((_DWORD *)this + 103), v53);
v54 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v53 + 92);
v55 = (*(int (__fastcall **)(int))(*(_DWORD *)v46 + 96))(v46);
v56 = *(float *)(*(int (__fastcall **)(int))(*(_DWORD *)v46 + 164))(v46);
v57 = (*(float (__fastcall **)(int))(*(_DWORD *)v46 + 84))(v46);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v71, (float)(v56 * v57) + 17.0, 0.0);
cocos2d::CCPoint::operator+(v72, v55, v71);
v54(v53, v72);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v53 + 80))(v53, 1060320051);
v58 = *((_DWORD *)this + 106);
if ( *(_BYTE *)(v58 + 609) )
{
v60 = "Uploaded";
}
else
{
v59 = *(_DWORD *)(v58 + 600);
v58 = *(_DWORD *)(v58 + 604);
if ( v59 - v58 == 1 )
v60 = "Verified";
else
v60 = "Unverified";
}
v61 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)v60, "bigFont.fnt", (const char *)v58);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 103) + 228))(*((_DWORD *)this + 103), v61);
v62 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v61 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v72, 0.0, 0.5);
v62(v61, v72);
v63 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v61 + 92);
v64 = (*(int (__fastcall **)(int))(*(_DWORD *)v53 + 96))(v53);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v71, 9.0, 0.0);
cocos2d::CCPoint::operator+(v72, v64, v71);
v63(v61, v72);
v65 = *(int (__fastcall **)(int, _DWORD))(*(_DWORD *)v61 + 80);
if ( (float)(60.0 / *(float *)(*(int (__fastcall **)(int))(*(_DWORD *)v61 + 164))(v61)) > 0.4 )
v66 = 0.4;
else
v66 = 60.0 / *(float *)(*(int (__fastcall **)(int))(*(_DWORD *)v61 + 164))(v61);
return v65(v61, LODWORD(v66));
}