// // LoadingLayer::init from 0x6ed184 to 0x6ed8d0 (1868 bytes) // // 2 xrefs: // > LoadingLayer::create @ 0x6ed97c // > @ 0xbb3c0 // // 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:51:46 +0000 // __int64 __fastcall LoadingLayer::init(LoadingLayer *this, char a2) { cocos2d::CCDirector *v4; // x0 unsigned int v5; // w25 FMODAudioEngine *v7; // x0 GameManager *LevelSaveData; // x0 cocos2d::CCTextureCache *v9; // x0 cocos2d::CCSpriteFrameCache *v10; // x0 cocos2d::CCSpriteFrameCache *v11; // x0 cocos2d::CCDirector *v12; // x0 cocos2d::CCDirector *v13; // x0 GameManager *WinSize; // x0 GameManager *v15; // x0 cocos2d::CCSprite *BGTexture; // x0 const char *v17; // x1 AppDelegate **v18; // x23 void (__fastcall *v19)(AppDelegate **, __int64 *); // x24 void (__fastcall *v20)(AppDelegate **); // x24 AppDelegate *v21; // x0 const char *v22; // x1 __int64 v23; // x23 void (__fastcall *v24)(__int64, __int64 *); // x24 const char *v25; // x1 __int64 v26; // x24 __int64 v27; // x0 __int64 (__fastcall *v28)(__int64); // x1 void (__fastcall *v29)(__int64, __int64 *); // x23 __int64 v30; // x28 const char *v31; // x1 __int64 v32; // x24 void (__fastcall *v33)(__int64, __int64 *); // x23 const char *v34; // x1 __int64 v35; // x23 __int64 v36; // x0 __int64 (__fastcall *v37)(__int64); // x1 void (__fastcall *v38)(__int64, __int64 *); // x24 __int64 v39; // x28 cocos2d::CCLabelBMFont *LoadingString; // x0 const char *v41; // x2 __int64 v42; // x0 __int64 v43; // x2 __int64 v44; // x23 void (__fastcall *v45)(__int64, __int64 *); // x24 const char *v46; // x0 size_t v47; // x0 __int64 v48; // x1 __int64 v49; // x23 void (__fastcall *v50)(__int64, __int64 *); // x24 float v51; // s0 __int64 v52; // x23 void (__fastcall *v53)(__int64, long double); // x24 long double v54; // q0 const char *v55; // x1 float *v56; // x23 const char *v57; // x1 __int64 v58; // x0 float v59; // s0 __int64 v60; // x0 __int64 v61; // x20 void (__fastcall *v62)(__int64, _BYTE *); // x24 __int64 v63; // x20 void (__fastcall *v64)(__int64, _BYTE *); // x24 void (__fastcall *v65)(float *, _BYTE *); // x20 __int64 v66; // x0 cocos2d::CCDirector *updated; // x0 __int64 v68; // x0 cocos2d::CCDelayTime *v69; // x20 cocos2d::CCSequence *v70; // x22 cocos2d::CCFiniteTimeAction *v71; // x0 cocos2d::CCAction *v72; // x0 FMODAudioEngine *v73; // x0 GameManager *v74; // x0 GameLevelManager *v75; // x0 GameLevelManager *v76; // x0 __int64 v77; // x23 void (__fastcall *v78)(__int64, float); // x24 float *v79; // x0 char *v80; // [xsp+80h] [xbp+80h] float v81; // [xsp+80h] [xbp+80h] _BYTE v82[8]; // [xsp+98h] [xbp+98h] BYREF __int64 v83; // [xsp+A0h] [xbp+A0h] BYREF _BYTE v84[8]; // [xsp+A8h] [xbp+A8h] BYREF __int64 v85; // [xsp+B0h] [xbp+B0h] BYREF int v86; // [xsp+B8h] [xbp+B8h] int v87; // [xsp+BCh] [xbp+BCh] __int64 v88[2]; // [xsp+C0h] [xbp+C0h] BYREF void *v89; // [xsp+D0h] [xbp+D0h] v4 = (cocos2d::CCDirector *)(unsigned __int8)cocos2d::CCLayer::init(this); v5 = (unsigned __int8)v4; if ( !(_BYTE)v4 ) return v5; *((_BYTE *)this + 448) = a2; *(_BYTE *)(cocos2d::CCDirector::sharedDirector(v4) + 217) = 1; cocos2d::CCTexture2D::setDefaultAlphaPixelFormat(0); v7 = (FMODAudioEngine *)*((unsigned __int8 *)this + 448); if ( !*((_BYTE *)this + 448) ) { v73 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine(v7); v74 = (GameManager *)FMODAudioEngine::setup(v73); LevelSaveData = (GameManager *)*(unsigned __int8 *)(GameManager::sharedState(v74) + 1052); if ( !(_DWORD)LevelSaveData ) goto LABEL_5; LABEL_13: v75 = (GameLevelManager *)GameManager::sharedState(LevelSaveData); *((_BYTE *)v75 + 1052) = 0; v76 = (GameLevelManager *)GameLevelManager::sharedState(v75); LevelSaveData = (GameManager *)GameLevelManager::getLevelSaveData(v76); goto LABEL_5; } LevelSaveData = (GameManager *)*(unsigned __int8 *)(GameManager::sharedState(v7) + 1052); if ( (_DWORD)LevelSaveData ) goto LABEL_13; LABEL_5: v9 = (cocos2d::CCTextureCache *)cocos2d::CCTextureCache::sharedTextureCache(LevelSaveData); v10 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCTextureCache::addImage(v9, "GJ_LaunchSheet.png", 0); v11 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v10); v12 = (cocos2d::CCDirector *)cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile(v11, "GJ_LaunchSheet.plist"); v13 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v12); WinSize = (GameManager *)cocos2d::CCDirector::getWinSize(&v83, v13); v15 = (GameManager *)GameManager::sharedState(WinSize); BGTexture = (cocos2d::CCSprite *)GameManager::getBGTexture(v15, 1); v18 = (AppDelegate **)cocos2d::CCSprite::create(BGTexture, v17); (*(void (__fastcall **)(LoadingLayer *, AppDelegate **))(*(_QWORD *)this + 456LL))(this, v18); v19 = *((void (__fastcall **)(AppDelegate **, __int64 *))*v18 + 23); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v85, *(float *)&v83 * 0.5, *((float *)&v83 + 1) * 0.5); v19(v18, &v85); v20 = *((void (__fastcall **)(AppDelegate **))*v18 + 20); v21 = (AppDelegate *)AppDelegate::get(*v18); AppDelegate::bgScale(v21); v20(v18); v82[0] = 0; v82[1] = 102; v82[2] = -1; (*((void (__fastcall **)(AppDelegate **, _BYTE *))*v18 + 120))(v18, v82); v23 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_logo_001.png", v22); (*(void (__fastcall **)(LoadingLayer *, __int64))(*(_QWORD *)this + 456LL))(this, v23); v24 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v23 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v85, *(float *)&v83 * 0.5, (float)(*((float *)&v83 + 1) * 0.5) + 0.0); v24(v23, &v85); v26 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"RobTopLogoBig_001.png", v25); (*(void (__fastcall **)(LoadingLayer *, __int64))(*(_QWORD *)this + 456LL))(this, v26); v27 = v23; v28 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v23 + 192LL); v29 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v26 + 184LL); v30 = v28(v27); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v84, 0.0, 80.0); cocos2d::CCPoint::operator+(&v85, v30); v29(v26, &v85); *((_DWORD *)this + 102) = 0; *((_BYTE *)this + 405) = 1; v32 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"cocos2DxLogo.png", v31); (*(void (__fastcall **)(LoadingLayer *, __int64))(*(_QWORD *)this + 456LL))(this, v32); v33 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v32 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v85, *(float *)&v83 - 34.0, 13.0); v33(v32, &v85); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v32 + 160LL))(v32, 0.6); v35 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"fmodLogo.png", v34); (*(void (__fastcall **)(LoadingLayer *, __int64))(*(_QWORD *)this + 456LL))(this, v35); v36 = v32; v37 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v32 + 192LL); v38 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v35 + 184LL); v39 = v37(v36); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v84, 0.0, 20.0); cocos2d::CCPoint::operator+(&v85, v39); v38(v35, &v85); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v35 + 160LL))(v35, 0.6); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v35 + 960LL))(v35, &unk_111FDE8); LoadingString = (cocos2d::CCLabelBMFont *)LoadingLayer::getLoadingString(this); v42 = cocos2d::CCLabelBMFont::create(LoadingString, "goldFont.fnt", v41); v43 = *(_QWORD *)this; *((_QWORD *)this + 52) = v42; (*(void (__fastcall **)(LoadingLayer *))(v43 + 456))(this); v44 = *((_QWORD *)this + 52); v45 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v44 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v85, *(float *)&v83 * 0.5, (float)(*((float *)&v83 + 1) * 0.5) + -70.0); v45(v44, &v85); (*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 52) + 160LL))(*((_QWORD *)this + 52), 0.7); (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 52) + 344LL))(*((_QWORD *)this + 52), 0); v46 = LoadingLayer::getLoadingString(this); v88[0] = 0; v80 = (char *)v46; v88[1] = 0; v89 = nullptr; v47 = strlen(v46); std::string::__init(v88, v80, v47); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v85, 0.5, 0.5); v48 = TextArea::create((char *)v88, "goldFont.fnt", (const cocos2d::CCPoint *)&v85, 0, 0, 1.0, 440.0, 28.0); *((_QWORD *)this + 53) = v48; if ( (v88[0] & 1) != 0 ) { operator delete(v89); v48 = *((_QWORD *)this + 53); } (*(void (__fastcall **)(LoadingLayer *, __int64))(*(_QWORD *)this + 456LL))(this, v48); v49 = *((_QWORD *)this + 53); v50 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v49 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v85, *(float *)&v83 * 0.5, (float)(*((float *)&v83 + 1) * 0.5) + -100.0); v50(v49, &v85); (*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 53) + 160LL))(*((_QWORD *)this + 53), 0.7); v51 = *(float *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 52) + 328LL))(*((_QWORD *)this + 52)); if ( v51 > 300.0 ) { v77 = *((_QWORD *)this + 52); v78 = *(void (__fastcall **)(__int64, float))(*(_QWORD *)v77 + 160LL); v79 = (float *)(*(__int64 (__fastcall **)(__int64, float))(*(_QWORD *)v77 + 328LL))(v77, v51); v78(v77, 300.0 / *v79); } v52 = *((_QWORD *)this + 52); v53 = *(void (__fastcall **)(__int64, long double))(*(_QWORD *)v52 + 160LL); if ( (*(float (__fastcall **)(__int64))(*(_QWORD *)v52 + 168LL))(v52) < 0.7 ) { v52 = *((_QWORD *)this + 52); (*(void (__fastcall **)(__int64))(*(_QWORD *)v52 + 168LL))(v52); } else { LODWORD(v54) = 1060320051; } v53(v52, v54); v56 = (float *)cocos2d::CCSprite::create((cocos2d::CCSprite *)"slidergroove.png", v55); (*(void (__fastcall **)(LoadingLayer *, float *, __int64))(*(_QWORD *)this + 464LL))(this, v56, 3); v58 = cocos2d::CCSprite::create((cocos2d::CCSprite *)"sliderBar.png", v57); *((_QWORD *)this + 54) = v58; v59 = v56[108]; v85 = 0x260100002601LL; v86 = 10497; v87 = 10497; *((float *)this + 110) = v59 - 4.0; *((float *)this + 111) = 8.0; v60 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v58 + 1072LL))(v58); cocos2d::CCTexture2D::setTexParameters(v60, &v85); (*(void (__fastcall **)(float *, _QWORD, __int64))(*(_QWORD *)v56 + 464LL))(v56, *((_QWORD *)this + 54), 0xFFFFFFFFLL); v61 = *((_QWORD *)this + 54); v62 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v61 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v84, 0.0, 0.0); v62(v61, v84); v63 = *((_QWORD *)this + 54); v64 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v63 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v84, 2.0, 4.0); v64(v63, v84); v65 = *(void (__fastcall **)(float *, _BYTE *))(*(_QWORD *)v56 + 184LL); v81 = *(float *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 52) + 192LL))(*((_QWORD *)this + 52)); v66 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 53) + 192LL))(*((_QWORD *)this + 53)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v84, v81, *(float *)(v66 + 4) + 40.0); v65(v56, v84); updated = (cocos2d::CCDirector *)LoadingLayer::updateProgress(this, 0); v68 = cocos2d::CCDirector::sharedDirector(updated); v69 = (cocos2d::CCDelayTime *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v68 + 144LL))(v68); v70 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create(v69, 0.0); v71 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(this, LoadingLayer::loadAssets, 0); v72 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v70, v71, 0); cocos2d::CCActionManager::addAction(v69, v72, this, 0); return v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source