//
// sub_1003852E4 from 0x1003852e4 to 0x100385338 (84 bytes)
//
// 1 xrefs:
// > sub_10038528C @ 0x1003852e0
//
// 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:03:32 +0000
//
_BYTE *__fastcall sub_1003852E4(_BYTE *result, __int64 a2)
{
__int64 v2; // x8
_BYTE *v3; // x20
v2 = 552;
if ( result[584] )
v2 = 544;
v3 = *(_BYTE **)&result[v2];
if ( v3 )
{
BoomScrollLayer::getTotalPages(*(_QWORD *)&result[v2]);
return BoomScrollLayer::moveToPage(v3, a2);
}
return result;
}