// // SlideInLayer::init from 0x6b3a24 to 0x6b3e04 (992 bytes) // // 2 xrefs: // > @ 0x4a848 // > @ 0x141d140 // // 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:50:52 +0000 // __int64 __fastcall SlideInLayer::init(SlideInLayer *this) { cocos2d::CCDirector *v2; // x0 __int64 v3; // x0 cocos2d::CCTouchDispatcher *v4; // x0 unsigned __int8 v5; // w0 unsigned int v6; // w23 cocos2d::CCDirector *v8; // x0 cocos2d::CCDirector *v9; // x0 cocos2d::CCLayer *WinSize; // x0 __int64 v11; // x0 const char *v12; // x1 cocos2d::CCDirector **v13; // x22 void (__fastcall *v14)(cocos2d::CCDirector **, char *); // x25 void (__fastcall *v15)(cocos2d::CCDirector **, char *); // x25 __int64 (__fastcall *v16)(cocos2d::CCDirector **); // x25 cocos2d::CCDirector *v17; // x0 cocos2d::CCDirector *v18; // x0 float v19; // s8 cocos2d::CCDirector *v20; // x0 const char *v21; // x1 float v22; // s0 __int64 v23; // x24 cocos2d::CCDirector **v24; // x0 __int64 (__fastcall *v25)(cocos2d::CCDirector **); // x1 void (__fastcall *v26)(__int64, char *); // x22 __int64 v27; // x0 __int64 v28; // x0 _QWORD *v29; // x0 _BYTE *v30; // x2 __int64 v31; // x22 float v32; // s0 void (__fastcall *v33)(__int64, char *); // x24 long double v34; // q0 __int64 v35; // [xsp+60h] [xbp+60h] BYREF char v36; // [xsp+68h] [xbp+68h] BYREF char v37; // [xsp+69h] [xbp+69h] char v38; // [xsp+6Ah] [xbp+6Ah] char v39; // [xsp+6Bh] [xbp+6Bh] _QWORD v40[4]; // [xsp+70h] [xbp+70h] BYREF v2 = (cocos2d::CCDirector *)_stack_chk_guard; *((_BYTE *)this + 601) = 1; v40[3] = v2; v3 = cocos2d::CCDirector::sharedDirector(v2); v4 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 160LL))(v3); cocos2d::CCTouchDispatcher::registerForcePrio(v4, this, 2, 0); v36 = 0; v37 = 0; v38 = 0; v39 = 0; v5 = cocos2d::CCLayerColor::initWithColor(this, &v36); v6 = v5; if ( v5 ) { (*(void (__fastcall **)(SlideInLayer *, __int64))(*(_QWORD *)this + 1000LL))(this, 1); v8 = (cocos2d::CCDirector *)(*(__int64 (__fastcall **)(SlideInLayer *, __int64))(*(_QWORD *)this + 1072LL))(this, 1); v9 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v8); WinSize = (cocos2d::CCLayer *)cocos2d::CCDirector::getWinSize(&v35, v9); v11 = cocos2d::CCLayer::create(WinSize); *((_QWORD *)this + 68) = v11; (*(void (__fastcall **)(SlideInLayer *, __int64))(*(_QWORD *)this + 456LL))(this, v11); v13 = (cocos2d::CCDirector **)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"pauseBG_001.png", v12); v14 = *((void (__fastcall **)(cocos2d::CCDirector **, char *))*v13 + 37); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v36, 0.5, 0.0); v14(v13, &v36); v15 = *((void (__fastcall **)(cocos2d::CCDirector **, char *))*v13 + 23); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v36, *(float *)&v35 * 0.5, (float)(*((float *)&v35 + 1) * 0.5) + -240.0); v15(v13, &v36); (*(void (__fastcall **)(_QWORD, cocos2d::CCDirector **, __int64))(**((_QWORD **)this + 68) + 464LL))( *((_QWORD *)this + 68), v13, 4294967294LL); v16 = *((__int64 (__fastcall **)(cocos2d::CCDirector **))*v13 + 16); v17 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(*v13); cocos2d::CCDirector::getScreenScaleFactorW(v17); v18 = (cocos2d::CCDirector *)v16(v13); v19 = (float)(*((float *)&v35 + 1) - 320.0) + 4.0; v20 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v18); cocos2d::CCDirector::getScreenScaleFactorMax(v20); if ( v22 != 1.0 && v19 > 0.0 ) { v37 = 35; v38 = 90; v36 = 0; v39 = -1; v23 = cocos2d::CCLayerColor::create(&v36, *(float *)&v35, v19); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 68) + 464LL))( *((_QWORD *)this + 68), v23, 4294967293LL); v24 = v13; v25 = *((__int64 (__fastcall **)(cocos2d::CCDirector **))*v13 + 24); v26 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v23 + 184LL); v27 = v25(v24); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v36, 0.0, (float)(*(float *)(v27 + 4) - v19) + 2.0); v26(v23, &v36); } v28 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"startBtn_001.png", v21); *((_QWORD *)this + 70) = v28; v29 = (_QWORD *)CCMenuItemSpriteExtra::create(v28, 0, (__int64)this, 1320, 1); *((_QWORD *)this + 71) = v29; memset(v40, 0, 24); if ( v40 != v29 + 52 ) { if ( (v29[52] & 1) != 0 ) v30 = (_BYTE *)v29[54]; else v30 = (char *)v29 + 417; *v30 = 0; if ( (v29[52] & 1) != 0 ) v29[53] = 0; else *((_BYTE *)v29 + 416) = 0; } (*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 71) + 160LL))(*((_QWORD *)this + 71), 0.85); *(_DWORD *)(*((_QWORD *)this + 71) + 404LL) = 1062836634; v31 = cocos2d::CCMenu::create(*((cocos2d::CCMenu **)this + 71), nullptr); v32 = *((float *)&v35 + 1); *((_QWORD *)this + 69) = v31; v33 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v31 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v36, *(float *)&v35 * 0.5, (float)(v32 * 0.5) + 210.0); v33(v31, &v36); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v36, 0.0, (float)((float)(*((float *)&v35 + 1) * 0.5) + -240.0) - (float)((float)(*((float *)&v35 + 1) - 480.0) * 0.5)); cocos2d::CCPoint::operator=((char *)this + 576, &v36); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v36, *((float *)this + 144), *((float *)this + 145) - *((float *)&v35 + 1)); *(__n128 *)&v34 = cocos2d::CCPoint::operator=((char *)this + 584, &v36); (*(void (__fastcall **)(SlideInLayer *, long double))(*(_QWORD *)this + 1304LL))(this, v34); (*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**((_QWORD **)this + 68) + 464LL))( *((_QWORD *)this + 68), *((_QWORD *)this + 69), 10); (*(void (__fastcall **)(SlideInLayer *, __int64))(*(_QWORD *)this + 1336LL))(this, 1); } return v6; }
GD Web Decomp Icon

GD Web Decomp

Raw Source