// // BoomScrollLayer::repositionPagesLooped from 0x689d88 to 0x68a054 (716 bytes) // // 4 xrefs: // > BoomScrollLayer::instantMoveToPage @ 0x68a110 // > BoomScrollLayer::moveToPage @ 0x68a27c // > BoomScrollLayer::init @ 0x68adc0 // > @ 0x55900 // // 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::repositionPagesLooped(BoomScrollLayer *this) { unsigned int v2; // w25 unsigned int v3; // w24 unsigned int v4; // w22 unsigned int v5; // w23 unsigned int v6; // w20 __int64 v7; // x28 void (__fastcall *v8)(__int64, _BYTE *); // x26 __int64 v9; // x28 void (__fastcall *v10)(__int64, _BYTE *); // x26 unsigned int v11; // w1 __int64 v12; // x0 __int64 v13; // x27 __int64 v14; // x23 __int64 v15; // x20 __int64 v17; // x0 void (__fastcall ***v18)(_QWORD, __int64, __int64); // x22 void (__fastcall *v19)(_QWORD, __int64, __int64); // x26 __int64 v20; // x0 void (__fastcall ***v21)(_QWORD, __int64, __int64); // x22 unsigned int v22; // w1 void (__fastcall *v23)(_QWORD, __int64, __int64); // x25 __int64 v24; // x0 void (__fastcall ***v25)(_QWORD, __int64, __int64); // x22 unsigned int v26; // w1 void (__fastcall *v27)(_QWORD, __int64, __int64); // x24 __int64 v28; // x0 __int64 Page; // x20 void (__fastcall *v30)(__int64, _BYTE *); // x22 unsigned int RelativePageForNum; // [xsp+6Ch] [xbp+6Ch] _BYTE v32[8]; // [xsp+70h] [xbp+70h] BYREF RelativePageForNum = BoomScrollLayer::getRelativePageForNum((cocos2d::CCArray **)this, *((_DWORD *)this + 147)); v2 = BoomScrollLayer::getRelativePageForNum((cocos2d::CCArray **)this, *((_DWORD *)this + 147) - 1); v3 = BoomScrollLayer::getRelativePageForNum((cocos2d::CCArray **)this, *((_DWORD *)this + 147) + 1); if ( *((_BYTE *)this + 456) ) { Page = BoomScrollLayer::getPage(this, *((_DWORD *)this + 147)); v30 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)Page + 184LL); BoomScrollLayer::getRelativePosForPage(this, *((_DWORD *)this + 147), (cocos2d::CCPoint *)v32); v30(Page, v32); LODWORD(v30) = *((_DWORD *)this + 147); v5 = (_DWORD)v30 - 1; v4 = (_DWORD)v30 + 1; } else { v4 = v3; v5 = v2; } v6 = 0; v7 = BoomScrollLayer::getPage(this, v5); v8 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v7 + 184LL); BoomScrollLayer::getRelativePosForPage(this, *((_DWORD *)this + 147) - 1, (cocos2d::CCPoint *)v32); v8(v7, v32); v9 = BoomScrollLayer::getPage(this, v4); v10 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v9 + 184LL); BoomScrollLayer::getRelativePosForPage(this, *((_DWORD *)this + 147) + 1, (cocos2d::CCPoint *)v32); v10(v9, v32); while ( v6 < (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 60)) ) { v11 = v6++; v12 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 60), v11); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v12 + 344LL))(v12, 0); } if ( *((_BYTE *)this + 456) ) { v13 = BoomScrollLayer::getPage(this, *((_DWORD *)this + 147)); v14 = BoomScrollLayer::getPage(this, *((_DWORD *)this + 147) - 1); v17 = BoomScrollLayer::getPage(this, *((_DWORD *)this + 147) + 1); v18 = *((void (__fastcall ****)(_QWORD, __int64, __int64))this + 55); v15 = v17; v19 = **v18; v20 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 56), RelativePageForNum); v19(v18, v13, v20); v21 = *((void (__fastcall ****)(_QWORD, __int64, __int64))this + 55); v22 = v2; v23 = **v21; v24 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 56), v22); v23(v21, v14, v24); v25 = *((void (__fastcall ****)(_QWORD, __int64, __int64))this + 55); v26 = v3; v27 = **v25; v28 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 56), v26); v27(v25, v15, v28); } else { v13 = BoomScrollLayer::getPage(this, RelativePageForNum); v14 = BoomScrollLayer::getPage(this, v5); v15 = BoomScrollLayer::getPage(this, v4); } (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v13 + 344LL))(v13, 1); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v14 + 344LL))(v14, *((unsigned __int8 *)this + 553) ^ 1u); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v15 + 344LL))(v15, *((unsigned __int8 *)this + 553) ^ 1u); return _stack_chk_guard; }