// // cocos2d::CCScrollLayer::initWithLayers from 0x6942b8 to 0x6943f0 (312 bytes) // // 2 xrefs: // > cocos2d::CCScrollLayer::nodeWithLayers @ 0x6944c8 // > @ 0xed0a0 // // 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:36 +0000 // __int64 __fastcall cocos2d::CCScrollLayer::initWithLayers(cocos2d::CCScrollLayer *this, cocos2d::CCArray *a2, int a3) { cocos2d::CCDirector *v6; // x0 unsigned int v7; // w23 __int64 v9; // x0 unsigned int v10; // w19 cocos2d::CCTouchDispatcher *v11; // x0 cocos2d::CCDirector *v12; // x0 cocos2d::CCDirector *v13; // x0 cocos2d::CCDirector *v14; // x0 int v15; // w0 unsigned int v16; // w1 __int64 v17; // x0 __int64 v18; // [xsp+50h] [xbp+50h] BYREF v6 = (cocos2d::CCDirector *)(unsigned __int8)cocos2d::CCLayer::init(this); v7 = (unsigned __int8)v6; if ( (_BYTE)v6 ) { v9 = cocos2d::CCDirector::sharedDirector(v6); v10 = 0; v11 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v9 + 160LL))(v9); cocos2d::CCTouchDispatcher::addTargetedDelegate(v11, (cocos2d::CCScrollLayer *)((char *)this + 320), 0, 1); *((_DWORD *)this + 101) = (unsigned int)&dword_0 + 1; v12 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)((char *)&dword_0 + 1)); cocos2d::CCDirector::getWinSize(&v18, v12); v13 = (cocos2d::CCDirector *)(unsigned int)((int)*(float *)&v18 - a3); *((float *)this + 103) = (float)(int)v13; v14 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v13); cocos2d::CCDirector::getWinSize(&v18, v14); v15 = (int)*((float *)&v18 + 1); *((_DWORD *)this + 105) = *((_DWORD *)this + 103); *((float *)this + 104) = (float)v15; *((float *)this + 106) = (float)v15; while ( v10 < (unsigned int)cocos2d::CCArray::count(a2) ) { v16 = v10++; v17 = cocos2d::CCArray::objectAtIndex(a2, v16); (*(void (__fastcall **)(cocos2d::CCScrollLayer *, __int64))(*(_QWORD *)this + 456LL))(this, v17); } *((_DWORD *)this + 102) = cocos2d::CCArray::count(a2); } return v7; }
GD Web Decomp Icon

GD Web Decomp

Raw Source