// // LevelCell::loadLocalLevelCell from 0x100132d0c to 0x100133608 (2300 bytes) // // 1 xrefs: // > LevelCell::loadFromLevel @ 0x100127e40 // // 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 10:59:24 +0000 // __int64 __fastcall LevelCell::loadLocalLevelCell(__int64 a1) { __int64 v2; // x8 __int64 v3; // x8 void **v4; // x0 __int64 v5; // x20 __n128 v6; // q0 float *v7; // x0 __int64 v8; // x0 __int64 CString; // x0 __int64 v10; // x21 float v11; // s8 double *v12; // x0 double v13; // d0 float32x2_t *v14; // x22 double v15; // d0 void *v16; // x23 __int64 v17; // x22 float v18; // s0 __n128 v19; // q0 float v20; // s8 float *v21; // x0 __int64 v22; // x23 __n128 v23; // q0 float v24; // s8 __int64 v25; // x22 void **v26; // x0 __int64 v27; // x20 float32x2_t *v28; // x21 double v29; // d0 float *v30; // x0 __n128 v31; // q0 __int64 v32; // x21 float32x2_t *v33; // x22 float v34; // s9 float v35; // s0 double v36; // d0 void **v37; // x0 __int64 v38; // x20 float32x2_t *v39; // x21 double v40; // d0 float *v41; // x0 __n128 v42; // q0 __int64 v43; // x21 float32x2_t *v44; // x22 float v45; // s9 float v46; // s0 double v47; // d0 __int64 v48; // x8 const char *v49; // x0 __int64 v50; // x20 float32x2_t *v51; // x19 double v52; // d0 float *v53; // x0 __n128 v54; // q0 float32x2_t v56; // [xsp+10h] [xbp-70h] BYREF float32x2_t v57; // [xsp+18h] [xbp-68h] BYREF void *__p[2]; // [xsp+20h] [xbp-60h] BYREF __int64 v59; // [xsp+30h] [xbp-50h] v2 = *(_QWORD *)(a1 + 560); if ( *(char *)(v2 + 367) < 0 ) { sub_1000097D0(__p, *(void **)(v2 + 344), *(_QWORD *)(v2 + 352)); } else { v3 = v2 + 344; *(_OWORD *)__p = *(_OWORD *)v3; v59 = *(_QWORD *)(v3 + 16); } if ( v59 >= 0 ) v4 = __p; else v4 = (void **)__p[0]; v5 = cocos2d::CCLabelBMFont::create_1(v4, "bigFont.fnt"); if ( SHIBYTE(v59) < 0 ) operator delete(__p[0]); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 536) + 456LL))(*(_QWORD *)(a1 + 536), v5); sub_1000262BC((float *)__p, 0.0, 0.5); (*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v5 + 296LL))(v5, __p); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v5 + 160LL))(v5, 1.0); sub_1000262BC((float *)__p, 12.0, (float)(*(float *)(a1 + 524) * 0.5) + 14.0); (*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v5 + 184LL))(v5, __p); v6.n128_u32[0] = *(_DWORD *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 328LL))(v5); if ( v6.n128_f32[0] > 200.0 ) { v7 = (float *)(*(__int64 (__fastcall **)(__int64, float))(*(_QWORD *)v5 + 328LL))(v5, v6.n128_f32[0]); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v5 + 160LL))(v5, 200.0 / *v7); } if ( (*(float (__fastcall **)(__int64, __n128))(*(_QWORD *)v5 + 168LL))(v5, v6) <= 0.8 ) (*(void (__fastcall **)(__int64))(*(_QWORD *)v5 + 168LL))(v5); (*(void (__fastcall **)(__int64))(*(_QWORD *)v5 + 160LL))(v5); if ( *(int *)(*(_QWORD *)(a1 + 560) + 612LL) >= 1 ) { v8 = sub_1003065B0("Rev. %i", *(_DWORD *)(*(_QWORD *)(a1 + 560) + 612LL)); CString = cocos2d::CCString::getCString(v8); v10 = cocos2d::CCLabelBMFont::create_1(CString, "goldFont.fnt"); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 536) + 456LL))(*(_QWORD *)(a1 + 536), v10); sub_1000262BC((float *)__p, 0.0, 0.0); (*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v10 + 296LL))(v10, __p); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v10 + 160LL))(v10, 0.4); v11 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v5 + 168LL))(v5); v12 = (double *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 328LL))(v5); v13 = sub_100026438(__p, v12); v14 = (float32x2_t *)(*(__int64 (__fastcall **)(__int64, double))(*(_QWORD *)v5 + 192LL))(v5, v13); sub_1000262BC((float *)&v56, (float)(*(float *)__p * v11) + 10.0, v11 * (float)(*((float *)__p + 1) * -0.5)); *(float32x2_t *)&v15 = sub_100026318(v14, &v56, &v57); (*(void (__fastcall **)(__int64, float32x2_t *, double))(*(_QWORD *)v10 + 184LL))(v10, &v57, v15); } v16 = ButtonSprite::create_1( (__int64)"View", 50, 0, 0, (__int64)"bigFont.fnt", (__int64)"GJ_button_01.png", 0.6, 30.0); v17 = CCMenuItemSpriteExtra::create(v16, 0, a1, LevelCell::onClick, 0); v18 = 1.5; if ( *(_BYTE *)(*(_QWORD *)(a1 + 560) + 772LL) ) v18 = 1.0; v19 = CCMenuItemSpriteExtra::setSizeMult(v18); (*(void (__fastcall **)(_QWORD, __int64, __n128))(**(_QWORD **)(a1 + 592) + 456LL))(*(_QWORD *)(a1 + 592), v17, v19); v20 = *(float *)(a1 + 520); v21 = (float *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v16 + 328LL))(v16); sub_1000262BC((float *)__p, (float)(v20 - (float)(*v21 * 0.5)) + -9.0, *(float *)(a1 + 524) * 0.5); sub_10002630C((_QWORD *)(a1 + 584), (double *)__p); v22 = *(_QWORD *)(a1 + 592); cocos2d::CCNode::convertToWorldSpace(&v57, *(_QWORD *)(a1 + 536), a1 + 584); cocos2d::CCNode::convertToNodeSpace(__p, v22, &v57, v23); (*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v17 + 184LL))(v17, __p); v24 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 192LL))(v5) + 9.0; v25 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_timeIcon_001.png"); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 536) + 456LL))(*(_QWORD *)(a1 + 536), v25); sub_1000262BC((float *)__p, v24, 20.0); (*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v25 + 184LL))(v25, __p); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v25 + 160LL))(v25, 0.7); GJGameLevel::lengthKeyToString(*(_DWORD *)(*(_QWORD *)(a1 + 560) + 900LL), __p); if ( v59 >= 0 ) v26 = __p; else v26 = (void **)__p[0]; v27 = cocos2d::CCLabelBMFont::create_1(v26, "bigFont.fnt"); if ( SHIBYTE(v59) < 0 ) operator delete(__p[0]); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 536) + 456LL))(*(_QWORD *)(a1 + 536), v27); sub_1000262BC((float *)__p, 0.0, 0.5); (*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v27 + 296LL))(v27, __p); v28 = (float32x2_t *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v25 + 192LL))(v25); sub_1000262BC((float *)&v57, 9.0, 0.0); *(float32x2_t *)&v29 = sub_100026318(v28, &v57, (float32x2_t *)__p); (*(void (__fastcall **)(__int64, void **, double))(*(_QWORD *)v27 + 184LL))(v27, __p, v29); v30 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v27 + 328LL))(v27); v31.n128_u32[0] = 1053609165; if ( (float)(100.0 / *v30) <= 0.4 ) v31.n128_f32[0] = 100.0 / *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v27 + 328LL))(v27); (*(void (__fastcall **)(__int64, __n128))(*(_QWORD *)v27 + 160LL))(v27, v31); v32 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_noteIcon_001.png"); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 536) + 456LL))(*(_QWORD *)(a1 + 536), v32); v33 = (float32x2_t *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v27 + 192LL))(v27); v34 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v27 + 328LL))(v27); v35 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v27 + 168LL))(v27); sub_1000262BC((float *)&v57, (float)(v34 * v35) + 17.0, 0.0); *(float32x2_t *)&v36 = sub_100026318(v33, &v57, (float32x2_t *)__p); (*(void (__fastcall **)(__int64, void **, double))(*(_QWORD *)v32 + 184LL))(v32, __p, v36); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v32 + 160LL))(v32, 0.7); sub_1000CF274(*(_QWORD *)(a1 + 560), (__int64)__p); if ( v59 >= 0 ) v37 = __p; else v37 = (void **)__p[0]; v38 = cocos2d::CCLabelBMFont::create_1(v37, "bigFont.fnt"); if ( SHIBYTE(v59) < 0 ) operator delete(__p[0]); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 536) + 456LL))(*(_QWORD *)(a1 + 536), v38); sub_1000262BC((float *)__p, 0.0, 0.5); (*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v38 + 296LL))(v38, __p); v39 = (float32x2_t *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v32 + 192LL))(v32); sub_1000262BC((float *)&v57, 9.0, 0.0); *(float32x2_t *)&v40 = sub_100026318(v39, &v57, (float32x2_t *)__p); (*(void (__fastcall **)(__int64, void **, double))(*(_QWORD *)v38 + 184LL))(v38, __p, v40); v41 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v38 + 328LL))(v38); v42.n128_u32[0] = 1053609165; if ( (float)(100.0 / *v41) <= 0.4 ) v42.n128_f32[0] = 100.0 / *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v38 + 328LL))(v38); (*(void (__fastcall **)(__int64, __n128))(*(_QWORD *)v38 + 160LL))(v38, v42); v43 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_infoIcon_001.png"); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 536) + 456LL))(*(_QWORD *)(a1 + 536), v43); v44 = (float32x2_t *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v38 + 192LL))(v38); v45 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v38 + 328LL))(v38); v46 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v38 + 168LL))(v38); sub_1000262BC((float *)&v57, (float)(v45 * v46) + 17.0, 0.0); *(float32x2_t *)&v47 = sub_100026318(v44, &v57, (float32x2_t *)__p); (*(void (__fastcall **)(__int64, void **, double))(*(_QWORD *)v43 + 184LL))(v43, __p, v47); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v43 + 160LL))(v43, 0.7); v48 = *(_QWORD *)(a1 + 560); if ( (*(_BYTE *)(v48 + 785) & 1) != 0 ) { v49 = "Uploaded"; } else if ( *(_DWORD *)(v48 + 776) - *(_DWORD *)(v48 + 780) == 1 ) { v49 = "Verified"; } else { v49 = "Unverified"; } v50 = cocos2d::CCLabelBMFont::create_1(v49, "bigFont.fnt"); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 536) + 456LL))(*(_QWORD *)(a1 + 536), v50); sub_1000262BC((float *)__p, 0.0, 0.5); (*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v50 + 296LL))(v50, __p); v51 = (float32x2_t *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v43 + 192LL))(v43); sub_1000262BC((float *)&v57, 9.0, 0.0); *(float32x2_t *)&v52 = sub_100026318(v51, &v57, (float32x2_t *)__p); (*(void (__fastcall **)(__int64, void **, double))(*(_QWORD *)v50 + 184LL))(v50, __p, v52); v53 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v50 + 328LL))(v50); v54.n128_u32[0] = 1053609165; if ( (float)(60.0 / *v53) <= 0.4 ) v54.n128_f32[0] = 60.0 / *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v50 + 328LL))(v50); return (*(__int64 (__fastcall **)(__int64, __n128))(*(_QWORD *)v50 + 160LL))(v50, v54); }
GD Web Decomp Icon

GD Web Decomp

Raw Source