//
// sub_1001F0FD8 from 0x1001f0fd8 to 0x1001f1050 (120 bytes)
//
// 3 xrefs:
// > GJShopLayer::init @ 0x1001ca06c
// > ListButtonBar::onLeft @ 0x1001f0fc4
// > ListButtonBar::onRight @ 0x1001f0fd4
//
// 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 11:00:38 +0000
//
__int64 (__fastcall ***__fastcall sub_1001F0FD8(__int64 a1, __int64 a2))(_QWORD, __int64, __int64)
{
_BYTE *v4; // x0
__int64 (__fastcall ***result)(_QWORD, __int64, __int64); // x0
BoomScrollLayer::getTotalPages(*(_QWORD *)(a1 + 320));
v4 = *(_BYTE **)(a1 + 320);
if ( (*(_BYTE *)(a1 + 344) & 1) != 0 )
{
BoomScrollLayer::moveToPage(v4, a2);
}
else
{
BoomScrollLayer::instantMoveToPage((__int64)v4, a2 - 1);
BoomScrollLayer::instantMoveToPage(*(_QWORD *)(a1 + 320), a2);
}
result = *(__int64 (__fastcall ****)(_QWORD, __int64, __int64))(a1 + 336);
if ( result )
return (__int64 (__fastcall ***)(_QWORD, __int64, __int64))(**result)(result, a1, a2);
return result;
}