//
// BoomScrollLayer::removePage from 0x3c1fea to 0x3c2042 (88 bytes)
//
// 1 xrefs:
// > BoomScrollLayer::removePageWithNumber @ 0x3c2068
//
// 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:31 +0000
//
cocos2d::CCArray **__fastcall BoomScrollLayer::removePage(cocos2d::CCArray **this, cocos2d::CCLayer *a2)
{
unsigned int v4; // r5
cocos2d::CCArray *v5; // r0
cocos2d::CCArray *v6; // r1
cocos2d::CCArray::removeObject(*(this + 91), a2, 1);
(*((void (__fastcall **)(cocos2d::CCArray **, cocos2d::CCLayer *, int))*this + 69))(this, a2, 1);
BoomScrollLayer::updatePages(this);
v4 = (unsigned int)*(this + 115);
v5 = *(this + 91);
*(this + 81) = (cocos2d::CCArray *)v4;
if ( v4 <= cocos2d::CCArray::count(v5) - 1 )
v6 = *(this + 115);
else
v6 = (cocos2d::CCArray *)(cocos2d::CCArray::count(*(this + 91)) - 1);
*(this + 115) = v6;
return BoomScrollLayer::moveToPage(this, v6);
}