//
// LevelCell::loadLocalLevelCell from 0x73c9bc to 0x73d30c (2384 bytes)
//
// 2 xrefs:
// > LevelCell::loadFromLevel @ 0x7484d4
// > ??> @ 0xd8688
//
// 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 12:52:41 +0000
//
__int64 __fastcall LevelCell::loadLocalLevelCell(LevelCell *this)
{
__int64 v2; // x0
const char *v3; // x2
__int64 v4; // x1
cocos2d::CCLabelBMFont *v5; // x0
__int64 v6; // x21
void (__fastcall *v7)(__int64, __int64 *); // x22
void (__fastcall *v8)(__int64, __int64 *); // x22
float v9; // s0
void (__fastcall *v10)(__int64, float); // x22
float v11; // s0
float v12; // s1
const char *v13; // x6
const char *v14; // x1
cocos2d::CCString *v15; // x0
cocos2d::CCLabelBMFont *CString; // x0
const char *v17; // x2
__int64 v18; // x26
void (__fastcall *v19)(__int64, __int64 *); // x27
float v20; // s8
const cocos2d::CCSize *v21; // x0
void (__fastcall *v22)(__int64, __int64 *); // x27
__int64 v23; // x28
__int64 v24; // x28
__int64 v25; // x26
float v26; // s0
float v27; // s9
float *v28; // x0
cocos2d::CCNode *v29; // x28
void (__fastcall *v30)(__int64, __int64 *); // x27
const char *v31; // x1
__int64 v32; // x26
void (__fastcall *v33)(__int64, __int64 *); // x21
int v34; // w1
const char *v35; // x2
cocos2d::CCLabelBMFont *v36; // x0
__int64 v37; // x21
void (__fastcall *v38)(__int64, __int64 *); // x27
__int64 v39; // x0
__int64 (__fastcall *v40)(__int64); // x1
void (__fastcall *v41)(__int64, __int64 *); // x26
__int64 v42; // x27
void (__fastcall *v43)(__int64); // x26
const char *v44; // x1
__int64 v45; // x26
void (__fastcall *v46)(__int64, __int64 *); // x27
__int64 v47; // x28
float v48; // s11
float v49; // s0
const char *v50; // x2
cocos2d::CCLabelBMFont *v51; // x0
__int64 v52; // x21
void (__fastcall *v53)(__int64, __int64 *); // x24
void (__fastcall *v54)(__int64, __int64 *); // x24
__int64 v55; // x26
void (__fastcall *v56)(__int64); // x24
const char *v57; // x1
__int64 v58; // x24
void (__fastcall *v59)(__int64, __int64 *); // x26
__int64 v60; // x27
float v61; // s10
float v62; // s0
const char *v63; // x2
__int64 v64; // x0
char *v65; // x0
__int64 v66; // x21
void (__fastcall *v67)(__int64, __int64 *); // x20
void (__fastcall *v68)(__int64, __int64 *); // x20
__int64 v69; // x24
void (__fastcall *v70)(__int64, long double); // x19
float *v71; // x0
long double v72; // q0
void (__fastcall *v74)(__int64, float); // x22
float *v75; // x0
float v76; // [xsp+80h] [xbp+80h]
float v77[2]; // [xsp+98h] [xbp+98h] BYREF
__int64 v78; // [xsp+A0h] [xbp+A0h] BYREF
__int64 v79; // [xsp+A8h] [xbp+A8h] BYREF
__int64 v80; // [xsp+B0h] [xbp+B0h] BYREF
__int64 v81; // [xsp+B8h] [xbp+B8h]
cocos2d::CCLabelBMFont *v82; // [xsp+C0h] [xbp+C0h]
v2 = *((_QWORD *)this + 70);
v80 = 0;
v81 = 0;
v3 = (const char *)(v2 + 344);
v82 = nullptr;
if ( (*(_BYTE *)(v2 + 344) & 1) != 0 )
{
std::string::__init(&v80, *(void **)(v2 + 360), *(_QWORD *)(v2 + 352));
}
else
{
v4 = *(_QWORD *)(v2 + 352);
v80 = *(_QWORD *)v3;
v81 = v4;
v82 = *(cocos2d::CCLabelBMFont **)(v2 + 360);
}
v5 = (cocos2d::CCLabelBMFont *)((char *)&v80 + 1);
if ( (v80 & 1) != 0 )
v5 = v82;
v6 = cocos2d::CCLabelBMFont::create(v5, "bigFont.fnt", v3);
if ( (v80 & 1) != 0 )
operator delete(v82);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 67) + 456LL))(*((_QWORD *)this + 67), v6);
v7 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v6 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v79, 0.0, 0.5);
v7(v6, &v79);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v6 + 160LL))(v6, 1.0);
v8 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v6 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v79, 12.0, (float)(*((float *)this + 131) * 0.5) + 14.0);
v8(v6, &v79);
v9 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 328LL))(v6);
if ( v9 > 200.0 )
{
v74 = *(void (__fastcall **)(__int64, float))(*(_QWORD *)v6 + 160LL);
v75 = (float *)(*(__int64 (__fastcall **)(__int64, float))(*(_QWORD *)v6 + 328LL))(v6, v9);
v74(v6, 200.0 / *v75);
}
v10 = *(void (__fastcall **)(__int64, float))(*(_QWORD *)v6 + 160LL);
v11 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v6 + 168LL))(v6);
v12 = 0.8;
if ( v11 <= 0.8 )
v12 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v6 + 168LL))(v6);
v10(v6, v12);
v14 = (const char *)*(unsigned int *)(*((_QWORD *)this + 70) + 612LL);
if ( (int)v14 > 0 )
{
v15 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"Rev. %i", v14);
CString = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v15);
v18 = cocos2d::CCLabelBMFont::create(CString, "goldFont.fnt", v17);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 67) + 456LL))(*((_QWORD *)this + 67), v18);
v19 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v18 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v79, 0.0, 0.0);
v19(v18, &v79);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v18 + 160LL))(v18, 0.4);
v20 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v6 + 168LL))(v6);
v21 = (const cocos2d::CCSize *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 328LL))(v6);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v77, v21);
v22 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v18 + 184LL);
v23 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 192LL))(v6);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v78, (float)(v20 * v77[0]) + 10.0, v20 * (float)(v77[1] * -0.5));
cocos2d::CCPoint::operator+(&v79, v23);
v22(v18, &v79);
}
v24 = ButtonSprite::create(
(ButtonSprite *)"View",
(const char *)&dword_30 + 2,
0,
0,
0.6,
"bigFont.fnt",
"GJ_button_01.png",
v13,
30.0);
v25 = CCMenuItemSpriteExtra::create(v24, 0, (__int64)this, (__int64)LevelCell::onClick, 0);
if ( *(_BYTE *)(*((_QWORD *)this + 70) + 772LL) )
v26 = 1.0;
else
v26 = 1.5;
CCMenuItemSpriteExtra::setSizeMult(v25, v26);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 74) + 456LL))(*((_QWORD *)this + 74), v25);
v27 = *((float *)this + 130);
v28 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v24 + 328LL))(v24);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v79,
(float)(v27 - (float)(*v28 * 0.5)) - 9.0,
*((float *)this + 131) * 0.5);
cocos2d::CCPoint::operator=((char *)this + 584, &v79);
v29 = *((cocos2d::CCNode **)this + 74);
v30 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v25 + 184LL);
cocos2d::CCNode::convertToWorldSpace(&v78, *((cocos2d::CCNode **)this + 67), (LevelCell *)((char *)this + 584));
cocos2d::CCNode::convertToNodeSpace(&v79, v29, (const cocos2d::CCPoint *)&v78);
v30(v25, &v79);
v76 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 192LL))(v6) + 9.0;
v32 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_timeIcon_001.png", v31);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 67) + 456LL))(*((_QWORD *)this + 67), v32);
v33 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v32 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v79, v76, 20.0);
v33(v32, &v79);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v32 + 160LL))(v32, 0.7);
GJGameLevel::lengthKeyToString(&v80, (GJGameLevel *)*(unsigned int *)(*((_QWORD *)this + 70) + 900LL), v34);
v36 = (cocos2d::CCLabelBMFont *)((char *)&v80 + 1);
if ( (v80 & 1) != 0 )
v36 = v82;
v37 = cocos2d::CCLabelBMFont::create(v36, "bigFont.fnt", v35);
if ( (v80 & 1) != 0 )
operator delete(v82);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 67) + 456LL))(*((_QWORD *)this + 67), v37);
v38 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v37 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v79, 0.0, 0.5);
v38(v37, &v79);
v39 = v32;
v40 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v32 + 192LL);
v41 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v37 + 184LL);
v42 = v40(v39);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v78, 9.0, 0.0);
cocos2d::CCPoint::operator+(&v79, v42);
v41(v37, &v79);
v43 = *(void (__fastcall **)(__int64))(*(_QWORD *)v37 + 160LL);
if ( (float)(100.0 / *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v37 + 328LL))(v37)) <= 0.4 )
(*(__int64 (__fastcall **)(__int64, float))(*(_QWORD *)v37 + 328LL))(v37, 0.4);
v43(v37);
v45 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_noteIcon_001.png", v44);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 67) + 456LL))(*((_QWORD *)this + 67), v45);
v46 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v45 + 184LL);
v47 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v37 + 192LL))(v37);
v48 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v37 + 328LL))(v37);
v49 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v37 + 168LL))(v37);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v78, (float)(v48 * v49) + 17.0, 0.0);
cocos2d::CCPoint::operator+(&v79, v47);
v46(v45, &v79);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v45 + 160LL))(v45, 0.7);
GJGameLevel::getSongName(&v80, *((GJGameLevel **)this + 70));
v51 = (cocos2d::CCLabelBMFont *)((char *)&v80 + 1);
if ( (v80 & 1) != 0 )
v51 = v82;
v52 = cocos2d::CCLabelBMFont::create(v51, "bigFont.fnt", v50);
if ( (v80 & 1) != 0 )
operator delete(v82);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 67) + 456LL))(*((_QWORD *)this + 67), v52);
v53 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v52 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v79, 0.0, 0.5);
v53(v52, &v79);
v54 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v52 + 184LL);
v55 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v45 + 192LL))(v45);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v78, 9.0, 0.0);
cocos2d::CCPoint::operator+(&v79, v55);
v54(v52, &v79);
v56 = *(void (__fastcall **)(__int64))(*(_QWORD *)v52 + 160LL);
if ( (float)(100.0 / *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v52 + 328LL))(v52)) <= 0.4 )
(*(__int64 (__fastcall **)(__int64, float))(*(_QWORD *)v52 + 328LL))(v52, 0.4);
v56(v52);
v58 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_infoIcon_001.png", v57);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 67) + 456LL))(*((_QWORD *)this + 67), v58);
v59 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v58 + 184LL);
v60 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v52 + 192LL))(v52);
v61 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v52 + 328LL))(v52);
v62 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v52 + 168LL))(v52);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v78, (float)(v61 * v62) + 17.0, 0.0);
cocos2d::CCPoint::operator+(&v79, v60);
v59(v58, &v79);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v58 + 160LL))(v58, 0.7);
v64 = *((_QWORD *)this + 70);
if ( *(_BYTE *)(v64 + 785) )
{
v65 = "Uploaded";
}
else if ( *(_DWORD *)(v64 + 776) - *(_DWORD *)(v64 + 780) == 1 )
{
v65 = "Verified";
}
else
{
v65 = "Unverified";
}
v66 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)v65, "bigFont.fnt", v63);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 67) + 456LL))(*((_QWORD *)this + 67), v66);
v67 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v66 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v79, 0.0, 0.5);
v67(v66, &v79);
v68 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v66 + 184LL);
v69 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v58 + 192LL))(v58);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v78, 9.0, 0.0);
cocos2d::CCPoint::operator+(&v79, v69);
v68(v66, &v79);
v70 = *(void (__fastcall **)(__int64, long double))(*(_QWORD *)v66 + 160LL);
v71 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v66 + 328LL))(v66);
LODWORD(v72) = 1053609165;
if ( (float)(60.0 / *v71) <= 0.4 )
*(float *)&v72 = 60.0 / *(float *)(*(__int64 (__fastcall **)(__int64, float))(*(_QWORD *)v66 + 328LL))(v66, 0.4);
v70(v66, v72);
return _stack_chk_guard;
}