//
// BoomScrollLayer::removePage from 0x68a654 to 0x68a6e8 (148 bytes)
//
// 2 xrefs:
// > BoomScrollLayer::removePageWithNumber @ 0x68a72c
// > ??> @ 0xe7bc8
//
// 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::removePage(cocos2d::CCArray **this, cocos2d::CCLayer *a2)
{
cocos2d::CCLayer *v3; // x20
cocos2d::CCArray *v4; // x0
int v5; // w1
v3 = a2;
cocos2d::CCArray::removeObject(*(this + 60), a2, 1);
(*((void (__fastcall **)(cocos2d::CCArray **, cocos2d::CCLayer *, __int64))*this + 69))(this, v3, 1);
BoomScrollLayer::updatePages(this);
LODWORD(v3) = *((_DWORD *)this + 147);
v4 = *(this + 60);
*((_DWORD *)this + 106) = (_DWORD)v3;
if ( (unsigned int)v3 > (unsigned int)cocos2d::CCArray::count(v4) - 1 )
v5 = cocos2d::CCArray::count(*(this + 60)) - 1;
else
v5 = *((_DWORD *)this + 147);
*((_DWORD *)this + 147) = v5;
return BoomScrollLayer::moveToPage((BoomScrollLayer *)this, v5);
}