// // LevelPage::init from 0x8c4358 to 0x8c4ee0 (2952 bytes) // // 2 xrefs: // > LevelPage::create @ 0x8c4f90 // > @ 0xbf770 // // 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:56:33 +0000 // __int64 __fastcall LevelPage::init(cocos2d::CCObject **this, GJGameLevel *a2) { unsigned __int8 v3; // w0 unsigned int v4; // w25 int v6; // w23 cocos2d::CCDirector *v7; // x0 cocos2d::CCDirector *v8; // x0 cocos2d::CCArray *v9; // x0 cocos2d::CCObject *v10; // x0 cocos2d::CCArray *v11; // x0 cocos2d::CCObject *v12; // x0 cocos2d::CCMenu *v13; // x0 __int64 v14; // x0 __int64 v15; // x26 void (__fastcall *v16)(__int64, _QWORD *); // x24 __int64 v17; // x0 __int64 v18; // x21 __int64 (__fastcall *v19)(__int64, _QWORD *); // x26 cocos2d::CCSprite *v20; // x0 void (__fastcall *v21)(__int64, __int64); // x21 __int64 v22; // x0 __int64 v23; // x0 void (__fastcall *v24)(__int64, _QWORD *); // x24 float *v25; // x0 __int64 v26; // x21 __int64 v27; // x0 __int64 v28; // x0 const char *v29; // x1 cocos2d::CCObject *v30; // x26 void (__fastcall *v31)(cocos2d::CCObject *, _QWORD *); // x24 const char *v32; // x1 __int64 v33; // x0 __int64 v34; // x1 float v35; // s9 __int64 v36; // x27 void (__fastcall *v37)(__int64, _QWORD *); // x24 __int64 v38; // x27 void (__fastcall *v39)(__int64, _QWORD *); // x24 __int64 v40; // x0 const char *v41; // x1 cocos2d::CCObject *v42; // x24 void (__fastcall *v43)(cocos2d::CCObject *, _QWORD *); // x28 __int64 v44; // x27 const char *v45; // x1 __int64 v46; // x0 __int64 v47; // x0 void (__fastcall *v48)(__int64, _QWORD *); // x5 __int64 v49; // x21 void (__fastcall *v50)(__int64, _QWORD *); // x28 __int64 v51; // x21 void (__fastcall *v52)(__int64, __int64); // x28 __int64 v53; // x0 const char *v54; // x2 __int64 v55; // x0 void (__fastcall *v56)(__int64, __int64); // x27 __int64 v57; // x0 const char *v58; // x2 __int64 v59; // x0 void (__fastcall *v60)(__int64, __int64); // x27 __int64 v61; // x0 const char *v62; // x2 cocos2d::CCObject *v63; // x27 const char *v64; // x2 cocos2d::CCObject *v65; // x27 const char *v66; // x2 __int64 v67; // x0 const char *v68; // x1 __int64 v69; // x0 const char *v70; // x1 __int64 v71; // x0 const char *v72; // x2 __int64 v73; // x0 __int64 v74; // x21 void (__fastcall *v75)(__int64, _QWORD *); // x28 __int64 v76; // x21 void (__fastcall *v77)(__int64, _QWORD *); // x28 cocos2d::CCArray *v78; // x0 cocos2d::CCObject *v79; // x0 const char *v80; // x1 cocos2d::CCObject *v81; // x21 float v82; // s0 void (__fastcall *v83)(cocos2d::CCObject *, _QWORD *); // x24 cocos2d::CCArray *v84; // x0 cocos2d::CCObject *v85; // x0 PlatformToolbox *v86; // x0 unsigned __int8 isControllerConnected; // w0 const char *v88; // x1 cocos2d::CCObject *v89; // x21 void (__fastcall *v90)(cocos2d::CCObject *, _QWORD *); // x23 __int64 v91; // x26 __int64 v92; // [xsp+98h] [xbp+98h] float v93; // [xsp+A0h] [xbp+A0h] __int64 v94; // [xsp+A0h] [xbp+A0h] __int64 v95; // [xsp+A0h] [xbp+A0h] __int64 v96; // [xsp+A0h] [xbp+A0h] __int64 v97; // [xsp+A0h] [xbp+A0h] void (__fastcall *v98)(__int64, _QWORD *); // [xsp+A0h] [xbp+A0h] void (__fastcall *v99)(__int64, _QWORD *); // [xsp+A0h] [xbp+A0h] __int64 v100; // [xsp+A0h] [xbp+A0h] void (__fastcall *v101)(cocos2d::CCObject *, _QWORD *); // [xsp+B0h] [xbp+B0h] void (__fastcall *v102)(cocos2d::CCObject *, _QWORD *); // [xsp+B0h] [xbp+B0h] __int64 v103; // [xsp+B0h] [xbp+B0h] __int64 v104; // [xsp+B0h] [xbp+B0h] _BYTE v105[8]; // [xsp+C8h] [xbp+C8h] BYREF __int64 v106; // [xsp+D0h] [xbp+D0h] BYREF _BYTE v107[8]; // [xsp+D8h] [xbp+D8h] BYREF _BYTE v108[8]; // [xsp+E0h] [xbp+E0h] BYREF _QWORD v109[2]; // [xsp+E8h] [xbp+E8h] BYREF v3 = cocos2d::CCLayer::init((cocos2d::CCLayer *)this); v4 = v3; if ( v3 ) { v6 = 2; v7 = (cocos2d::CCDirector *)(*((__int64 (__fastcall **)(cocos2d::CCObject **, __int64))*this + 125))(this, 1); v8 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v7); cocos2d::CCDirector::getWinSize(&v106, v8); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v109, 340.0, 95.0); v9 = (cocos2d::CCArray *)cocos2d::CCSize::operator=(this + 65, v109); v10 = (cocos2d::CCObject *)cocos2d::CCArray::create(v9); *(this + 69) = v10; v11 = (cocos2d::CCArray *)cocos2d::CCObject::retain(v10); v12 = (cocos2d::CCObject *)cocos2d::CCArray::create(v11); *(this + 68) = v12; v13 = (cocos2d::CCMenu *)cocos2d::CCObject::retain(v12); v14 = cocos2d::CCMenu::create(v13); *(this + 54) = (cocos2d::CCObject *)v14; (*((void (__fastcall **)(cocos2d::CCObject **, __int64, __int64))*this + 58))(this, v14, 0xFFFFFFFFLL); v15 = (__int64)*(this + 54); v16 = *(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v15 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v109, *(float *)&v106 * 0.5, (float)(*((float *)&v106 + 1) * 0.5) + 60.0); v16(v15, v109); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v109, 0.0, 0.0, 80.0, 80.0); v17 = cocos2d::extension::CCScale9Sprite::create("square02_001.png", v109); *(this + 55) = (cocos2d::CCObject *)v17; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v17 + 912LL))(v17, 125); (*(void (__fastcall **)(_QWORD, char *))(*(_QWORD *)*(this + 55) + 320LL))(*(this + 55), (char *)this + 520); v18 = (__int64)*(this + 55); v19 = *(__int64 (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v18 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v109, *(float *)&v106 * 0.5, (float)(*((float *)&v106 + 1) * 0.5) + 50.0); v20 = (cocos2d::CCSprite *)v19(v18, v109); v92 = cocos2d::CCSprite::create(v20); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v92 + 456LL))(v92, *(this + 55)); v21 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v92 + 320LL); v22 = (*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)*(this + 55) + 328LL))(*(this + 55)); v21(v92, v22); v23 = (__int64)*(this + 55); v24 = *(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v23 + 184LL); v25 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v23 + 328LL))(v23); v26 = (__int64)*(this + 55); v93 = *v25 * 0.5; v27 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v26 + 328LL))(v26); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v109, v93, *(float *)(v27 + 4) * 0.5); v24(v26, v109); v28 = CCMenuItemSpriteExtra::create(v92, 0, (__int64)this, (__int64)LevelPage::onPlay, 0); *(_DWORD *)(v28 + 400) = 1066192077; (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 54) + 456LL))(*(this + 54), v28); cocos2d::CCArray::addObject(*(this + 69), *(this + 54)); v105[0] = 0; v105[1] = 0; v105[2] = 0; v30 = (cocos2d::CCObject *)cocos2d::CCSprite::create((cocos2d::CCSprite *)"GJ_progressBar_001.png", v29); (*(void (__fastcall **)(cocos2d::CCObject *, _BYTE *))(*(_QWORD *)v30 + 960LL))(v30, v105); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v30 + 912LL))(v30, 125); (*(void (__fastcall **)(cocos2d::CCObject *, float))(*(_QWORD *)v30 + 160LL))(v30, 1.0); (*((void (__fastcall **)(cocos2d::CCObject **, cocos2d::CCObject *, __int64))*this + 58))(this, v30, 3); v31 = *(void (__fastcall **)(cocos2d::CCObject *, _QWORD *))(*(_QWORD *)v30 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v109, *(float *)&v106 * 0.5, (float)(*((float *)&v106 + 1) * 0.5) + -30.0); v31(v30, v109); cocos2d::CCArray::addObject(*(this + 69), v30); v33 = cocos2d::CCSprite::create((cocos2d::CCSprite *)"GJ_progressBar_001.png", v32); *(this + 61) = (cocos2d::CCObject *)v33; (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v33 + 128LL))(v33, 0.992); (*(void (__fastcall **)(_QWORD, float))(*(_QWORD *)*(this + 61) + 144LL))(*(this + 61), 0.86); (*(void (__fastcall **)(_QWORD, void *))(*(_QWORD *)*(this + 61) + 960LL))(*(this + 61), &unk_114D830); v34 = (__int64)*(this + 61); *((_DWORD *)this + 120) = *(_DWORD *)(v34 + 432); v35 = *(float *)(v34 + 432) - (float)(*(float *)(v34 + 432) * 0.992); (*(void (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v30 + 464LL))(v30); v36 = (__int64)*(this + 61); v37 = *(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v36 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v109, 0.0, 0.5); v37(v36, v109); v38 = (__int64)*(this + 61); v39 = *(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v38 + 184LL); v40 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v30 + 328LL))(v30); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v109, v35 * 0.5, *(float *)(v40 + 4) * 0.5); v39(v38, v109); v42 = (cocos2d::CCObject *)cocos2d::CCSprite::create((cocos2d::CCSprite *)"GJ_progressBar_001.png", v41); (*(void (__fastcall **)(cocos2d::CCObject *, _BYTE *))(*(_QWORD *)v42 + 960LL))(v42, v105); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v42 + 912LL))(v42, 125); (*(void (__fastcall **)(cocos2d::CCObject *, float))(*(_QWORD *)v42 + 160LL))(v42, 1.0); (*((void (__fastcall **)(cocos2d::CCObject **, cocos2d::CCObject *, __int64))*this + 58))(this, v42, 3); v43 = *(void (__fastcall **)(cocos2d::CCObject *, _QWORD *))(*(_QWORD *)v42 + 184LL); v44 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v30 + 192LL))(v30); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v108, 0.0, -50.0); cocos2d::CCPoint::operator+(v109, v44); v43(v42, v109); cocos2d::CCArray::addObject(*(this + 69), v42); v46 = cocos2d::CCSprite::create((cocos2d::CCSprite *)"GJ_progressBar_001.png", v45); *(this + 62) = (cocos2d::CCObject *)v46; (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v46 + 128LL))(v46, 0.992); (*(void (__fastcall **)(_QWORD, float))(*(_QWORD *)*(this + 62) + 144LL))(*(this + 62), 0.86); v47 = (__int64)*(this + 62); v48 = *(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v47 + 960LL); BYTE2(v109[0]) = -1; LOWORD(v109[0]) = -256; v48(v47, v109); (*(void (__fastcall **)(cocos2d::CCObject *, _QWORD, __int64))(*(_QWORD *)v42 + 464LL))(v42, *(this + 62), 1); v49 = (__int64)*(this + 62); v50 = *(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v49 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v109, 0.0, 0.5); v50(v49, v109); v51 = (__int64)*(this + 62); v52 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v51 + 184LL); v53 = (*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)*(this + 61) + 192LL))(*(this + 61)); v52(v51, v53); v55 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)&byte_11E1A70, "bigFont.fnt", v54); *(this + 56) = (cocos2d::CCObject *)v55; (*((void (__fastcall **)(cocos2d::CCObject **, __int64, __int64))*this + 58))(this, v55, 4); v94 = (__int64)*(this + 56); v56 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v94 + 184LL); v57 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v30 + 192LL))(v30); v56(v94, v57); (*(void (__fastcall **)(_QWORD, float))(*(_QWORD *)*(this + 56) + 160LL))(*(this + 56), 0.5); cocos2d::CCArray::addObject(*(this + 69), *(this + 56)); v59 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)&byte_11E1A70, "bigFont.fnt", v58); *(this + 57) = (cocos2d::CCObject *)v59; (*((void (__fastcall **)(cocos2d::CCObject **, __int64, __int64))*this + 58))(this, v59, 4); v95 = (__int64)*(this + 57); v60 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v95 + 184LL); v61 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v42 + 192LL))(v42); v60(v95, v61); (*(void (__fastcall **)(_QWORD, float))(*(_QWORD *)*(this + 57) + 160LL))(*(this + 57), 0.5); cocos2d::CCArray::addObject(*(this + 69), *(this + 57)); v63 = (cocos2d::CCObject *)cocos2d::CCLabelBMFont::create( (cocos2d::CCLabelBMFont *)"Normal Mode", "bigFont.fnt", v62); (*((void (__fastcall **)(cocos2d::CCObject **, cocos2d::CCObject *, __int64))*this + 58))(this, v63, 4); v101 = *(void (__fastcall **)(cocos2d::CCObject *, _QWORD *))(*(_QWORD *)v63 + 184LL); v96 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v30 + 192LL))(v30); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v108, 0.0, 20.0); cocos2d::CCPoint::operator+(v109, v96); v101(v63, v109); (*(void (__fastcall **)(cocos2d::CCObject *, float))(*(_QWORD *)v63 + 160LL))(v63, 0.5); cocos2d::CCArray::addObject(*(this + 69), v63); v65 = (cocos2d::CCObject *)cocos2d::CCLabelBMFont::create( (cocos2d::CCLabelBMFont *)"Practice Mode", "bigFont.fnt", v64); (*((void (__fastcall **)(cocos2d::CCObject **, cocos2d::CCObject *, __int64))*this + 58))(this, v65, 4); v102 = *(void (__fastcall **)(cocos2d::CCObject *, _QWORD *))(*(_QWORD *)v65 + 184LL); v97 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v42 + 192LL))(v42); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v108, 0.0, 20.0); cocos2d::CCPoint::operator+(v109, v97); v102(v65, v109); (*(void (__fastcall **)(cocos2d::CCObject *, float))(*(_QWORD *)v65 + 160LL))(v65, 0.5); cocos2d::CCArray::addObject(*(this + 69), v65); v67 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)&byte_11E1A70, "bigFont.fnt", v66); *(this + 58) = (cocos2d::CCObject *)v67; v103 = v67; v98 = *(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v67 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v109, 0.0, 0.5); v98(v103, v109); (*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)*(this + 55) + 456LL))(*(this + 55), *(this + 58)); cocos2d::CCArray::addObject(*(this + 68), *(this + 58)); v69 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"diffIcon_01_btn_001.png", v68); *(this + 63) = (cocos2d::CCObject *)v69; (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 55) + 456LL))(*(this + 55), v69); (*(void (__fastcall **)(_QWORD, float))(*(_QWORD *)*(this + 63) + 160LL))(*(this + 63), 1.1); cocos2d::CCArray::addObject(*(this + 68), *(this + 63)); v71 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_starsIcon_001.png", v70); *(this + 64) = (cocos2d::CCObject *)v71; (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 55) + 456LL))(*(this + 55), v71); (*(void (__fastcall **)(_QWORD, float))(*(_QWORD *)*(this + 64) + 160LL))(*(this + 64), 0.7); v104 = (__int64)*(this + 64); v99 = *(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v104 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v109, *((float *)this + 130) - 15.0, *((float *)this + 131) - 13.0); v99(v104, v109); cocos2d::CCArray::addObject(*(this + 68), *(this + 64)); v73 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)&byte_11E1A70, "bigFont.fnt", v72); *(this + 59) = (cocos2d::CCObject *)v73; (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 55) + 456LL))(*(this + 55), v73); v74 = (__int64)*(this + 59); v75 = *(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v74 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v109, 1.0, 0.5); v75(v74, v109); v76 = (__int64)*(this + 59); v77 = *(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v76 + 184LL); v100 = (*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)*(this + 64) + 192LL))(*(this + 64)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v108, -12.0, 0.5); cocos2d::CCPoint::operator+(v109, v100); v77(v76, v109); (*(void (__fastcall **)(_QWORD, float))(*(_QWORD *)*(this + 59) + 160LL))(*(this + 59), 0.5); v78 = (cocos2d::CCArray *)cocos2d::CCArray::addObject(*(this + 68), *(this + 59)); v79 = (cocos2d::CCObject *)cocos2d::CCArray::create(v78); *(this + 66) = v79; cocos2d::CCObject::retain(v79); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v107, *((float *)this + 130) - 16.0, 16.0); do { v81 = (cocos2d::CCObject *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_coinsIcon_001.png", v80); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(*(_QWORD *)*(this + 55) + 456LL))(*(this + 55), v81); (*(void (__fastcall **)(cocos2d::CCObject *, float))(*(_QWORD *)v81 + 160LL))(v81, 1.0); v82 = (float)v6--; v83 = *(void (__fastcall **)(cocos2d::CCObject *, _QWORD *))(*(_QWORD *)v81 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v108, v82 * -26.0, 0.0); cocos2d::CCPoint::operator+(v109, v107); v83(v81, v109); cocos2d::CCArray::addObject(*(this + 66), v81); v84 = (cocos2d::CCArray *)cocos2d::CCArray::addObject(*(this + 68), v81); } while ( v6 != -1 ); v85 = (cocos2d::CCObject *)cocos2d::CCArray::create(v84); *(this + 67) = v85; v86 = (PlatformToolbox *)cocos2d::CCObject::retain(v85); isControllerConnected = PlatformToolbox::isControllerConnected(v86); if ( isControllerConnected ) { v4 = isControllerConnected; v89 = (cocos2d::CCObject *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"controllerBtn_Start_001.png", v88); (*(void (__fastcall **)(__int64, cocos2d::CCObject *, __int64))(*(_QWORD *)v92 + 464LL))(v92, v89, 10); v90 = *(void (__fastcall **)(cocos2d::CCObject *, _QWORD *))(*(_QWORD *)v89 + 184LL); v91 = (*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)*(this + 55) + 192LL))(*(this + 55)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v108, 0.0, -35.0); cocos2d::CCPoint::operator+(v109, v91); v90(v89, v109); cocos2d::CCArray::addObject(*(this + 68), v89); } } return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source