//
// sub_100482CB4 from 0x100482cb4 to 0x100482d44 (144 bytes)
//
// 2 xrefs:
// > LevelSelectLayer::init @ 0x100482a9c
// > LevelSelectLayer::scrollLayerMoved @ 0x100483f30
//
// 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:05:47 +0000
//
__int64 __fastcall sub_100482CB4(__int64 result, int a2)
{
__int64 v2; // x19
__int64 v3; // x8
__int64 v5; // x0
if ( *(_QWORD *)(result + 472) )
{
v2 = result;
v3 = *(_QWORD *)(result + 448);
if ( v3 )
{
result = *(_QWORD *)(v3 + 448);
if ( result )
{
result = sub_1002E757C(result);
if ( (int)result >= 1 )
{
v5 = sub_1002E75A0(*(_QWORD *)(*(_QWORD *)(v2 + 448) + 448LL), (a2 % (int)result + (int)result) % (int)result);
return (*(__int64 (__fastcall **)(_QWORD, bool))(**(_QWORD **)(v2 + 472) + 344LL))(
*(_QWORD *)(v2 + 472),
(unsigned int)(*(_DWORD *)(v5 + 328) - *(_DWORD *)(v5 + 332)) < 0xFFFFFFFE);
}
}
}
}
return result;
}