// // SlideInLayer::init from 0x3da4f8 to 0x3da7da (738 bytes) // // 0 xrefs: // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 11:46:47 +0000 // int __fastcall SlideInLayer::init(SlideInLayer *this) { int v2; // r0 cocos2d::CCTouchDispatcher *v3; // r0 int v4; // r9 cocos2d::CCDirector *v5; // r0 cocos2d::CCLayer *WinSize; // r0 int v7; // r0 int v8; // r3 const char *v9; // r1 int v10; // r6 void (__fastcall *v11)(int, _DWORD *); // r10 void (__fastcall *v12)(int, _DWORD *); // r10 cocos2d::CCDirector *v13; // r0 int (__fastcall *v14)(int, int); // r10 cocos2d::CCDirector *v15; // r0 int ScreenScaleFactorW; // r0 cocos2d::CCDirector *v17; // r0 float v18; // s17 cocos2d::CCDirector *v19; // r0 const char *v20; // r1 float v21; // s17 int v22; // r0 int v23; // r0 int v24; // r0 float v25; // r1 float v26; // s15 int v27; // r6 void (__fastcall *v28)(int, _BYTE *); // r8 int v30; // r8 void (__fastcall *v31)(int, _DWORD *); // r10 int v32; // r0 float v33; // [sp+8h] [bp-28h] BYREF float v34; // [sp+Ch] [bp-24h] _BYTE v35[8]; // [sp+10h] [bp-20h] BYREF _DWORD v36[2]; // [sp+18h] [bp-18h] BYREF _DWORD v37[3]; // [sp+20h] [bp-10h] BYREF *((_BYTE *)this + 477) = 1; v2 = cocos2d::CCDirector::sharedDirector(this); v3 = (cocos2d::CCTouchDispatcher *)(*(int (__fastcall **)(int))(*(_DWORD *)v2 + 80))(v2); cocos2d::CCTouchDispatcher::registerForcePrio(v3, this, 2, 0); v36[0] = 0; v4 = cocos2d::CCLayerColor::initWithColor(this, v36); if ( v4 ) { (*(void (__fastcall **)(SlideInLayer *, int))(*(_DWORD *)this + 500))(this, 1); v5 = (cocos2d::CCDirector *)(*(int (__fastcall **)(SlideInLayer *, int))(*(_DWORD *)this + 536))(this, 1); cocos2d::CCDirector::sharedDirector(v5); WinSize = (cocos2d::CCLayer *)cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v33); v7 = cocos2d::CCLayer::create(WinSize); v8 = *(_DWORD *)this; *((_DWORD *)this + 110) = v7; (*(void (__fastcall **)(SlideInLayer *, int))(v8 + 228))(this, v7); v10 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"pauseBG_001.png", v9); v11 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v10 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v36, 0.5, 0.0); v11(v10, v36); v12 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v10 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v36, v33 * 0.5, (float)(v34 * 0.5) - 240.0); v12(v10, v36); v13 = (cocos2d::CCDirector *)(*(int (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 110) + 232))( *((_DWORD *)this + 110), v10, -2); v14 = *(int (__fastcall **)(int, int))(*(_DWORD *)v10 + 64); v15 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v13); ScreenScaleFactorW = cocos2d::CCDirector::getScreenScaleFactorW(v15); v17 = (cocos2d::CCDirector *)v14(v10, ScreenScaleFactorW); v18 = v34; v19 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v17); if ( COERCE_FLOAT(cocos2d::CCDirector::getScreenScaleFactorMax(v19)) != 1.0 ) { v21 = (float)(v18 - 320.0) + 4.0; if ( v21 > 0.0 ) { v36[0] = -10870016; v30 = cocos2d::CCLayerColor::create(v36, LODWORD(v33), LODWORD(v21)); (*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 110) + 232))(*((_DWORD *)this + 110), v30, -3); v31 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v30 + 92); v32 = (*(int (__fastcall **)(int))(*(_DWORD *)v10 + 96))(v10); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v36, 0.0, (float)(*(float *)(v32 + 4) - v21) + 2.0); v31(v30, v36); } } v22 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"startBtn_001.png", v20); *((_DWORD *)this + 112) = v22; v36[0] = 660; v36[1] = 1; v23 = CCMenuItemSpriteExtra::create(v22, 0, (int)this, 660, 1); memset(v37, 0, sizeof(v37)); *((_DWORD *)this + 113) = v23; std::string::operator=((unsigned __int8 *)(v23 + 328), (unsigned __int8 *)v37); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 113) + 80))(*((_DWORD *)this + 113), 1062836634); *(_DWORD *)(*((_DWORD *)this + 113) + 316) = 1062836634; v24 = cocos2d::CCMenu::create(*((cocos2d::CCMenu **)this + 113), nullptr); v25 = v33 * 0.5; v26 = (float)(v34 * 0.5) + 210.0; *((_DWORD *)this + 111) = v24; v27 = v24; v28 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v24 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v35, v25, v26); v28(v27, v35); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v35, 0.0, (float)((float)(v34 * 0.5) - 240.0) - (float)((float)(v34 - 480.0) * 0.5)); cocos2d::CCPoint::operator=((char *)this + 456, v35); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v35, *((float *)this + 114), *((float *)this + 115) - v34); cocos2d::CCPoint::operator=((char *)this + 464, v35); (*(void (__fastcall **)(SlideInLayer *))(*(_DWORD *)this + 652))(this); (*(void (__fastcall **)(_DWORD, _DWORD, int))(**((_DWORD **)this + 110) + 232))( *((_DWORD *)this + 110), *((_DWORD *)this + 111), 10); (*(void (__fastcall **)(SlideInLayer *, int))(*(_DWORD *)this + 668))(this, 1); } return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source