// // BoomScrollLayer::setupDynamicScrolling from 0x689b70 to 0x689d88 (536 bytes) // // 2 xrefs: // > BoomScrollLayer::init @ 0x68ad40 // > @ 0xab940 // // 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:32 +0000 // __int64 __fastcall BoomScrollLayer::setupDynamicScrolling(__int64 a1, cocos2d::CCObject *this, __int64 a3) { cocos2d::CCObject *v5; // x0 __int64 v6; // x1 cocos2d::CCArray *v7; // x0 __int64 Object; // x23 void (__fastcall *v9)(__int64, _BYTE *); // x24 __int64 v10; // x23 void (__fastcall *v11)(__int64, _BYTE *); // x24 __int64 v12; // x23 void (__fastcall *v13)(__int64, _BYTE *); // x24 void (__fastcall ***v14)(_QWORD, __int64, __int64); // x20 void (__fastcall *v15)(_QWORD, __int64, __int64); // x23 __int64 v16; // x0 void (__fastcall ***v17)(_QWORD, __int64, __int64); // x20 void (__fastcall *v18)(_QWORD, __int64, __int64); // x23 __int64 v19; // x24 __int64 v20; // x0 void (__fastcall ***v21)(_QWORD, __int64, __int64); // x20 void (__fastcall *v22)(_QWORD, __int64, __int64); // x23 __int64 v23; // x24 __int64 v24; // x0 __int64 v25; // x20 unsigned int v26; // w20 __int64 v28; // [xsp+48h] [xbp+48h] _BYTE v29[8]; // [xsp+50h] [xbp+50h] BYREF __int64 v30; // [xsp+58h] [xbp+58h] v5 = *(cocos2d::CCObject **)(a1 + 448); v6 = _stack_chk_guard; *(_QWORD *)(a1 + 440) = a3; v30 = v6; if ( v5 ) cocos2d::CCObject::release(v5); *(_QWORD *)(a1 + 448) = this; cocos2d::CCObject::retain(this); v7 = *(cocos2d::CCArray **)(a1 + 480); *(_BYTE *)(a1 + 456) = 1; Object = cocos2d::CCArray::lastObject(v7); v9 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)Object + 184LL); BoomScrollLayer::getRelativePosForPage((BoomScrollLayer *)a1, -1, (cocos2d::CCPoint *)v29); v9(Object, v29); v10 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 480), 0); v11 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v10 + 184LL); BoomScrollLayer::getRelativePosForPage((BoomScrollLayer *)a1, 0, (cocos2d::CCPoint *)v29); v11(v10, v29); v12 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 480), 1u); v13 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v12 + 184LL); BoomScrollLayer::getRelativePosForPage((BoomScrollLayer *)a1, 1, (cocos2d::CCPoint *)v29); v13(v12, v29); v14 = *(void (__fastcall ****)(_QWORD, __int64, __int64))(a1 + 440); v15 = **v14; v28 = cocos2d::CCArray::lastObject(*(cocos2d::CCArray **)(a1 + 480)); v16 = cocos2d::CCArray::lastObject(*(cocos2d::CCArray **)(a1 + 448)); v15(v14, v28, v16); v17 = *(void (__fastcall ****)(_QWORD, __int64, __int64))(a1 + 440); v18 = **v17; v19 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 480), 0); v20 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 448), 0); v18(v17, v19, v20); v21 = *(void (__fastcall ****)(_QWORD, __int64, __int64))(a1 + 440); v22 = **v21; v23 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 480), 1u); v24 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 448), 1u); v22(v21, v23, v24); if ( (unsigned int)cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 448)) <= 2 ) { *(_BYTE *)(a1 + 456) = 0; *(_BYTE *)(a1 + 436) = 0; while ( 1 ) { v26 = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 480)); if ( v26 <= (unsigned int)cocos2d::CCArray::count(this) ) break; v25 = cocos2d::CCArray::lastObject(*(cocos2d::CCArray **)(a1 + 480)); cocos2d::CCArray::removeLastObject(*(cocos2d::CCArray **)(a1 + 480), 1); (*(void (__fastcall **)(__int64))(*(_QWORD *)v25 + 536LL))(v25); } } return _stack_chk_guard; }