//
// BoomScrollLayer::removePage from 0x1003901b0 to 0x100390235 (133 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: pc, 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:29:13 +0000
//
void __fastcall BoomScrollLayer::removePage(__int64 a1, __int64 a2)
{
unsigned int v2; // r14d
int v3; // esi
sub_1007FF140(*(_QWORD *)(a1 + 480), a2, 1);
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 552LL))(a1, a2, 1);
BoomScrollLayer::updatePages(a1);
v2 = *(_DWORD *)(a1 + 588);
*(_DWORD *)(a1 + 424) = v2;
if ( v2 <= (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 480)) - 1 )
v3 = *(_DWORD *)(a1 + 588);
else
v3 = sub_1007FEF90(*(_QWORD *)(a1 + 480)) - 1;
*(_DWORD *)(a1 + 588) = v3;
BoomScrollLayer::moveToPage(a1, v3);
}