//
// BoomScrollLayer::removePageWithNumber from 0x100390240 to 0x1003902f8 (184 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::removePageWithNumber(__int64 a1, int a2)
{
__int64 v2; // r14
int v3; // esi
if ( a2 >= 0 && (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 480)) > a2 )
{
v2 = sub_1007FEFE0(*(_QWORD *)(a1 + 480), (unsigned int)a2);
sub_1007FF140(*(_QWORD *)(a1 + 480), v2, 1);
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 552LL))(a1, v2, 1);
BoomScrollLayer::updatePages(a1);
LODWORD(v2) = *(_DWORD *)(a1 + 588);
*(_DWORD *)(a1 + 424) = v2;
if ( (unsigned int)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);
}
}